:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --hover-color: #fef3c7; /* Smooth Light Amber for hover */
    --hover-text: #0f172a;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

/* Gallery Section - Dark Premium Theme */
.gallery-section {
    padding: 80px 0;
    background-color: #0f172a; /* Deep Charcoal/Dark Blue */
    color: #ffffff;
}

.gallery-section .section-header h2 {
    color: #ffffff;
}

.gallery-section .section-header p {
    color: #94a3b8; /* Muted slate for subtitle */
}

/* Pinterest-style Masonry Grid */
.gallery-grid {
    columns: 4 280px;
    column-gap: 20px;
}

.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
    font-size: 0.9rem;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
}

/* Empty state styling for Dark Mode Gallery */
.gallery-section .empty-state {
    color: #94a3b8;
    text-align: center;
    padding: 100px 0;
    font-style: italic;
    font-size: 1.2rem;
}

.gallery-footer {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.instagram-btn {
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.instagram-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
}

.instagram-btn i {
    font-size: 1.4rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    text-decoration: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-accent {
    color: var(--accent-color);
}

.search-container {
    flex: 1;
    display: flex;
    max-width: 800px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
}

#search-button {
    background-color: transparent;
    border: none;
    padding: 10px 15px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    color: #000000;
    font-size: 1.1rem;
    position: absolute;
    right: 0;
    height: 100%;
}

#contact-trigger {
    margin-left: 15px;
    white-space: nowrap;
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
}

#search-button:hover, #contact-trigger:hover {
    background-color: var(--accent-hover);
}

.header-actions .contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.header-actions .contact-link:hover {
    color: var(--accent-color);
}

.header-actions .fab {
    font-size: 1.5rem;
    color: #25D366; /* WhatsApp Green */
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info span {
    font-size: 0.8rem;
    color: #ccc;
}

.contact-info strong {
    font-size: 0.9rem;
}

/* Nav */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: flex-end;
    width: 100%;
    flex-wrap: wrap; /* Default to wrap for desktop dropdowns to work */
}

#nav-list li:first-child {
    margin-right: auto;
    border-left: none;
}

#nav-list li:first-child a {
    color: #ffffff !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
    padding: 0 20px;
}

#nav-list li:first-child a svg {
    fill: #ffffff;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

#nav-list li:first-child a:hover {
    background-color: transparent !important;
}

#nav-list li:first-child a:hover svg {
    transform: scale(1.3);
}

#nav-list li {
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.1);
}

#nav-list li a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    min-height: 40px;
    border-radius: 8px; /* Smooth edges */
    margin: 4px 2px;
    white-space: nowrap; /* Keep text on one line */
}

#nav-list li a i, #nav-list li a svg {
    font-size: 1rem;
}

#nav-list li a:hover, #nav-list li.active a {
    background-color: var(--hover-color);
    color: var(--hover-text);
}

/* Dropdowns */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1001;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--accent-color);
}

#nav-list li:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    color: var(--text-color) !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    transition: background 0.2s !important;
}

.nav-dropdown a:hover {
    background-color: #f3f3f3;
    outline: none !important;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('images/hero.png') center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Products */
.products-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb span {
    cursor: pointer;
}

.breadcrumb span:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f0f2f2;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    flex: 1;
}

.product-price {
    font-weight: 700;
    color: #B12704;
    margin-bottom: 15px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination button:hover, .pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-col ul li a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.footer-bottom {
    border-top: 1px solid #3a4553;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

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

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .header-top .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-container {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap; /* Allow search and buttons to wrap on very small screens */
    }
    #search-input {
        flex: 1;
        min-width: 200px;
    }
    .cart-container {
        margin-left: 0;
    }
    #contact-trigger {
        margin-left: 0;
        padding: 8px 15px;
    }

    #nav-list {
        flex-wrap: nowrap; /* Side-scrolling on mobile */
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #nav-list::-webkit-scrollbar {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

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

/* Cart Styles */
.cart-container {
    position: relative;
    margin-left: 10px;
}

.btn-cart {
    background-color: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.5rem; /* Larger icon like Amazon */
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart:hover {
    color: #febd69; /* Amazon Yellow */
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #f08804; /* Amazon Orange */
    color: #0f1111;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: none;
}

/* Modal General */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8fafc;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #B12704;
    font-weight: 700;
}

.remove-item {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    margin-bottom: 0;
}

.checkout-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* Product Card - Add to Cart Button */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.add-to-cart-btn {
    background-color: #febd69; /* Amazon Yellow */
    color: #0f1111 !important; /* Dark contrast */
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* Maintain square shape */
    font-size: 1.5rem; /* Larger '+' symbol */
    font-weight: 800; /* Bold symbol */
    line-height: 1;
}

.add-to-cart-btn:hover {
    background-color: #f08804; /* Amazon Orange */
}

.add-to-cart-btn i {
    font-size: 1.2rem;
    font-weight: 900;
    pointer-events: none; /* Avoid clicking on icon directly */
}

.whatsapp-btn {
    flex: 1;
}
