/* Material Design 3 Custom Styles */
:root {
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #21005D;
    --md-sys-color-secondary: #625B71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-surface: #FFFBFE;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-on-surface-variant: #49454F;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--md-sys-color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: visible;
    margin-bottom: 0;
}

.hero-banner .hero-slide,
.hero-banner .hero-video-container {
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 3rem 2rem 2rem;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
}

/* Hero Search */
.hero-search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    padding: 0 2rem;
    z-index: 10001;
}

.hero-search-wrapper {
    position: relative;
    width: 100%;
}

.hero-search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 2rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.hero-search-input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.hero-search-input::placeholder {
    color: #999;
}

.hero-search-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--md-sys-color-primary);
    pointer-events: none;
    font-size: 1.75rem;
}

.hero-search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 10000;
}

.hero-search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    cursor: pointer;
    gap: 1rem;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
    background-color: #f5f5f5;
}

.search-suggestion-icon {
    font-size: 1.5rem;
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
}

.search-suggestion-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}

.search-suggestion-name {
    font-size: 1rem;
    font-weight: 500;
}

.search-suggestion-code {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}

.search-suggestion-type {
    font-size: 0.75rem;
    color: var(--md-sys-color-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-suggestion-price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
    margin-left: auto;
}

.search-suggestion-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
}

/* Responsive Hero Search */
@media (max-width: 768px) {
    .hero-search-container {
        max-width: 90%;
        padding: 0 1rem;
    }

    .hero-search-input {
        padding: 1rem 3rem 1rem 1.5rem;
        font-size: 1.125rem;
    }

    .hero-search-icon {
        right: 1.5rem;
        font-size: 1.5rem;
    }

    .search-suggestion-item {
        padding: 0.875rem 1.25rem;
    }

    .search-suggestion-name,
    .search-suggestion-price {
        font-size: 0.95rem;
    }
}

/* Product Grid */
.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f5f5f5;
}

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

.product-name {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--md-sys-color-on-surface);
}

.product-category {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    margin-top: auto;
}

/* Product Detail */
.product-detail {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

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

.product-gallery {
    position: relative;
}

.product-main-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.product-main-image {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    padding: 0;
}

.image-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.image-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.image-nav-btn .material-icons {
    font-size: 24px;
    color: var(--md-sys-color-primary);
}

.image-nav-prev {
    left: 10px;
}

.image-nav-next {
    right: 10px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.product-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.product-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.product-thumbnail.active {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.2);
}

.product-info-detail h1 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 1rem;
}

.product-price-detail {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    margin: 1rem 0;
}

.product-description {
    margin: 0;
    line-height: 1.8;
    color: var(--md-sys-color-on-surface-variant);
}

/* Product Tabs */
.product-tabs-container {
    margin-top: 2rem;
}

.product-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    gap: 0;
}

.product-tab {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

/* Tab 1: Descripción - Negro */
.product-tab[data-tab="description"] {
    background-color: #000000;
    border-bottom-color: #000000;
}

.product-tab[data-tab="description"]:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Tab 2: Descripción Técnica - Naranja */
.product-tab[data-tab="technical"] {
    background-color: #FF9800;
    border-bottom-color: #FF9800;
}

.product-tab[data-tab="technical"]:hover {
    background-color: rgba(255, 152, 0, 0.8);
}

/* Tab 3: Vídeos - Verde */
.product-tab[data-tab="videos"] {
    background-color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.product-tab[data-tab="videos"]:hover {
    background-color: rgba(76, 175, 80, 0.8);
}

.product-tab.active {
    opacity: 1;
}

.product-tab-content {
    display: none;
    padding: 2rem 0;
    min-height: 200px;
}

.product-tab-content.active {
    display: block;
}

.product-tab-content a[download]:hover {
    background-color: #5a4290 !important;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.whatsapp-button:hover {
    background-color: #20BA5A;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-name {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Header Search */
.nav-search-container {
    position: relative;
    margin: 0 1rem;
}

.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 280px;
    padding: 0.875rem 3rem 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background-color: #f5f5f5;
    color: var(--md-sys-color-on-surface);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.header-search-input::placeholder {
    color: #999;
}

.header-search-input:focus {
    width: 350px;
    background-color: #ffffff;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.2);
}

.header-search-icon {
    position: absolute;
    right: 1rem;
    color: #666;
    font-size: 1.5rem;
    pointer-events: none;
}

.header-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    min-width: 300px;
}

.header-search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    cursor: pointer;
    gap: 1rem;
}

.header-search-suggestion-item:last-child {
    border-bottom: none;
}

.header-search-suggestion-item:hover,
.header-search-suggestion-item.active {
    background-color: #f5f5f5;
}

.header-search-suggestion-icon {
    font-size: 1.5rem;
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
}

.header-search-suggestion-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}

.header-search-suggestion-name {
    font-size: 1rem;
    font-weight: 500;
}

.header-search-suggestion-code {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}

.header-search-suggestion-type {
    font-size: 0.75rem;
    color: var(--md-sys-color-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-search-suggestion-price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
}

.header-search-suggestion-empty {
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .nav-search-container {
        order: -1;
        width: 100%;
        margin: 0.5rem 0;
    }

    .header-search-wrapper {
        width: 100%;
    }

    .header-search-input {
        width: 100%;
        padding: 0.875rem 3rem 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .header-search-input:focus {
        width: 100%;
    }

    .header-search-icon {
        right: 1.25rem;
        font-size: 1.5rem;
    }

    .header-search-suggestions {
        min-width: 100%;
        left: 0;
        right: 0;
    }
}

/* Footer */
.footer {
    background-color: #1C1B1F;
    color: #E7E0EC;
    margin-top: 4rem;
}

.footer-menu-section {
    background-color: #252329;
    padding: 3rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-menu-column {
    min-width: 0;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 0.75rem;
    list-style: none;
}

.footer-menu-list li:last-child {
    margin-bottom: 0;
}

.footer-menu-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: opacity 0.3s ease;
    display: block;
    line-height: 1.6;
}

.footer-menu-list a:hover {
    opacity: 0.8;
    padding-left: 0.25rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .footer-menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-menu-section {
        padding: 2rem 1rem;
    }
    
    .footer-menu-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        padding: 1.5rem 1rem;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .admin-container {
        padding: 1rem;
    }
}

/* Admin Layout Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.admin-sidebar {
    width: 250px;
    background-color: #1C1B1F;
    color: #E7E0EC;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #FFFFFF;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #E7E0EC;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #FFFFFF;
}

.sidebar-nav .nav-link .material-icons {
    font-size: 24px;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #E7E0EC;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar-footer .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background-color: #FFFFFF;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.user-info {
    color: var(--md-sys-color-on-surface-variant);
}

.admin-content {
    flex: 1;
    padding: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E7E0EC;
}

.admin-table th {
    background-color: #F5F5F5;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.admin-table tr:hover {
    background-color: #F5F5F5;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
    background-color: #5A3E91;
    box-shadow: 0 2px 8px rgba(103, 80, 164, 0.3);
}

.btn-danger {
    background-color: #B3261E;
    color: white;
}

.btn-danger:hover {
    background-color: #9B1F18;
}

.btn-secondary {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--md-sys-color-surface-variant);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
}

.form-control textarea {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert-error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 500;
    color: var(--md-sys-color-primary);
}

.stat-card p {
    margin: 0;
    color: var(--md-sys-color-on-surface-variant);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* Breadcrumbs Styles */
.breadcrumbs-container {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--md-sys-color-on-surface-variant);
}

.breadcrumbs li a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs li a:hover {
    color: #5a4290;
    text-decoration: underline;
}

.breadcrumbs li.active {
    color: var(--md-sys-color-on-surface-variant);
}

.breadcrumbs li.active a {
    color: var(--md-sys-color-on-surface-variant);
    cursor: default;
    pointer-events: none;
}

.breadcrumbs li.active a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .breadcrumbs-container {
        padding: 0.75rem 1rem;
    }
    
    .breadcrumbs {
        font-size: 0.8125rem;
    }
}

/* Parallax Section Styles */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Full Width Products and Categories Sections */
.products-section,
.categories-section {
    position: relative;
    padding: 2rem 0;
    width: 100%;
}

.products-section .container,
.categories-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.products-section > .container > h2,
.categories-section > .container > h2 {
    position: relative;
    z-index: 1;
}

.products-grid,
.category-grid {
    position: relative;
    z-index: 1;
}

/* Sponsors Section */
.sponsors-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    width: 100%;
}

.sponsors-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--md-sys-color-on-surface);
    text-align: center;
    width: 100%;
}

.sponsors-section .container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    width: 600px;
    height: 250px;
    overflow: hidden;
}

.sponsor-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Category Grid for Index */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    user-select: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card.active {
    box-shadow: 0 4px 16px rgba(103, 80, 164, 0.3);
    border-color: var(--md-sys-color-primary);
    background-color: rgba(103, 80, 164, 0.05);
}

.category-card-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    overflow: hidden;
}

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

.category-card-content {
    padding: 0.75rem 1rem;
    text-align: center;
}

.category-card-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

/* Products Scroll Wrapper */
.products-scroll-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto 3rem;
}

.products-scroll-wrapper .products-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(103, 80, 164, 0.3) transparent;
}

.products-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.products-scroll-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.products-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.products-scroll-btn .material-icons {
    color: var(--md-sys-color-primary);
    font-size: 32px;
}

.products-scroll-left {
    left: -24px;
}

.products-scroll-right {
    right: -24px;
}

.products-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.products-scroll-wrapper .products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-scroll-wrapper .products-grid::-webkit-scrollbar-track {
    background: transparent;
}

.products-scroll-wrapper .products-grid::-webkit-scrollbar-thumb {
    background-color: rgba(103, 80, 164, 0.3);
    border-radius: 4px;
}

.products-scroll-wrapper .products-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(103, 80, 164, 0.5);
}

.products-scroll-wrapper .products-grid .product-card {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
}

.products-scroll-wrapper .products-grid .product-card.hidden {
    display: none;
}

/* Product Index Specific Styles */
.product-index .products-section {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 2rem 0;
}

.product-index .parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

.product-index .products-section > h1,
.product-index .products-section > div {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

.product-index-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.product-index-grid .product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-index-grid .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Accordion */
.category-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.category-accordion-item:last-child {
    border-bottom: none;
}

.category-accordion-link {
    display: block;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.category-accordion-link:hover {
    background-color: #f5f5f5;
}

.category-accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    font-size: inherit;
    font-family: inherit;
}

.category-accordion-button:hover {
    background-color: #f5f5f5;
}

.category-accordion-button.has-subcategories {
    cursor: pointer;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-left: 0.5rem;
}

.category-accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.category-accordion-content {
    background-color: #fafafa;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-subcategory-link {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-subcategory-link:hover {
    background-color: #f5f5f5;
}

/* Brand Filter Styles */
.brand-filter-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.brand-filter-item {
    border-bottom: 1px solid #e0e0e0;
}

.brand-filter-item:last-child {
    border-bottom: none;
}

.brand-filter-link {
    display: block;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
}

.brand-filter-link:hover {
    background-color: #f5f5f5;
}

.brand-filter-link.active {
    background-color: #f0f0f0;
    color: var(--md-sys-color-primary) !important;
}

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

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-card-image {
        height: 100px;
    }
    
    .category-card-image .material-icons {
        font-size: 40px !important;
    }
    
    .category-card-content {
        padding: 0.5rem 0.75rem;
    }
    
    .category-card-title {
        font-size: 0.875rem;
    }
    
    .products-scroll-wrapper {
        margin: 0 auto 3rem;
        padding: 0 3rem;
    }
    
    .products-scroll-wrapper .products-grid {
        gap: 1rem;
        padding: 0.5rem 0 1.5rem;
    }
    
    .products-scroll-wrapper .products-grid .product-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }
    
    .products-scroll-btn {
        width: 40px;
        height: 40px;
    }
    
    .products-scroll-btn .material-icons {
        font-size: 28px;
    }
    
    .products-scroll-left {
        left: 0.5rem;
    }
    
    .products-scroll-right {
        right: 0.5rem;
    }
    
    .product-index .products-section > div {
        grid-template-columns: 1fr !important;
    }
    
    .product-index-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sponsors-section .container {
        padding: 0 1rem;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .sponsor-item {
        width: 100%;
        max-width: 600px;
        height: 250px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .products-scroll-wrapper {
        padding: 0 3rem;
    }
    
    .products-scroll-wrapper .products-grid .product-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }
    
    .products-scroll-left {
        left: 0.5rem;
    }
    
    .products-scroll-right {
        right: 0.5rem;
    }
}

