@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #080808; color: #f5f5f5; font-family: 'Poppins', sans-serif; overflow-x: hidden; scroll-behavior: smooth; }

/* Loader */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #000; display: flex; justify-content: center; align-items: center; z-index: 9999; }
.loader-text { font-family: 'Playfair Display', serif; font-size: 4rem; color: #e6c27a; letter-spacing: 5px; opacity: 0; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background: rgba(8, 8, 8, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(230, 194, 122, 0.15); }
.logo { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.logo span { color: #e6c27a; } 
.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; font-weight: 500; }
.nav-links a:hover { color: #e6c27a; }

/* Cart Icon with Counter */
.cart-icon { position: relative; font-size: 22px; cursor: pointer; color: #e6c27a; transition: 0.3s; }
.cart-icon:hover { transform: scale(1.1); }
#cart-count {
    position: absolute; top: -8px; right: -12px; background: #fff; color: #000;
    font-size: 11px; font-weight: bold; width: 20px; height: 20px;
    display: flex; justify-content: center; align-items: center; border-radius: 50%;
}

/* Side Cart Drawer */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1001; opacity: 0; visibility: hidden; transition: 0.3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed; top: 0; right: -450px; width: 400px; max-width: 100%; height: 100vh;
    background: #111; z-index: 1002; border-left: 1px solid #e6c27a;
    display: flex; flex-direction: column; transition: right 0.4s ease;
}
.cart-sidebar.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; padding: 25px; border-bottom: 1px solid #222; }
.cart-header h2 { font-family: 'Playfair Display', serif; color: #e6c27a; font-size: 1.5rem; }
.close-cart { font-size: 24px; cursor: pointer; color: #ccc; transition: 0.3s; }
.close-cart:hover { color: #e6c27a; transform: rotate(90deg); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.empty-cart-msg { text-align: center; color: #666; margin-top: 50px; font-style: italic; }
.cart-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; border-bottom: 1px solid #222; padding-bottom: 15px; }
.cart-item img { width: 70px; height: 90px; object-fit: cover; border: 1px solid #333; }
.cart-item-details h4 { font-size: 14px; margin-bottom: 5px; color: #fff; font-family: 'Playfair Display', serif; }
.cart-item-details p { font-size: 14px; font-weight: bold; color: #e6c27a; }
.cart-footer { padding: 25px; border-top: 1px solid #222; background: #0a0a0a; }
.total { display: flex; justify-content: space-between; font-size: 20px; font-weight: bold; margin-bottom: 15px; color: #fff; }
.total span:last-child { color: #e6c27a; }
.checkout-btn { width: 100%; padding: 15px; background: #e6c27a; color: #000; font-size: 15px; border: none; cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.checkout-btn:hover { background: #fff; }

/* Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; padding: 0 8%; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%), url('https://images.unsplash.com/photo-1597983073493-88cd35cf93b0?q=80&w=2000&auto=format&fit=crop') center/cover; z-index: -1; transform: scale(1.05); }
.hero-content { max-width: 650px; z-index: 2; }
.subtitle { font-family: 'Playfair Display', serif; color: #e6c27a; font-size: 1.3rem; font-weight: 400; font-style: italic; margin-bottom: 15px; }
.title { font-family: 'Playfair Display', serif; font-size: 5rem; line-height: 1.1; margin-bottom: 25px; font-weight: 700; text-transform: uppercase; }
.description { font-size: 1.1rem; color: #bbb; margin-bottom: 40px; font-weight: 300; line-height: 1.6; }

/* Buttons */
.magnetic-btn { padding: 15px 45px; background: transparent; border: 1px solid #e6c27a; color: #e6c27a; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.4s ease; font-weight: 600; display: inline-block; }
.magnetic-btn:hover { background: #e6c27a; color: #080808; box-shadow: 0 0 25px rgba(230, 194, 122, 0.3); transform: translateY(-3px); }

/* Products Section */
.products-section { padding: 100px 5%; background: #080808; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: #e6c27a; margin-bottom: 10px; }
.section-header p { color: #888; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.product-card { background: #111; overflow: hidden; position: relative; opacity: 0; transform: translateY(50px); cursor: pointer; border: 1px solid transparent; transition: 0.3s; }
.product-card:hover { border-color: #333; z-index: 10; }

.img-container { height: 420px; overflow: hidden; position: relative; background: #1a1a1a; }
.img-container img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); filter: brightness(0.9); }
.product-card:hover .img-container img { transform: scale(1.08); filter: brightness(1); }

.quick-add { position: absolute; bottom: -60px; left: 0; width: 100%; background: rgba(230, 194, 122, 0.95); padding: 18px 0; text-align: center; font-weight: 600; color: #000; transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.product-card:hover .quick-add { bottom: 0; }

.product-info { padding: 25px 20px; text-align: center; background: #111; border-top: 1px solid #222; }
.product-info h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.product-info p { font-size: 1.2rem; font-weight: 600; color: #e6c27a; }

/* Product Modal (Luxury Popup) */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.modal-content { background-color: #111; margin: 5% auto; width: 75%; max-width: 900px; border: 1px solid #333; padding: 40px; position: relative; animation: fadeIn 0.3s; box-shadow: 0 0 50px rgba(230, 194, 122, 0.1); }
@keyframes fadeIn { from{opacity:0; transform:scale(0.95);} to{opacity:1; transform:scale(1);} }
.close-modal { position: absolute; top: 15px; right: 25px; font-size: 35px; cursor: pointer; color: #888; transition: 0.3s; }
.close-modal:hover { color: #e6c27a; }
.modal-flex { display: flex; gap: 40px; }
.modal-img-container { flex: 1; background: #1a1a1a; display: flex; justify-content: center; align-items: center; border: 1px solid #333; }
.modal-img-container img { width: 100%; max-height: 450px; object-fit: contain; }
.modal-details { flex: 1.2; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.brand-name { color: #888; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 5px; }
.modal-details h3 { font-family: 'Playfair Display', serif; font-size: 32px; color: #e6c27a; margin-bottom: 10px; }
.rating { font-size: 14px; margin-bottom: 15px; color: #aaa; }
.price { font-size: 28px; font-weight: 700; margin: 15px 0; color: #fff; }
.price del { color: #555; font-size: 18px; margin: 0 10px; font-weight: normal; }
.discount { color: #e6c27a; font-size: 16px; font-weight: 600; }
.size-selector p { margin-bottom: 10px; color: #ccc; }
.sizes { display: flex; gap: 10px; margin-bottom: 30px; }
.size-btn { width: 45px; height: 45px; border: 1px solid #444; background: transparent; color: #fff; cursor: pointer; font-weight: bold; border-radius: 4px; font-size: 14px; transition: 0.3s; }
.size-btn.active, .size-btn:hover { border-color: #e6c27a; background: #e6c27a; color: #000; }
.add-to-cart-confirm { width: 100%; font-size: 16px; padding: 18px; background: #e6c27a; color: #000; border: none; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.add-to-cart-confirm:hover { background: #fff; }

/* Checkout Alert */
.checkout-alert { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 3000; justify-content: center; align-items: center; }
.alert-box { background: #111; padding: 50px; border: 1px solid #333; text-align: center; max-width: 400px; animation: fadeIn 0.3s; box-shadow: 0 0 30px rgba(230, 194, 122, 0.2); }
.alert-box h2 { font-family: 'Playfair Display', serif; color: #e6c27a; margin-bottom: 10px; }

/* Footer */
.footer { text-align: center; padding: 70px 20px 40px; background: #050505; border-top: 1px solid #1a1a1a; }
.footer h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #e6c27a; margin-bottom: 10px; letter-spacing: 2px; }
.footer p { color: #888; font-size: 15px; margin-bottom: 20px; }
.contact-info { margin-top: 30px; line-height: 2; font-size: 16px; color: #ccc; }
.contact-info i { color: #e6c27a; margin-right: 10px; }
.copyright { margin-top: 50px; font-size: 12px; color: #555; text-transform: uppercase; letter-spacing: 1px; }