/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
:root {
    --maroon: #5c162e;
    --gold: #cba365;
    --dark: #1a1a1a;
    --light-bg: #fdfbf7;
    --white: #fff;
    --text: #333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}
body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* --- LOADER --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--maroon); color: var(--gold);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.8s ease, visibility 0.8s;
}
#loader h1 { font-family: var(--font-heading); font-size: 4.5rem; letter-spacing: 6px; animation: pulse 1.5s infinite alternate; }
#loader p { letter-spacing: 3px; margin-top: 10px; font-weight: 300; text-transform: uppercase; font-size: 0.9rem; text-align: center; }
@keyframes pulse { 0% { opacity: 0.7; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1.02); } }

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--white); padding: 15px 50px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000;
    border-bottom: 2px solid var(--gold); flex-wrap: wrap;
}
.logo { font-family: var(--font-heading); font-size: 2.5rem; color: var(--maroon); text-decoration: none; letter-spacing: 3px; font-weight: 700; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { text-decoration: none; color: var(--dark); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s; }
nav ul li a:hover { color: var(--maroon); }
.contact-info { font-size: 0.85rem; color: var(--maroon); text-align: right; border-left: 2px solid var(--gold); padding-left: 20px; font-weight: 600; }

/* --- HERO SLIDER --- */
.hero { position: relative; width: 100%; height: 70vh; overflow: hidden; background: var(--dark); border-bottom: 5px solid var(--gold); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-in-out; background-size: cover; background-position: center; background-color: #333; }
.slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(92, 22, 46, 0.5), rgba(0,0,0,0.8)); display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--white); text-align: center; z-index: 10; padding: 20px; }
.hero-overlay h2 { font-family: var(--font-heading); font-size: 4rem; margin-bottom: 15px; letter-spacing: 2px; color: var(--gold); text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.hero-overlay p { font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 300; }

/* --- PRODUCT SECTIONS --- */
.section-title { text-align: center; font-family: var(--font-heading); font-size: 2.5rem; margin: 60px 0 30px; color: var(--maroon); position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold); margin: 15px auto 0; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; margin-bottom: 70px; }
.card { background: var(--white); border: 1px solid #eaeaea; transition: transform 0.4s, box-shadow 0.4s; display: flex; flex-direction: column; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(92, 22, 46, 0.15); border-color: var(--gold); }
.card-img { width: 100%; height: 280px; object-fit: cover; border-bottom: 2px solid var(--gold); background-color: #eee; color: #999; }
.card-body { padding: 20px 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; background: var(--white); }
.card-title { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 10px; color: var(--dark); font-weight: 600; }
.card-price { color: var(--maroon); font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.badge { position: absolute; top: 10px; right: 10px; background: var(--maroon); color: var(--gold); padding: 5px 10px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; z-index: 2; font-weight: 700; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn { background: var(--maroon); color: var(--white); border: 1px solid var(--maroon); padding: 12px 15px; cursor: pointer; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; margin-top: auto; width: 100%; font-weight: 700; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon); }

/* --- MODALS GENERAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 26, 0.85); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--white); position: relative; border-top: 5px solid var(--gold); max-height: 95vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-title { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 15px; text-align: center; color: var(--maroon); }
.close-btn { position: absolute; top: 10px; right: 20px; font-size: 2.5rem; cursor: pointer; color: #999; z-index: 10; line-height: 1; }
.close-btn:hover { color: var(--maroon); }

/* --- ABOUT MODAL SPECIFICS --- */
.about-modal-content { max-width: 700px; padding: 40px; text-align: center; }
.about-content p { color: #555; line-height: 1.6; font-size: 1.05rem; margin-bottom: 25px; }
.firm-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 25px; }
.detail-box { background: var(--light-bg); border: 1px solid var(--gold); padding: 20px; min-width: 250px; border-radius: 5px; text-align: left; }
.detail-box h4 { font-family: var(--font-heading); color: var(--maroon); font-size: 1.3rem; margin-bottom: 10px; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
.detail-box p { font-size: 0.95rem; margin-bottom: 8px; color: var(--dark); }

/* --- DETAILS MODAL SPECIFICS --- */
.details-modal-content { width: 100%; max-width: 850px; padding: 0; }
.details-layout { display: flex; flex-direction: row; }
.details-image-container { flex: 1; background: #f4f4f4; border-right: 1px solid #ddd; }
.details-image-container img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; display: block; }
.details-info { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.details-info h3 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--maroon); margin-bottom: 10px; }
.details-info .detail-price { font-size: 1.8rem; font-weight: 700; color: var(--gold); margin-bottom: 20px; }
.details-info .detail-description { color: #555; line-height: 1.6; margin-bottom: 25px; font-size: 1.05rem; }
.detail-features { list-style: none; margin-bottom: 30px; }
.detail-features li { margin-bottom: 10px; font-size: 0.95rem; color: var(--dark); font-weight: 600; }

/* --- CHECKOUT MODAL SPECIFICS --- */
.checkout-modal-content { padding: 40px; width: 100%; max-width: 500px; }
.modal-subtitle { text-align: center; color: var(--gold); font-weight: 700; margin-bottom: 20px; font-size: 0.9rem; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.8rem; font-weight: 700; color: var(--dark); text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; background: var(--light-bg); font-family: var(--font-body); }
.form-group textarea { resize: vertical; height: 70px; }

/* Success screen specifics */
.success-content { text-align: center; display: none; padding: 20px 0; }
.tick-container { width: 80px; height: 80px; background: #28a745; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px; }
.tick-container svg { width: 40px; height: 40px; fill: none; stroke: white; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.order-id-box { background: var(--light-bg); border: 2px dashed var(--gold); padding: 15px; margin: 20px 0; font-size: 1.2rem; font-weight: 700; color: var(--maroon); }

/* Footer */
footer { background: var(--dark); color: var(--white); text-align: center; padding: 40px 20px; border-top: 3px solid var(--gold); }
footer h2 { font-family: var(--font-heading); letter-spacing: 3px; margin-bottom: 10px; color: var(--gold); }
footer p { color: #aaa; font-size: 0.85rem; }

/* ==============================================================
   MOBILE RESPONSIVENESS (SMARTPHONES & SMALL SCREENS)
   ============================================================== */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px 20px; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .contact-info { text-align: center; border-left: none; border-top: 1px solid var(--gold); padding-left: 0; padding-top: 10px; }
    
    #loader h1 { font-size: 3rem; }
    .hero { height: 50vh; }
    .hero-overlay h2 { font-size: 2.5rem; }
    .hero-overlay p { font-size: 0.9rem; letter-spacing: 1px; }
    
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .card-img { height: 200px; }
    .card-title { font-size: 1rem; }
    .card-price { font-size: 1.1rem; }
    
    /* Adjust Details Modal for Mobile */
    .details-layout { flex-direction: column; }
    .details-image-container img { height: 250px; min-height: 250px; }
    .details-info { padding: 20px; }
    .details-info h3 { font-size: 1.8rem; }
    
    /* Adjust Checkout & About Modals */
    .form-row { flex-direction: column; gap: 0; }
    .about-modal-content { padding: 30px 20px; }
}