/* Variables and Reset */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --sale-color: #d9534f;
    --promo-bg: #c4a49c; /* Eathy pink/brown from image */
    --footer-bg: #f9f9f9;
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
    gap: 1.5rem;
}

.logo {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 1rem;
}

.locale {
    font-size: 0.9rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 0.5rem;
    font-family: var(--font-primary);
}

.header-icons a {
    font-size: 1.2rem;
    margin-left: 1rem;
}

/* Sub Navigation */
.sub-nav {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.sub-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-nav a:hover {
    color: #888;
}

.sale-link {
    color: var(--sale-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    /* Dark gradient on the right side where the text is */
    background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

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

.hero-content {
    position: absolute;
    top: 60%;
    right: 5%;
    transform: translateY(-50%);
    text-align: right;
    color: var(--secondary-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2; /* Ensure text is above the gradient overlay */
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-content .highlight {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-shop {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-shop:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Category Strip */
.category-strip {
    padding: 2rem 0;
    text-align: center;
}

.category-strip ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.category-strip a {
    font-size: 1.1rem;
    color: #888;
}

.category-strip a.active {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.2rem;
}

/* Product Carousel */
.product-carousel {
    display: flex;
    padding: 0 2rem 4rem;
    gap: 2rem;
}

.product-info-card {
    flex: 0 0 250px;
    padding-right: 2rem;
}

.product-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.product-card {
    flex: 0 0 280px;
}

.image-wrapper {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

.image-wrapper img {
    aspect-ratio: 3/4;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.prices {
    font-size: 0.9rem;
}

.sale-price {
    color: var(--sale-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 0.5rem;
}

.discount {
    color: var(--sale-color);
}

/* Promo Banner */
.promo-banner {
    display: flex;
    background-color: #1a1917; /* Rich dark warm-charcoal background */
    color: var(--secondary-color);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-text {
    flex: 1.1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.promo-badge {
    color: var(--promo-bg);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.promo-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.promo-description {
    font-size: 1.05rem;
    color: #b0ada8;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.promo-offer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--promo-bg);
    width: fit-content;
}

.offer-rate {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
}

.offer-plus {
    font-size: 1.5rem;
    color: var(--promo-bg);
}

.offer-perk {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    color: #e0deda;
}

.promo-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.promo-actions .btn-primary {
    background-color: var(--promo-bg);
    color: var(--secondary-color);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--promo-bg);
    display: inline-block;
    width: fit-content;
    text-align: center;
}

.promo-actions .btn-primary:hover {
    background-color: transparent;
    color: var(--promo-bg);
}

.promo-actions .btn-outline {
    border: 1px solid #4a4844;
    color: #e0deda;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
    text-align: center;
}

.promo-actions .btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.promo-note {
    font-size: 0.75rem;
    color: #7c7974;
}

.promo-image {
    flex: 0.9;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.promo-image .image-container {
    width: 100%;
    height: 100%;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.promo-banner:hover img {
    transform: scale(1.05);
}

/* Brand Banner */
.brand-banner {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1.5rem 0;
    overflow: hidden;
}

.brand-logos {
    display: flex;
    justify-content: space-around;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
}

/* Shop by Category */
.shop-category {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    position: relative;
    overflow: hidden;
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    transform: translateY(10px);
    opacity: 0.95;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-overlay h3 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.category-overlay a {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.category-overlay a i {
    transition: transform 0.3s ease;
}

/* Hover States */
.category-item:hover img {
    transform: scale(1.06);
}

.category-item:hover .category-overlay {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-item:hover .category-overlay a i {
    transform: translateX(4px);
}

/* Shop by Story */
.shop-story {
    padding: 4rem 2rem 5rem 2rem; /* Added bottom padding to accommodate staggered offset */
    background-color: #f7f5f2; /* Soft warm cream */
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-item {
    position: relative;
    background: var(--secondary-color);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Staggered editorial layout */
.story-item:nth-child(2) {
    transform: translateY(30px);
}

.story-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: filter 0.5s ease;
}

.story-item h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Interactive elements */
.story-item::after {
    content: 'Discover Story';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Hover states */
.story-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Keep the staggered transform when hovering the second child */
.story-item:nth-child(2):hover {
    transform: translateY(22px);
}

.story-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-item:nth-child(1),
    .category-item:nth-child(2),
    .category-item:nth-child(3),
    .category-item:nth-child(4) {
        grid-column: span 12;
    }
    .category-item {
        height: 350px;
    }
    .story-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .story-item:nth-child(2) {
        transform: none;
    }
    .story-item:nth-child(2):hover {
        transform: translateY(-8px);
    }
    .shop-story {
        padding: 4rem 1.5rem;
    }
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.footer-top {
    padding: 4rem 2rem;
    border-bottom: 1px solid #333;
}

.newsletter {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.newsletter p {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.subscribe-form {
    display: flex;
    margin-top: 1.5rem;
    border: 1px solid #444;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
}

.subscribe-form input::placeholder {
    color: #888;
}

.subscribe-form button {
    padding: 0 2rem;
    background-color: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: #ccc;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-size: 0.8rem;
    color: #888;
    background-color: #111;
    border-top: 1px solid #222;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: #fff;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: #a0a0a0;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.2rem;
    color: #a0a0a0;
    transition: var(--transition);
}

.social-icons a:hover {
    color: #ffffff;
}

/* Product Page Styles */
.product-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--primary-color);
}

.product-layout {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Product Gallery */
.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    width: 100%;
}

.main-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--secondary-color);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    flex: 1;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
}

.thumbnail img {
    aspect-ratio: 3/4;
    width: 100%;
    object-fit: cover;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.title-row h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.write-review {
    font-size: 0.8rem;
    text-decoration: underline;
    color: #666;
    white-space: nowrap;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-block .sale-price {
    font-size: 1.5rem;
    color: var(--sale-color);
}

.klarna-block {
    background: #f9f9f9;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.klarna-badge {
    background: #ffb3c7;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.color-selection p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.color-swatches {
    display: flex;
    gap: 0.5rem;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.swatch.active {
    border-color: #ccc;
    box-shadow: 0 0 0 2px var(--secondary-color), 0 0 0 3px var(--primary-color);
}

.size-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.size-header a {
    text-decoration: underline;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.size-btn {
    padding: 0.8rem 0;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.size-btn:hover, .size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--secondary-color);
}

.stock-warning {
    color: var(--sale-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-buttons button {
    padding: 1rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-bag {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.btn-add-bag:hover {
    background: #333;
}

.btn-buy-now {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-buy-now:hover {
    background: var(--light-gray);
}

.prestige-box {
    background: #f1efeb;
    padding: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.prestige-box input {
    margin-top: 0.3rem;
}

.product-tabs {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.tab-headers {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 0;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: #888;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
}

.tab-content p {
    margin-bottom: 1rem;
}

.sku {
    font-size: 0.8rem;
    color: #999;
}

.product-features {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #666;
}

.feature i {
    color: var(--promo-bg);
    margin-right: 0.5rem;
}

/* Related Products overrides */
.related-products {
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-content { right: 5%; }
    .hero-content h2 { font-size: 3rem; }
    .promo-banner { flex-direction: column; }
    .promo-text { padding: 4rem 2rem; }
    .promo-text h2 { font-size: 2.2rem; }
    .promo-image { width: 100%; min-height: 400px; }
    .promo-offer { flex-direction: column; align-items: flex-start; gap: 0.5rem; width: 100%; padding: 1.2rem; }
    .promo-actions { flex-direction: column; width: 100%; gap: 1rem; }
    .promo-actions .btn-primary, .promo-actions .btn-outline { width: 100%; }
    .product-layout { flex-direction: column; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-right .search-box { display: none; }
    .sub-nav { display: none; }
    .hero-content h2 { font-size: 2rem; }
    .category-grid { grid-template-columns: 1fr; }
    .story-grid { grid-template-columns: 1fr; }
    .footer-links-grid { flex-direction: column; text-align: center; gap: 2rem; }
    .size-grid { grid-template-columns: repeat(3, 1fr); }
    .product-features { flex-direction: column; gap: 0.5rem; }
}


/* ===== Sfanhan Upgrade / cPanel-ready additions ===== */
.menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:998;opacity:0;visibility:hidden;transition:.3s}
.menu-overlay.open{opacity:1;visibility:visible}
.side-menu{position:fixed;top:0;left:0;width:min(360px,88vw);height:100vh;background:#fff;z-index:999;transform:translateX(-105%);transition:transform .35s ease;box-shadow:12px 0 35px rgba(0,0,0,.14);overflow:auto}
.side-menu.open{transform:translateX(0)}
.side-menu-head{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid #eee}
.side-menu-head h3{font-family:var(--font-heading);font-size:1.5rem}
.side-close{border:0;background:none;font-size:2rem;cursor:pointer;line-height:1}
.side-menu-links{padding:12px 24px 32px}
.side-menu-links a{display:block;padding:13px 0;color:#222;border-bottom:1px solid #f0f0f0;font-size:1rem}
.side-menu-links hr{border:0;border-top:1px solid #ddd;margin:12px 0}
.menu-btn{cursor:pointer}
.header-icons a{cursor:pointer}
.section-heading-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}
.eyebrow{font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;margin-bottom:6px}
.text-link{color:#111;text-decoration:underline}
.home-image-wall{padding:70px 5%}
.home-image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.home-image-grid a{display:block;overflow:hidden;background:#f4f4f4}
.home-image-grid img{display:block;width:100%;height:460px;object-fit:cover;transition:transform .45s ease}
.home-image-grid a:hover img{transform:scale(1.04)}
.home-visual-banner{margin:0 5% 70px;display:grid;grid-template-columns:1fr 1.2fr;min-height:430px;background:#f6f2ef}
.home-visual-banner>div{padding:60px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.home-visual-banner h2{font-family:var(--font-heading);font-size:clamp(2rem,4vw,4rem);margin-bottom:14px}
.home-visual-banner img{width:100%;height:100%;min-height:430px;object-fit:cover}
.btn-primary{display:inline-block;background:#111;color:#fff;padding:13px 22px;margin-top:18px}
.category-page{padding-bottom:70px}
.category-hero{position:relative;min-height:430px;display:flex;align-items:center;overflow:hidden;background:#eee}
.category-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.category-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.08))}
.category-hero-content{position:relative;z-index:1;color:#fff;padding:70px 7%;max-width:720px}
.category-hero-content h1{font-family:var(--font-heading);font-size:clamp(2.5rem,6vw,5rem);margin-bottom:12px}
.category-hero-content p{font-size:1.05rem;max-width:560px}
.category-section{padding:65px 5% 0}
.category-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px;gap:15px}
.category-section-head h2{font-family:var(--font-heading);font-size:2rem}
.product-grid-50{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}
.shop-card{min-width:0}
.shop-card-media{position:relative;aspect-ratio:3/4;background:#f5f5f5;overflow:hidden}
.shop-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.shop-card:hover .shop-card-media img{transform:scale(1.035)}
.shop-badge{position:absolute;top:10px;left:10px;background:#111;color:#fff;padding:5px 9px;font-size:.7rem;letter-spacing:.05em}
.shop-card h3{font-size:.95rem;font-weight:500;margin-top:11px}
.shop-card .price{margin-top:5px}
.shop-card .old{color:#999;text-decoration:line-through;margin-left:7px}
.category-pills{display:flex;flex-wrap:wrap;gap:9px;margin:25px 0}
.category-pills a{border:1px solid #ddd;padding:8px 13px;color:#222}
.product-detail-wrap{padding:55px 5% 80px}
.product-detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:55px;max-width:1250px;margin:auto}
.product-main-image{width:100%;aspect-ratio:4/5;object-fit:cover;background:#f5f5f5}
.product-info{padding-top:10px}
.product-info h1{font-family:var(--font-heading);font-size:clamp(2rem,4vw,3.6rem);line-height:1.05;margin-bottom:15px}
.product-info .detail-price{font-size:1.35rem;margin-bottom:25px}
.product-info .detail-copy{color:#666;margin-bottom:25px}
.detail-meta{border-top:1px solid #ddd;border-bottom:1px solid #ddd}
.detail-meta div{padding:14px 0;border-bottom:1px solid #eee}
.detail-meta div:last-child{border-bottom:0}
.detail-actions{display:flex;gap:10px;margin-top:25px}
.detail-actions button{border:1px solid #111;background:#111;color:#fff;padding:13px 20px;cursor:pointer}
.detail-actions .secondary{background:#fff;color:#111}
.related{padding:0 5% 70px}
.related-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.empty-state{padding:80px 20px;text-align:center}
.search-results-title{padding:45px 5% 0}
@media(max-width:1100px){
 .product-grid-50{grid-template-columns:repeat(4,1fr)}
 .related-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:800px){
 .home-image-grid{grid-template-columns:repeat(2,1fr)}
 .home-image-grid img{height:360px}
 .home-visual-banner{grid-template-columns:1fr;margin-left:4%;margin-right:4%}
 .home-visual-banner img{min-height:300px}
 .home-visual-banner>div{padding:40px}
 .product-grid-50{grid-template-columns:repeat(2,1fr);gap:16px}
 .product-detail{grid-template-columns:1fr;gap:30px}
 .related-grid{grid-template-columns:repeat(2,1fr)}
 .category-hero{min-height:390px}
 .section-heading-row,.category-section-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){
 .home-image-wall{padding:50px 4%}
 .home-image-grid{grid-template-columns:1fr}
 .home-image-grid img{height:430px}
 .product-grid-50{grid-template-columns:repeat(2,1fr);gap:12px}
 .category-section{padding-left:4%;padding-right:4%}
 .product-detail-wrap{padding-left:4%;padding-right:4%}
 .product-info h1{font-size:2.3rem}
}


/* ===== FINAL IMAGE-INTEGRATED STOREFRONT ===== */
body.menu-open{overflow:hidden}
.side-menu{position:fixed;top:0;left:0;width:min(370px,90vw);height:100vh;background:#fff;z-index:10001;transform:translateX(-105%);transition:transform .35s ease;box-shadow:15px 0 40px rgba(0,0,0,.16);overflow:auto}.side-menu.open{transform:translateX(0)}
.side-menu-head{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid #eee}.side-menu-head h3{font-family:var(--font-heading,Georgia,serif);font-size:1.5rem}.side-close{border:0;background:transparent;font-size:2rem;cursor:pointer}.side-menu-links{padding:10px 24px 35px}.side-menu-links a{display:block;color:#111;padding:13px 0;border-bottom:1px solid #eee}.side-menu-links hr{border:0;border-top:1px solid #ddd;margin:14px 0}.menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:10000;opacity:0;visibility:hidden;transition:.3s}.menu-overlay.open{opacity:1;visibility:visible}
.full-visual-gallery{padding:80px 5%;background:#fafafa}.gallery-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:30px}.gallery-heading h2{font-family:var(--font-heading,Georgia,serif);font-size:clamp(2rem,4vw,3.4rem);margin:.2rem 0 .6rem}.gallery-heading p{max-width:650px;color:#666}.gallery-link{text-decoration:underline;color:#111;white-space:nowrap}.asset-masonry{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.asset-tile{display:block;position:relative;overflow:hidden;background:#eee;min-height:250px}.asset-tile:nth-child(5n){grid-row:span 2}.asset-tile img{width:100%;height:100%;min-height:320px;object-fit:cover;display:block;transition:transform .5s ease}.asset-tile:hover img{transform:scale(1.04)}
.page-hero{position:relative;min-height:500px;overflow:hidden;display:flex;align-items:center}.page-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.page-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.6),rgba(0,0,0,.08))}.page-hero-content{position:relative;z-index:1;color:#fff;padding:60px 7%;max-width:720px}.page-hero-content h1{font-family:var(--font-heading,Georgia,serif);font-size:clamp(2.8rem,6vw,5.5rem);line-height:1;margin:.2em 0}.page-hero-content p{font-size:1.05rem;max-width:580px}.visual-strip{padding:65px 5% 0}.visual-strip-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.visual-strip-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}.store-section{padding:65px 5% 0}.store-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.store-section-head h2{font-family:var(--font-heading,Georgia,serif);font-size:2rem}.store-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}.store-card{min-width:0}.store-card-media{position:relative;aspect-ratio:3/4;background:#f3f3f3;overflow:hidden}.store-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}.store-card:hover .store-card-media img{transform:scale(1.04)}.store-badge{position:absolute;left:10px;top:10px;background:#111;color:#fff;font-size:.7rem;padding:5px 8px}.store-card h3{font-size:.94rem;font-weight:500;margin:10px 0 4px}.store-price{font-size:.9rem}.store-price .old{color:#999;text-decoration:line-through;margin-left:7px}.category-chips{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.category-chips a{border:1px solid #ddd;padding:8px 13px;color:#222}.lookbook-banner{margin:70px 5% 0;display:grid;grid-template-columns:1fr 1.4fr;background:#f3f0ed}.lookbook-banner .copy{padding:55px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.lookbook-banner h2{font-family:var(--font-heading,Georgia,serif);font-size:clamp(2rem,4vw,4rem)}.lookbook-banner img{width:100%;height:100%;min-height:420px;object-fit:cover}.dark-button{display:inline-block;background:#111;color:#fff;padding:13px 22px;margin-top:18px}.product-detail-wrap{padding:60px 5% 80px}.product-detail{display:grid;grid-template-columns:1.15fr .85fr;gap:55px;max-width:1250px;margin:auto}.product-main-image{width:100%;aspect-ratio:4/5;object-fit:cover;background:#f4f4f4}.product-info h1{font-family:var(--font-heading,Georgia,serif);font-size:clamp(2.1rem,4vw,4rem);line-height:1.05}.detail-price{font-size:1.4rem;margin:18px 0}.detail-price .old{color:#999;text-decoration:line-through;font-size:1rem;margin-left:8px}.detail-copy{color:#666;line-height:1.7}.detail-meta{border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-top:25px}.detail-meta div{padding:14px 0;border-bottom:1px solid #eee}.detail-meta div:last-child{border-bottom:0}.detail-actions{display:flex;gap:10px;margin-top:25px}.detail-actions button{border:1px solid #111;background:#111;color:#fff;padding:13px 20px;cursor:pointer}.detail-actions .secondary{background:#fff;color:#111}.related-section{padding:0 5% 75px}.related-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.empty-state{text-align:center;padding:100px 20px}.search-title{padding:50px 5% 0}.product-gallery-small{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.product-gallery-small img{width:100%;aspect-ratio:1/1.2;object-fit:cover}
@media(max-width:1100px){.store-grid{grid-template-columns:repeat(4,1fr)}.asset-masonry{grid-template-columns:repeat(3,1fr)}.visual-strip-grid{grid-template-columns:repeat(4,1fr)}.related-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:800px){.gallery-heading,.store-section-head{align-items:flex-start;flex-direction:column}.asset-masonry{grid-template-columns:repeat(2,1fr)}.asset-tile img{min-height:350px}.visual-strip-grid{grid-template-columns:repeat(3,1fr)}.store-grid{grid-template-columns:repeat(2,1fr);gap:14px}.product-detail{grid-template-columns:1fr;gap:30px}.related-grid{grid-template-columns:repeat(2,1fr)}.lookbook-banner{grid-template-columns:1fr;margin-left:4%;margin-right:4%}.lookbook-banner img{min-height:300px}.lookbook-banner .copy{padding:40px}.page-hero{min-height:420px}}
@media(max-width:520px){.full-visual-gallery{padding:55px 4%}.asset-masonry{grid-template-columns:1fr}.visual-strip-grid{grid-template-columns:repeat(2,1fr)}.store-section{padding-left:4%;padding-right:4%}.product-detail-wrap{padding-left:4%;padding-right:4%}.product-detail h1{font-size:2.5rem}}
