/* ============================================
   Bonito Café — Custom Theme
   Migrado desde legacy ID 87
   ============================================ */

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

/* === Variables del tema === */
:root {
    --theme-font: 'Poppins', sans-serif;
    --theme-font-body: 'Poppins', sans-serif;
    --theme-bg: #f4ce18;
    --theme-text: #000000;
    --theme-text-muted: #333333;
    --theme-primary: #f4ce18;
    --theme-accent: #000000;
    --theme-card-bg: #f4ce18;
    --theme-card-radius: 0px;
    --theme-card-border: 1px solid #000000;
    --theme-shadow: none;
}

/* === Body & Background === */
body {
    background-color: #f4ce18 !important;
    font-family: var(--theme-font) !important;
    min-height: 100vh;
    color: #000000 !important;
}

html {
    min-height: 100vh;
    border-bottom: 0 !important;
    background-color: #f4ce18;
}

/* === Header === */
.header {
    height: 63px !important;
    background-color: #f4ce18 !important;
    background-image: url('logo_alt.png') !important;
    background-position: center center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    border-bottom: none !important;
    position: relative !important;
    margin-top: 50px;
    margin-bottom: 40px;
}

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

.header-logo-link,
.header-logo,
.header-name-link,
.header-name {
    display: none !important;
}

@media (max-width: 600px) {
    .header {
        height: 65px !important;
        background-size: contain !important;
        background-position: center center !important;
    }
}

/* === Container === */
.container {
    padding: 10px !important;
    width: 93% !important;
}

/* === Categories Grid === */
.categories-grid {
    gap: 14px !important;
}

.category-card {
    text-align: center !important;
    box-shadow: none !important;
    background-color: #f4ce18 !important;
    border: 2px solid #000000 !important;
    border-radius: 0px !important;
    overflow: hidden;
  
}

.category-icon-wrapper {
    background: transparent !important;
    padding: 0 !important;
}

.category-icon {
    width: 40% !important;
    height: auto !important;
    margin-bottom: 21px !important;
}

.category-name {
    font-size: 13px !important;
    text-transform: capitalize !important;
    color: #000000 !important;
    font-family: var(--theme-font) !important;
    font-weight: 600 !important;
    padding: 9px 6px !important;
    line-height: 1.3 !important;
    margin-top: -48px;
}

/* === Categories List View === */
.categories-list {
    gap: 8px !important;
}

.category-list-item {
    background: #f4ce18 !important;
    border-radius: 0px !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    padding: 14px 16px !important;
}

.category-list-name {
    color: #000000 !important;
    font-family: var(--theme-font) !important;
    text-transform: capitalize !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.category-list-icon {
    width: 50px;
    height: 50px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f0f8ff00;
}

.category-list-icon img {
    width: 36px !important;
    height: 36px !important;
}

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

/* === Category Bar (Carousel horizontal) === */
.category-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 16px;
    scrollbar-width: none;
    border-radius: 0px;
    margin-bottom: 16px;
}

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

.category-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 70px;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 0px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-bar-icon {
    background: rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    background-position: center;
    background-size: 40px;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.06);
    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: #000000;
    font-size: 20px;
}

.category-bar-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.3px;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
    font-family: var(--theme-font);
    text-decoration: none !important;
}

.category-bar-item.active .category-bar-icon {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.15);
}

.category-bar-item.active .category-bar-name {
    color: #000000;
    font-weight: 700;
}

/* === Search Bar === */
.search-bar {
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 0px !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: none !important;
    margin-bottom: 16px !important;
}

input#searchProducts,
.search-input {
    background: transparent !important;
    font-size: 14px !important;
    width: 83% !important;
    padding: 15px !important;
    border: 2px solid transparent !important;
    border-radius: 0px !important;
    height: 3rem !important;
    pointer-events: all !important;
    display: block !important;
    margin-right: auto !important;
    margin-left: auto !important;
    margin-top: 0px !important;
    color: #000000 !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    text-align-last: center !important;
    text-align: center !important;
    margin-bottom: 0px !important;
}

input#searchProducts::placeholder,
.search-input::placeholder {
    color: #666 !important;
}

.search-bar i {
    color: #000000 !important;
}

/* === Products Header === */
.products-header {
    background-color: #000000 !important;
    border-radius: 15px 15px 0 0 !important;
    text-align: center !important;
    padding: 6px 20px !important;
    margin-bottom: 0px !important;
    border: none !important;
    width: 230px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.products-title {
    color: #f4ce18 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: lowercase !important;
    font-family: var(--theme-font) !important;
    letter-spacing: 0px !important;
}

/* === Product Cards === */
.products-grid {
    padding: 10px 0 !important;
    gap: 30px !important;
}

.product-card {
    background-color: #f4ce18 !important;
    border-radius: 0px !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    margin-bottom: 18px !important;
    overflow: hidden !important;
    display: block !important;
    text-align: center !important;
    padding: 0 !important;
}

.product-img {
    width: 100% !important;
    height: 225px !important;
    border-radius: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    display: block !important;
}

.product-info {
    padding: 20px 30px 25px !important;
    text-align: center !important;
}

.product-name {
    font-weight: 600 !important;
    text-transform: capitalize !important;
    color: #000000 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-family: var(--theme-font) !important;
    line-height: 1.3 !important;
}

.product-desc {
    font-size: 13px !important;
    margin-top: 10px !important;
    text-align: center !important;
    color: #333333 !important;
    font-weight: 300 !important;
    font-family: var(--theme-font) !important;
    padding: 0 20px !important;
    line-height: 1.5 !important;
}

.product-price {
    background-color: #000000 !important;
    text-align: center !important;
    float: none !important;
    font-size: 16px !important;
    border-radius: 0px !important;
    width: 110px !important;
    padding: 4px 6px !important;
    position: relative !important;
    margin: 20px auto 15px !important;
    color: #f4ce18 !important;
    font-weight: 400 !important;
    font-family: var(--theme-font) !important;
}

.product-price-neto {
    text-align: center !important;
    color: #333 !important;
    font-size: 11px !important;
}

/* === Product Badges === */
.product-badges {
    justify-content: center !important;
    margin-top: 8px !important;
}

.badge {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    font-family: var(--theme-font) !important;
    font-size: 11px !important;
    border-radius: 0px !important;
}

/* === Variants === */
.product-variants {
    border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
    margin: 15px auto 15px !important;
    padding-top: 12px !important;
    width: 80% !important;
}

.variant-item {
    text-align: center !important;
    font-family: var(--theme-font) !important;
    color: #000000 !important;
}

/* === Category Sticky Header in Product View === */
.category-sticky-header {
    background: #000000 !important;
    color: #f4ce18 !important;
    font-family: var(--theme-font) !important;
    text-transform: lowercase !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    text-align: center !important;
}

/* === Back Button (VOLVER) === */
.back-fixed {
    background-color: #000000 !important;
    color: #f4ce18 !important;
    font-family: var(--theme-font) !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    text-transform: lowercase !important;
    height: 50px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: block;
    position: fixed;
    bottom: 0px;
    width: 100% !important;
    overflow: hidden;
    left: 0;
    right: 0;
    text-align: center;
    height: 48px;
    padding-top: 4px;
    z-index: 5;
}

/* === View Toggle === */
.view-toggle {
    border-radius: 0px !important;
}

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

.view-btn.active {
    background: #000000 !important;
    color: #f4ce18 !important;
}

/* === Footer === */
.footer {
    background-color: transparent !important;
    background-image: url(footbonito.png) !important;
    background-size: cover !important;
    background-position: bottom right !important;
    background-repeat: no-repeat !important;
    min-height: 100px !important;
    color: #ffffff !important;
    font-family: var(--theme-font) !important;
    text-align: left;
}

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

/* === Empty State === */
.empty-state {
    color: #333 !important;
    font-family: var(--theme-font) !important;
}

/* === Lang Selector === */
.lang-selector {
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 0px !important;
}

.lang-btn.active {
    background: #000000 !important;
    color: #f4ce18 !important;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* === Banners === */
.banner-slide img {
    border-radius: 0px !important;
}

/* === Mobile Responsive === */
@media (max-width: 600px) {
    .container {
        padding: 8px !important;
        max-width: 96% !important;
    }

    .product-card {
        margin-bottom: 25px !important;
    }

    .product-img {
        height: 200px !important;
    }

    .product-info {
        padding: 40px 20px 20px !important;
    }

    .product-name {
        font-size: 15px !important;
    }

    .product-desc {
        padding: 0 10px !important;
    }

    .products-title {
        font-size: 16px !important;
    }

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