/* --- ISLAMIC ROYAL BLUE & GOLD THEME --- */
:root {
    /* Palette */
    --royal-blue: #0e2a47;       /* Deep Midnight Blue */
    --islamic-blue: #1a3c61;     /* Slightly lighter for gradients */
    --rich-gold: #cfa76e;        /* Metallic Gold */
    --bright-gold: #e6c68b;      /* Gold highlight */
    --cream-bg: #f8f6f2;         /* Soft off-white background */
    --white: #ffffff;
    
    /* Text Colors */
    --text-dark: #0e2a47;        /* Using blue for dark text for harmony */
    --text-muted: #5b758e;

    /* UI Elements */
    --radius: 8px;               /* Slightly sharper corners for a premium feel */
    --shadow-soft: 0 10px 30px -10px rgba(14, 42, 71, 0.1);
    --shadow-gold: 0 10px 25px -5px rgba(207, 167, 110, 0.3);
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-body); 
    line-height: 1.7; 
    color: var(--text-dark); 
    background: var(--cream-bg); 
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.bg-light { background: var(--white); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

/* Section Headers with Gold Accent */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; color: var(--royal-blue); margin-bottom: 15px; position: relative; display: inline-block; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
/* Islamic Arch Divider style */
.divider { 
    height: 4px; 
    width: 80px; 
    background: linear-gradient(to right, var(--rich-gold), var(--bright-gold)); 
    margin: 0 auto 20px; 
    border-radius: 2px;
    position: relative;
}
.divider::after {
    content: '♦'; /* Diamond symbol in center */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--rich-gold);
    font-size: 18px;
    background: var(--cream-bg); /* Matches background to create gap */
    padding: 0 5px;
}
.bg-light .divider::after { background: var(--white); }


/* --- Announcement Bar --- */
.announcement-bar { 
    background: linear-gradient(135deg, var(--royal-blue), var(--islamic-blue));
    color: var(--rich-gold); 
    text-align: center; 
    padding: 12px; 
    font-weight: 500; 
    font-size: 0.9rem; 
    border-bottom: 2px solid var(--rich-gold);
}

/* --- Header & Nav --- */
.header { 
    background: var(--white); 
    box-shadow: 0 4px 20px rgba(14, 42, 71, 0.08); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid #eee;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }

.logo h1 { 
    font-size: 2rem; 
    color: var(--royal-blue); 
    line-height: 1; 
    letter-spacing: -0.5px;
}
.sub-logo { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--rich-gold); display: block; margin-top: 5px; font-weight: 600; }
.brand-history { font-size: 0.7rem; color: var(--text-muted); font-style: italic; }

.nav-menu { display: flex; gap: 35px; }
.nav-menu a { 
    font-weight: 600; 
    color: var(--royal-blue); 
    font-size: 1rem; 
    position: relative;
    padding-bottom: 5px;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--rich-gold); transition: 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--rich-gold); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.header-icons { display: flex; gap: 25px; align-items: center; }
.cart-wrapper { position: relative; cursor: pointer; color: var(--royal-blue); font-size: 1.4rem; transition: 0.3s; }
.cart-wrapper:hover { color: var(--rich-gold); transform: scale(1.1); }
.cart-wrapper span { position: absolute; top: -8px; right: -8px; background: linear-gradient(135deg, var(--rich-gold), var(--bright-gold)); color: var(--royal-blue); font-size: 0.75rem; font-weight: 800; padding: 3px 7px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--royal-blue); cursor: pointer; }

/* --- Hero Section (Islamic Pattern Background) --- */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Subtle geometric pattern overlay on blue gradient */
    background-color: var(--royal-blue);
    background-image: radial-gradient(circle at 20% 20%, rgba(207, 167, 110, 0.05) 0%, rgba(207, 167, 110, 0.05) 20%, transparent 20%, transparent 100%),
                      radial-gradient(circle at 80% 80%, rgba(207, 167, 110, 0.05) 0%, rgba(207, 167, 110, 0.05) 20%, transparent 20%, transparent 100%),
                      linear-gradient(135deg, var(--royal-blue) 0%, #05101c 100%);
    background-size: 100% 100%, 100% 100%, cover;
    border-bottom: 3px solid var(--rich-gold);
}
/* Optional: Uncomment if you want a photo background instead of the pattern
.hero { background: url('YOUR_IMAGE_URL_HERE') center/cover; } */

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(14, 42, 71, 0.4); /* Lighter overlay so pattern shows */ }
.hero-content { position: relative; z-index: 2; padding: 30px; max-width: 800px; }
.hero h2 { 
    font-size: 4.5rem; 
    margin-bottom: 25px; 
    color: var(--rich-gold);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}
.hero p { 
    font-size: 1.4rem; 
    margin-bottom: 40px; 
    color: var(--cream-bg); 
    font-weight: 400;
}

/* --- Gold Buttons --- */
.btn { 
    display: inline-block; padding: 16px 40px; border-radius: var(--radius); font-weight: 700; cursor: pointer; border: none; font-size: 1.1rem; transition: all 0.3s; letter-spacing: 0.5px; text-transform: uppercase; 
}
.btn-primary { 
    background: linear-gradient(135deg, var(--rich-gold), var(--bright-gold)); 
    color: var(--royal-blue);
    box-shadow: 0 10px 20px -10px rgba(207, 167, 110, 0.5);
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px -10px rgba(207, 167, 110, 0.7);
    background: linear-gradient(135deg, var(--bright-gold), var(--rich-gold)); 
}
.btn-block { width: 100%; }

/* --- Category Cards --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.cat-card { 
    background: var(--white); 
    padding: 40px 30px; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-soft); 
    transition: all 0.4s ease; 
    border: 2px solid transparent; 
    height: 100%; 
    position: relative;
    overflow: hidden;
}
/* Add a subtle top arch effect on hover */
.cat-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(to right, var(--rich-gold), var(--bright-gold)); transform: scaleX(0); transition: 0.4s;
}
.cat-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--rich-gold); 
    box-shadow: var(--shadow-gold);
}
.cat-card:hover::before { transform: scaleX(1); }

.icon-box { 
    font-size: 3.5rem; 
    color: var(--rich-gold); /* Gold icons */
    margin-bottom: 25px; 
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    background: rgba(207, 167, 110, 0.1); /* Subtle gold background for icon */
    transition: 0.3s;
}
.cat-card:hover .icon-box { background: var(--rich-gold); color: var(--white); }
.cat-card h3 { font-size: 1.5rem; color: var(--royal-blue); margin-bottom: 10px; }
.cat-card p { color: var(--text-muted); }

/* --- Product Grid (The Boxes Fix + New Design) --- */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 35px; 
}
.product-card { 
    background: var(--white); 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: var(--shadow-soft); 
    transition: all 0.3s ease; 
    /* KEY FIX FOR EQUAL HEIGHT BOXES */
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    border: 1px solid #eee;
}
.product-card:hover { 
    transform: translateY(-7px); 
    box-shadow: var(--shadow-gold); 
    border-color: var(--rich-gold);
}

.product-img { height: 280px; background: #f0f0f0; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.08); }

.product-info { 
    padding: 25px; 
    flex-grow: 1; /* Ensures content stretches and buttons align at bottom */
    display: flex; 
    flex-direction: column; 
    background: var(--white);
    position: relative;
}
/* subtle Islamic star pattern overlay on info section background */
.product-info::after {
    content: '۞'; position: absolute; bottom: 10px; right: 10px; font-size: 60px; color: rgba(207, 167, 110, 0.07); pointer-events: none;
}

.product-cat { font-size: 0.8rem; color: var(--rich-gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; font-weight: 700; }
.product-title { font-family: var(--font-heading); font-size: 1.3rem; margin: 0 0 10px; color: var(--royal-blue); flex-grow: 1; line-height: 1.3; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--royal-blue); display: block; margin-bottom: 20px; }
.product-desc { display: none; } /* Hidden on grid view */

.btn-cart { 
    width: 100%; 
    padding: 15px; 
    border: 2px solid var(--rich-gold); 
    background: transparent; 
    color: var(--rich-gold); 
    border-radius: var(--radius); 
    cursor: pointer; 
    font-weight: 700; 
    transition: 0.3s; 
    margin-top: auto; /* Pushes button to bottom */
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-cart:hover { background: linear-gradient(135deg, var(--rich-gold), var(--bright-gold)); color: var(--royal-blue); border-color: transparent; }

/* --- Checkout Modal --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(14, 42, 71, 0.8); backdrop-filter: blur(8px); }
.modal-content { 
    background-color: var(--white); 
    margin: 4% auto; 
    padding: 40px; 
    width: 90%; 
    max-width: 500px; 
    border-radius: var(--radius); 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
    border-top: 5px solid var(--rich-gold);
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.modal-header h2 { color: var(--royal-blue); font-size: 1.8rem; }
.close-btn { font-size: 2.2rem; cursor: pointer; color: var(--text-muted); transition: 0.3s; }
.close-btn:hover { color: var(--royal-blue); transform: rotate(90deg); }

.cart-summary-box { 
    background: var(--cream-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.cart-list li { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; padding-bottom: 12px; border-bottom: 1px dashed #ddd; color: var(--text-dark); }
.total-section { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: 800; color: var(--royal-blue); margin-bottom: 30px; padding: 20px 0; border-top: 2px solid var(--rich-gold); }

.form-group { margin-bottom: 20px; }
.form-input { 
    width: 100%; padding: 15px; border: 2px solid #e0e0e0; border-radius: var(--radius); font-size: 1rem; outline: none; transition: 0.3s; background: var(--cream-bg);
}
.form-input:focus { border-color: var(--rich-gold); background: var(--white); box-shadow: 0 0 0 4px rgba(207, 167, 110, 0.2); }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; color: var(--royal-blue); }
.secure-badge { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.secure-badge i { color: var(--rich-gold); }

/* --- Floating Button --- */
.floating-checkout {
    position: fixed; bottom: 80px; right: 30px; 
    background: linear-gradient(135deg, var(--rich-gold), var(--bright-gold));
    color: var(--royal-blue);
    padding: 18px 35px; border-radius: 50px; font-weight: 700; box-shadow: var(--shadow-gold);
    cursor: pointer; z-index: 990; display: flex; align-items: center; gap: 12px; transition: all 0.3s; font-size: 1.1rem;
}
.floating-checkout:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(207, 167, 110, 0.6); }

/* --- Footer (Islamic Blue Background) --- */
.footer { 
    background: var(--royal-blue); 
    color: #aab8c5; 
    padding: 80px 0 30px; 
    margin-top: 80px; 
    font-size: 1rem; 
    position: relative;
    /* Subtle pattern overlay for footer too */
    background-image: radial-gradient(circle at 50% 0%, rgba(207, 167, 110, 0.1) 0%, transparent 50%);
    border-top: 4px solid var(--rich-gold);
}
.footer h3 { color: var(--rich-gold); margin-bottom: 25px; font-size: 1.5rem; }
.footer-desc { line-height: 1.8; margin-bottom: 25px; color: #dbe4ee; }
.contact-row { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; color: #dbe4ee; }
.contact-row i { color: var(--rich-gold); }
.footer a { display: block; margin-bottom: 15px; color: #aab8c5; transition: 0.3s; }
.footer a:hover { color: var(--rich-gold); padding-left: 8px; }
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 30px; 
    text-align: center; 
    margin-top: 50px; 
    font-size: 0.9rem;
    color: var(--rich-gold);
}

/* --- PRODUCT DETAIL PAGE SPECIFICS --- */
.product-detail-container { display: flex; flex-wrap: wrap; gap: 50px; margin-top: 60px; align-items: flex-start; }
.detail-image-box { flex: 1 1 400px; }
.detail-image-box img { 
    width: 100%; border-radius: var(--radius); 
    box-shadow: var(--shadow-soft); 
    border: 3px solid var(--white); outline: 2px solid var(--rich-gold); /* Double border gold effect */
}
.detail-info-box { flex: 1 1 400px; padding: 20px; }
.detail-cat-badge { 
    display: inline-block; background: rgba(207, 167, 110, 0.2); color: var(--royal-blue); 
    padding: 8px 15px; border-radius: 30px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 15px; border: 1px solid var(--rich-gold);
}
.detail-title { font-size: 2.8rem; line-height: 1.2; color: var(--royal-blue); margin-bottom: 15px; }
.detail-price { font-size: 2.2rem; color: var(--rich-gold); font-weight: 800; margin-bottom: 30px; display: block; }

.buy-action { margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; }
.btn-large { padding: 18px 50px; font-size: 1.2rem; flex: 1; min-width: 200px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.btn-outline { background: transparent; border: 2px solid var(--royal-blue); color: var(--royal-blue); }
.btn-outline:hover { background: var(--royal-blue); color: var(--rich-gold); }

.detail-desc { margin-top: 40px; font-size: 1.05rem; line-height: 1.9; color: var(--text-dark); }
.detail-desc h3 { color: var(--royal-blue); font-size: 1.6rem; margin: 35px 0 20px; border-bottom: 2px solid var(--rich-gold); padding-bottom: 10px; display: inline-block; }
.detail-desc ul { margin-bottom: 25px; }
.detail-desc li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.detail-desc li::before { content: '۞'; color: var(--rich-gold); font-size: 1.2rem; } /* Islamic star bullet point */
.trust-badge { 
    background: rgba(207, 167, 110, 0.1); border: 2px dashed var(--rich-gold); color: var(--royal-blue); 
    padding: 25px; border-radius: var(--radius); margin-top: 40px; display: flex; align-items: center; gap: 15px; font-weight: 600;
}
.trust-badge i { font-size: 1.8rem; color: var(--rich-gold); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 30px; box-shadow: var(--shadow-soft); display: none; border-bottom: 3px solid var(--rich-gold); }
    .nav-menu.active { display: flex; }
    .hero h2 { font-size: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .contact-row { justify-content: center; }
    .product-detail-container { flex-direction: column; gap: 30px; }
    .detail-title { font-size: 2rem; }
    .buy-action { flex-direction: column; }
}
