/* -------------------------------------------------------------
 * RainbyF Yarn Store - Premium Scoped Stylesheet
 * Scoped under .rainbyf-store-page to prevent style leakage
 * ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

body:has(.rainbyf-store-page) {
    background-color: #FAF6F0 !important;
}

.rainbyf-store-page {
    /* Color Palette */
    --store-bg: #FAF6F0; /* Warm sand/oatmeal */
    --store-bg-card: #FFFDFB; /* Warm soft cream */
    --store-primary: #E52A5A; /* Rose pink matching the logo symbol */
    --store-primary-hover: #C2184B;
    --store-secondary: #8A9A86; /* Cozy sage green */
    --store-text: #2C3639; /* Dark brown-charcoal */
    --store-text-muted: #6C7A7C; /* Soft slate grey */
    --store-border: rgba(44, 54, 57, 0.08);
    --store-shadow-sm: 0 4px 12px rgba(44, 54, 57, 0.03);
    --store-shadow-md: 0 10px 30px rgba(44, 54, 57, 0.06);
    --store-shadow-lg: 0 20px 45px rgba(44, 54, 57, 0.1);
    --store-font-sans: 'Plus Jakarta Sans', sans-serif;
    --store-font-serif: 'Playfair Display', serif;

    font-family: var(--store-font-sans);
    background-color: var(--store-bg);
    color: var(--store-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Base Headings styling */
.rainbyf-store-page h1,
.rainbyf-store-page h2,
.rainbyf-store-page h3,
.rainbyf-store-page h4 {
    font-family: var(--store-font-serif);
    font-weight: 700;
    color: var(--store-text);
}

/* Custom Scrollbar for premium feel */
.rainbyf-store-page::-webkit-scrollbar {
    width: 8px;
}
.rainbyf-store-page::-webkit-scrollbar-track {
    background: var(--store-bg);
}
.rainbyf-store-page::-webkit-scrollbar-thumb {
    background: var(--store-primary);
    border-radius: 4px;
}

/* Custom buttons */
.btn-store {
    font-family: var(--store-font-sans);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-store-primary {
    background-color: var(--store-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(229, 42, 90, 0.25);
}

.btn-store-primary:hover {
    background-color: var(--store-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 42, 90, 0.35);
}

.btn-store-secondary {
    background-color: transparent;
    color: var(--store-text) !important;
    border: 1px solid var(--store-text);
}

.btn-store-secondary:hover {
    background-color: var(--store-text);
    color: var(--store-bg) !important;
    transform: translateY(-3px);
}

/* Navbar Scoped Customizations */
.rainbyf-store-page .header {
    background-color: var(--store-bg-card);
    box-shadow: var(--store-shadow-sm);
    border-bottom: 1px solid var(--store-border);
    z-index: 1000 !important;
}

.rainbyf-store-page .header-logo {
    width: 60% !important;
}

.rainbyf-store-page .header-buttons {
    width: 30% !important;
    justify-content: flex-end !important;
    gap: 15px;
}

.rainbyf-store-page .navbar-menu ul li a {
    color: var(--store-text) !important;
    font-weight: 500;
}

.rainbyf-store-page .navbar-menu ul li a:hover {
    color: var(--store-primary) !important;
}

/* Cart Icon in Navbar */
.rainbyf-store-page .cart-trigger {
    position: relative;
    background: transparent !important;
    border: none !important;
    font-size: 22px;
    color: var(--store-text) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    transition: color 0.3s ease;
    outline: none;
    box-shadow: none !important;
    transform: none !important;
}

.rainbyf-store-page .cart-trigger:hover {
    color: var(--store-primary) !important;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--store-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------
 * Hero Section
 * ------------------------------------------------------------- */
.store-hero {
    min-height: 85vh;
    padding: 120px 0 60px 0;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, #FAF0E6 0%, var(--store-bg) 100%);
    position: relative;
}

.hero-subtitle {
    font-family: var(--store-font-sans);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--store-primary);
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-title-main {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-style: italic;
}

.hero-title-main span {
    font-style: normal;
    font-weight: 900;
    background: linear-gradient(120deg, var(--store-primary), #E4A47E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--store-text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

/* Hero Collage */
.collage-container {
    position: relative;
    width: 100%;
    height: 480px;
}

.collage-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--store-shadow-lg);
    border: 1px solid var(--store-border);
    transition: transform 0.5s ease;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-main {
    position: absolute;
    width: 65%;
    height: 380px;
    top: 20px;
    left: 0;
    z-index: 2;
}

.img-secondary {
    position: absolute;
    width: 50%;
    height: 280px;
    bottom: 20px;
    right: 0;
    z-index: 1;
}

.collage-container:hover .img-main {
    transform: translateY(-8px) scale(1.02);
}

.collage-container:hover .img-secondary {
    transform: translateY(8px) scale(1.02);
}

/* Decorative cozy badge */
.cozy-badge {
    position: absolute;
    background-color: var(--store-bg-card);
    border: 1px solid var(--store-border);
    padding: 15px 25px;
    border-radius: 15px;
    bottom: 60px;
    left: 40%;
    z-index: 3;
    box-shadow: var(--store-shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cozy-badge-icon {
    font-size: 24px;
    color: var(--store-primary);
}

.cozy-badge-text h5 {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
}

.cozy-badge-text p {
    font-size: 11px;
    color: var(--store-text-muted);
    margin: 0;
}

/* -------------------------------------------------------------
 * Category Filter Grid
 * ------------------------------------------------------------- */
.store-categories {
    padding: 60px 0;
    text-align: center;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-circle-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--store-bg-card);
    border: 2px solid var(--store-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--store-primary);
    box-shadow: var(--store-shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-circle-card h5 {
    font-family: var(--store-font-sans);
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.category-circle-card:hover .category-circle-wrapper {
    background-color: var(--store-primary);
    color: #ffffff;
    border-color: var(--store-primary);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(208, 140, 96, 0.25);
}

.category-circle-card.active .category-circle-wrapper {
    background-color: var(--store-primary);
    color: #ffffff;
    border-color: var(--store-primary);
}

.category-circle-card:hover h5,
.category-circle-card.active h5 {
    color: var(--store-primary);
}

/* -------------------------------------------------------------
 * Product Cards Catalog
 * ------------------------------------------------------------- */
.store-products {
    padding: 60px 0;
}

.section-intro {
    margin-bottom: 45px;
}

.section-subtitle-store {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--store-primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.section-title-store {
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 700;
}

.product-grid {
    margin-top: 30px;
}

.product-card-store {
    background-color: var(--store-bg-card);
    border: 1px solid var(--store-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--store-shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-store:hover {
    transform: translateY(-8px);
    box-shadow: var(--store-shadow-lg);
    border-color: rgba(208, 140, 96, 0.25);
}

.product-img-holder {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.product-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-store:hover .product-img-holder img {
    transform: scale(1.06);
}

.product-tag-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    color: var(--store-text);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid var(--store-border);
    z-index: 10;
}

.product-overlay-cta {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(44,54,57,0.7) 0%, rgba(44,54,57,0) 100%);
    display: flex;
    justify-content: center;
    transition: bottom 0.3s ease;
    z-index: 10;
}

.product-card-store:hover .product-overlay-cta {
    bottom: 0;
}

.product-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-rating {
    display: flex;
    gap: 3px;
    color: #FFB03A;
    font-size: 12px;
    margin-bottom: 8px;
}

.product-title-text {
    font-family: var(--store-font-sans);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc-text {
    font-size: 13px;
    color: var(--store-text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--store-border);
    padding-top: 15px;
}

.product-price-label {
    font-family: var(--store-font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--store-primary);
}

.product-btn-add {
    background-color: var(--store-text);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-btn-add:hover {
    background-color: var(--store-primary);
    transform: scale(1.1);
}

/* -------------------------------------------------------------
 * Our Story Section
 * ------------------------------------------------------------- */
.story-section {
    padding: 80px 0;
    background-color: var(--store-bg-card);
    border-top: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
}

.story-card-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--store-shadow-md);
    border: 1px solid var(--store-border);
}

.story-card-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.story-editorial-heading {
    font-size: 2.8rem;
    line-height: 1.15;
    font-style: italic;
    margin-bottom: 25px;
}

.story-text {
    font-size: 1.05rem;
    color: var(--store-text-muted);
    margin-bottom: 20px;
}

.story-checklist {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.story-checklist li {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-checklist li i {
    color: var(--store-primary);
    font-size: 16px;
}

/* -------------------------------------------------------------
 * Shopping Cart Slide-out Drawer
 * ------------------------------------------------------------- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background-color: var(--store-bg-card);
    z-index: 1050;
    box-shadow: var(--store-shadow-lg);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--store-border);
}

@media (max-width: 576px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--store-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h4 {
    margin: 0;
    font-size: 20px;
    font-family: var(--store-font-sans);
    font-weight: 700;
}

.cart-close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--store-text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close-btn:hover {
    color: var(--store-primary);
}

/* Cart item list */
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty-message {
    text-align: center;
    color: var(--store-text-muted);
    margin-top: 60px;
}

.cart-empty-message i {
    font-size: 40px;
    color: rgba(44, 54, 57, 0.2);
    margin-bottom: 15px;
    display: block;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--store-border);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--store-border);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.cart-item-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--store-text-muted);
    margin-bottom: 8px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--store-border);
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-qty-btn:hover {
    background-color: var(--store-bg);
}

.cart-qty-val {
    width: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.cart-item-price {
    font-family: var(--store-font-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--store-primary);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--store-text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.cart-item-remove:hover {
    color: #e53935;
}

/* Cart Footer */
.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--store-border);
    background-color: var(--store-bg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-total-label {
    font-weight: 700;
    font-size: 16px;
}

.cart-total-value {
    font-family: var(--store-font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--store-primary);
}

/* Drawer Backdrop Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(44, 54, 57, 0.4);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1040;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Floating Notification Toast */
.store-toast {
    position: fixed;
    bottom: 30px;
    right: -320px;
    width: 300px;
    background-color: var(--store-text);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--store-shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.store-toast.show {
    right: 30px;
}

.store-toast-icon {
    font-size: 20px;
    color: var(--store-primary);
}

.store-toast-message {
    font-size: 13px;
    font-weight: 600;
}
