/* ===== Global Variables & Reset ===== */
:root {
    --color-bg: #fdfdfd;
    --color-text: #111111;
    --color-text-muted: #666666;
    --color-accent: #222222;
    --color-border: #e0e0e0;
    --color-white: #ffffff;
    --color-grey: #f5f5f5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 500;
}

h1 { font-size: 3.5rem; letter-spacing: 0.05em; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; margin-bottom: 1.2rem; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Announcement Bar ===== */
.announcement-bar {
    background-color: var(--color-text);
    color: var(--color-white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.menu-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.logo a {
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.icon-link {
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-text);
}

.icon-link #cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-text);
    color: #fff;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* ===== Banner Sections & Overlays ===== */
.section-banner {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.banner-overlay-content {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    pointer-events: none;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-overlay-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: inherit;
}

.banner-overlay-content p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.banner-group-1, .banner-group-2, .banner-group-4, .banner-group-8 {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .banner-overlay-content h2 { font-size: 1.8rem; }
    .banner-overlay-content p { font-size: 0.9rem; }
    .banner-overlay-content { top: 20px; }
    .logo a { font-size: 1.5rem; letter-spacing: 0.1em; }
}

/* ===== Side Menu Drawer ===== */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    transform: translateX(320px);
}

.side-menu-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.side-menu-header h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.side-menu-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.side-menu-content h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 2rem 0 1rem;
}

.side-menu-content h4:first-child {
    margin-top: 0;
}

.side-menu-content a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #f9f9f9;
}

/* Side Menu Accordion Styles */
.side-menu-dropdown {
    border-bottom: 1px solid #f5f5f5;
}
.dropdown-header {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.dropdown-header:hover { color: var(--color-accent); }
.dropdown-subs {
    padding-left: 1rem;
    padding-bottom: 1rem;
    background: #fafafa;
}
.dropdown-subs a {
    padding: 0.5rem 0 !important;
    font-size: 0.9rem !important;
    border-bottom: none !important;
    color: var(--color-text-muted) !important;
}
.dropdown-subs a:hover { color: #000 !important; padding-left: 5px; }

.side-menu-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.side-menu-footer a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #333;
}

.btn-quick-add {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    width: calc(100% - 20px);
    margin: 10px;
}

.btn-quick-add:hover {
    background-color: var(--color-white);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: 600px;
    padding: 0 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
    font-weight: 300;
}

/* ===== BANNER GROUPS (1, 2, 4, 8) ===== */
#homeBannersContainer { max-width: 1600px; margin: 0 auto; padding: 2rem 4rem; }
.banner-group-1 { display: block; width: 100%; margin-bottom: 3rem; overflow: hidden; }
.banner-group-1 img { width: 100%; height: auto; max-height: 80vh; object-fit: cover; }
.banner-group-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 3rem; }
.banner-group-2 img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.banner-group-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
.banner-group-4 img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.banner-group-8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; margin-bottom: 3rem; }
.banner-group-8 img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }

.banner-link { display: block; transition: transform 0.4s ease; overflow: hidden; background: #eee;}
.banner-link:hover img { transform: scale(1.05); }

/* ===== Sections ===== */
.section {
    padding: 6rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.grey-bg {
    background-color: var(--color-grey);
    max-width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    text-align: center;
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
    aspect-ratio: 4/5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    bottom: 0px;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.price {
    color: var(--color-text-muted);
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 5rem 4rem 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1600px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-white);
}

.footer-col p {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: var(--color-white);
}

.support-text {
    line-height: 1.8;
}

.newsletter p {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #666;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #666;
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .header-container { padding: 1.5rem 2rem; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text); }

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; padding: 1rem 2rem; position: relative;}
    .logo { flex: 1; text-align: center; }
    .logo a { font-size: 1.4rem; } 
    .mobile-toggle { display: block; position: absolute; left: 20px; top: 1.1rem; z-index: 101;}
    .secondary-nav { display: none; }
    
    .nav-links { display: none; width: 100%; flex-direction: column; gap: 1rem; align-items: center; margin-top: 1rem; }
    .header-container.mobile-active .nav-links, .header-container.mobile-active .secondary-nav { display: flex; width: 100%; justify-content: center;}
    
    .hero h1 { font-size: 2.5rem; }
    .section { padding: 4rem 2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .product-image { aspect-ratio: 3/4; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Mobile Banner Grids */
    #homeBannersContainer { padding: 1rem 2rem; }
    .banner-group-2 { grid-template-columns: 1fr; }
    .banner-group-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .banner-group-8 { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
}

/* Dropdown Menu CSS */
.dropdown { position: relative; display: inline-block; padding: 10px 0;}
.dropdown-content { display: none; position: absolute; background-color: #fff; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.05); padding: 12px 16px; z-index: 100; top: 100%; left: 0; text-align: left; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content .cat-title { font-weight: bold; margin-bottom: 5px; color: var(--color-text); text-transform: uppercase; font-size: 0.85rem;}
.dropdown-content .sub-links { list-style: none; padding-left: 10px; margin-bottom: 10px; margin-top: 5px;}
.dropdown-content .sub-links li a { color: #666; font-size: 0.85rem; padding: 3px 0; display: block; text-transform: none; text-decoration: none;}
.dropdown-content .sub-links li a:hover { color: var(--color-text); }
/* ===== Content Pages (About, Contact, Terms) ===== */
.content-section {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.content-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--color-text);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
