@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --accent: #f59e0b;
    --text: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --bg-alt: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== ANNOUNCEMENT BAR ===== */
#announcement-bar {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}
.announcement-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-rtl 30s linear infinite;
}
.announcement-track span { display: inline-block; padding: 0 50px; }
@keyframes scroll-rtl {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    width: 100%;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
}
.logo img { height: 40px; width: auto; }

/* Desktop nav */
nav#main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
nav#main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
nav#main-nav a:hover,
nav#main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Hamburger — hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 10;
    flex-shrink: 0;
}
.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
    min-height: 560px;
    display: flex;
    align-items: center;
}

/* Full-bleed product image slider behind content */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* Dark + colour overlay so text is always readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        120deg,
        rgba(10, 10, 30, 0.72) 0%,
        rgba(30, 20, 60, 0.55) 50%,
        rgba(10, 10, 30, 0.40) 100%
    );
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Text goes white since it's over a dark overlay */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    width: fit-content;
    backdrop-filter: blur(6px);
}
.hero-content h1 {
    font-size: clamp(28px, 6vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-actions .btn-primary {
    background: var(--primary);
    box-shadow: 0 4px 20px rgba(99,102,241,0.5);
}
.hero-actions .btn-ghost {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    backdrop-filter: blur(6px);
}
.hero-actions .btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    border-color: #fff;
    color: #fff;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}
.hero-stats .stat { text-align: center; }
.hero-stats strong { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,0.7); }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.25); }

/* Slider dots */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hero-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Hero visual — floating product cards, desktop only */
.hero-visual { display: none; }
.hero-product-cards {
    position: relative;
    width: 300px;
    height: 380px;
}
.hero-product-card {
    position: absolute;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
    text-decoration: none;
}
.hero-product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.hero-product-card-info {
    padding: 12px 14px;
}
.hero-product-card-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.hero-product-card-info span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
/* Three staggered cards */
.hero-pcard-0 {
    width: 170px;
    top: 0; left: 0;
    animation: hfloat 5s ease-in-out infinite;
}
.hero-pcard-1 {
    width: 160px;
    top: 60px; right: 0;
    animation: hfloat 5s ease-in-out infinite 1.5s;
}
.hero-pcard-2 {
    width: 150px;
    bottom: 0; left: 40px;
    animation: hfloat 5s ease-in-out infinite 3s;
}
@keyframes hfloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-header h2 {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.section-header p { font-size: 15px; color: var(--text-muted); }

/* ===== COLLECTIONS ===== */
.collections { padding: 60px 0; background: var(--bg); }
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.collection-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.collection-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.collection-card-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.collection-card-image-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), #f3e8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.collection-card-body {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.collection-card-body h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.collection-card-body span { font-size: 12px; color: var(--text-muted); }
.collection-skeleton {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    height: 150px;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ===== PRODUCTS SECTION ===== */
.products-section { padding: 60px 0; }
.products-section.alt-bg { background: var(--bg-soft); }
.text-center { text-align: center; margin-top: 32px; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.product-card .product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-alt);
    transition: transform 0.3s ease;
}
.product-card:hover .product-image { transform: scale(1.03); }
.product-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.product-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.product-card-info .category-tag {
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
    background: var(--primary-light);
    padding: 2px 7px;
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
}
.product-card-info .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-top: auto;
}
.product-card-info .old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 5px;
}
.product-card-info .discount-badge {
    font-size: 11px;
    background: #fef3c7;
    color: #d97706;
    padding: 2px 6px;
    border-radius: 100px;
    font-weight: 600;
}
.product-card .download-tag {
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 12px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-card.skeleton { pointer-events: none; }
.skeleton-image {
    width: 100%;
    height: 160px;
    background: var(--bg-alt);
    animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-text {
    height: 13px;
    background: var(--bg-alt);
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-text.short { width: 50%; }

/* ===== WHY US ===== */
.why-us { padding: 60px 0; background: var(--bg); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.feature-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.feature-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== SHOP PAGE ===== */
.shop-section { padding: 28px 0 60px; }
.shop-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.shop-header h1 { font-size: 24px; font-weight: 800; color: var(--text); }
.product-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 3px 10px;
    border-radius: 100px;
}
.collection-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.collection-pill {
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.collection-pill:hover { border-color: var(--primary); color: var(--primary); }
.collection-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.shop-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.shop-filters select {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}
.shop-filters select:focus { border-color: var(--primary); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-light);
}
.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { padding: 24px 0 60px; }
.product-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
}
.product-left { width: 100%; }
.product-gallery {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}
.thumbnail-strip {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.thumbnail-strip::-webkit-scrollbar { display: none; }
.thumbnail-strip img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    flex-shrink: 0;
}
.thumbnail-strip img.active,
.thumbnail-strip img:hover { border-color: var(--primary); }
.product-main-image {
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    /* No overflow:hidden here — it breaks position:sticky on the parent */
}
.product-main-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: opacity 0.2s ease;
    border-radius: var(--radius-lg);
    display: block;
}
.product-meta { margin-bottom: 10px; }
.product-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-title {
    font-size: clamp(20px, 5vw, 34px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.product-pricing { margin-bottom: 18px; }
.product-pricing .price-value { font-size: 28px; font-weight: 800; color: var(--text); }
.product-pricing .old-price {
    font-size: 17px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 8px;
}
.product-pricing .discount-badge {
    background: #fef3c7;
    color: #b45309;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 8px;
}
.digital-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}
.badge-icon { font-size: 15px; }
.buy-section { margin-bottom: 24px; }
.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    margin-bottom: 10px;
}
.btn-buy-now:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.4);
}
.buy-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.product-description-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.product-description-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.product-description-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
}
.product-description-content p { margin-bottom: 10px; }
.product-description-content strong { color: var(--text); }
.product-description-content ul,
.product-description-content ol { padding-left: 18px; margin-bottom: 10px; }
.product-description-content li { margin-bottom: 5px; }
.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4 { color: var(--text); margin: 14px 0 6px; font-weight: 700; }
.product-description-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin: 12px 0;
}
.product-description-content a { color: var(--primary); text-decoration: underline; }
.product-description-content img { border-radius: var(--radius-sm); margin: 10px 0; max-width: 100%; }

/* Video Section */
.product-video-section {
    margin: 32px 0;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.product-video-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.video-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Reviews */
.reviews-section { padding: 32px 0; border-top: 1px solid var(--border); }
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.reviews-header h2 { font-size: 20px; font-weight: 700; }
.btn-add-review {
    padding: 9px 18px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-add-review:hover { border-color: var(--primary); color: var(--primary); }
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.review-avatar {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.review-info { flex: 1; min-width: 0; }
.review-author-name { font-weight: 600; font-size: 14px; }
.review-stars { color: var(--accent); font-size: 13px; }
.review-date { font-size: 12px; color: var(--text-light); margin-left: auto; }
.review-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Related Section */
.related-section { padding: 32px 0; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.modal-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(20px); }
    to { opacity:1; transform:translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px;
    background: var(--bg-alt);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.modal-close:hover { background: var(--border); }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    background: var(--bg);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.star-rating { display: flex; gap: 6px; margin-top: 4px; }
.star {
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.1s ease;
    color: var(--border);
}
.star:hover, .star.active { color: var(--accent); transform: scale(1.2); }
.error-msg {
    color: #ef4444;
    font-size: 13px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 90;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 36px 0 20px;
}
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }

/* Social icons in footer */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.social-icon:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
}
.social-icon svg { display: block; }

/* Social block inside product page */
.product-social-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 16px;
}
.product-social-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}
.product-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-social-links .social-icon {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}
.product-social-links .social-icon:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom { text-align: center; font-size: 13px; }

/* ===== TABLET & UP (768px+) ===== */
@media (min-width: 768px) {
    .container { padding: 0 24px; }

    /* Header */
    .menu-toggle { display: none; }
    nav#main-nav { display: flex; }

    /* Hero — two columns */
    .hero { padding: 80px 0 100px; min-height: 480px; }
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 60px;
    }
    .hero-visual { display: flex; justify-content: center; align-items: center; }
    .hero-content h1 { font-size: clamp(32px, 4vw, 54px); }

    /* Grids */
    .collections-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .features-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
    .product-card .product-image { height: 200px; }

    /* Sections */
    .collections, .products-section, .why-us { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }

    /* Product detail — two columns, left column sticky */
    .product-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 52px;
        align-items: start; /* REQUIRED: lets sticky work inside grid */
    }
    .product-left {
        position: sticky;
        top: 80px;          /* offset = header height */
        align-self: start;  /* REQUIRED: prevents column from stretching */
    }
    .product-gallery {
        flex-direction: row;
    }
    .thumbnail-strip {
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        max-height: none;
    }
    .thumbnail-strip img { width: 70px; height: 70px; }
    .product-main-image img { height: 460px; border-radius: var(--radius-lg); }

    /* Footer */
    .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }

    /* Shop */
    .shop-section { padding: 40px 0 80px; }
    .shop-filters { flex-wrap: nowrap; }
    .shop-filters select { flex: 0 0 auto; width: auto; }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    .product-layout { gap: 64px; }
    .product-main-image img { height: 500px; }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost { width: auto; }
}

/* ===== MOBILE ONLY — hamburger nav ===== */
@media (max-width: 767px) {
    /* Show hamburger */
    .menu-toggle { display: flex; }/* Mobile nav dropdown */
    nav#main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255,255,255,0.99);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 2px;
        box-shadow: var(--shadow);
        z-index: 300;
    }
    nav#main-nav.active { display: flex; }
    nav#main-nav a { padding: 12px 14px; font-size: 15px; width: 100%; }
    header .container { position: relative; }

    /* Full-width hero buttons on mobile */
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost { width: 100%; }

    /* Shop */
    .shop-filters { flex-direction: column; }
    .shop-filters select { width: 100%; }
}
