:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --bg-dark: #0f172a;
    --surface-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #ec4899;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    padding-bottom: 80px; /* Space for sticky footer */
    overflow-x: hidden;
}

/* Header & Navigation Wrapper */
.header-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--surface-dark) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    top: -300px;
    left: -200px;
    border-radius: 50%;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.banner p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    z-index: 1;
}

/* Category Filter */
.categories {
    padding: 2rem 5%;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    padding: 0.5rem 1.5rem;
    background: var(--surface-dark);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cat-btn.active, .cat-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Products Grid */
.products-container {
    padding: 2rem 5%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface-dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Search Modal */
#search-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#search-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* PDF Modal */
#pdf-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#pdf-modal.active {
    opacity: 1;
    pointer-events: all;
}
#pdf-modal .modal-content {
    background: var(--surface-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 90%;
}

.search-box {
    width: 80%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary);
    color: var(--text-light);
    outline: none;
    font-family: inherit;
}

.close-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

/* Sticky Footer Menu */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    z-index: 50;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    gap: 0.3rem;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-item:hover, .footer-item.active {
    color: var(--primary-light);
}

.footer-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Contact Footer */
.main-footer {
    padding: 4rem 5% 6rem 5%;
    background: var(--surface-dark);
    margin-top: 4rem;
    text-align: center;
}

.main-footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

/* Category Mobile Menu */
#category-menu-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 0;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#category-menu-modal.active {
    opacity: 1;
    pointer-events: all;
}

.categories-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 80%;
    max-width: 400px;
    align-items: center;
}

.categories-mobile .cat-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.close-menu {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}
.search-dropdown.hidden {
    display: none;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.search-result-item:hover {
    background: rgba(255,255,255,0.05);
}
.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}
.search-result-info h4 {
    margin: 0;
    font-size: 1rem;
}
.search-result-info p {
    margin: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff; /* Ensure white background behind transparent images */
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.slide-img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}
.slider-prev {
    left: 10px;
}
.header-category-info {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}
.header-category-info.hidden {
    display: none !important;
}
/* PDF Export Styles */
.pdf-export-container {
    background: #fff;
    color: #333;
    width: 210mm; /* A4 width */
    font-family: 'Outfit', sans-serif;
}
.pdf-cover {
    height: 297mm; /* A4 height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
}
.pdf-cover h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}
.pdf-cover h2 {
    font-size: 32px;
    color: #555;
}
.pdf-page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    background: #f5f5f5;
    box-sizing: border-box;
    page-break-before: always;
}
.pdf-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.pdf-page-header h3 {
    margin: 0;
    font-size: 18px;
    color: #222;
}
.pdf-order-btn {
    background: #8b5cf6; /* purple */
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.pdf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pdf-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    page-break-inside: avoid;
}
.pdf-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #bbb;
    border-radius: 4px;
    margin-bottom: 10px;
}
.pdf-card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 5px 0;
    color: #111;
}
.pdf-card-sku {
    font-size: 12px;
    color: #777;
    margin: 2px 0;
}
.pdf-card-price {
    font-size: 16px;
    color: #10b981; /* green */
    font-weight: 700;
    margin: 5px 0 0;
}

/* Desktop Navigation Menu below Header */
.desktop-nav {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 0 5%;
}

.desktop-nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.desktop-nav-item {
    position: relative;
}

.desktop-nav-link {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.desktop-nav-link:hover,
.desktop-nav-item:hover .desktop-nav-link,
.desktop-nav-item.active .desktop-nav-link {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Dropdown Menu for Subcategories with animations */
.desktop-dropdown {
    display: block;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-dark);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

/* Display dropdown on hover */
.desktop-nav-item:hover .desktop-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.desktop-dropdown-link {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.desktop-dropdown-link:hover,
.desktop-dropdown-item.active .desktop-dropdown-link {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Hide/Show overrides */
@media (min-width: 768px) {
    .sticky-footer {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .desktop-nav {
        display: none !important;
    }
}
