/**
 * Tema: Minimalista
 * Descripción: Diseño oscuro, limpio y elegante con bordes blancos.
 * Ideal para sushi, coctelería moderna y conceptos urbanos.
 * 
 * Diseñado para las clases de Voucheroo Suite
 */

/* =============================================
   FUENTES
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&display=swap');

/* =============================================
   VARIABLES CSS
   ============================================= */
:root {
    --theme-font: 'Raleway', sans-serif;
    --theme-bg: #231f20;
    --theme-bg-image: none;
    --theme-text: #e8e4dc;
    --theme-text-muted: #9a9590;
    --theme-primary: #bca67f;
    --theme-accent: #bca67f;
    --theme-card-bg: #cfceca;
    --theme-card-text: #1a1a1a;
    --theme-card-radius: 12px;
    --theme-card-border: none;
    --theme-shadow: none;
}

/* =============================================
   BODY / FONDO
   ============================================= */
body {
    font-family: var(--theme-font);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    min-height: 100vh;
        background-image: url(fondominimalista.jpg);
    background-size: contain;
    background-repeat: repeat;
}

/* =============================================
   HEADER - Centrado (NO sticky)
   ============================================= */
.header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 40px 20px 20px;
    position: relative;
}


.header-inner {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.header-logo {
    max-height: 120px;
    max-width: 180px;
    filter: brightness(1.1);
    border-radius: 10px;
    height: auto;
}

.header-name {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: var(--theme-text);
    text-transform: uppercase;
}

.header-subtitle {
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============================================
   LANGUAGE SELECTOR
   ============================================= */
.lang-selector {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--theme-text);
    border-radius: 8px;
}

.lang-dropdown {
    background: rgba(30, 35, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.lang-option {
    color: var(--theme-text);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.2);
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
    max-width: 600px;
    padding: 20px;
}

/* =============================================
   CATEGORÍAS - GRID VIEW
   ============================================= */
.categories-grid {
    gap: 15px;
}

.category-card {
background: #fffcf1;
    border-radius: var(--theme-card-radius);
    border: var(--theme-card-border);
    box-shadow: none;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 10px !important;
    aspect-ratio: 1;
    text-decoration: none;
    color: inherit;
}

.category-icon-wrapper {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: auto !important;
    aspect-ratio: unset !important;
}

.category-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.8;
}

.category-icon-placeholder {
    font-size: 2.8rem;
    color: #555;
    opacity: 0.7;
}

.category-name {
font-weight: 700;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #231f20 !important;
    padding: 4px !important;
    margin: 12px 0 0 0 !important;
    text-align: center !important;
    background: transparent !important;
    line-height: 1.3 !important;
}

/* Quitar decoración */
.categories-grid::after {
    display: none;
}

/* =============================================
   CATEGORÍAS - LIST VIEW
   ============================================= */
.categories-list {
    gap: 12px;
}

.category-list-item {
    
    border: none;
    border-radius: 12px;

}

.category-list-item:hover {
    background: rgb(32 30 31 / 82%);
}

.category-list-icon {
background: rgb(32 30 31 / 82%);
    border: none;
    border-radius: 12px;
    width: 50px;
    height: 50px;
}

.category-list-icon img {
    width: 55%;
    height: 55%;
    opacity: 0.8;
}

/* Solo invertir iconos lineales */
.icons-negro .category-list-icon img {
    filter: invert(1);
}

.category-list-icon i {
    color: var(--theme-text-muted);
}

.category-list-name {
font-weight: 600;
    color: #231f20;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.category-list-desc {
    color: #5a5a5a;
    font-size: 0.8rem;
}

.category-list-arrow {
    color: var(--theme-text-muted);
}

/* =============================================
   PRODUCTOS - Con borde y fondo claro
   ============================================= */
.product-card {
    background: var(--theme-card-bg);
    border-radius: 25px;
    border: 3px solid var(--theme-text);
    padding: 0;
    margin-bottom: 25px;
    text-align: center;
    overflow: hidden;
    display: block;
}

.product-img {
    width: 100%;
    height: 180px;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

.product-info {
       text-align: center;
    width: 100%;
    padding: 25px 20px;
    background: #fffcf1ad;
}

.product-name {
font-weight: 800;
    font-size: 1.1rem;
    color: #231f20 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-desc {
     color: #666 !important;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Precio en pill oscuro */
.product-price {
    background: rgba(69, 69, 69, 0.9) !important;
    color: #fef4e5 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 25px;
    border-radius: 0;
    display: inline-block !important;
    margin: 10px auto;
    letter-spacing: 1px;
}

.product-price-neto {
    color: #888 !important;
    font-size: 0.75rem;
    margin-top: 12px;
}

/* =============================================
   VARIANTES
   ============================================= */
.product-variants {
    width: 100%;
    max-width: 280px;
    margin: 10px auto 0;
}

.variant-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    color: var(--theme-card-text);
}

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

/* =============================================
   BADGES
   ============================================= */
.product-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge {
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #555;
}

.badge-vegan {
    background: rgba(74, 130, 74, 0.15);
    color: #3a7a3a;
}

.badge-vegetarian {
    background: rgba(100, 130, 60, 0.15);
    color: #4a6a3a;
}

.badge-tacc {
    background: rgba(160, 120, 80, 0.15);
    color: #7a5a3a;
}

/* =============================================
   VIEW TOGGLE
   ============================================= */
.view-toggle {
    margin-bottom: 20px;
}

.view-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--theme-text-muted);
    border-radius: 10px;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--theme-text);
}

/* =============================================
   FIXED BACK BUTTON
   ============================================= */
.back-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(255 252 241);
    color: #231f20;
    text-align: center;
    padding: 16px 20px;
    font-family: var(--theme-font);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body:has(.back-fixed) {
    padding-bottom: 60px;
}

.container {
    padding-bottom: 20px;
}

/* =============================================
   CATEGORY BAR
   ============================================= */
.category-bar {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 20px 20px;
    margin: 0 -20px 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 60px;
    transition: all 0.3s ease;
}

.category-bar-icon {
width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(207, 206, 202, 0.15);
    border: 1px solid rgba(207, 206, 202, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-bar-icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    opacity: 0.9;
}

/* Solo invertir iconos lineales */
.icons-negro .category-bar-icon img {
    filter: invert(1) brightness(0.85);
}

.category-bar-icon i {
    font-size: 1.2rem;
    color: var(--theme-text);
    opacity: 0.7;
}

.category-bar-name {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--theme-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 70px;
    line-height: 1.2;
    opacity: 0.7;
}

/* Active */
.category-bar-item.active .category-bar-icon {
    border-color: #f0ede4;
    background: rgba(207, 206, 202, 0.25);
}

.icons-negro .category-bar-item.active .category-bar-icon img {
    filter: invert(1) brightness(1);
}

.category-bar-item.active .category-bar-name {
    color: #f0ede4;
    opacity: 1;
}

/* =============================================
   SEARCH BAR
   ============================================= */
.search-bar {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: var(--theme-text);
    font-family: var(--theme-font);
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--theme-text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--theme-text);
    background: rgba(255, 255, 255, 0.12);
}

/* =============================================
   STICKY CATEGORY HEADERS - Vista listado
   ============================================= */
.category-section {
    margin-bottom: 25px;
}

.category-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 20px;
    margin: 0 -20px 15px;
    font-family: var(--theme-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    color: var(--theme-text-muted);
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    color: var(--theme-text);
    opacity: 0.3;
    font-size: 3rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    color: var(--theme-text-muted);
    border-top: none;
    padding: 25px 20px;
}

.footer a {
    color: var(--theme-text);
}

/* =============================================
   BANNERS
   ============================================= */
.banners {
    border-radius: var(--theme-card-radius);
    overflow: hidden;
    border: var(--theme-card-border);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.product-card {
    animation: fadeIn 0.3s ease backwards;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    .product-card {
        padding: 0;
    }

    .product-img {
       height: 280px;
    }

    .category-icon {
               width: 61px;
        height: 61px;
    }

    .header-name {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
}