@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --brand-brown: #4a2005; /* Deep brown exactly like the reference */
    --brand-light-brown: #8b5a2b;
    --hero-bg: #b08d6a; 
    --text-dark: #1f2937;
    --text-blue: #1e3a5f; /* For section headings like "Leather Bags" */
    --text-light: #666666;
    --white: #ffffff;
    --black: #0a0a0a;
    --border-color: #eaeaea;
    --bg-light: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Open Sans', sans-serif; }
body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

/* Header */
header { background-color: var(--white); border-bottom: 1px solid var(--border-color); padding: 15px 5%; }
.header-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* Logo Badge */
.logo { text-decoration: none; color: var(--brand-brown); }
.logo-badge { border: 2px dashed var(--brand-brown); border-radius: 5px; padding: 10px 15px; text-align: center; font-weight: 700; background: #fdfbf7; line-height: 1.2; font-size: 14px;}
.logo-badge.large { font-size: 24px; padding: 30px 40px; }

/* Navigation */
.desktop-nav ul { list-style: none; display: flex; gap: 30px; }
.desktop-nav a { text-decoration: none; color: var(--text-dark); font-size: 15px; font-weight: 600; transition: color 0.2s;}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--brand-brown); text-decoration: underline; text-underline-offset: 5px;}
.header-icons a { text-decoration: none; color: var(--text-dark); font-weight: 700; margin-left: 15px; }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; }

/* Hero Banner */
.hero-banner { background-color: var(--hero-bg); min-height: 500px; display: flex; align-items: center; justify-content: center; position: relative; padding: 40px 5%; overflow: hidden; }
.hero-content-left { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.hero-bag { width: 400px; height: auto; position: relative; z-index: 2; filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.3)); }
.secondary-bag { position: absolute; right: 200px; top: 20px; z-index: 1; filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.2)); }
.hero-content-right { flex: 1; padding-left: 60px; color: var(--brand-brown); }
.hero-content-right h1 { font-family: 'Brush Script MT', cursive; font-size: 5.5rem; margin-bottom: -15px; color: var(--white); text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.hero-content-right h2 { font-size: 3rem; font-weight: 900; line-height: 1.1; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--brand-brown); cursor: pointer; padding: 20px; font-weight: bold; }
.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

/* Intro Section */
.intro-section { max-width: 1300px; margin: 60px auto; padding: 0 5%; }
.intro-section h2 { font-size: 1.6rem; margin-bottom: 20px; color: var(--text-blue); font-weight: 700; }
.intro-section p { color: #444; font-size: 0.95rem; text-align: justify; line-height: 1.8; }

/* Browse Collection Grid */
.collection-section { max-width: 1300px; margin: 60px auto 100px; padding: 0 5%; }
.section-heading { font-size: 1.6rem; margin-bottom: 30px; color: var(--text-blue); font-weight: 700; }
.grid-3-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.collection-card { border: 1px solid var(--border-color); padding: 20px; text-align: center; background: var(--white); transition: box-shadow 0.3s; }
.collection-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.collection-card img { width: 100%; height: 280px; object-fit: cover; margin-bottom: 20px; }
.collection-info h3 { font-size: 1rem; margin-bottom: 15px; letter-spacing: 0.5px; text-transform: uppercase; color: #111;}
.shop-btn { display: inline-block; background-color: var(--brand-brown); color: var(--white); text-decoration: none; padding: 12px 30px; font-size: 0.85rem; font-weight: 600; transition: background 0.3s; }
.shop-btn:hover { background-color: #2a1103; }

/* Product Scroller Sections (The 5 new rows) */
.product-scroller-section { max-width: 1300px; margin: 0 auto 80px; padding: 0 5%; }
.scroller-title { font-size: 1.8rem; color: var(--text-blue); font-weight: 700; margin-bottom: 25px; border-bottom: 2px solid var(--bg-light); padding-bottom: 10px;}
.product-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.scroller-item { text-align: center; }
.img-wrapper { background-color: var(--bg-light); padding: 15px; margin-bottom: 15px; border: 1px solid var(--border-color); height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.scroller-item:hover .img-wrapper img { transform: scale(1.05); }
.scroller-item p { font-size: 0.9rem; color: #222; font-weight: 600; line-height: 1.4; padding: 0 10px; }
.btn-container { text-align: center; margin-top: 10px; }
.view-all-btn { display: inline-block; background-color: var(--brand-brown); color: var(--white); padding: 12px 35px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: background 0.3s; text-transform: uppercase; }
.view-all-btn:hover { background-color: #2a1103; }

/* Why Choose Us (Dark Section) */
.why-choose-us { background-color: var(--black); color: var(--white); padding: 80px 5%; margin-top: 80px; }
.why-container { max-width: 1300px; margin: 0 auto; display: flex; gap: 80px; align-items: flex-start; }
.why-logo .large { background: #eedbc5; color: var(--brand-brown); border-color: var(--brand-brown); }
.why-text h2 { font-size: 2rem; margin-bottom: 30px; line-height: 1.3; }
.why-text ul { list-style: none; }
.why-text li { margin-bottom: 20px; font-size: 1rem; color: #d1d1d1; position: relative; padding-left: 20px; line-height: 1.7; }
.why-text li::before { content: "•"; position: absolute; left: 0; color: var(--white); font-size: 1.2rem; }
.why-text strong { color: var(--white); }

/* Supply Chain Section */
.supply-chain { background-color: #f5f5f5; display: flex; align-items: center; padding: 60px 5%; justify-content: space-between; gap: 40px; }
.supply-content { flex: 1; max-width: 600px; }
.supply-content h2 { font-size: 2rem; color: var(--text-blue); margin-bottom: 30px; }
.supply-content p { margin-bottom: 20px; font-size: 1rem; color: #444; }
.supply-content strong { color: #111; display: inline-block; min-width: 100px; }
.supply-map { flex: 1; text-align: right; }

/* Footer */
footer { background-color: #111111; color: var(--white); padding: 70px 5% 20px; }
.footer-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-col h2, .footer-col h3 { font-size: 1.4rem; margin-bottom: 25px; font-weight: 400; border-bottom: 1px solid #333; padding-bottom: 10px; display: inline-block; }
.brand-col p { font-size: 0.95rem; margin-bottom: 20px; color: #ccc; }
.map-container { width: 100%; max-width: 350px; border: 1px solid #333; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col a { color: #aaa; text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.contact-details p { font-size: 0.95rem; color: #aaa; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 25px; font-size: 0.85rem; color: #777; }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 100; display: flex; justify-content: center; align-items: center; transition: transform 0.2s;}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 35px; height: 35px; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-content-right h1 { font-size: 4rem; }
    .hero-content-right h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .why-container, .hero-banner, .supply-chain { flex-direction: column; }
    .hero-content-left { justify-content: center; margin-bottom: 30px; width: 100%; }
    .secondary-bag { display: none; }
    .hero-content-right { padding-left: 0; text-align: center; }
    .grid-3-col, .footer-grid { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .supply-map { text-align: center; margin-top: 30px; }
}

@media (max-width: 480px) {
    .product-grid-4 { grid-template-columns: 1fr; }
}

/* =========================================
   DROPDOWN MENU STYLES (Fixed Closing Logic)
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 100%; /* Positions it right under the link */
    left: 0;
    flex-direction: column !important;
    gap: 0 !important;
    border-top: 3px solid var(--brand-brown);
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

/* Active State on Hover */
.dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.dropdown-content li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 20px !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important; /* Fix for underline issue */
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--brand-brown) !important;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

/* =========================================
   PRODUCTS PAGE SPECIFIC STYLES
   ========================================= */

.page-banner {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    margin-top: 85px; /* Adjust based on your header height */
    border-bottom: 5px solid var(--brand-brown);
}
.page-banner h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-banner a { color: var(--hero-bg); text-decoration: none; }
.page-banner a:hover { text-decoration: underline; }

.shop-main { max-width: 1300px; margin: 60px auto; padding: 0 5%; }
.shop-container { display: flex; gap: 40px; align-items: flex-start; }

.shop-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 100px; }
.shop-sidebar h3 { font-size: 1.2rem; color: var(--text-blue); border-bottom: 2px solid var(--bg-light); padding-bottom: 10px; margin-bottom: 20px; }
.filter-title { margin-top: 40px; }
.category-list, .color-list { list-style: none; }
.category-list li { margin-bottom: 12px; }
.category-list a { text-decoration: none; color: var(--text-light); font-size: 0.95rem; display: block; transition: color 0.2s; }
.category-list a:hover, .category-list a.active { color: var(--brand-brown); font-weight: 600; }

.color-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-light); cursor: pointer; }
.color-box { width: 15px; height: 15px; display: inline-block; border: 1px solid #ccc; }

.shop-content { flex: 1; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.shop-toolbar p { color: var(--text-light); font-size: 0.95rem; }
.sort-dropdown { padding: 8px 15px; border: 1px solid var(--border-color); font-size: 0.9rem; outline: none; cursor: pointer; background: var(--bg-light); }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.shop-item { text-align: center; border: 1px solid transparent; padding-bottom: 15px; transition: border 0.3s; }
.shop-item:hover { border: 1px solid var(--border-color); background: #fff; }
.shop-item p { font-size: 0.85rem; color: #222; font-weight: 600; line-height: 1.4; padding: 10px; min-height: 60px; }
.view-btn { display: inline-block; border: 1px solid var(--brand-brown); color: var(--brand-brown); text-decoration: none; padding: 8px 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; transition: all 0.3s; }
.view-btn:hover { background: var(--brand-brown); color: var(--white); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.page-num { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; border: 1px solid var(--border-color); text-decoration: none; color: var(--text-dark); font-weight: 600; transition: all 0.3s; }
.page-num:hover, .page-num.active { background: var(--brand-brown); color: var(--white); border-color: var(--brand-brown); }
.page-next { text-decoration: none; color: var(--brand-brown); font-weight: 700; padding: 0 15px; }

/* Responsive Overrides */
@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
    .shop-container { flex-direction: column; }
    .shop-sidebar { width: 100%; position: static; margin-bottom: 30px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-toolbar { flex-direction: column; gap: 15px; align-items: flex-start; }
}