/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design system colors - warm cream and earth tones */
:root {
    /* Light mode */
    --background: hsl(33, 12%, 96%);
    --foreground: hsl(25, 15%, 20%);
    --card: hsl(33, 12%, 98%);
    --card-foreground: hsl(25, 15%, 20%);
    --primary: hsl(158, 20%, 25%);
    --primary-foreground: hsl(33, 12%, 96%);
    --secondary: hsl(42, 15%, 88%);
    --secondary-foreground: hsl(25, 15%, 20%);
    --muted: hsl(35, 10%, 92%);
    --muted-foreground: hsl(25, 10%, 45%);
    --accent: hsl(35, 25%, 85%);
    --accent-foreground: hsl(25, 15%, 20%);
    --border: hsl(35, 8%, 88%);
    --input: hsl(35, 8%, 88%);
    --ring: hsl(158, 20%, 25%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

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

/* Smooth transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Warm glow effect */
.warm-glow {
    box-shadow: 0 10px 40px -10px hsl(var(--primary) / 0.15);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(252, 251, 249, 0.95);
    border-bottom: 1px solid var(--border);
}

.announcement-bar {
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.nav-container {
    padding: 1rem 0;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

/* Dropdown styles */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 200px;
}

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

.dropdown-content {
    padding: 1rem;
}

#categories-dropdown .dropdown-content {
    padding: 1rem;
}


.dropdown-category {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.dropdown-category:hover {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
}
/* Hover para Shop más visible */
#shop-trigger:hover {
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem; /* ajustar espacio interno */
}


/* Contenedor de búsqueda */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input oculto por defecto */
.search-input {
    width: 0;
    padding: 0;
    opacity: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    margin-right: 8px;
}

/* Input visible */
.search-input.visible {
    width: 200px;
    padding: 4px 8px;
    opacity: 1;
}

/* Suggestions dropdown */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.suggestions-box.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}


/* Define .hidden para admin-dropdown usando opacity y visibility */
#admin-dropdown.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* para que no interfiera el hover */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#admin-dropdown .nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

#admin-dropdown .nav-link:hover {
    background-color: var(--accent);
    color: var(--primary);
}


/* Por defecto está oculto */
#account-menu {
    position: absolute;
    top: 100%; /* justo debajo del botón */
    right: 0; /* alineado a la derecha del contenedor padre */
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    padding: 0.5rem 0;
}

#account-menu.show {
    display: flex !important;
    animation: fadeInDropdown 0.2s ease-in-out forwards;
}

@keyframes fadeInDropdown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#account-menu a,
#account-menu button {
    all: unset;
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--foreground);
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

#account-menu a:hover,
#account-menu button:hover {
    background-color: var(--accent);
    color: var(--primary);
}
#account-menu {
    overflow: hidden;
}
#account-menu a,
#account-menu button {
    padding: 0.5rem 1rem;
    text-align: left;
    margin: 0;
}



/* Cuando tiene clase 'show' se muestra */
#account-menu.show {
    display: block !important;
}


.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--foreground);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--primary);
}
a.icon-btn {
  display: flex;              /* igual que button */
  align-items: center;
  justify-content: center;
  padding: 0.5rem;            /* igual que button */
  cursor: pointer;
  color: var(--foreground);
  background: none;
  border: none;
  text-decoration: none;      /* para quitar el subrayado del link */
  transition: color 0.3s ease;
}
a.icon-btn:hover {
  color: var(--primary);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 100;
}
.mobile-nav.show {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--background) 100%);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero-text {
    max-width: 32rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px -10px hsl(158, 20%, 25%, 0.15);
}

.hero-btn:hover {
    background-color: hsl(158, 20%, 22%);
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, rgba(252, 251, 249, 0.8), transparent);
}

/* Bestsellers Section */
.bestsellers {
    padding: 5rem 0;
    background-color: var(--background);
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.view-all-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-btn:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    box-shadow: 0 10px 40px -10px hsl(158, 20%, 25%, 0.15);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-name {
    color: var(--primary);
}

.product-price {
    color: var(--muted-foreground);
    font-weight: 300;
}

/* Featured Collection CTA */
.featured-cta {
    text-align: center;
    background-color: var(--secondary);
    border-radius: 1rem;
    padding: 3rem;
}

.featured-title {
    font-size: 1.875rem;
    font-weight: 300;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.featured-description {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.featured-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Category Page Styles */
.category-hero {
    background-color: var(--muted);
    padding: 4rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.category-hero-content {
    text-align: left;
    max-width: 800px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .category-title {
        font-size: 3.5rem;
    }
}

.category-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
}

.category-main {
    padding: 3rem 0;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .category-layout {
        grid-template-columns: 280px 1fr;
        gap: 4rem;
    }
}

/* Sidebar Styles */
.category-sidebar {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--foreground);
}

.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.filter-option input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 500;
}
/* Inputs de precio */
.filter-options input[type="number"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--foreground);
    background-color: var(--card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-options input[type="number"]::placeholder {
    color: var(--muted-foreground);
}

.filter-options input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1); /* sutil */
}

/* Botón aplicar */
#apply-price-filter {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#apply-price-filter:hover {
    background-color: #0056b3; /* un poco más oscuro para hover */
    transform: translateY(-1px);
}

#apply-price-filter:active {
    transform: translateY(0);
}

/* Products Grid */
.category-content {
    flex: 1;
}

.category-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.products-count {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.sort-select {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--foreground);
    cursor: pointer;
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.category-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .category-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Category Product Card - Similar to existing but with some tweaks */
.category-product-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-product-card:hover {
    box-shadow: 0 10px 40px -10px hsl(158, 20%, 25%, 0.15);
    transform: translateY(-2px);
}

.category-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--muted);
}

.category-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--card);
    color: var(--foreground);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-product-info {
    padding: 1.25rem;
}

.category-product-name {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

.category-product-card:hover .category-product-name {
    color: var(--primary);
}

.category-product-price {
    color: var(--muted-foreground);
    font-weight: 400;
    font-size: 1.1rem;
}

/* Loading and Empty States */
.loading-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--muted-foreground);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-state-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state-icon {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.empty-state-btn {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-btn:hover {
    background-color: hsl(158, 20%, 22%);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1023px) {
    .category-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .category-products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sort-select {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

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

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

.footer-section ul li a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.newsletter p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--background);
    color: var(--foreground);
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: hsl(158, 20%, 22%);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* Product Page Styles */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #f97316;
    text-decoration: none;
}

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

.breadcrumb span {
    color: #6c757d;
}

.product-page {
    padding: 2rem 0;
    background: #fafafa;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.main-image {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.image-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.image-thumbnails .thumbnail:last-child:nth-child(odd):not(:first-child) {
    grid-column: 1 / 2;
    justify-self: center;
    width: 50%;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail.active {
    border-color: #f97316;
}

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

img {
    user-select: none;
    -webkit-user-drag: none;
}

.thumbnail {
    cursor: default !important;
}
.thumbnail img {
    cursor: default !important;
}

.product-info {
    position: sticky;
    top: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    color: #fbbf24;
}

.review-count {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.product-title {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #1f2937;
    line-height: 1.2;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.product-options {
    margin-bottom: 2rem;
}

/* Format selector */
.format-selector {
    margin-bottom: 1.5rem;
}

.format-selector label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.format-options {
    display: flex;
    gap: 0.75rem;
}

.format-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.format-option:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.format-option.active {
    border-color: #f97316;
    background: #fff7ed;
    color: #f97316;
}

.format-icon {
    font-size: 1.5rem;
}

.format-text {
    font-weight: 600;
}

.color-selector,
.wiring-selector {
    margin-bottom: 1.5rem;
}

.color-selector label,
.wiring-selector label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.color-options {
    display: flex;
    gap: 0.5rem;
}

.color-option {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-option.active {
    border-color: #1f2937;
    transform: scale(1.1);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.wiring-options {
    display: flex;
    gap: 0.5rem;
}

.option-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.option-btn.active {
    background: #1f2937;
    color: white;
    border-color: #1f2937;
}

.add-to-cart-btn {
    width: 100%;
    background: #059669;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
}

.add-to-cart-btn:hover {
    background: #047857;
}

.delivery-info {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.product-highlights {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.product-highlights p {
    margin: 0.5rem 0;
}

.product-details {
    margin-top: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-details h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 2rem 0;
    color: #1f2937;
}

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

.detail-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
}

.detail-item p {
    color: #1f2937;
    margin: 0;
}

.product-description {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.product-description h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.reviews-section {
    margin-top: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.reviews-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    color: #1f2937;
}

.write-review-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.write-review-btn:hover {
    background: #ea580c;
}
.review-response {
  position: relative;
  margin-left: 20px;
  margin-top: 15px;
  padding-left: 20px;
  padding: 12px 16px;
  background-color: #f8fafc;
  border-radius: 8px;
}

.review-connector {
  position: absolute;
  left: -10px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #cbd5e1;
  border-radius: 1px;
}

.review-horizontal-line {
  position: absolute;
  left: -10px;
  top: 20px;
  width: 15px;
  height: 2px;
  background-color: #cbd5e1;
  border-radius: 1px;
}

.reply-btn {
  display: inline-block;
  margin-top: 10px;
  position: relative;
  z-index: 9999;
  background-color: #22c55e;
  color: #fff;
  padding: 0.75rem 1.5rem; /* importante para que sea visible */
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.reply-btn:hover {
  background-color: #16a34a;
}


.delete-btn {
  background-color: #ef4444;
  color: #fff;
  margin-left: 8px;
}

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.average-rating {
    text-align: center;
}

.big-rating {
    font-size: 3rem;
    font-weight: 300;
    color: #1f2937;
    line-height: 1;
}

.stars-large {
    display: flex;
    justify-content: center;
    color: #fbbf24;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.total-reviews {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.rating-bar-fill {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-progress {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1.5rem;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.reviewer-info h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    color: #1f2937;
}

.review-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.review-rating {
    color: #fbbf24;
}

.review-title {
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating .star.active,
.star-rating .star:hover {
    color: #fbbf24;
}

#review-form button[type="submit"] {
    width: 100%;
    background: #f97316;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#review-form button[type="submit"]:hover {
    background: #ea580c;
}

/* Responsive Design for Product Page */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 1rem 0;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .image-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}
* Legal Pages Styles */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #ddd;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}
.last-updated {
  color: #666;
  font-style: italic;
  font-size: 0.95rem;
}

.legal-content {
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 40px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e1e8ed;
}
.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d2691e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e8ed;
}

.legal-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 25px 0 15px 0;
}

.legal-section p {
  color: #333;
  margin-bottom: 15px;
  font-size: 1rem;
}
.legal-section ul {
  margin: 20px 0;
  padding-left: 25px;
}

.legal-section li {
  color: #333;
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-section strong {
  color: #d2691e;
  font-weight: 600;
}

/* Responsive design for legal pages */
@media (max-width: 768px) {
  .legal-container {
    padding: 20px 15px;
  }
  
  .legal-header h1 {
    font-size: 2rem;
  }
  
  .legal-section {
    padding: 20px;
    margin-bottom: 25px;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-section h3 {
    font-size: 1.1rem;
  }
}