:root {
    --primary: #1a3a52;
    --secondary: #d4a574;
    --accent: #c9896b;
    --bg-light: #faf8f5;
    --bg-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #6b6b6b;
    --border: #e5e5e5;
    --shadow: rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-top {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.admin-link {
    padding: 0.5rem 1.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Header Banner with Image + Games */
.header-banner {
    position: relative;
    overflow: hidden;
}

.header-image-container {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.games-overlay {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.95) 0%, rgba(212, 165, 116, 0.95) 100%);
    color: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.games-label {
    font-weight: 600;
    margin-right: 1rem;
    display: inline-block;
}

.games-links {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.game-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.game-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Keep old games-section class for compatibility */
.games-section {
    background: transparent;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2000;
    transition: all 0.3s ease;
}

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

.menu-toggle:hover span {
    background: var(--secondary);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Categories Navigation - Sidebar (Mobile) / Horizontal (Desktop) */
.nav-categories {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1500;
}

/* Desktop: Show as horizontal menu with premium design */
@media (min-width: 769px) {
    .nav-categories {
        position: static;
        width: auto;
        height: auto;
        pointer-events: all;
        z-index: auto;
        background: linear-gradient(135deg, #1a3a52 0%, #2d5873 50%, #1a3a52 100%);
        border-top: 3px solid var(--secondary);
        border-bottom: 3px solid var(--secondary);
        padding: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    /* Subtle animated background pattern */
    .nav-categories::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 200%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(212, 165, 116, 0.1) 50%, 
            transparent 100%);
        animation: shimmer 8s infinite;
    }
    
    @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    .categories-overlay {
        display: none;
    }
    
    .categories-sidebar {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow-y: visible;
    }
    
    .categories-header {
        display: none;
    }
    
    .categories-list {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0.5rem 2rem;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
        list-style: none;
    }
    
    .categories-list li {
        width: auto;
        border-bottom: none;
        list-style: none;
    }
    
    .categories-list a {
        padding: 0.6rem 1.5rem;
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
        border: 2px solid rgba(212, 165, 116, 0.3);
        width: auto;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--primary);
        letter-spacing: 0.3px;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }
    
    /* Simple hover - just background color change */
    .categories-list a:not(.active):hover {
        background: linear-gradient(135deg, #1a3a52 0%, #2d5873 100%);
        color: white;
        border-color: var(--secondary);
    }
    
    .categories-list a.active {
        background: linear-gradient(135deg, var(--primary) 0%, #2d5873 100%) !important;
        color: white !important;
        border-color: var(--secondary) !important;
        box-shadow: 0 4px 15px rgba(26, 58, 82, 0.4) !important;
    }
    
    .categories-list a.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 20%;
        right: 20%;
        height: 3px;
        background: var(--secondary);
        border-radius: 2px;
    }
    
    .categories-list a.home-link {
        background: linear-gradient(135deg, var(--secondary) 0%, #d4a574 100%);
        color: white;
        border-color: rgba(255, 255, 255, 0.4);
        font-weight: 700;
    }
    
    .categories-list a.home-link:not(.active):hover {
        background: linear-gradient(135deg, #1a3a52 0%, #2d5873 100%);
        border-color: var(--secondary);
    }
    
    .categories-list a.home-link.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
        color: white !important;
        box-shadow: 0 6px 18px rgba(26, 58, 82, 0.4) !important;
    }
    
    /* Icon styling for home link */
    .categories-list a.home-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Mobile: Sidebar overlay */
@media (max-width: 768px) {
    .categories-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
        transition: background 0.3s ease;
        pointer-events: none;
    }

    .nav-categories.active .categories-overlay {
        background: rgba(0, 0, 0, 0.5);
        pointer-events: all;
    }

    .categories-sidebar {
        position: absolute;
        top: 0;
        left: -300px;
        width: 280px;
        max-width: 85vw;
        height: 100%;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transition: left 0.3s ease;
        pointer-events: all;
        z-index: 1600;
    }

    .nav-categories.active .categories-sidebar {
        left: 0;
    }
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.categories-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.close-menu {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    line-height: 1;
}

.close-menu:hover {
    transform: rotate(90deg);
}

/* Hide categories header and close button on desktop */
@media (min-width: 769px) {
    .categories-header,
    .close-menu {
        display: none !important;
    }
}

/* Mobile sidebar list styles */
@media (max-width: 768px) {
    .categories-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .categories-list li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .categories-list a {
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
        padding: 1rem 1.5rem;
        background: white;
        border: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .categories-list a:hover {
        background: var(--bg-light);
        padding-left: 2rem;
    }

    .categories-list a.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: white;
        border-left: 4px solid var(--secondary);
    }

    .categories-list a.home-link {
        background: var(--bg-light);
        font-size: 1.1rem;
    }

    .categories-list a.home-link:hover {
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        color: white;
    }

    .categories-list a.home-link.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: white;
    }
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.hero-section {
    background: var(--bg-white);
    padding: 2rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Products Grid */
.products-section {
    margin-top: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.product-image {
    width: 100%;
    max-width: 100%;
    height: 300px;
    min-height: 300px;
    object-fit: cover;
    object-position: center 60%;
    background: #f0f0f0;
    display: block;
}

/* Asegurar que el div contenedor también tenga altura */
.product-card > div:first-child {
    min-height: 300px;
    max-width: 100%;
    background: #f0f0f0;
    overflow: hidden;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-description {
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description h2,
.product-description h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

.product-description iframe {
    max-width: 100%;
}

.product-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.category-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Product Detail Page */
.product-detail {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    max-width: 100%;
    overflow-x: hidden;
}

.product-detail iframe {
    max-width: 100%;
    border-radius: 8px;
}

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

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary);
}

.product-downloads {
    margin-top: 2rem;
}

.download-link {
    display: inline-block;
    margin: 0.5rem 0.5rem 0 0;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.download-link:hover {
    background: var(--secondary);
}

.related-products {
    margin-top: 4rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* Footer links with better contrast */
.footer a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Admin Panel */
.admin-panel {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.admin-nav button {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.admin-nav button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-nav button:hover {
    color: var(--secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

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

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

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

.btn-danger:hover {
    background: #c82333;
}

/* Item Lists */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Category checkboxes */
.category-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

/* Pagination controls */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
}

.pagination button:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination span {
    font-weight: 600;
    color: var(--primary);
}

.pagination select {
    cursor: pointer;
}

.pagination select:hover {
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .pagination > div {
        width: 100%;
        justify-content: center;
    }
    
    .pagination button {
        flex: 1;
        min-width: 70px;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .products-grid {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .games-overlay {
        padding: 0.5rem 0;
    }
    
    .games-label {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .games-links {
        display: flex;
        gap: 0.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-link {
        padding: 0.3rem 0.75rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .header-main {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Reduce header spacing on mobile */
    .header-top {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    /* Reduce header image height on mobile */
    .header-image-container {
        height: 80px !important;
    }
    
    /* Hide header image if empty to save space */
    .header-image-container:empty {
        display: none !important;
        height: 0 !important;
    }
    
    .header-banner:has(.header-image-container[style*="display: none"]) {
        display: none;
    }
    
    /* Hero section - smaller fonts */
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Section titles - smaller */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    /* Products section - less spacing */
    .products-section {
        margin-top: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Product cards - more compact */
    .product-card {
        /* NO padding on mobile - images need full width */
    }
    
    .product-image {
        height: 250px;
        min-height: 250px;
    }
    
    .product-card > div:first-child {
        min-height: 250px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-info p {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-detail {
        padding: 1rem;
        border-radius: 8px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .product-gallery {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .main-image {
        width: 100%;
        max-width: 100%;
        height: 300px;
        object-fit: cover;
    }
    
    .thumbnail-list {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .product-description {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .product-description img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Footer - more compact */
    .footer {
        padding: 1.5rem 0;
        font-size: 0.875rem;
    }

    .admin-nav {
        flex-direction: column;
    }

    .admin-nav button {
        text-align: left;
    }
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem 0rem 2rem;
    background: var(--bg-white);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

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

.breadcrumbs li::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumbs .current {
    color: var(--text-light);
}

/* Lazy loading images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* WYSIWYG Editor */
.wysiwyg-toolbar {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-bottom: none;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-radius: 4px 4px 0 0;
}

.wysiwyg-btn {
    padding: 0.4rem 0.8rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
}

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

.wysiwyg-btn.active {
    background: var(--secondary);
    color: white;
}

.wysiwyg-editor {
    border: 1px solid var(--border);
    border-radius: 0 0 4px 4px;
    padding: 0.75rem;
    min-height: 150px;
    background: var(--bg-white);
    font-family: inherit;
}

.wysiwyg-editor:focus {
    outline: 2px solid var(--secondary);
}

.wysiwyg-editor iframe {
    max-width: 100%;
    border-radius: 8px;
}

.wysiwyg-container {
    margin-bottom: 1.5rem;
}

/* Backup section */
.backup-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.backup-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.backup-info {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.backup-info strong {
    color: var(--primary);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    animation: slideIn 0.5s ease-out;
}

.cookie-banner.bottom {
    bottom: 0;
}

.cookie-banner.top {
    top: 0;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.top {
    animation: slideInTop 0.5s ease-out;
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-message {
    flex: 1;
    min-width: 300px;
}

.cookie-message a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--secondary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-reject:hover {
    background: rgba(255,255,255,0.1);
}

.cookie-settings-btn {
    background: transparent;
    color: var(--secondary);
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* Product image zoom effect */
.product-gallery a {
    display: block;
    position: relative;
}

.main-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-gallery a:hover .main-image {
    transform: scale(1.03);
}
