@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
    --bg:           #FAFAF8;
    --bg-warm:      #F2EBE3;
    --text:         #1A1A1A;
    --text-muted:   #79726A;
    --accent:       #B83A2A;
    --accent-hover: #8F2D20;
    --border:       #E2D8CF;
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:    0 8px 28px rgba(0,0,0,0.12);
    --radius:       14px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, sans-serif;
    --transition:   all 0.25s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250,250,248,0.97);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
    background: rgba(250,250,248,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
}

.site-header-nav {
    display: flex;
    gap: 6px;
    padding: 0 5% 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.site-header-nav::-webkit-scrollbar { display: none; }

.site-nav-pill {
    flex-shrink: 0;
    padding: 7px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--border);
    transition: var(--transition);
    letter-spacing: 0.3px;
    font-family: var(--font-body);
}

.site-nav-pill.active,
.site-nav-pill:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.site-nav-sale {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.site-nav-sale:hover,
.site-nav-sale.active {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.logo {
    font-family: var(--font-body);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    text-transform: uppercase;
}
.logo span { font-size: 17px; color: var(--accent); }

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 19px;
    position: relative;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}
.icon-btn:hover { background: var(--bg-warm); color: var(--accent); }

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 50%;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
    padding: 64px 5% 52px;
    text-align: center;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-warm) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184,58,42,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    font-size: 15px;
    line-height: 1.7;
}

.benefits {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.benefit-item:last-child { border-bottom: none; }

.benefit-item i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: var(--accent);
}

.benefit-item span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

/* ═══════════════════════════════
   PRODUCT GRID
═══════════════════════════════ */
.catalog {
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ═══════════════════════════════
   PRODUCT CARD
═══════════════════════════════ */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.5px;
}
.badge.sale { background: var(--accent); color: white; }
.badge.hit  { background: var(--text);   color: white; }

.product-img {
    height: 400px;
    overflow: hidden;
    position: relative;
    display: block;
    cursor: pointer;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img { transform: scale(1.06); }

.product-info {
    padding: 18px 16px 20px;
    text-align: center;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    min-height: 0;
    cursor: pointer;
    line-height: 1.4;
}
.product-name a { color: inherit; text-decoration: none; }

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 12px;
}

.swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.swatch.active {
    transform: scale(1.25);
    box-shadow: 0 0 0 2px white, 0 0 0 3.5px var(--text);
}

.size-pills {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.size-pill {
    font-size: 10px;
    padding: 3px 9px;
    background: var(--bg-warm);
    border-radius: 5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.price-block {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 13px;
}

.new-price {
    font-size: 21px;
    font-weight: 700;
    color: var(--accent);
}

.btn-open {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: var(--font-body);
    text-align: center;
}
.btn-open:hover { background: var(--accent); }

/* ═══════════════════════════════
   CART DRAWER
═══════════════════════════════ */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 440px;
    height: 100dvh;
    background: #F4EEE6;
    z-index: 2000;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { right: 0; }

.cart-header {
    padding: 20px 20px 16px;
    background: #F4EEE6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 { font-size: 21px; font-weight: 700; }

.cart-close-sq {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: var(--transition);
}
.cart-close-sq:hover { background: var(--border); }

.cart-items { flex: 1; overflow-y: auto; padding: 4px 0 8px; }

.cart-footer {
    padding: 12px 16px 20px;
    background: #F4EEE6;
    flex-shrink: 0;
}

.cart-total-line {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    margin-bottom: 10px;
}
.btn-checkout:hover { background: var(--accent); }

.btn-pill-light {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 28px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text);
    transition: var(--transition);
}
.btn-pill-light:hover { background: var(--bg-warm); }

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26,26,26,0.45);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.overlay.visible { display: block; opacity: 1; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.site-footer {
    background: #111;
    color: #fff;
    padding: 54px 5% 28px;
}
body.product-page-body .site-footer { padding-bottom: 90px; }

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.site-footer-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: #666;
}

.site-footer-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.footer-links { list-style: none; }

.footer-links li {
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.social-links { display: flex; gap: 10px; margin-top: 18px; }

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #222;
    color: #888;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: white; }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1F1F1F;
    font-size: 12px;
    color: #444;
}

/* ═══════════════════════════════
   CART ITEMS
═══════════════════════════════ */
.cart-item {
    background: white;
    border-radius: var(--radius);
    margin: 0 12px 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.cart-item-top { display: flex; gap: 12px; margin-bottom: 12px; }

.cart-item-img {
    width: 72px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cart-item-variant { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }

.cart-item-prices { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.cart-item-old-price { font-size: 12px; color: #bbb; text-decoration: line-through; }
.cart-item-price { font-size: 18px; font-weight: 700; }

.cart-item-bottom {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.cart-item-controls { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cart-qty-num { font-size: 16px; font-weight: 700; min-width: 20px; text-align: center; }

.cart-qty-btn {
    border: 1.5px solid var(--border);
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: var(--font-body);
}
.cart-qty-btn:active { background: var(--bg-warm); }

.cart-remove-btn {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: #bbb;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.cart-remove-btn:hover { color: var(--accent); border-color: var(--accent); }

.cart-input-wrap { position: relative; margin-bottom: 10px; }

.cart-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 14px;
    pointer-events: none;
}

.cart-input-wrap input {
    width: 100%;
    padding: 15px 14px 15px 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-body);
    background: white;
    color: var(--text);
    outline: none;
}
.cart-input-wrap input:focus { border-color: var(--text); }

.cart-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }

.cart-success { text-align: center; padding: 50px 20px; }
.cart-success i { font-size: 52px; color: #4CAF50; margin-bottom: 16px; display: block; }
.cart-success h3 { font-size: 20px; margin-bottom: 8px; }
.cart-success p { color: var(--text-muted); font-size: 14px; }

/* ═══════════════════════════════
   PRODUCT MODAL (quick view)
═══════════════════════════════ */
.product-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    z-index: 3000;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-modal.open { transform: translateY(0); }

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-article { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.modal-gallery { position: relative; overflow: hidden; }
.modal-gallery-track { display: flex; transition: transform 0.3s ease; }
.modal-gallery-slide { min-width: 100%; }
.modal-gallery-slide img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }

.gallery-nav {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 1;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.gallery-dot.active { background: white; width: 18px; }

.modal-content { padding: 24px 20px 40px; max-width: 600px; margin: 0 auto; }
.modal-product-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.modal-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.modal-new-price { font-size: 28px; font-weight: 800; }
.modal-old-price { font-size: 16px; text-decoration: line-through; color: var(--text-muted); }

.modal-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.modal-color-name { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text); }

.modal-swatches { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }

.modal-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.modal-swatch.active { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text); }

.modal-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }

.modal-size-pill {
    padding: 9px 20px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    background: white;
}
.modal-size-pill:hover { border-color: var(--text); }
.modal-size-pill.active { border-color: var(--text); background: var(--text); color: white; }

.modal-add-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    margin-bottom: 28px;
    font-family: var(--font-body);
}
.modal-add-btn:hover { background: var(--accent); }

.modal-description { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin-bottom: 12px; }
.modal-material { font-size: 12px; color: #aaa; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; }

/* ═══════════════════════════════
   MOBILE
═══════════════════════════════ */
@media (max-width: 768px) {
    .hero { padding: 44px 5% 38px; }
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 14px; margin-bottom: 28px; }

    .catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 20px 3%;
    }

    .product-img { height: 220px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 13px; }

    .price-block {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-bottom: 10px;
    }
    .old-price { font-size: 11px; }
    .new-price { font-size: 17px; }
    .color-swatches { gap: 5px; margin-bottom: 8px; }
    .swatch { width: 13px; height: 13px; }
    .size-pills { gap: 3px; margin-bottom: 10px; }
    .size-pill { font-size: 9px; padding: 2px 5px; }
    .btn-open { padding: 11px; font-size: 11px; }
}
