/* Handsome Original Style - Minimalista Puro */
:root {
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f5f5f5;
    --medium-gray: #e8e8e8;
    --dark-gray: #999999;
    --accent-brown: #6D3F23;
    --accent-brown-light: #8a5030;
    --success: #4bb98c;
    --error: #dd7774;
    --warning: #dc8f38;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animación al scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

button {
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px;
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(245,245,245,0.5) 50%, rgba(235,235,235,0.45) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    will-change: background, box-shadow;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.51);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.header-center-left,
.header-center-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 10.4px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    white-space: nowrap;
}

.header-link:hover {
    color: var(--accent-brown);
    border-bottom-color: var(--accent-brown);
}

.logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 115px !important;
    width: auto !important;
    max-width: 400px !important;
    object-fit: contain !important;
}

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

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 350px;
    padding: 0.75rem 1.2rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    background: var(--light-gray);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-icon {
    font-size: 12.8px;
    color: var(--dark-gray);
}

.search-bar {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 11.2px;
    font-weight: 700;
    color: var(--black);
    outline: none;
}

.search-bar::placeholder {
    color: var(--dark-gray);
}

.search-wrapper:focus-within {
    border-color: var(--accent-brown);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(109, 63, 35, 0.1);
}

.search-wrapper:focus-within .search-icon {
    color: var(--accent-brown);
}

.cart-button, .admin-button, .logout-button {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    padding: 0.65rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 11.2px;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-button:hover, .admin-button:hover, .logout-button:hover {
    border-color: var(--accent-brown);
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 63, 35, 0.15);
}

.cart-button:active, .admin-button:active, .logout-button:active {
    transform: translateY(0px);
}

.logout-button {
    background: var(--accent-brown);
    color: var(--white);
    border-color: var(--accent-brown);
}

.logout-button:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.cart-button {
    position: relative;
}

.cart-icon {
    font-size: 14.4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-button {
    font-size: 14.4px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-brown);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--white);
}

/* ========== FILTERS ========== */
.filters-container {
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    padding: 1.5rem 0;
    margin: 0;
}

.filters {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--medium-gray);
    background: var(--white);
    border-radius: 0;
    cursor: pointer;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--black);
}

.filter-btn.active {
    background: var(--accent-brown);
    color: var(--white);
    border-color: var(--accent-brown);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

.products-section {
    margin-bottom: 2rem;
}

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

/* ========== PRODUCT CARD ========== */
.product-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
    cursor: pointer;
    will-change: transform;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }

.product-card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Contenedor de imagen con hover effects */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--light-gray);
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

/* Zoom suave para productos con 1 sola imagen */
.product-image-wrapper.single-image .product-image:hover {
    transform: scale(1.08);
}

/* Crossfade para productos con 2+ imágenes */
.product-image-wrapper.multi-image .product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-image-wrapper.multi-image:hover .product-image {
    opacity: 0;
}

.product-image-wrapper.multi-image:hover .product-image-hover {
    opacity: 1;
}

/* Mobile tap hover - replica el efecto hover en móvil */
.product-card.mobile-hover {
    border-color: var(--black);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product-card.mobile-hover .product-image-wrapper.single-image .product-image {
    transform: scale(1.08);
}

.product-card.mobile-hover .product-image-wrapper.multi-image .product-image {
    opacity: 0;
}

.product-card.mobile-hover .product-image-wrapper.multi-image .product-image-hover {
    opacity: 1;
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--accent-brown);
    color: var(--white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.add-to-cart-btn:hover {
    background: var(--accent-brown-light);
}

.add-to-cart-btn:active {
    opacity: 0.8;
}

.add-to-cart-btn.added {
    background: var(--success);
}

.empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dark-gray);
    font-size: 15px;
}

/* ========== DESTACADOS SECTION ========== */
.destacados-section {
    background: var(--black);
    padding: 0;
    margin: 0;
    text-align: center;
    border-bottom: none;
}

.destacados-content {
    max-width: 100%;
    margin: 0 auto;
}

.destacados-content > h2 {
    display: block;
    visibility: visible;
    opacity: 1;
    font-family: 'Roboto Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 2rem 0;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

/* ========== DESTACADOS TITLE (before products) ========== */
.destacados-title-section {
    background: var(--white);
    padding: 3rem 1rem 1.5rem;
    text-align: center;
}

.destacados-title-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    animation: categoriaFadeIn 0.8s ease forwards;
}

.destacados-title-content > h2 {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 3px;
    text-transform: none;
    color: #000000;
    margin: 0 auto;
    max-width: 1400px;
}

/* ========== PROMO SECTION ========== */
.promo-section {
    background: var(--white);
    padding: 4rem 1rem;
    margin: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.promo-content {
    max-width: 1400px;
    margin: 0 auto;
}

.promo-content p {
    font-family: 'Roboto Mono', monospace;
    color: var(--black);
    margin: 0;
    line-height: 1.6;
}

.promo-main {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.promo-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.5px;
    color: var(--dark-gray);
}

/* ========== NOVEDADES SECTION ========== */
.novedades-section {
    background: var(--white);
    padding: 4rem 1rem;
    margin: 3rem 0;
}

.novedades-section > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.novedades-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 3px;
    color: var(--black);
    margin: 0 auto 2rem auto;
    display: block;
    max-width: 600px;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    animation: categoriaFadeIn 0.8s ease forwards;
}

.novedades-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.novedades-grid .product-card {
    animation: fadeIn 0.3s ease-out;
    flex: 0 1 calc(25% - 1.5rem);
    min-width: 200px;
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--accent-brown);
    color: var(--white);
    border: 1px solid var(--accent-brown);
}

.btn-primary:hover {
    background: var(--accent-brown-light);
    border-color: var(--accent-brown-light);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--medium-gray);
}

.btn-secondary:hover {
    border-color: var(--black);
}

/* ========== CART SIDEBAR ========== */
.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--white);
    border-left: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 200;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.admin-sidebar.open {
    animation: slideIn 0.3s ease-out;
}

.cart-header {
    padding: 1.5rem;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 16px 0 0 0;
    text-align: center;
}

.cart-header h2 {
    font-size: 18px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.close-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    border-radius: 50%;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    line-height: 1;
}

.cart-header .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.close-btn:hover {
    color: var(--white);
    background: var(--accent-brown);
    border-color: var(--accent-brown);
    transform: rotate(90deg);
}

.product-detail-modal .close-btn {
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    font-size: 16px;
}

.product-detail-modal .close-btn:hover {
    background: var(--black);
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.cart-item-price {
    color: var(--accent-brown);
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 13px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--black);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quantity-btn:hover {
    background: var(--accent-brown);
    color: var(--white);
    border-color: var(--accent-brown);
    transform: scale(1.1);
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--error);
    font-size: 16px;
    padding: 0.2rem;
    margin-left: auto;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.remove-btn:hover {
    color: var(--white);
    background: var(--error);
    transform: scale(1.1);
}

.empty-cart {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--dark-gray);
    font-style: italic;
}

.cart-summary {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--white);
    border-radius: 0 0 0 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 14px;
}

.summary-row.discount-row {
    display: none;
    color: #27ae60;
    font-weight: 600;
}

.summary-row.discount-row.active {
    display: flex;
}

.coupon-section {
    margin: 0.8rem 0;
    padding: 0.8rem 0;
    border-top: 1px solid #e0e0e0;
}

.coupon-section label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.4rem;
}

.coupon-input-row {
    display: flex;
    gap: 0.5rem;
}

.coupon-input-row input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.coupon-btn {
    padding: 0.4rem 0.8rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.coupon-btn:hover, .coupon-btn:active {
    background: #555;
}

.coupon-msg {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1.2em;
}

.coupon-msg.success {
    color: #27ae60;
}

.coupon-msg.error {
    color: #e74c3c;
}

#couponDiscountRow {
    display: none;
    color: #27ae60;
    font-weight: 600;
}

#couponDiscountRow.active {
    display: flex;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-brown);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.checkout-btn:hover {
    background: var(--accent-brown-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(109, 63, 35, 0.3);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* ========== ADMIN SIDEBAR ========== */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--medium-gray);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

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

.admin-header {
    padding: 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header h2 {
    font-size: 20px;
}

.admin-content {
    padding: 1.5rem;
}

.admin-content h3 {
    font-size: 16px;
    margin: 1.5rem 0 1rem 0;
    font-weight: 700;
}

.admin-content input,
.admin-content select,
.admin-content textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: 0;
    font-size: 14px;
    background: var(--white);
    color: var(--black);
}

.admin-content input:focus,
.admin-content select:focus,
.admin-content textarea:focus {
    outline: none;
    border-color: var(--accent-brown);
}

.admin-content input::placeholder,
.admin-content select::placeholder,
.admin-content textarea::placeholder {
    color: var(--dark-gray);
}

.admin-products-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-product-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--medium-gray);
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.admin-product-info {
    flex: 1;
}

.admin-product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.admin-product-details {
    font-size: 12px;
    color: var(--dark-gray);
}

.admin-product-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 320px;
}

.admin-edit-btn,
.admin-delete-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
    background: var(--white);
}

.admin-edit-btn {
    color: var(--accent-brown);
    border-color: var(--accent-brown);
}

.admin-edit-btn:hover {
    background: var(--light-gray);
}

.admin-delete-btn {
    color: var(--error);
    border-color: var(--error);
}

.admin-delete-btn:hover {
    background: var(--light-gray);
}

.admin-btn-price {
    color: #e67e22;
    border-color: #e67e22;
}

.admin-btn-desc {
    color: #2980b9;
    border-color: #2980b9;
}

.admin-btn-img {
    color: #27ae60;
    border-color: #27ae60;
}

.admin-btn-price:hover {
    background: rgba(230, 126, 34, 0.1);
}

.admin-btn-desc:hover {
    background: rgba(41, 128, 185, 0.1);
}

.admin-btn-img:hover {
    background: rgba(39, 174, 96, 0.1);
}

/* ========== MODALS ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(15px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal h2 {
    font-size: 20px;
    margin-bottom: 1.5rem;
}

.modal input,
.modal select,
.modal textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 14px;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 3px rgba(109, 63, 35, 0.1);
}

.modal input::placeholder,
.modal select::placeholder,
.modal textarea::placeholder {
    color: var(--dark-gray);
}

.login-hint {
    color: var(--dark-gray);
    font-size: 13px;
    margin: 1rem 0;
    font-style: italic;
}

.error-message {
    color: var(--error);
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 13px;
}

.hint {
    font-size: 13px;
    color: var(--dark-gray);
    margin: 0.75rem 0;
    font-style: italic;
}

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

.edit-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 14px;
}

.edit-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.edit-form-actions button {
    flex: 1;
}

/* ========== PRODUCT DETAIL MODAL ========== */
.product-detail-modal {
    max-width: 900px !important;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    border: 1px solid var(--medium-gray);
}

.product-detail-image img#detailProductImage {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Thumbnails galería en modal detalle */
.detail-thumbnails {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
}

.detail-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.detail-thumb:hover {
    opacity: 0.9;
}

.detail-thumb.active {
    border-color: var(--accent-brown);
    opacity: 1;
}

/* Imágenes actuales en modal editar */
.edit-current-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.edit-img-thumb {
    position: relative;
    width: 80px;
    text-align: center;
}

.edit-img-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
}

.edit-img-thumb.is-principal img {
    border-color: var(--accent-brown);
}

.edit-img-badge {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-brown);
    margin-top: 2px;
    height: 14px;
}

.edit-img-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.edit-img-star {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.edit-img-star:hover,
.edit-img-star.active {
    color: var(--accent-brown);
}

.edit-img-remove {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--error);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Slots de imagen en admin */
.image-slot {
    background: var(--light-gray);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.image-slot label {
    font-size: 13px;
    font-weight: 600;
}

.image-slot-remove {
    background: none;
    border: none;
    color: var(--error);
    font-size: 13px;
    cursor: pointer;
    margin-top: 4px;
}

.product-detail-category {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.product-detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.product-detail-price {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.product-detail-description {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 3px solid var(--accent-brown);
    background: var(--light-gray);
}

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

.product-detail-actions .btn-primary {
    flex: 1;
    padding: 1rem;
}

/* ========== OVERLAYS ========== */
.cart-overlay,
.admin-overlay,
.edit-image-overlay,
.product-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 150;
    transition: background 0.3s ease;
    pointer-events: none;
}

.cart-overlay.open,
.admin-overlay.open,
.edit-image-overlay.open,
.product-detail-overlay.open {
    background: rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDownSmooth {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 350px;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CAROUSEL ========== */
.carousel-section {
    background: var(--white);
    padding: 0;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 840px;
    overflow: hidden;
    border-bottom: 1px solid var(--medium-gray);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide.active {
    display: flex;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid var(--white);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--white);
}

/* ========== BANNER SECTION ========== */
.banner-section {
    background: var(--light-gray);
    padding: 4rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--medium-gray);
    text-align: center;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
}

.banner-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 51.8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--black);
    margin: 0;
    text-transform: uppercase;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .destacados-content h2 {
        font-size: 20px;
    }

    .promo-main {
        font-size: 16px;
    }

    .promo-sub {
        font-size: 13px;
    }

    .novedades-title {
        font-size: 22px;
    }

    .novedades-grid .product-card {
        flex: 0 1 calc(50% - 1rem);
        min-width: 140px;
    }

    .carousel-container {
        height: 420px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .banner-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .destacados-content h2 {
        font-size: 18px;
    }

    .promo-main {
        font-size: 14px;
    }

    .promo-sub {
        font-size: 12px;
    }

    .novedades-title {
        font-size: 18px;
    }

    .novedades-grid .product-card {
        flex: 0 1 calc(50% - 0.75rem);
        min-width: 0;
    }

    .novedades-grid {
        gap: 0.75rem;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .banner-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 0.75rem;
        gap: 1rem;
    }

    .search-bar {
        max-width: 200px;
    }

    .cart-sidebar, .admin-sidebar {
        max-width: 100%;
    }

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

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .logo h1 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 14px;
    }

    .search-bar {
        max-width: 100px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 12px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }
}

/* (Header center links moved before media queries) */

/* ========== PRODUCTOS DROPDOWN ========== */
.productos-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.productos-dropdown-toggle {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--dark-gray);
    transition: transform 0.3s ease, color 0.3s ease;
}

.productos-dropdown-toggle.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-brown);
}

.productos-dropdown-toggle:hover .dropdown-arrow {
    color: var(--accent-brown);
}

.productos-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: -120px;
    width: 360px;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,0.8) 0%, rgba(245,245,245,0.7) 40%, rgba(235,235,235,0.65) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    z-index: 200;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
}

.productos-dropdown.open {
    max-height: 250px;
    opacity: 1;
    animation: slideDownSmooth 0.3s ease-out;
}

.productos-menu-item {
    padding: 0.55rem 0.75rem;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    color: var(--black);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.productos-menu-item:first-child {
    border-top-left-radius: 12px;
}

.productos-menu-item:nth-child(3) {
    border-top-right-radius: 12px;
}

.productos-menu-item:nth-child(3n) {
    border-right: none;
}

.productos-menu-item:hover {
    background: rgba(255, 255, 255, 0.45);
    color: var(--accent-brown);
}

.productos-menu-item.active {
    background: rgba(109, 63, 35, 0.8);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.productos-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    display: none;
}

.productos-menu-overlay.open {
    display: block;
}

/* ========== CATEGORIAS GRID (Destacados) ========== */
.categorias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    margin-top: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: 294px;
}

.categoria-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.categoria-item.categoria-grande {
    grid-row: 1 / 3;
}

.categoria-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 83px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.categoria-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.categoria-item:hover .categoria-image {
    transform: scale(1.05);
}

.categoria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
}

.categoria-item:hover .categoria-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.categoria-title {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: var(--white);
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, letter-spacing 0.5s ease;
}

.categoria-item:hover .categoria-title {
    transform: translateY(0);
    opacity: 1;
    letter-spacing: 6px;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    background: var(--black);
    padding: 1.5rem 1rem;
    border: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.feature-item {
    flex: 1;
    min-width: 0;
    max-width: 240px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

/* ========== FILTROS DE CATEGORÍA ========== */
.categoria-filtros {
    background: var(--white);
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.categoria-header {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: categoriaFadeIn 0.8s ease forwards;
}

@keyframes categoriaFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categoria-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--black);
    margin: 0;
    letter-spacing: 3px;
}

.filtros-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filtro-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease;
    font-family: 'Work Sans', sans-serif;
}

.filtro-select:hover {
    border-color: var(--black);
}

.filtro-color-carousel {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
}

.filtro-color-carousel:hover {
    border-color: var(--black);
}

.filtro-color-track {
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    width: 190px;
    flex-shrink: 0;
}

.filtro-color-track-inner {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.color-carousel-btn {
    background: none;
    border: 1px solid var(--medium-gray);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.color-carousel-btn:hover:not(:disabled) {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

.color-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: var(--black);
}

.color-option.selected {
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

/* ========== DESTACADOS LAYOUT ========== */
.destacados-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.destacados-layout .products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-width: 0;
}

@media (max-width: 768px) {
    .destacados-layout {
        flex-direction: column;
    }
    .destacados-layout .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .destacados-layout .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ========== CATEGORY OVERLAY (mobile tap) ========== */
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 0.6rem 0.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: overlaySlideUp 0.3s ease-out;
    pointer-events: none;
}

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

/* ========== PRÓXIMAMENTE BOX ========== */
.proximamente-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 45%;
    border-radius: 12px;
    overflow: hidden;
    height: 900px;
}

.proximamente-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.proximamente-title {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    margin: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1.2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: letter-spacing 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.proximamente-title:hover {
    letter-spacing: 14px;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .proximamente-box {
        height: 400px;
    }
    .proximamente-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .proximamente-box {
        height: 250px;
    }
    .proximamente-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
}

.whatsapp-float:active {
    transform: scale(1.05);
}

.whatsapp-icon-svg {
    width: 34px;
    height: 34px;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .whatsapp-icon-svg {
        width: 28px;
        height: 28px;
    }
}

/* ========== INSTAGRAM SECTION ========== */
.instagram-section {
    background: var(--black);
    padding: 3rem 1rem;
    text-align: center;
    border: none;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.instagram-content {
    max-width: 1400px;
    margin: 0 auto;
}

.instagram-link {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.instagram-link:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 60px rgba(109, 63, 35, 0.5), 0 0 30px rgba(109, 63, 35, 0.25);
}

.instagram-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 2;
}

.instagram-link:hover::after {
    left: 150%;
}

.instagram-image {
    width: 45.5%;
    max-width: 624px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: filter 0.5s ease, transform 0.5s ease;
    filter: brightness(0.85) saturate(0.9);
}

.instagram-link:hover .instagram-image {
    filter: brightness(1.15) saturate(1.2) contrast(1.05);
}

/* ========== SUBSCRIPTION SECTION ========== */
.subscription-section {
    background: var(--light-gray);
    padding: 4rem 1rem;
    text-align: center;
    border-top: 1px solid var(--medium-gray);
}

.subscription-container {
    max-width: 600px;
    margin: 0 auto;
}

.subscription-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.subscription-subtitle {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.subscription-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.subscription-input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 1px solid var(--medium-gray);
    border-right: none;
    font-size: 14px;
    background: var(--white);
    color: var(--black);
    outline: none;
}

.subscription-input:focus {
    border-color: var(--accent-brown);
}

.subscription-btn {
    padding: 0.85rem 2rem;
    background: var(--accent-brown);
    color: var(--white);
    border: 1px solid var(--accent-brown);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.subscription-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.subscription-btn:hover {
    color: var(--accent-brown);
    border-color: var(--accent-brown);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(109, 63, 35, 0.4);
}

.subscription-btn:hover::before {
    width: 300px;
    height: 300px;
}

.subscription-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(109, 63, 35, 0.3);
}

.subscription-message {
    margin-top: 1rem;
    font-size: 14px;
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 1rem 1.5rem;
    margin-top: 0;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
}

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

.footer-category-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-category-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-category-link:hover {
    color: var(--white);
}

.footer-info-section {
    max-width: 1400px;
    margin: 0 auto 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-info-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-info-link:hover {
    color: var(--white);
}

.footer-contact {
    max-width: 1400px;
    margin: 0 auto 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-icon {
    font-size: 16px;
}

.footer-payment {
    max-width: 1400px;
    margin: 0 auto 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.payment-method,
.shipping-method {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-shipping {
    margin-top: 0.5rem;
}

.footer-copyright {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== PAYMENT MODAL ========== */
.payment-modal {
    max-width: 550px !important;
    position: relative;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
}

.payment-modal h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 20px;
    text-align: center;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.payment-section {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    border-bottom: none;
}

.payment-section:last-child {
    background: transparent;
    padding: 0.5rem 0 0;
}

.payment-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.payment-section p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.cbu-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: var(--black);
    line-height: 1.6;
    word-spacing: 4px;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--black);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.copy-btn:hover {
    background: var(--accent-brown);
    color: var(--white);
    border-color: var(--accent-brown);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.whatsapp-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #25d366;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

/* ========== PRODUCT DETAIL SECTIONS ========== */
.product-detail-section {
    margin-bottom: 1.5rem;
}

.product-detail-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-family: 'Roboto Mono', monospace;
}

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

.options-grid .option-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--medium-gray);
    background: var(--white);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.options-grid .option-btn:hover {
    border-color: var(--accent-brown);
}

.options-grid .option-btn.selected {
    background: var(--accent-brown);
    color: var(--white);
    border-color: var(--accent-brown);
}

.options-grid .color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--medium-gray);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.options-grid .color-option:hover {
    border-color: var(--black);
    transform: scale(1.1);
}

.options-grid .color-option.selected {
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 3px rgba(109, 63, 35, 0.3);
}

/* ========== FILTERS HIDDEN (replaced by dropdown) ========== */
.filters-container {
    display: none;
}

/* ========== RESPONSIVE ADDITIONS ========== */
@media (max-width: 768px) {
    .header-center-left,
    .header-center-right {
        display: none;
    }

    .categorias-grid {
        grid-template-columns: 1fr;
    }

    .categoria-item.categoria-grande {
        grid-row: auto;
    }

    .categoria-image-wrapper {
        min-height: 200px;
    }

    .features-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .feature-item {
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 0% !important;
        width: 33.33% !important;
    }

    .feature-image {
        max-height: 140px;
        width: 100%;
    }

    .subscription-form {
        flex-direction: column;
    }

    .subscription-input {
        border-right: 1px solid var(--medium-gray);
        border-bottom: none;
    }

    .footer-category-row {
        gap: 1rem;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .categoria-image-wrapper {
        min-height: 160px;
    }

    .categoria-title {
        font-size: 16px;
        bottom: 1rem;
        left: 1rem;
    }

    .footer-payment-methods {
        gap: 0.75rem;
    }

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

/* Páginas de texto (Contacto, Cómo Comprar, Ventas por Mayor) */
.texto-page-content {
    max-width: 780px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
    font-family: 'Inter', sans-serif;
}

.texto-section {
    margin-bottom: 2.5rem;
}

.texto-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.texto-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.texto-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.4rem;
}

.texto-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 0.75rem 0;
}

.texto-card p {
    margin-bottom: 0.3rem;
}

.texto-link {
    color: var(--accent-brown);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.texto-link:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .texto-page-content {
        padding: 0 1rem;
        margin: 1.5rem auto 3rem;
    }

    .texto-section h2 {
        font-size: 1.2rem;
    }
}

/* ========== MOBILE HAMBURGER MENU ========== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--black);
    line-height: 1;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-bottom: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--accent-brown);
    color: var(--white);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: color 0.2s ease;
}

.mobile-menu-links a:hover {
    color: var(--accent-brown);
}

.mobile-menu-links .mobile-submenu-title {
    font-weight: 700;
    color: var(--accent-brown);
    font-size: 13px;
    padding-top: 1.2rem;
    border-bottom: none;
    letter-spacing: 1.5px;
}

.mobile-menu-links .mobile-submenu-item {
    padding-left: 1rem;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        display: block;
    }

    .header-center-left,
    .header-center-right {
        display: none;
    }

    .header-left {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    .logo img {
        height: 70px !important;
        max-width: 250px !important;
    }

    .header-right {
        gap: 0.4rem;
    }

    .cart-button, .admin-button {
        padding: 0.5rem 0.6rem;
        font-size: 10px;
    }

    .logout-button {
        font-size: 9px;
        padding: 0.4rem 0.6rem;
    }

    .cart-sidebar, .admin-sidebar {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }

    .modal-content {
        max-width: 95%;
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .product-detail-modal {
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .payment-modal {
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .payment-section p {
        word-break: break-all;
    }

    .productos-dropdown {
        width: 250px;
        left: -80px;
    }

    .footer-categories {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-category-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px !important;
        max-width: 180px !important;
    }

    .cart-button, .admin-button {
        padding: 0.4rem 0.5rem;
        font-size: 9px;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }

    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
    }

    .product-detail-modal {
        max-height: 95vh;
    }

    .cbu-number {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .checkout-btn {
        font-size: 13px;
        padding: 0.9rem;
    }

    .product-image-wrapper,
    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 0.6rem;
    }

    .product-category {
        font-size: 8px;
        margin-bottom: 0.2rem;
    }

    .product-name {
        font-size: 12px;
        margin-bottom: 0.2rem;
    }

    .product-price {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }

    .add-to-cart-btn {
        padding: 0.5rem 0.6rem;
        font-size: 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .product-image-wrapper,
    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 13px;
        margin-bottom: 0.6rem;
    }

    .add-to-cart-btn {
        padding: 0.6rem 0.8rem;
        font-size: 11px;
    }
}
