/* assets/css/style.css - Core styles based on your design */
:root {
    --primary: #2D083B;
    --secondary: #D5AD31;
    --white: #FFFFFF;
    --off-white: #F8F6F2;
    --light: #F0EDE6;
    --mid: #C8C2B4;
    --muted: #8A8070;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t: 0.4s;
    --t-fast: 0.2s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { font-family: 'Outfit', sans-serif; background: var(--white); color: var(--primary); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'Outfit', sans-serif; border: none; background: none; }

/* NAV */
.nav {
    position: sticky; top: 0; z-index: 100;
    height: 64px; padding: 0 5vw;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white); border-bottom: 1px solid var(--light);
}
.nav-logo { font-size: 18px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; }
.nav-logo span { color: var(--secondary); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color var(--t-fast); position: relative; padding-bottom: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--secondary); transition: width var(--t) var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-search { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--off-white); border: 1px solid var(--light); min-width: 200px; }
.nav-search input { flex: 1; background: none; border: none; outline: none; font-family: 'Outfit', sans-serif; font-size: 12px; color: var(--primary); }
.nav-search svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; position: relative; transition: transform var(--t-fast); }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--primary); fill: none; stroke-width: 1.7; }
.cart-badge { position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--secondary); color: var(--primary); font-size: 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform 0.3s var(--ease); }
.cart-badge.show { transform: scale(1); }
.btn-nav-cta { padding: 10px 26px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--primary); color: var(--white); position: relative; overflow: hidden; transition: color var(--t-fast); display: inline-block; }
.btn-nav-cta::before { content: ''; position: absolute; inset: 0; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.btn-nav-cta:hover::before { transform: scaleX(1); }
.btn-nav-cta:hover { color: var(--primary); }
.btn-nav-cta span { position: relative; z-index: 1; }

/* BREADCRUMB */
.breadcrumb { padding: 16px 5vw; background: var(--off-white); border-bottom: 1px solid var(--light); display: flex; align-items: center; gap: 8px; }
.breadcrumb a, .breadcrumb span { font-size: 12px; font-weight: 400; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--mid); }
.breadcrumb .current { color: var(--primary); font-weight: 500; }

/* STORE LAYOUT */
.store-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 64px); }

/* SIDEBAR */
.sidebar { border-right: 1px solid var(--light); padding: 36px 28px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; background: var(--white); }
.filter-group { margin-bottom: 40px; }
.filter-title { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--light); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.filter-option input[type="checkbox"] { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--mid); flex-shrink: 0; cursor: pointer; position: relative; transition: all var(--t-fast); }
.filter-option input:checked { background: var(--primary); border-color: var(--primary); }
.filter-option input:checked::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 9px; font-weight: 700; }
.filter-option label { font-size: 13px; font-weight: 400; color: var(--primary); cursor: pointer; flex: 1; }
.filter-option .count { font-size: 11px; color: var(--muted); }
.price-inputs { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.price-inputs input { flex: 1; padding: 9px; border: 1px solid var(--light); background: var(--off-white); font-family: 'Outfit', sans-serif; font-size: 12px; color: var(--primary); outline: none; text-align: center; }
.price-inputs input:focus { border-color: var(--primary); }
.price-sep { font-size: 12px; color: var(--muted); }
.filter-apply { width: 100%; padding: 14px; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; transition: background var(--t-fast); border: none; cursor: pointer; }
.filter-apply:hover { background: var(--secondary); color: var(--primary); }
.filter-clear { width: 100%; padding: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; border: 1px solid var(--light); transition: all var(--t-fast); background: none; cursor: pointer; display: block; text-align: center; }
.filter-clear:hover { color: var(--primary); border-color: var(--mid); }

/* MAIN CONTENT */
.store-main { padding: 32px 40px; }
.store-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.store-count { font-size: 13px; font-weight: 400; color: var(--muted); }
.store-count strong { color: var(--primary); font-weight: 600; }

/* PRODUCTS */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { cursor: pointer; background: var(--white); transition: transform var(--t) var(--ease), box-shadow var(--t); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(45,8,59,0.11); }
.product-img { aspect-ratio: 3/4; background: var(--light); overflow: hidden; position: relative; }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--primary); color: var(--white); z-index: 2; }
.product-badge.sale { background: var(--secondary); color: var(--primary); }
.product-wishlist { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: var(--white); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.8); transition: all var(--t-fast); z-index: 2; border: none; cursor: pointer; }
.product-card:hover .product-wishlist { opacity: 1; transform: scale(1); }
.product-wishlist svg { width: 15px; height: 15px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.product-wishlist:hover { background: var(--primary); }
.product-wishlist:hover svg { stroke: var(--white); }
.product-quick-add { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: var(--primary); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; transform: translateY(100%); transition: transform var(--t) var(--ease); border: none; cursor: pointer; font-family: 'Outfit', sans-serif; }
.product-card:hover .product-quick-add { transform: translateY(0); }
.product-quick-add:hover { background: var(--secondary); color: var(--primary); }
.product-info { padding: 18px 4px; }
.product-cat { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.product-pricing { display: flex; align-items: center; gap: 10px; }
.product-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.product-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--light); }
.pagination a, .pagination strong { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--light); font-size: 13px; font-weight: 500; color: var(--muted); transition: all var(--t-fast); background: var(--white); }
.pagination strong, .pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* MODAL STYLES (for product detail) */
.modal-overlay { position: fixed; inset: 0; background: rgba(45,8,59,0.5); z-index: 500; opacity: 0; pointer-events: none; transition: opacity var(--t); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { position: fixed; top: 0; right: 0; bottom: 0; width: min(90vw, 880px); background: var(--white); z-index: 501; transform: translateX(100%); transition: transform var(--t) var(--ease); overflow-y: auto; }
.modal.open { transform: translateX(0); }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.modal-img-col { background: var(--light); position: sticky; top: 0; height: 100vh; overflow: hidden; }
.modal-content-col { padding: 48px 40px; overflow-y: auto; }
.modal-cat { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.modal-title { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-price { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.modal-desc { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.85; margin-bottom: 32px; }
.modal-section-title { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.size-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.size-option { padding: 10px 16px; border: 1px solid var(--light); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all var(--t-fast); background: var(--white); }
.size-option:hover, .size-option.active { border-color: var(--primary); color: var(--primary); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--light); }
.qty-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); transition: background var(--t-fast); background: none; border: none; cursor: pointer; }
.qty-btn:hover { background: var(--off-white); }
.qty-num { width: 48px; text-align: center; font-size: 14px; font-weight: 600; border-left: 1px solid var(--light); border-right: 1px solid var(--light); height: 38px; line-height: 38px; }
.btn-add-cart { flex: 1; padding: 16px; background: var(--primary); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: background var(--t-fast); position: relative; overflow: hidden; border: none; cursor: pointer; }
.btn-add-cart::before { content: ''; position: absolute; inset: 0; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.btn-add-cart:hover::before { transform: scaleX(1); }
.btn-add-cart:hover { color: var(--primary); }
.btn-add-cart span { position: relative; z-index: 1; }
.modal-meta { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--light); }
.meta-row { display: flex; justify-content: space-between; }
.meta-key { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.meta-val { font-size: 12px; font-weight: 500; color: var(--primary); }

/* PAYMENT OPTIONS */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { padding: 16px 18px; border: 1px solid var(--light); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color var(--t-fast); background: var(--white); }
.payment-option:hover { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: var(--off-white); }
.payment-option input[type="radio"] { appearance: none; width: 16px; height: 16px; border: 2px solid var(--mid); border-radius: 50%; flex-shrink: 0; position: relative; cursor: pointer; }
.payment-option.selected input[type="radio"] { border-color: var(--primary); }
.payment-option.selected input[type="radio"]::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.payment-option-label { font-size: 13px; font-weight: 500; color: var(--primary); }

/* FOOTER */
footer { background: var(--primary); color: var(--white); padding: 80px 6vw 40px; margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 72px; }
.footer-brand .logo { font-size: 22px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; font-weight: 300; line-height: 1.85; opacity: 0.6; max-width: 280px; }
.footer-social { display: flex; gap: 14px; margin-top: 32px; }
.social-btn { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: all var(--t-fast); }
.social-btn:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); margin-bottom: 28px; }
.footer-links { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.footer-links a { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; font-style: normal; }
.footer-contact-item { display: flex; flex-direction: column; gap: 3px; }
.footer-contact-label { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary); }
.footer-contact-val { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6); }
.footer-bottom { padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }

/* TOAST */
.toast { position: fixed; bottom: 28px; right: 28px; z-index: 900; background: var(--primary); color: var(--white); padding: 16px 24px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 12px; transform: translateY(80px); opacity: 0; transition: all 0.4s var(--ease); box-shadow: 0 12px 40px rgba(45,8,59,0.28); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--secondary); }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 12px; padding: 17px 38px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--primary); color: var(--white); position: relative; overflow: hidden; transition: color var(--t-fast); border: none; cursor: pointer; text-decoration: none; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary:hover { color: var(--primary); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-ghost { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--mid); padding-bottom: 4px; transition: all var(--t-fast); background: none; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { color: var(--secondary); border-color: var(--secondary); gap: 16px; }

/* PRODUCT IMAGES */
.pimg-1 { background: #E8E0D4; }
.pimg-2 { background: #D4D8E0; }
.pimg-3 { background: #E0D4D4; }
.pimg-4 { background: #D4E0D8; }
.pimg-5 { background: #E8DFD0; }
.pimg-6 { background: #DDD4E0; }
.pimg-7 { background: #D0E0DC; }
.pimg-8 { background: #E8E4D4; }
.pimg-9 { background: #E4D8D0; }
.pimg-10 { background: #D8E0E4; }
.pimg-11 { background: #E0DCD4; }
.pimg-12 { background: #D4DCD8; }

/* RESPONSIVE */
@media(max-width: 900px) {
    .store-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-inner { grid-template-columns: 1fr; }
    .modal-img-col { height: 50vw; position: relative; }
    .nav-search { display: none; }
    .nav-links { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media(max-width: 600px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .store-main { padding: 24px 20px; }
    .footer-top { grid-template-columns: 1fr; }
}