/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Neon Tech Blue Theme */
    --primary-color: #00d4ff;
    --primary-dark: #00a8cc;
    --secondary-color: #0099ff;
    --success-color: #00d4ff;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark: #1c1c1c;
    --dark-light: #2a2a2a;
    --gray: #888888;
    --gray-light: #444444;
    --gray-lighter: #252525;
    --white: #ffffff;
    --bg-dark: #1c1c1c;
    --bg-darker: #161616;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.5);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* ===== Header & Navigation ===== */
.header {
    background: var(--dark-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.header .search-section {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Header Top - Logo Section */
.header-top {
    background: var(--bg-darker);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.header-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hire Me Button in Top Header */
.btn-hire-top {
    background: var(--primary-color);
    color: var(--dark);
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-hire-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

.btn-hire-top i {
    font-size: 1rem;
}

/* Navigation Bar - Menu Section */
.navbar {
    background: var(--dark-light);
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 2rem;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    flex: 1;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 1rem 0;
    position: relative;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Search Section Below Navigation */
.search-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--gray-light);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-section.active {
    max-height: 200px;
    padding: 1.5rem 0;
    opacity: 1;
}

.search-form-main {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--dark-light);
    border: 1px solid var(--gray-light);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-icon {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.search-input-main {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    outline: none;
}

.search-input-main::placeholder {
    color: var(--gray);
}

.search-close-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-close-btn:hover {
    color: var(--white);
}

.search-btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

/* Search Menu Item */
.search-menu-item {
    margin-left: auto;
    list-style: none;
}

.search-toggle-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
}

.search-toggle-link i {
    font-size: 1.25rem;
}

.search-toggle-link::after {
    display: none !important;
}

/* Hide search text on desktop, show only icon */
@media (min-width: 769px) {
    .search-menu-item {
        position: absolute;
        right: 0;
    }
    
    .search-toggle-link {
        padding: 1rem;
    }
    
    .search-toggle-link:hover {
        color: var(--primary-color);
    }
    
    .search-menu-item a {
        font-size: 0;
    }
    
    .search-menu-item a i {
        font-size: 1.25rem;
    }
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-light);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    border: 1px solid var(--gray-light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
}

.dropdown-menu li a:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6), var(--shadow-md);
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-buy {
    background: var(--primary-color);
    color: var(--dark);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.btn-buy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

/* ===== Sections ===== */
.categories,
.products-section,
.features {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--white);
}

/* ===== Category Grid ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3), var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-icon i {
    font-size: 3rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.category-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: var(--gray-lighter);
    color: var(--gray);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

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

.product-card {
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-light);
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-darker);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-featured {
    background: var(--warning-color);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    transition: transform 0.3s ease;
}

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

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

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

/* ===== Features Grid ===== */
.features {
    background: var(--bg-darker);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature-card p {
    color: var(--gray);
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3rem 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.page-header h1 i {
    font-size: 2.5rem;
}

/* ===== Subcategory Filter ===== */
.subcategory-filter {
    background: var(--dark-light);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--gray-light);
}

.filter-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    background: var(--bg-dark);
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

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

/* ===== Products Controls ===== */
.products-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--dark-light);
    color: var(--white);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    background: var(--dark-light);
    color: var(--white);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    color: var(--white);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--gray-light);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-light);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-light);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-light);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: var(--dark-light);
    color: var(--white);
}

.newsletter-form button {
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--gray-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== More Products Section ===== */
.more-products-section {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-all-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

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

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.load-more-btn:hover {
    transform: translateY(-2px);
}

/* ===== Loading & Messages ===== */
.loading,
.no-products,
.error {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
    color: var(--gray);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error {
    color: var(--danger-color);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .nav-menu {
        gap: 3rem;
    }
}

/* Tablet Landscape & Small Desktop (1024px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .more-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet Portrait & Landscape (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 25px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .navbar {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        background: var(--dark-light);
    }
    
    .nav-menu {
        gap: 1.5rem;
        display: flex;
        flex-direction: row;
        padding: 0;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.875rem 0;
    }
    
    .logo a {
        font-size: 1.35rem;
    }
    
    .btn-hire-top {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .search-menu-item {
        margin-left: 0;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .products-grid,
    .more-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-controls {
        gap: 1rem;
    }
    
    .search-box {
        min-width: 300px;
    }
    
    /* Product Detail Page - Tablet */
    .product-detail-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .product-title-main {
        font-size: 2rem;
    }
    
    .product-price-main {
        font-size: 2rem;
    }
    
    .gallery-thumbnails {
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-top {
        padding: 0.75rem 0;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .btn-hire-top {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-hire-top i {
        font-size: 0.9rem;
    }
    
    /* Hide navbar by default on mobile */
    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--dark-light);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .nav-wrapper {
        justify-content: flex-start;
        padding: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        width: 100%;
        margin: 0;
        justify-content: flex-start;
    }
    
    .nav-menu a {
        padding: 0.75rem 0;
    }
    
    .search-menu-item {
        margin-left: 0;
        width: 100%;
    }
    
    .search-form-main {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-all-btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-grid,
    .products-grid,
    .more-products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-controls {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .load-more-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .categories,
    .products-section,
    .more-products-section,
    .features {
        padding: 2rem 0;
    }
    
    .category-card,
    .product-card {
        margin: 0;
    }
    
    .more-products-grid {
        gap: 1.5rem;
    }
}

/* ===== Product Detail Page ===== */
.product-page {
    padding: 2rem 0 4rem;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.gallery-main {
    position: relative;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-darker);
    aspect-ratio: 1;
}

.gallery-main-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide.active {
    opacity: 1;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-darker);
}

.gallery-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.gallery-zoom:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: scale(1.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

.gallery-nav:hover {
    background: rgba(0, 212, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-light) var(--bg-dark);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 3px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--bg-darker);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-category-badge {
    background: var(--gray-lighter);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0;
}

.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.rating-stars .far.fa-star {
    color: var(--gray-light);
}

.rating-text {
    color: var(--white);
    font-weight: 600;
}

.product-price-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.product-price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-description-full {
    padding: 1.5rem 0;
}

.product-description-full h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.product-description-full p {
    color: var(--gray);
    line-height: 1.8;
    white-space: pre-wrap;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-buy-large {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    justify-content: center;
}

.btn-share {
    padding: 1rem 2rem;
    border: 2px solid var(--gray-light);
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--dark-light);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
}

.meta-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-nav:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Product Page Responsive */
@media (max-width: 968px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-title-main {
        font-size: 2rem;
    }
    
    .product-price-main {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 1rem 0 2rem;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .gallery-nav.prev {
        left: 0.5rem;
    }
    
    .gallery-nav.next {
        right: 0.5rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title-main {
        font-size: 1.75rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-buy-large,
    .btn-share {
        width: 100%;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-nav.prev {
        left: 1rem;
    }
    
    .lightbox-nav.next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
