/* --------------------------------------------------
    GLOBAL RESET & VARIABLES
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Main Warm Linen Theme */
    --bg-linen: #F5EFE6;
    --card-white: #FAF9F6;
    --border-sand: #E8DCC4;
    --btn-earth: #7A5F44;
    --text-charcoal: #4A4A48;
    --text-warmgrey: #A8A29E;

    /* Accents & UI Colors (Consolidated) */
    --accent-pink: #d63384;
    --bg-light-gray: #fafafa;
    --border-gray: #eee;
    --btn-dark: #333;
    --btn-dark-hover: #555;

    /* Utility Variables */
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --transition: 0.25s ease;
}

body {
    background: var(--bg-linen);
    color: var(--text-charcoal);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

/* --------------------------------------------------
    NAVBAR
-------------------------------------------------- */
.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 35px 40px;
    background: var(--card-white);
    border-bottom: 1px solid var(--border-sand);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    font-size: 1rem;
    color: var(--text-warmgrey);
    pointer-events: none;
}

.navbar-search {
    width: 240px;
    padding: 8px 14px 8px 34px;
    border: 1px solid var(--border-sand);
    border-radius: var(--radius);
    background: var(--card-white);
    color: var(--text-charcoal);
}

.navbar-search:focus {
    outline: none;
    border-color: var(--btn-earth);
    box-shadow: 0 0 0 3px rgba(122,95,68,0.2);
}

.navbar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-brand {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-charcoal);
}

.navbar-headings {
    display: flex;
    gap: 35px;
}

.navbar-headings a,
.navbar-right a {
    text-decoration: none;
    color: var(--text-charcoal);
    font-weight: 500;
    padding-bottom: 4px;
}

.navbar-headings a {
    font-size: 1.15rem;
    position: relative;
}

.navbar-right a {
    font-size: 1.2rem;
}

.navbar-headings a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--btn-earth);
    transition: width var(--transition);
}

.navbar-headings a:hover::after {
    width: 100%;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
}

.account-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 28px;
    right: 0;
    background: var(--card-white);
    border: 1px solid var(--border-sand);
    padding: 10px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 160px;
}

.account-dropdown:hover .dropdown-menu {
    display: block;
}

.account-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    transition: background var(--transition);
}

.account-dropdown .dropdown-menu a:hover {
    background: var(--bg-linen);
    color: var(--btn-earth);
}

/* Mobile Nav */
.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    justify-self: end;
}

@media (max-width: 768px) {
    .main-header {
        grid-template-columns: 1fr auto;
        padding: 10px 14px;
    }

    .navbar-left {
        display: none;
    }

    .navbar-center {
        grid-column: 1 / 2;
        align-items: flex-start;
    }

    .navbar-brand {
        font-size: 1.45rem;
        margin-bottom: 2px;
    }

    /* Fits all 5 links cleanly on mobile without clipping "Seasonal" */
    .navbar-headings {
        margin-top: 2px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 11px;
        overflow-x: auto;
        max-width: 85vw;
        scrollbar-width: none;
    }

    .navbar-headings::-webkit-scrollbar {
        display: none;
    }

    .navbar-headings a {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .mobile-toggle {
        display: block;
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        font-size: 1.55rem;
        align-self: center;
    }

    /* Dropdown menu when hamburger is tapped */
    .navbar-right {
        display: none;
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        padding-top: 10px;
        margin-top: 8px;
        border-top: 1px solid var(--border-sand);
    }

    .navbar-right a {
        font-size: 1rem;
    }
}

/* --------------------------------------------------
    HERO SECTION
-------------------------------------------------- */
.hero-modern {
    background: var(--bg-linen);
    padding: 100px 40px;
    border-bottom: 1px solid var(--border-sand);
}

.hero-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--text-charcoal);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-warmgrey);
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-btn {
    background: var(--btn-earth);
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: var(--radius);
    display: inline-block;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.hero-btn:hover { background: #6a523a; }

.hero-visual img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-sand);
    box-shadow: var(--shadow);
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p { margin: 0 auto 30px auto; }
    .hero-visual img { margin-top: 20px; }
}

/* --------------------------------------------------
    FEATURED & UNIVERSAL GRIDS (Pure CSS Grid)
-------------------------------------------------- */
.featured { 
    padding: 60px 40px; 
}
.featured h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-charcoal);
}

/* Using CSS Grid prevents the back-button flexbox collapse */
#trendingGrid,
#categoriesGrid,
#newReleasesGrid,
#seasonalGrid,
#productsGrid,
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
    justify-content: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 40px;
    justify-content: center;
}

/* --------------------------------------------------
    CARDS (Products & Categories)
-------------------------------------------------- */
.product-card,
.category-card {
    background: var(--card-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-sand);
    transition: all 0.2s ease-in-out;
    width: 100%;
    max-width: 300px; 
    margin: 0 auto;
}

.product-card { padding-bottom: 20px; }
.category-card { cursor: pointer; }

.product-card:hover,
.category-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.product-card .card-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-bottom: 1px solid var(--border-sand);
}

.category-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-card h3,
.category-card h3 {
    color: var(--text-charcoal);
}

.product-card h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    padding: 0 15px;
}

.category-card h3 {
    padding: 15px;
    font-size: 1.2rem;
}

/* --------------------------------------------------
    PRODUCT MODAL
-------------------------------------------------- */
.product-modal {
    border: none;
    border-radius: var(--radius);
    padding: 0; 
    width: 85vw; 
    height: 85vh; 
    max-width: 1400px; 
    background: var(--card-white);
    margin: auto; 
}

.product-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    display: flex;
    flex-direction: column; 
    height: 100%; 
    position: relative;
}

.product-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--card-white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--btn-dark);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-modal .close-btn:hover { background: var(--bg-light-gray); }

.large-image {
    width: 100%;
    flex-grow: 1; 
    height: 0; 
    object-fit: contain; 
    border-radius: 12px 12px 0 0;
    display: block;
    background: var(--bg-light-gray);
}

.minimal-download-bar {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    background: var(--bg-light-gray);
    border-top: 1px solid var(--border-gray);
    border-radius: 0 0 12px 12px;
}

.minimal-select {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    color: var(--text-charcoal);
}

.icon-btn {
    background: var(--btn-dark);
    color: white;
    border: none;
    border-radius: 50%; 
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:hover { background: var(--btn-dark-hover); }

/* --------------------------------------------------
    PAGINATION
-------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.pagination button {
    margin: 0 4px;
    padding: 8px 14px;
    border: 1px solid var(--border-sand);
    background: var(--card-white);
    cursor: pointer;
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-charcoal);
    transition: background var(--transition);
}

.pagination button.active {
    background: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
}

.pagination button:hover:not(:disabled):not(.active) {
    background: var(--bg-linen);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-light-gray);
}

/* --------------------------------------------------
    DASHBOARD
-------------------------------------------------- */
.dashboard-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.dashboard-container h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--text-charcoal);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-warmgrey);
    margin-bottom: 30px;
}

.dashboard-container .card {
    background: var(--card-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-sand);
}

.dashboard-container .card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-charcoal);
}

.dashboard-container .card p {
    color: var(--text-warmgrey);
    margin-bottom: 15px;
}

.dashboard-container .card a {
    display: inline-block;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--btn-earth);
    margin-bottom: 15px;
}

.dashboard-container .card a.active {
    color: #6a523a;
    border-bottom: 2px solid #6a523a;
}

.dashboard-container button,
.dashboard-container .btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--btn-earth);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.dashboard-container button:hover,
.dashboard-container .btn:hover {
    background: #6a523a;
}

/* Downloads List */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    background: var(--bg-light-gray);
}

.hidden-download {
    display: none !important;
}

#recentDownloads {
    list-style: none;
    margin-top: 10px;
    padding-left: 0;
}

#recentDownloads li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-sand);
    color: var(--text-charcoal);
}

/* --------------------------------------------------
    SUBSCRIPTION POPUP 
-------------------------------------------------- */
.subscribe-dialog {
    border: none;
    background: transparent;
    padding: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; 
}

.subscribe-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
}

.subscribe-modal {
    width: 100%; 
    min-width: 300px;
    max-width: 600px;
    background: var(--card-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.subscribe-modal h2 {
    margin-bottom: 12px;
    font-size: 1.8rem;
    color: var(--text-charcoal);
}

.subscribe-modal p {
    color: var(--text-warmgrey);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.subscribe-modal button {
    padding: 12px 24px;
    margin: 5px 10px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background var(--transition);
}

#goSubscribeBtn {
    background: var(--btn-earth);
    color: white;
}

#goSubscribeBtn:hover {
    background: #6a523a;
}

.close-btn {
    background: var(--bg-linen);
    color: var(--text-charcoal);
}

.close-btn:hover {
    background: var(--border-sand);
}

/* --------------------------------------------------
    RESET PASSWORD / AUTH PAGES
-------------------------------------------------- */
.centered-reset {
    max-width: 450px;
    margin: 100px auto;
    text-align: center;
}

.reset-title { margin-bottom: 10px; }
.reset-subtitle { margin-bottom: 25px; }

.reset-form {
    text-align: left;
    margin-top: 10px;
}

.reset-form input { margin-bottom: 20px; }

.reset-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    border-radius: var(--radius);
    background: var(--btn-earth);
    color: white;
    border: none;
    transition: background var(--transition);
}

.reset-btn:hover { background: #6a523a; }

.reset-footer { margin-top: 25px; }

.reset-login-link {
    color: var(--btn-earth);
    font-weight: 600;
}

.reset-card {
    max-width: 480px;
    margin: 80px auto;
    text-align: left;
}

.reset-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-charcoal);
}

.reset-card input { margin-bottom: 20px; }
.reset-card h1 { margin-bottom: 15px; }
.reset-card p.secondary { margin-bottom: 25px; }

/* --------------------------------------------------
    FOOTER
-------------------------------------------------- */
footer {
    text-align: center;
    padding: 20px;
    background: var(--card-white);
    border-top: 1px solid var(--border-sand);
    margin-top: 60px;
}

/* --------------------------------------------------
    LOADING SPINNER
-------------------------------------------------- */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------
    PROMO BANNER
-------------------------------------------------- */
.promo-banner {
    background-color: var(--accent-pink); 
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.promo-banner p { margin: 0; }

.promo-link {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 15px;
    cursor: pointer;
}

.promo-link:hover {
    color: var(--card-white);
}

/* --------------------------------------------------
    VIDEO HERO
-------------------------------------------------- */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    background-color: var(--text-charcoal); 
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); 
    padding: 0 20px;
}

.hero-overlay h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    max-width: 900px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.25rem;
    color: var(--card-white);
    margin-bottom: 35px;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* --------------------------------------------------
    STOREFRONT & SPLIT SECTIONS
-------------------------------------------------- */
.storefront-section {
    padding: 60px 40px 20px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-charcoal);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-warmgrey);
    font-size: 1.1rem;
}

/* Coming Soon Physical Goods Card */
.coming-soon-card {
    background: var(--card-white);
    border: 1px solid var(--border-sand);
    border-radius: var(--radius);
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    background-image: linear-gradient(rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.9)), url('/images/featured/canvas-bg.jpg');
    background-size: cover;
    background-position: center;
}

.coming-soon-card .badge {
    background: var(--btn-earth);
    color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.coming-soon-card h2 {
    font-size: 2rem;
    color: var(--text-charcoal);
    margin-bottom: 15px;
}

.coming-soon-card p {
    color: var(--text-charcoal);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.notify-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.notify-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-sand);
    border-radius: var(--radius);
    font-size: 1rem;
}

.notify-btn {
    background: var(--text-charcoal);
}

.notify-btn:hover {
    background: var(--accent-pink);
}

/* --------------------------------------------------
    VIEW ALL BUTTONS
-------------------------------------------------- */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-charcoal);
    border: 2px solid var(--border-sand);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all var(--transition);
}

.view-all-btn:hover {
    background: var(--card-white);
    border-color: var(--btn-earth);
    color: var(--btn-earth);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* --------------------------------------------------
    VALUE ADD / FEATURE SECTION
-------------------------------------------------- */
.value-add-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-linen);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-sand);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background-color: var(--border-sand);
    color: var(--btn-earth);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    color: var(--text-charcoal);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-warmgrey);
    font-size: 1rem;
    line-height: 1.6;
}

/* --------------------------------------------------
    SUBSCRIPTION PAGE
-------------------------------------------------- */
.subscription-page-wrapper {
    max-width: 900px;
    margin: 60px auto 100px auto;
    padding: 0 20px;
}

.subscription-header {
    text-align: center;
    margin-bottom: 50px;
}

.subscription-header h1 {
    font-size: 2.8rem;
    color: var(--text-charcoal);
    margin-bottom: 15px;
}

.subscription-header p {
    font-size: 1.2rem;
    color: var(--text-warmgrey);
    margin-bottom: 30px;
}

/* Benefits Checklist */
.benefits-checklist {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--card-white);
    padding: 30px 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-sand);
    box-shadow: var(--shadow);
}

.benefits-checklist li {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: var(--text-charcoal);
    margin-bottom: 15px;
}

.benefits-checklist li:last-child {
    margin-bottom: 0;
}

.benefits-checklist svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--accent-pink);
    margin-right: 15px;
    flex-shrink: 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    text-align: center;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-charcoal);
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 1.1rem;
    color: var(--text-warmgrey);
    margin-bottom: 15px;
}

.pricing-card .price span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-charcoal);
}

.plan-desc {
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Highlighted Annual Card */
.highlight-card {
    border: 2px solid var(--btn-earth);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.value-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--btn-earth);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Outline Button Variant */
.outline-btn {
    background: transparent;
    color: var(--btn-earth);
    border: 2px solid var(--btn-earth);
}

.outline-btn:hover {
    background: var(--btn-earth);
    color: white;
}

.billing-card {
    text-align: center;
    max-width: 500px;
    margin: 40px auto 0 auto;
    padding: 40px;
}

/* --------------------------------------------------
    MOBILE ABOVE-THE-FOLD OPTIMIZATION (All Pages)
-------------------------------------------------- */
@media (max-width: 768px) {
    .promo-banner {
        padding: 6px 12px;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .promo-link {
        margin-left: 6px;
    }

    /* Shrink hero height so New Releases peek above the fold */
    .hero-video-container {
        height: 28vh;
        min-height: 210px;
    }

    /* Darker backdrop so white text reads cleanly over video lettering */
    .hero-overlay {
        background: rgba(0, 0, 0, 0.62);
        padding: 12px 16px;
    }

    .hero-overlay h1 {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .hero-overlay p {
        font-size: 0.9rem;
        margin-bottom: 14px;
        line-height: 1.35;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Pull storefront & featured sections up on mobile across all pages */
    .storefront-section,
    .featured {
        padding: 22px 14px 14px 14px;
    }

    .section-header {
        margin-bottom: 14px;
    }

    .section-header h2,
    .featured h2 {
        font-size: 1.45rem;
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* 2-column pattern and category grids on phones across all pages */
    #trendingGrid,
    #categoriesGrid,
    #newReleasesGrid,
    #seasonalGrid,
    #productsGrid,
    .pattern-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 12px;
        padding: 0;
    }

    .product-card {
        padding-bottom: 12px;
    }

    .product-card h3,
    .category-card h3 {
        font-size: 0.95rem;
        margin-top: 8px;
        padding: 8px;
    }
}
