/**
 * Tema Custom: Organyca
 * Descripción: Diseño orgánico con tipografía manuscrita y colores naturales.
 * Estilo: Natural, rústico-elegante, fondos texturados
 * 
 * Adaptado del legacy (250.css) a selectores de Voucheroo Suite
 */

/* =============================================
   FUENTES CUSTOM
   ============================================= */
@font-face {
    font-family: 'organyca';
    src: url("Manuscrita-Regular.ttf") format("truetype");
}

/* Fuente cervo - fallback a Trade Gothic */
@font-face {
    font-family: 'cervo';
    src: url("TradeGothicLTStd-Light.otf") format("opentype");
}

/* =============================================
   VARIABLES CSS
   ============================================= */
:root {
    --theme-font: 'organyca', 'Playfair Display', serif;
    --theme-font-body: 'cervo', 'Inter', sans-serif;
    --theme-bg: #eeeeee;
    --theme-bg-image: url('fondo7.jpg');
    --theme-text: #000000;
    --theme-text-muted: #0000008a;
    --theme-primary: #525b3a;
    --theme-accent: #e38e4f;
    --theme-card-bg: rgba(223, 221, 216, 0);
    --theme-card-radius: 40px;
    --theme-card-border: 1px solid #ffffff;
    --theme-shadow: none;
}

@media (max-width: 600px) {
    .banner-slide .banner-img {
        aspect-ratio: auto !important;
    }

        .banner-slider {
        margin: 0 -16px 16px;
        border-radius: 30px !important;
        border: 1px solid #ffffffe8 !important;
    }
}

/* =============================================
   BODY / FONDO
   ============================================= */
html {
    min-height: 100vh;
    border-bottom: 1vh solid #ac732c !important;
    background-color: #707d4c;
}

body {
    font-family: var(--theme-font-body);
    background-color: var(--theme-bg);
    background-image: var(--theme-bg-image);
    background-size: contain;
    
    background-repeat: repeat;
    color: var(--theme-text);
    min-height: 100vh;
}

/* =============================================
   HEADER - Logo grande centrado
   ============================================= */
.header {
    height: 200px;
    background-color: transparent;
    position: relative;
    border-bottom: none;
    box-shadow: none;
    padding: 25px 20px;
    background-image: url('logo3.png');
    background-position: center 25px;
    background-size: 155px;
    background-repeat: no-repeat;
}

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

/* Ocultar logo img ya que usamos background-image */
.header-logo {
    display: none;
}

.header-name {
    display: none;
}

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

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

/* =============================================
   CONTAINER
   ============================================= */
.container {
    max-width: 600px;
    padding: 10px;
    width: 93%;
    background-color: transparent;
}

/* =============================================
   CATEGORÍAS - Vista Grid
   ============================================= */
.categories-grid {
    gap: 20px;
}

.category-card {
    background: var(--theme-card-bg);
    border-radius: var(--theme-card-radius);
    border: var(--theme-card-border);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    aspect-ratio: 1;
}

.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: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
}

.category-icon {

    width: 50%;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}

.category-icon-placeholder {
    font-size: 2.5rem;
    color: var(--theme-text-muted);
    opacity: 0.6;
}

.category-name {
    font-family: var(--theme-font) !important;
    font-weight: 200 !important;
    text-transform: lowercase !important;
   
    text-align: center !important;
    background: transparent !important;
    font-size: 33px !important;
    color: #0000009c;
    letter-spacing: -1px;
    line-height: 17px !important;
}

/* Primera letra mayúscula */
.category-name::first-letter {
    text-transform: uppercase;
}

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

.category-list-item {
    background: var(--theme-card-bg);
    border: var(--theme-card-border);
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: none;
}

.category-list-icon {
       background: rgb(255 255 255 / 4%);
    border: none;
    border-radius: 50px;
    width: 70px;
    height: 70px;
}

.category-list-icon img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.category-list-name {
       font-family: var(--theme-font);
    font-weight: 200;
    font-size: 26px;
    text-transform: lowercase;
    color: #0000009c;
    line-height: 22px;
}

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

/* =============================================
   PRODUCTOS - Cards con imagen arriba
   ============================================= */
.product-card {
    background: transparent;
    border-radius: var(--theme-card-radius);
    border: 5px solid #fef4e5;
    box-shadow: none;
    padding: 0;
    margin-bottom: 80px;
    text-align: center;
    overflow: hidden;
    display: block;
}

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

.product-info {
    text-align: center;
    width: 100%;
    padding: 0 57px;
    padding-top: 0;
    background: transparent;
}

.product-name {
    font-family: var(--theme-font) !important;
    font-weight: 400;
    font-size: 39px;
    color: #000000a8 !important;
    text-transform: capitalize;
    text-align: center;
    letter-spacing: 0;
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 0.8;

        margin-top: 40px;
}

.product-desc {
    margin-bottom: 0px;
    line-height: 1.5;
    font-size: 14px !important;
    margin-top: 20px;
    text-align: center;
    color: #0000008a;
    letter-spacing: 1px;
    font-family: "Poppins", sans-serif;
    padding-top: 20px;
}

/* Precio en botón naranja */
.product-price {
    background: var(--theme-accent) !important;
    color: #fef4e5 !important;
    font-weight: 600;
    font-size: 18px;
    padding: 3px 20px;
    border-radius: 23px;
    display: inline-block !important;
    margin: 38px auto 35px;
    letter-spacing: 0;
    width: 120px;
}

.product-price-neto {
    color: var(--theme-text-muted) !important;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    letter-spacing: 1px;
}

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

.variant-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    color: var(--theme-text);
}

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

.badge {
    border-radius: 20px;
    font-weight: 400;
    font-size: 9px;
    padding: 5px 12px;
    border: none;
    margin-bottom: 0px;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
}

.badge-vegan {
    background: #2a371d91;
    color: #ffffff;
}

.badge-vegetarian {
    background: #2a371d91;
    color: #ffffff;
}

.badge-tacc {
    background: #2a371d91;
    color: #ffffff;
}

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

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

.view-btn.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

/* =============================================
   BACK BUTTON - Estilo Organyca
   ============================================= */
.back-fixed {
position: fixed;
    bottom: 0;
    left: 0px;
    right: 0;
    background: var(--theme-accent);
    color: #fef4e5;
    text-align: center;
    padding: 0px 17px;
    font-family: var(--theme-font);
    font-size: 42px;
    font-weight: 200;
    letter-spacing: 1px;
    text-decoration: none;
    z-index: 1000;
    height: 50px !important;
}

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

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

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

.category-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 70px;
}

.category-bar-icon {
    width: 70px;
    height: 70px;
    border-radius: 50px;
    background: rgba(82, 91, 58, 0.55);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.category-bar-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.category-bar-name {
    font-weight: 500;
    max-width: 70px;
    font-size: 9px !important;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase !important;
    color: #fef4e5;
    font-family: "Poppins", sans-serif;
}

/* Active state */
.category-bar-item.active .category-bar-icon {
    border: 2px solid #fef4e5;
}

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

.search-input {
    width: 100%;
    padding: 14px 22px;
    background: rgb(255 255 255);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    color: #616c43;
    font-size: 0.9rem;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

.search-input::placeholder {
    color: #616c43;
}

/* =============================================
   STICKY CATEGORY HEADERS
   ============================================= */
.category-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(238, 238, 238, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    margin: 0 -20px 15px;
    font-family: var(--theme-font);
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--theme-text);
    text-transform: lowercase;
    text-align: center;
}

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

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

/* =============================================
   FOOTER
   ============================================= */
.footer {
    border-top: none;
    padding: 25px 20px;
    color: #f2f2f1 !important;
}

.footer a {
    color: #e38e4f !important;
    font-weight: 900;
    font-family: 'Inter';

}

/* =============================================
   BANNERS
   ============================================= */
.banners {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
}

/* =============================================
   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-img {
        height: 180px;
    }

    .product-info {
        padding: 0 30px;
    }

    .product-name {
       font-weight: 400;
    max-width: 100% !important;
    text-transform: capitalize;
    color: #000000a8;
    text-align: center;
    font-family: organyca;
    font-size: 39px;
    letter-spacing: 0px;
    }

    .category-name {
    }

    .header {
        height: 160px;
        background-size: 120px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .product-img {
        height: 140px;
    }

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

    .category-name {
        font-size: 22px !important;
    }
}