/* ==========================================================
   MODESTO — Custom Theme (migrado desde legacy)
   Suite: ID 136 | Slug: modesto
   ========================================================== */

/* =====================
   FUENTES
   ===================== */
@font-face {
    font-family: chachingo;
    src: url("fuentes/BickhamScriptPro-Regular.otf") format("opentype");
}

@font-face {
    font-family: cervo;
    src: url("fuentes/TradeGothicLTStd-Light.otf") format("opentype");
}

@font-face {
    font-family: modesto4;
    src: url("fuentes/WindsorBT-Elongated.otf") format("opentype");
}

/* =====================
   VARIABLES
   ===================== */
:root {
    --theme-font: 'modesto4', serif;
    --theme-font-body: 'cervo', 'Inter', sans-serif;
    --theme-bg: transparent;
    --theme-text: #cec5b3;
    --theme-text-muted: #a09585;
    --theme-primary: #6f5d4d;
    --theme-accent: #7b6a58;
    --theme-card-bg: transparent;
    --theme-card-radius: 0px;
    --theme-card-border: 2px solid #705d4dad;
    --theme-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

/* =====================
   FONDO GENERAL
   ===================== */
html {
    min-height: 100vh !important;
    border-bottom: 1vh solid #4f4236 !important;
}

body {
    background-image: url('fondomodestocarta2.jpg') !important;
    background-size: contain !important;
    background-position: center !important;
    background-color: #1a1a1a !important;
}

/* =====================
   HEADER — Logo como background-image
   ===================== */
.header {
    height: 200px !important;
    background-color: transparent !important;
    position: relative !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: url('logomodestocarta.png') !important;
    background-position: center center !important;
    background-size: 200px !important;
    background-repeat: no-repeat !important;
}

.header-inner {
    background-color: transparent !important;
}

/* Hide default logo elements - Suite wraps img in <a> */
.header-logo-link,
.header-logo,
.header-name-link,
.header-name {
    display: none !important;
}

/* =====================
   CATEGORÍAS — Vista Grid
   ===================== */
.container {
    background-color: transparent !important;
    padding-top: 0 !important;
    background-image: url('ous.png');
    background-position: 50% 99%;
    background-repeat: no-repeat;
    background-size: 48px;
}

.categories-grid {
    padding: 5px !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 16px !important;
}

.category-card {
    border-radius: 0px !important;
    text-align: center !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    background-color: transparent !important;
    border: 2px solid #705d4dad !important;
    overflow: visible !important;
    position: relative !important;
    margin-bottom: 15px !important;
}

.category-icon-wrapper {
    background: #feaf4500;
    border-bottom: none !important;
}

.category-icon {

  width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
}

.category-icon-placeholder {
    color: #cec5b3 !important;
}

.category-name {
    font-weight: 100 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    color: #cec5b3 !important;
    font-family: 'modesto4' !important;
    line-height: 1.2 !important;
    padding: 10px 6px !important;
    margin-top: -40px;
    margin-bottom: 30px;
}

/* Decorative line under category columns */
.category-card::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 15px;
  
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* =====================
   CATEGORÍAS — Vista Lista
   ===================== */
.categories-list {
    background-color: transparent !important;
}

.category-list-item {
    background-color: transparent !important;
    border: 2px solid #705d4dad !important;
    border-radius: 0 !important;
    margin-bottom: 12px !important;
}

.category-list-name {
    font-family: 'modesto4' !important;
    text-transform: uppercase !important;
    color: #cec5b3 !important;
    font-weight: 100 !important;
}

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

.category-list-arrow {
    color: #cec5b3 !important;
}

/* =====================
   BARRA DE CATEGORÍAS (carousel horizontal)
   ===================== */
.category-bar {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 12px 16px 16px;
    margin: 0 auto 10px;
    scrollbar-width: none;
    justify-content: flex-start;
    background-color: transparent !important;
    border-bottom: none !important;
}

.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 {
    border: 1px solid #705d4d80;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    border-radius: 50px;
    margin-bottom: 6px;
}

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

.category-bar-icon i {
    color: #cec5b3;
    font-size: 1.3rem;
}

.category-bar-name {
    font-size: 8px;
    font-weight: 100;
    color: #cec5b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 100px;
    line-height: 1.2;
}

.category-bar-item.active .category-bar-icon {
    border-color: #cec5b3;
    background: rgba(110, 93, 77, 0.5);
}

.category-bar-item.active .category-bar-icon img {
    opacity: 1;
}

.category-bar-item.active .category-bar-name {
    color: #fff;
    font-weight: 400;
}

/* =====================
   PRODUCTOS — Encabezado de categoría
   ===================== */
.products-header .products-title {
    color: #7b6a58 !important;
    font-size: 38px !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: 200 !important;
    padding-top: 15px !important;
    text-transform: uppercase !important;
    background-color: rgb(255 255 255 / 89%) !important;
    border-radius: 4px !important;
    font-family: 'modesto4' !important;
    background-image: url('lineabajadamodesto.png') !important;
    background-size: 180px !important;
    background-position: center 52px !important;
    background-repeat: no-repeat !important;
    padding-bottom: 43px !important;
    border: 4px solid #1b2c36 !important;
}

/* =====================
   PRODUCTOS — Cards
   ===================== */
.products-grid {
    background-color: transparent !important;
    padding: 30px 0px 0px !important;
}

.product-card {
    width: 100% !important;
    position: relative !important;
    min-height: 120px !important;
    border-bottom: none !important;
    margin-top: 15px !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0px !important;
    background-image: url('bordegodoy1.png'), url('bordegodoy2.png') !important;
    background-repeat: no-repeat !important;
    background-position: top left, bottom right !important;
    background-size: 70px !important;
    margin-bottom: 80px !important;
    padding: 35px 15px !important;
}

.product-img {
    width: 130px !important;
    height: 130px !important;
    border-radius: 200px !important;
    margin: 0 auto !important;
    display: block !important;
}

.product-info {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    padding-top: 15px !important;
}

.product-name {
    font-weight: 400 !important;
    max-width: 100% !important;
    text-transform: uppercase !important;
    color: #cec5b3 !important;
    text-align: center !important;
    font-family: 'modesto4' !important;
    font-size: 19px !important;
}

.product-desc {
    font-size: 14px !important;
    margin-top: 20px !important;
    text-align: center !important;
    font-family: 'cervo' !important;
    color: #cec5b3 !important;
    font-style: italic !important;
    padding-left: 57px !important;
    padding-right: 57px !important;
}

.product-price {
    text-align: center !important;
    float: none !important;
    font-size: 16px !important;
    border-radius: 1px !important;
    width: 100px !important;
    position: relative !important;
    margin: 40px auto 35px !important;
    color: #cec5b3 !important;
    padding: 4px 8px !important;
    background-color: #6c5b4b4f !important;
    margin-bottom: 35px !important;
}

/* =====================
   BADGES
   ===================== */
.product-badges .badge {
    background-color: #6c5b4b4f !important;
    color: #cec5b3 !important;
}

/* =====================
   VARIANTES
   ===================== */
.product-variants .variant-item {
    background-color: #2b2621 !important;
    color: #cec5b3 !important;
    font-family: 'modesto4' !important;
    border-radius: 0 !important;
    margin: 10px auto !important;
}

/* =====================
   BUSCADOR
   ===================== */
.search-bar {
    width: 100%;
    padding: 14px 22px;
    border: 1px solid rgb(206 197 179);
    border-radius: 30px;
    color: #616c43;
    font-size: 0.9rem;
    text-align: center;
    font-family: "Poppins", sans-serif;
    margin-bottom: 49px;
}

.search-input,
input#searchProducts {
    background-color: rgb(0 0 0 / 0%) !important;
    border: none;
}

/* =====================
   BOTÓN VOLVER
   ===================== */
.back-fixed {
    background-color: #2b2621 !important;
    color: #cec5b3 !important;
    position: fixed;
    bottom: 0;
    left: 0px;
    right: 0;
    background: var(--theme-accent);
    text-align: center;
    padding: 0px 17px;
    font-family: var(--theme-font);
    font-size: 33px;
    font-weight: 200;
    letter-spacing: 1px;
    text-decoration: none;
    z-index: 1000;
    height: 50px !important;
}

/* =====================
   FOOTER
   ===================== */
.footer {
    background-color: transparent !important;
    color: #cec5b3 !important;
}

.footer a {
    color: #cec5b3 !important;
}

/* =====================
   SELECTOR IDIOMA
   ===================== */
.lang-selector {
    background-color: rgba(30, 30, 30, 0.8) !important;
}

.lang-btn {
    color: #cec5b3 !important;
    border-color: #705d4d50 !important;
}

.lang-btn.active {
    background-color: #6f5d4d !important;
    color: #fff !important;
}

/* =====================
   TOGGLE DE VISTA
   ===================== */
.view-toggle {
    background-color: transparent !important;
}

.view-btn {
    color: #cec5b3 !important;
}

.view-btn.active {
    background-color: #6f5d4d !important;
    color: #fff !important;
}

/* =====================
   EMPTY STATE
   ===================== */
.empty-state {
    color: #cec5b3 !important;
}

/* =====================
   STICKY HEADERS
   ===================== */
.category-sticky-header {
    background-color: rgba(30, 30, 30, 0.95) !important;
    color: #7b6a58 !important;
    font-family: 'modesto4' !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #705d4d50 !important;
}

/* =====================
   RESPONSIVE — Mobile first
   ===================== */
@media (max-width: 600px) {
    .header {
        height: 180px !important;
        background-size: 170px !important;
    }

    .products-header .products-title {
        font-size: 28px !important;
        background-size: 140px !important;
        background-position: center 42px !important;
        padding-bottom: 35px !important;
    }

    .product-desc {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .product-card {
        margin-bottom: 60px !important;
        background-size: 50px !important;
    }
}
