/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    background: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background .3s, box-shadow .3s, color .3s;
    color: #fff;
}
.site-header.scrolled {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 10px rgba(0,0,0,.08);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .15em;
}
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: currentColor;
    transition: width .3s;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-btn {
    position: relative;
    color: inherit;
}
.cart-count {
    position: absolute;
    top: -6px; right: -8px;
    background: #1a1a1a;
    color: #fff;
    font-size: .6rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}
.site-header.scrolled .cart-count { background: #1a1a1a; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 24px; }
.hamburger span {
    display: block;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
}

/* ===== Hero Strips ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #111;
}
.hero-strips {
    display: flex;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 0 5px;
}
.hero-strip {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?w=1920&q=80');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 4px;
    transition: flex .4s ease;
}
.hero-strip:hover { flex: 1.3; }
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    pointer-events: none;
    z-index: 2;
}
.hero-overlay h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: .08em;
    text-shadow: 0 2px 30px rgba(0,0,0,.5);
    margin-bottom: .5rem;
}
.hero-overlay h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: .2em;
    text-transform: uppercase;
    text-shadow: 0 1px 20px rgba(0,0,0,.5);
    margin-bottom: 2rem;
}
.hero-cta {
    pointer-events: auto;
    display: inline-block;
    padding: .9rem 2.5rem;
    border: 1.5px solid #fff;
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}
.hero-cta:hover { background: #fff; color: #1a1a1a; }

/* ===== Sections ===== */
.section { padding: 5rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: .5rem; }
.section-header p { color: #888; font-size: .95rem; letter-spacing: .05em; }

/* ===== Horizontal Scroll ===== */
.hscroll-track { overflow: visible; }
.hscroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 2rem 1.5rem;
    scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

/* Product Cards */
.product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    cursor: pointer;
}
.product-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3/4;
    background: #eee;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.quick-add {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    transform: translateY(100%);
    transition: transform .3s;
}
.product-card:hover .quick-add { transform: translateY(0); }
.btn-quick-add {
    width: 100%;
    padding: .7rem;
    background: #fff;
    color: #1a1a1a;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    border-radius: 4px;
    transition: background .2s;
}
.btn-quick-add:hover { background: #f0f0f0; }
.product-info { padding: .8rem 0; }
.product-info h3 { font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 500; }
.product-info .price { font-size: .85rem; color: #666; margin-top: .3rem; }
.product-info .sale { text-decoration: line-through; color: #bbb; margin-right: .5rem; }

/* ===== Parallax Banners ===== */
.parallax-banner {
    position: relative;
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}
@supports (-webkit-touch-callout: none) {
    .parallax-banner { background-attachment: scroll; }
}
.parallax-content {
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 600px;
}
.parallax-content .tag {
    display: inline-block;
    padding: .3rem 1rem;
    border: 1px solid rgba(255,255,255,.6);
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-radius: 20px;
}
.parallax-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-shadow: 0 2px 30px rgba(0,0,0,.5);
    margin-bottom: .5rem;
}
.parallax-content p {
    font-size: 1rem;
    text-shadow: 0 1px 15px rgba(0,0,0,.4);
    margin-bottom: 1.5rem;
    opacity: .9;
}
.btn-outline {
    display: inline-block;
    padding: .8rem 2rem;
    border: 1.5px solid #fff;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}
.btn-outline:hover { background: #fff; color: #1a1a1a; }

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 1rem;
}
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}
.grid-item.large {
    grid-row: span 2;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.grid-item:hover img { transform: scale(1.06); }
.grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,.6));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    opacity: 0;
    transition: opacity .3s;
}
.grid-item:hover .grid-overlay { opacity: 1; }
.grid-overlay h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.grid-overlay p { font-size: .9rem; opacity: .85; }

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
    .grid-item.large { grid-row: span 2; }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    .grid-item.large { grid-row: span 1; }
}

/* ===== Trending Cards ===== */
.trending-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.trending-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform .5s;
}
.trending-card:hover img { transform: scale(1.05); }
.trending-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}
.trending-info h3 { font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 500; }
.trending-info p { font-size: .85rem; opacity: .8; margin-top: .3rem; }

/* ===== Style Feed ===== */
.feed-tile {
    flex: 0 0 260px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}
.feed-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.feed-tile:hover img { transform: scale(1.08); }

/* ===== Newsletter ===== */
.newsletter-banner { height: auto; min-height: 50vh; padding: 5rem 2rem; }
.newsletter-content { max-width: 500px; }
.newsletter-form {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}
.newsletter-form input {
    flex: 1;
    padding: .85rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
}
.newsletter-form button {
    padding: .85rem 1.8rem;
    background: #1a1a1a;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background .3s;
}
.newsletter-form button:hover { background: #333; }
@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
}

/* ===== Footer ===== */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 4rem 2rem 2rem;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: .12em;
    margin-bottom: .8rem;
}
.footer-col p { font-size: .85rem; line-height: 1.7; opacity: .7; }
.footer-col h4 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    font-size: .85rem;
    opacity: .7;
    margin-bottom: .5rem;
    transition: opacity .2s;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    opacity: .5;
}
.admin-link a { text-decoration: underline; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
