/* =============================================
   THE ARCTIC POLAR BEAR - STYLESHEET
   Premium Comfort Wear
   ============================================= */

:root {
    --black: #111111;
    --deep: #1A1A1A;
    --red: #C0202A;
    --red-bright: #E8252F;
    --white: #FFFFFF;
    --offwhite: #F5F4F2;
    --gray: #888888;
    --light-gray: #E8E8E8;
    --dark-gray: #333333;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ====================== ANNOUNCEMENT BAR ====================== */
.announcement {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.announcement span {
    color: var(--red);
    font-weight: 600;
}

/* ====================== NAVIGATION ====================== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 186px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 21px;
    color: var(--black);
    transition: color 0.2s;
    position: relative;
}

.nav-actions button:hover {
    color: var(--red);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--red);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-in-btn {
    background: var(--black);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

/* ====================== HERO SECTION ====================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 110px);
    overflow: hidden;
}

.hero-left {
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px;
    position: relative;
    overflow: hidden;
}

.hero-left::before {
    content: 'APB';
    position: absolute;
    bottom: -40px;
    left: -20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 240px;
    color: rgba(255,255,255,0.03);
    letter-spacing: -10px;
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    margin-bottom: 32px;
    width: fit-content;
}

.hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 7vw, 100px);
    color: var(--white);
    line-height: 0.92;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.hero-headline .red {
    color: var(--red);
}

.hero-sub {
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 48px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.btn-primary,
.btn-outline {
    padding: 16px 36px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
    border: 2px solid;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: transparent;
    color: var(--red);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
}

.stat-num span {
    color: var(--red);
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.hero-right {
    background: var(--offwhite);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(192,32,42,0.08) 0%, transparent 60%);
}

.product-cards-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 48px;
    position: relative;
    z-index: 2;
}

.hero-card {
    background: var(--white);
    border: 1.5px solid var(--light-gray);
    padding: 24px 20px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--red);
}

.hero-card.featured {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 24px;
}

.card-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.hero-card.featured .card-emoji {
    font-size: 64px;
    margin-bottom: 0;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    text-transform: uppercase;
}

.card-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--black);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
}

.card-price .old {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 400;
}

/* ====================== FEATURES BAR ====================== */
.features-bar {
    background: var(--black);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 3px solid var(--red);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
}

.feature-item:hover {
    background: rgba(192,32,42,0.1);
}

.feature-item:last-child {
    border-right: none;
}

.feat-icon {
    font-size: 24px;
}

.feat-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--white);
    letter-spacing: 0.5px;
}

.feat-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* ====================== SECTION HEADER ====================== */
.section-header {
    text-align: center;
    padding: 80px 48px 48px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: 2px;
    color: var(--black);
    line-height: 1;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 15px;
    color: var(--gray);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ====================== PRODUCT GRID ====================== */
.products-section {
    padding: 0 48px 80px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 24px;
    border: 1.5px solid var(--light-gray);
    background: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    color: var(--black);
    font-family: 'DM Sans', sans-serif;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    cursor: pointer;
}

.product-img {
    background: var(--offwhite);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    transition: background 0.3s;
}

.product-card:hover .product-img {
    background: var(--light-gray);
}

.product-img::after {
    content: 'Quick Add';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-img::after {
    transform: translateY(0);
}

.prod-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-variant {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 17px;
    font-weight: 600;
}

.product-price .was {
    font-size: 12px;
    color: var(--gray);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray);
}

.stars {
    color: #F5A623;
    font-size: 11px;
}

//* ====================== BRAND STORY (CORRECTED) ====================== */
.brand-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.story-left {
    background: var(--black);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.story-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border: 40px solid rgba(192,32,42,0.12);
    border-radius: 50%;
    pointer-events: none;
}

.story-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.story-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 24px;
}

.story-title em {
    font-family: 'Playfair Display', serif;
    color: var(--red);
    font-style: italic;
    font-size: 44px;
}

.story-body {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 400px;
}

/* Right Side - Fixed */
.story-right {
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 64px;
    position: relative;
    overflow: hidden;
}

.story-right::before {
    content: '🐻‍❄️';
    position: absolute;
    font-size: 180px;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.story-stats-container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    justify-content: center;
}

.story-stat {
    text-align: center;
    min-width: 120px;
}

.story-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    color: var(--white);
    line-height: 1;
    letter-spacing: 2px;
}

.story-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 500;
}

.story-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.25);
}

/* Responsive adjustment for Brand Story */
@media (max-width: 768px) {
    .brand-story {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .story-right {
        padding: 60px 32px;
    }
    
    .story-stats-container {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .story-stat {
        min-width: 100px;
    }
    
    .story-right::before {
        font-size: 140px;
    }
}
/* ====================== CATEGORIES ====================== */
.categories-section {
    padding: 0 48px 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 16px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.cat-card:first-child {
    grid-row: span 2;
}

.cat-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-bg {
    transform: scale(1.08);
}

.cat-card-1 { background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%); }
.cat-card-2 { background: linear-gradient(135deg, #C0202A 0%, #8B1219 100%); }
.cat-card-3 { background: linear-gradient(135deg, #2A2A2A 0%, #444 100%); }
.cat-card-4 { background: linear-gradient(135deg, #8B1219 0%, #C0202A 100%); }
.cat-card-5 { background: linear-gradient(135deg, #333 0%, #1A1A1A 100%); }

.cat-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 6px;
    display: block;
}

.cat-count {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

.cat-arrow {
    display: inline-block;
    background: var(--red);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    line-height: 32px;
    text-align: center;
    font-size: 14px;
    margin-left: 12px;
    transition: all 0.3s;
}

.cat-card:hover .cat-arrow {
    transform: translateX(4px);
    background: var(--white);
    color: var(--black);
}

/* ====================== TESTIMONIALS ====================== */
.testimonials-section {
    background: var(--offwhite);
    padding: 80px 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-left: 4px solid var(--red);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.testi-stars {
    color: #F5A623;
    font-size: 14px;
    margin-bottom: 16px;
}

.testi-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.testi-name {
    font-weight: 600;
    font-size: 14px;
}

.testi-location {
    font-size: 12px;
    color: var(--gray);
}

/* ====================== NEWSLETTER ====================== */
.newsletter {
    background: var(--black);
    padding: 80px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.newsletter-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 12px;
}

.newsletter-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.newsletter-form {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 480px;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-right: none;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-input:focus {
    border-color: var(--red);
}

.newsletter-btn {
    background: var(--red);
    color: var(--white);
    border: 1.5px solid var(--red);
    padding: 16px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--red-bright);
}



/* ====================== SIMPLE SEARCH OVERLAY ====================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.search-container {
    width: 100%;
    max-width: 620px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: 'DM Sans', sans-serif;
    padding: 8px 0;
}

.search-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0 8px;
}

.search-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-item .emoji {
    font-size: 32px;
    width: 50px;
}

.search-result-item .info h4 {
    font-size: 17px;
    margin-bottom: 2px;
}

.search-result-item .info p {
    font-size: 13px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}

/* ====================== IMPROVED FOOTER UX ====================== */
footer {
    background: var(--offwhite);
    border-top: 3px solid var(--red);
    color: var(--black);
    padding: 80px 48px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo .logo-img {
    height: 156px;
}

/* Social Icons - Better UX */
.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.social-btn {
    width: 46px;
    height: 46px;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-gray);
    background: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
    transform: translateY(-3px);
}

/* Payment Badges - Cleaner & Modern */
.footer-payments {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-badge {
    background: var(--white);
    border: 1.5px solid var(--light-gray);
    color: var(--dark-gray);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.payment-badge:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-1px);
}

/* Footer Text */
.footer-tagline {
    font-size: 13.5px;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-top: 18px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 22px;
}

.footer-col a {
    color: var(--gray);
    font-size: 13.2px;
    line-height: 2;
    transition: color 0.25s;
}

.footer-col a:hover {
    color: var(--red);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 12.5px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-socials {
        gap: 12px;
    }
    
    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
}

/* ====================== CART DRAWER ====================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 2px solid var(--black);
}

.cart-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--black);
    line-height: 1;
    transition: color 0.2s;
}

.cart-close:hover {
    color: var(--red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-img {
    width: 72px;
    height: 72px;
    background: var(--offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-weight: 700;
    font-size: 15px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--black);
    color: white;
}

.qty-num {
    font-weight: 600;
    font-size: 14px;
}

.cart-footer {
    padding: 24px 28px;
    border-top: 2px solid var(--black);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cart-subtotal span:last-child {
    font-size: 18px;
}

.checkout-btn {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    padding: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: var(--red);
    border-color: var(--red);
}

.cart-note {
    font-size: 11px;
    color: var(--gray);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ====================== ANIMATIONS ====================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================== MOBILE MENU ====================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 80%;
    text-align: center;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--red);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ====================== TOAST ====================== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--black);
    color: white;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--red);
    transform: translateX(200%);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    z-index: 3000;
}

.toast.show {
    transform: translateX(0);
}

/* ====================== RESPONSIVE DESIGN ====================== */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .logo-img {
        height: 42px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 48px 24px 40px;
        order: 1;
    }

    .hero-left::before {
        font-size: 120px;
    }

    .hero-right {
        order: 2;
    }

    .hero-tag {
        font-size: 10px;
        margin-bottom: 20px;
    }

    .hero-headline {
        font-size: 52px;
        margin-bottom: 16px;
    }

    .hero-sub {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-outline {
        padding: 14px 24px;
        font-size: 12px;
        text-align: center;
    }

    .hero-stats {
        gap: 24px;
        margin-top: 32px;
        padding-top: 24px;
    }

    .stat-num {
        font-size: 28px;
    }

    .features-bar {
        grid-template-columns: 1fr 1fr;
    }

    .products-section {
        padding: 0 16px 48px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px 160px;
    }

    .brand-story {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter {
        flex-direction: column;
        padding: 48px 24px;
        gap: 28px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* ====================== SEARCH TRAY ====================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.search-container {
    width: 100%;
    max-width: 680px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-overlay.open .search-container {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid #eee;
    background: var(--white);
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: 'DM Sans', sans-serif;
    padding: 8px 0;
    color: var(--black);
}

#searchInput::placeholder {
    color: #999;
}

.search-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 4px 12px;
    margin-left: 12px;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-close:hover {
    background: #f5f5f5;
    color: var(--red);
}

.search-results {
    max-height: 520px;
    overflow-y: auto;
    padding: 12px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fafafa;
    padding-left: 32px;
}

.search-result-item .emoji {
    font-size: 42px;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.search-result-item .info {
    flex: 1;
}

.search-result-item .info h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 19px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.search-result-item .info p {
    font-size: 13.5px;
    color: var(--gray);
    line-height: 1.4;
}

.search-result-item .price {
    font-weight: 700;
    color: var(--black);
    font-size: 16px;
}

.no-results {
    text-align: center;
    padding: 80px 40px;
    color: #888;
    font-size: 15px;
}

.no-results p {
    margin-bottom: 8px;
}


@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 140px);
    }
}

/* ====================== MODERN STORY MODAL ====================== */
.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.story-modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    max-width: 820px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh;
    overflow-y: auto;
}

.story-modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.modal-close:hover {
    background: var(--red);
    transform: rotate(90deg);
}

.modal-hero {
    background: linear-gradient(rgba(17,17,17,0.85), rgba(17,17,17,0.9)), #111;
    color: white;
    padding: 80px 40px 60px;
    text-align: center;
}

.modal-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: 2px;
}

.modal-body {
    padding: 0;
}

.modal-story-content {
    padding: 50px 60px;
    line-height: 1.85;
    font-size: 17px;
    color: #333;
}

.modal-story-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    margin: 50px 0 20px;
    color: var(--black);
}

.modal-quote {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-style: italic;
    text-align: center;
    margin: 50px 0;
    padding: 0 20px;
    color: #222;
    border-left: 5px solid var(--red);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.value-card {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 17px;
}