.product-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12) !important
}

.product-image-wrap {
    position: relative;
    display: block;
    background: #f6f3ef;
    overflow: hidden
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .25s ease
}

.product-card:hover .product-image {
    transform: scale(1.04)
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.hero-slide {
    min-height: 70vh
}

.hero-slide img {
    object-fit: cover;
    filter: brightness(.58)
}

.home-banner-img {
    object-fit: cover;
    filter: none !important;
}

.hero-caption {
    max-width: 900px
}

.detail-main-image {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    border-radius: 16px;
    background: #f6f3ef
}

.detail-thumb {
    height: 92px;
    width: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #eee
}

.filter-box {
    border-radius: 14px
}

.variant-pill {
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: .45rem .8rem;
    margin: .25rem;
    display: inline-block;
    background: #fff
}

.empty-state {
    border: 2px dashed #ddd;
    border-radius: 16px;
    background: #fafafa
}

@media (max-width: 991px) {
    .navbar {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #navbarCollapse {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header-search-tezi {
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 10px 0 !important;
    }

    .header-search-tezi .tezi-search-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-search-tezi .tezi-search-input {
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .header-search-tezi .tezi-search-button {
        width: 70px !important;
        flex: 0 0 70px !important;
    }

    .header-menu-tezi {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100%;
    }

    .hero-slide {
        min-height: 520px;
    }

    .product-image {
        height: 230px;
    }
}

/* ==========================================================================
   Identidad visual Teziushop
   Paleta tomada de la pantalla de lanzamiento y logotipos proporcionados.
   ========================================================================== */
:root {
    --ts-black: #2e1a0e;
    /* antes: #171719 */
    --ts-black-soft: #4a2c0a;
    /* antes: #252326 */
    --ts-beige: #b5651d;
    /* antes: #bda38c */
    --ts-beige-dark: #8b4513;
    /* antes: #9b8069 */
    --ts-beige-light: #e8c4a0;
    /* antes: #e6d8cc */
    --ts-cream: #EBEBEB;
    /* antes: #fbf8f4 */
    --ts-cream-2: #EBEBEB;
    /* antes: #f4eee8 */
    --ts-border: #e8d5bf;
    /* antes: #dfd2c7 */
    --ts-muted: #6f7882;
    --primary: var(--ts-beige);
    --secondary: var(--ts-black);
    --light: var(--ts-cream);
    --dark: var(--ts-black);
}

body {
    color: var(--ts-black-soft);
    background: var(--ts-cream);
}

a {
    color: var(--ts-beige-dark)
}

a:hover {
    color: var(--ts-black);
}

.brand-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo {
    height: 82px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28));
}

.bg-light {
    background-color: var(--ts-cream-2) !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-dark {
    background: linear-gradient(135deg, var(--ts-black) 0%, #050505 100%) !important;
}

.text-primary {
    color: var(--ts-beige) !important;
}

.text-dark {
    color: var(--ts-black) !important;
}

.border-primary {
    border-color: var(--ts-beige) !important;
}

.navbar {
    border-bottom: 1px solid rgba(189, 163, 140, .22);
}

.navbar-collapse {
    gap: 20px;
}

.header-search-tezi {
    flex: 0 0 auto;
    width: 416px;
    max-width: 416px;
    margin-left: 18px;
    margin-right: 24px;
}

.header-menu-tezi {
    flex: 0 0 auto;
    margin-left: 0 !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--ts-black) !important;
    font-weight: 600;
    letter-spacing: .02em;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--ts-beige-dark) !important;
}

.dropdown-menu {
    border-color: var(--ts-border);
    box-shadow: 0 1rem 2rem rgba(23, 23, 25, .08);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--ts-cream-2);
    color: var(--ts-black);
}

.btn-primary,
.btn.btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ts-black) 0%, var(--ts-black-soft) 52%, var(--ts-beige-dark) 100%) !important;
    border-color: var(--ts-black) !important;
    box-shadow: 0 10px 22px rgba(23, 23, 25, .13);
}

.btn-primary:hover,
.btn.btn-primary:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ts-beige-dark) 0%, var(--ts-black-soft) 100%) !important;
    border-color: var(--ts-beige-dark) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--ts-black) !important;
    border-color: var(--ts-beige) !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--ts-black) !important;
    border-color: var(--ts-black) !important;
}

.btn-outline-light:hover {
    color: var(--ts-black) !important;
    background-color: #fff !important;
    border-color: #fff !important;
}

.form-control {
    border-color: var(--ts-border);
}

.form-control:focus {
    border-color: var(--ts-beige);
    box-shadow: 0 0 0 .2rem rgba(189, 163, 140, .2);
}

.badge-primary {
    background-color: var(--ts-beige) !important;
    color: var(--ts-black) !important;
}

.badge-danger,
.product-badge {
    background-color: var(--ts-black) !important;
    color: #fff !important;
}

.badge-light {
    background-color: var(--ts-cream-2) !important;
    color: var(--ts-black) !important;
    border: 1px solid var(--ts-border);
}

.hero-slide img {
    filter: brightness(.48) saturate(.9);
}

.hero-caption h6 {
    color: var(--ts-beige-light) !important;
}

.hero-caption h3 {
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.carousel-indicators li {
    background-color: var(--ts-beige);
}

.category-card,
.product-card,
.filter-box {
    border: 1px solid rgba(189, 163, 140, .22);
    box-shadow: 0 18px 40px rgba(23, 23, 25, .07) !important;
}

.category-card img,
.product-image-wrap {
    background: linear-gradient(135deg, #fff 0%, var(--ts-cream-2) 100%);
}

.product-title a {
    color: var(--ts-black);
}

.product-title a:hover {
    color: var(--ts-beige-dark);
}

.product-image {
    background: #fff;
}

.detail-main-image {
    background: linear-gradient(135deg, #fff 0%, var(--ts-cream-2) 100%);
    border: 1px solid rgba(189, 163, 140, .25);
}

.detail-thumb {
    border-color: var(--ts-border);
    background: #fff;
}

.variant-pill {
    border-color: var(--ts-border);
    background: #fff;
    color: var(--ts-black);
}

.empty-state {
    border-color: var(--ts-border);
    background: rgba(255, 255, 255, .72);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ts-black);
}

h6.d-inline-block {
    border: 1px solid var(--ts-border);
    border-radius: 999px;
    letter-spacing: .12em;
    background: #fff !important;
}

.back-to-top {
    border-radius: 50%;
    background: var(--ts-black) !important;
    border-color: var(--ts-black) !important;
}

footer a,
.bg-dark a {
    transition: color .2s ease;
}

.bg-dark a:hover {
    color: var(--ts-beige-light) !important;
    text-decoration: none;
}

.bg-dark .text-white-50 {
    color: rgba(255, 255, 255, .68) !important;
}

@media(max-width:991px) {
    .brand-logo {
        height: 46px;
    }

    .footer-logo {
        height: 68px;
    }
}

/* ==========================================================================
   Buscador flexible y pantalla de productos
   ========================================================================== */

.bg-primary {
    background: linear-gradient(135deg, var(--ts-black) 0%, var(--ts-black-soft) 48%, var(--ts-beige-dark) 100%) !important;
}

.ecommerce-search {
    position: relative;
}

.tezi-search-box {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: 52px;
    overflow: hidden;
    border: 1px solid #d8c6b6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tezi-search-input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    border: none !important;
    border-radius: 14px 0 0 14px !important;
    background: #fff !important;
    color: var(--ts-black) !important;
    padding: 0 20px !important;
    font-size: 15px;
    outline: none;
    box-shadow: none !important;
}

.tezi-search-input:focus {
    box-shadow: none !important;
}

.tezi-search-button {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 100%;
    margin: 0 !important;
    border-radius: 0 14px 14px 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   BOTÓN BUSCADOR - PALETA LOGO TEZIUSHOP
========================================================= */

.header-search-tezi .tezi-search-button {
    background: linear-gradient(135deg, #c7ad96 0%, #a88368 100%) !important;
    border: 1px solid #b99a80 !important;
    color: #ffffff !important;
}

.header-search-tezi .tezi-search-button:hover {
    background: linear-gradient(135deg, #d0b9a4 0%, #9b775d 100%) !important;
    border-color: #a88368 !important;
    color: #ffffff !important;
    transform: none;
}

.header-search-tezi .tezi-search-button:focus,
.header-search-tezi .tezi-search-button:active {
    background: linear-gradient(135deg, #b99a80 0%, #8f6f58 100%) !important;
    border-color: #9b775d !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(185, 154, 128, 0.25) !important;
}

.tezi-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 3000;
    display: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ts-border);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 38px rgba(23, 23, 25, .14);
}

.tezi-search-suggestions.activo {
    display: block;
}

.tezi-search-suggestion-item {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-bottom: 1px solid rgba(189, 163, 140, .18);
    background: #fff;
    color: var(--ts-black);
    padding: 11px 16px;
    text-align: left;
    cursor: pointer;
    line-height: 1.25;
}

.tezi-search-suggestion-item:last-child {
    border-bottom: none;
}

.tezi-search-suggestion-item:hover,
.tezi-search-suggestion-item:focus {
    background: var(--ts-cream-2);
    color: var(--ts-beige-dark);
    outline: none;
}

.tezi-search-suggestion-icon {
    flex: 0 0 auto;
    color: var(--ts-beige-dark);
    font-size: .86rem;
}

.tezi-search-suggestion-text {
    font-size: .92rem;
    font-weight: 500;
}

.filter-box-tezi {
    position: sticky;
    top: 104px;
    background: linear-gradient(180deg, #fff 0%, var(--ts-cream-2) 100%);
    border: 1px solid var(--ts-border) !important;
}

.filter-box-tezi h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(189, 163, 140, .28);
}

.filter-box-tezi h5::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ts-beige);
    box-shadow: 0 0 0 6px rgba(189, 163, 140, .15);
}

.filter-box-tezi label {
    color: var(--ts-black);
    font-weight: 600;
    font-size: .88rem;
}

.btn-outline-tezi {
    color: var(--ts-black) !important;
    border: 1px solid var(--ts-border) !important;
    background: #fff !important;
}

.btn-outline-tezi:hover {
    color: #fff !important;
    background: var(--ts-black) !important;
    border-color: var(--ts-black) !important;
}

@media(max-width:991px) {
    .tezi-search-box {
        width: 100%;
        height: 46px;
    }

    .ecommerce-search {
        width: 100%;
        margin-top: 1rem;
    }

    .filter-box-tezi {
        position: static;
    }

    .catalog-hero h1 {
        font-size: 2.6rem;
    }
}

.category-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12) !important;
}

.category-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #f7f1eb;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e6d9cc;
}

.category-card .p-4 {
    background: #fff;
}

.category-card h4 {
    margin-bottom: 14px;
}

.category-description {
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 0;
    color: #6c757d;
}

.category-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.category-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.category-card-link .category-card {
    cursor: pointer;
}

/* =========================================================
   PRODUCT CARD - Vista limpia de productos
========================================================= */

.product-card-body {
    background: #fff;
}

.product-title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 600;
}

.product-title a {
    color: var(--ts-black);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--ts-beige-dark);
    text-decoration: none;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-old-price {
    color: #8d8d8d;
    font-size: .95rem;
    text-decoration: line-through;
}

.product-offer-price {
    color: var(--ts-black);
    font-size: 1.18rem;
    font-weight: 700;
}

.product-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.product-card-link .product-card {
    cursor: pointer;
}

/* =========================================================
   HOME - Cards de proveedores
========================================================= */

.proveedor-card {
    background: #fff;
    border: 1px solid rgba(189, 163, 140, .25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(23, 23, 25, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.proveedor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12);
}

.proveedor-logo-wrap {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #fff 0%, var(--ts-cream-2) 100%);
    border-bottom: 1px solid var(--ts-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.proveedor-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.proveedor-info {
    padding: 18px 20px 20px;
    background: #fff;
    text-align: center;
}

.proveedor-nombre {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ts-black);
}

.proveedor-notas {
    font-size: .9rem;
    line-height: 1.55;
    color: #6c757d;
    margin-bottom: 0;
}

.proveedor-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.proveedor-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.proveedor-card-link .proveedor-card {
    cursor: pointer;
}

/* =========================================================
   FOOTER - Compacto, moderno y acorde a Teziushop
========================================================= */

#siteFooter {
    margin-top: 0;
}

.footer-tezi{
    background:
        radial-gradient(circle at top right, rgba(232, 196, 160, .04), transparent 34%),
        linear-gradient(135deg, #0f0f11 0%, #171719 52%, #120a05 100%);
    color:#EBEBEB;
    border-top:1px solid rgba(232, 196, 160, .16);
    box-shadow:0 -10px 28px rgba(15, 15, 17, .20);
    padding:30px 0 14px;
}

.footer-main-row {
    min-height: 120px;
}

.footer-brand-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-logo-link:hover {
    text-decoration: none;
}

.footer-logo-compact {
    height: 92px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(232, 196, 160, .32);
    border-radius: 18px;
    padding: 10px 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}

.footer-logo-link:hover .footer-logo-compact {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .34);
}

.footer-brand-text {
    color: rgba(249, 244, 238, .72);
    font-size: .94rem;
    line-height: 1.45;
}

.footer-title {
    color: #e8c4a0 !important;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: .03em;
}

.footer-contact-info p {
    margin-bottom: 6px;
    color: rgba(249, 244, 238, .76) !important;
    font-size: .94rem;
    line-height: 1.45;
}

.footer-contact-info i {
    color: #e8c4a0 !important;
    width: 18px;
}

.footer-whatsapp-button .btn {
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
}

.footer-social-box {
    text-align: center;
}

.footer-social-text {
    color: rgba(249, 244, 238, .74) !important;
    font-size: .92rem;
    line-height: 1.45;
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff !important;
    font-size: 1.15rem;
    box-shadow: 0 10px 22px rgba(46, 26, 14, .16);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.footer-social-links a:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(46, 26, 14, .22);
    filter: brightness(1.06);
    text-decoration: none;
}

.footer-social-links a[aria-label="Facebook"] {
    background: #1877f2;
}

.footer-social-links a[aria-label="Instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.footer-divider {
    height: 1px;
    background: rgba(232, 196, 160, .22);
    margin: 18px 0 12px;
}

.footer-bottom {
    color: rgba(249, 244, 238, .62);
    font-size: .9rem;
    background: transparent;
}

.footer-bottom p {
    color: rgba(249, 244, 238, .62);
}

/* Botón WhatsApp en footer */
#siteFooter .btn-primary,
#siteFooter .btn.btn-primary {
    color: #2e1a0e !important;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #e8c4a0 55%,
            #b5651d 100%) !important;
    border-color: rgba(232, 196, 160, .7) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

#siteFooter .btn-primary:hover,
#siteFooter .btn.btn-primary:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg,
            #b5651d 0%,
            #8b4513 100%) !important;
    border-color: #b5651d !important;
}

@media(max-width:991px) {
    .footer-tezi {
        padding: 26px 0 14px;
    }

    .footer-brand-box {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }

    .footer-logo-compact {
        height: 78px;
        max-width: 235px;
    }

    .footer-contact-info,
    .footer-whatsapp-button {
        text-align: center;
    }

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

    .footer-main-row {
        min-height: auto;
    }

    .footer-social-box {
        margin-top: 8px;
    }
}

/* =========================================================
   FOOTER - Invitación proveedores
========================================================= */

.footer-contact-invite{
    color:rgba(249, 244, 238, .74) !important;
    font-size:.92rem;
    line-height:1.45;
    margin-bottom:10px;
}

.footer-generic-contact p{
    margin-bottom:6px;
    color:rgba(249, 244, 238, .78) !important;
    font-size:.92rem;
    line-height:1.4;
}

.footer-generic-contact i{
    color:#e8c4a0 !important;
    width:18px;
}

/* =========================================================
   FOOTER - Slogan junto al logo
========================================================= */

.footer-slogan-box{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.footer-slogan{
    color:#e8c4a0 !important;
    font-size:1.08rem;
    font-weight:800;
    line-height:1.25;
    letter-spacing:.02em;
}

.footer-slogan-box .footer-brand-text{
    max-width:240px;
}

@media(max-width:991px){
    .footer-slogan-box{
        align-items:center;
        text-align:center;
    }

    .footer-slogan-box .footer-brand-text{
        max-width:320px;
    }
}

/* =========================================================
   GRID ECOMMERCE - 5 cards por renglón
========================================================= */

.ecommerce-wide-container {
    max-width: 1740px;
    padding-left: 28px;
    padding-right: 28px;
}

.col-lg-5th {
    position: relative;
    width: 100%;
    padding-right: 7.5px;
    padding-left: 7.5px;
}

@media (min-width: 992px) {
    .col-lg-5th {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 991.98px) {
    .ecommerce-wide-container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* =========================================================
   HOME - Espaciado compacto entre secciones
========================================================= */

.home-categorias-section {
    padding-top: 28px !important;
    padding-bottom: 0 !important;
}

.home-productos-section {
    padding-top: 18px !important;
    padding-bottom: 0 !important;
}

#homeProveedoresSection {
    padding-top: 18px !important;
    padding-bottom: 48px !important;
}

.home-categorias-section #homeCategorias > div,
.home-productos-section #homeProductos > div {
    margin-bottom: 0 !important;
}

.home-categorias-section #homeCategorias,
.home-productos-section #homeProductos {
    row-gap: 18px;
}

.home-productos-section .text-center.mt-4,
.home-productos-section .text-center.mt-5 {
    margin-top: 28px !important;
    margin-bottom: 0 !important;
}

#homeProveedoresSection .text-center.mb-4 {
    margin-bottom: 12px !important;
}

/* =========================================================
   HOME - Botón Ver catálogo completo
========================================================= */

.btn-catalogo-completo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 500px;
    padding: 11px 24px;
    background: #ffffff;
    color: #A85B18;
    border: 1px solid #E0C5A8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .7px;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: all .22s ease;
}

.btn-catalogo-completo:hover,
.btn-catalogo-completo:focus {
    background: #A85B18;
    color: #ffffff;
    border-color: #A85B18;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, .10);
}

/* =========================================================
   HOME - Cards grandes por sección
========================================================= */

.home-section-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(224, 197, 168, .45);
    border-radius: 28px;
    padding: 26px 24px 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .045);
}

.home-section-card-proveedores {
    padding-bottom: 34px;
}

.home-section-card .text-center.mb-4,
.home-section-card .row.justify-content-center.text-center.mb-4 {
    margin-bottom: 18px !important;
}

@media (max-width: 767.98px) {
    .home-section-card {
        border-radius: 22px;
        padding: 20px 14px 24px;
    }

    .home-productos-section,
    #homeProveedoresSection {
        padding-top: 16px !important;
    }

    .btn-catalogo-completo {
        min-width: 100%;
    }
}

/* =========================================================
   MOBILE - Reducir fondo gris lateral del home
========================================================= */

@media (max-width: 575.98px) {
    .home-categorias-section,
    .home-productos-section,
    #homeProveedoresSection {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-categorias-section > .ecommerce-wide-container,
    .home-productos-section > .ecommerce-wide-container,
    #homeProveedoresSection > .ecommerce-wide-container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* =========================================================
   HEADER - Fijo al hacer scroll
========================================================= */

html,
body {
    margin-top: 0 !important;
}

#siteHeader {
    height: var(--site-header-height, 86px);
}

.site-header-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1080;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateZ(0);
}

.site-header-sticky .navbar {
    background: #ffffff !important;
}

@media (max-width: 991.98px) {
    #siteHeader {
        height: var(--site-header-height, 82px);
    }

    .site-header-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1080;
    }

    .site-header-sticky .navbar {
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* =========================================================
   HOME - Igualar altura de cards de proveedores
========================================================= */

#homeProveedores {
    align-items: stretch !important;
}

#homeProveedores > div {
    display: flex;
}

.proveedor-card-link {
    width: 100%;
    height: 100%;
}

.proveedor-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.proveedor-logo-wrap {
    flex: 0 0 150px;
}

.proveedor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-banner-section {
    position: relative;
}

.home-banner-img {
    object-fit: cover;
    filter: none !important;
}

.home-banner-indicators {
    bottom: 14px;
    margin-bottom: 0;
    align-items: center;
}

.home-banner-indicators li {
    width: 7px;
    height: 7px;
    margin: 0 5px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(255, 255, 255, .55);
    opacity: 1;
    transition: all .25s ease;
}

.home-banner-indicators li.active {
    width: 20px;
    border-radius: 999px;
    background-color: #fff;
}

.home-banner-arrow {
    width: 42px;
    height: 42px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
    background: rgba(0, 0, 0, .22);
    border-radius: 50%;
    transition: all .25s ease;
}

.home-banner-arrow:hover {
    background: rgba(0, 0, 0, .38);
}

.home-banner-arrow-left {
    left: 18px;
}

.home-banner-arrow-right {
    right: 18px;
}

.home-banner-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
    color: #fff;
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    .home-banner-arrow {
        width: 34px;
        height: 34px;
    }

    .home-banner-arrow-left {
        left: 10px;
    }

    .home-banner-arrow-right {
        right: 10px;
    }

    .home-banner-arrow-icon {
        font-size: 28px;
    }

    .home-banner-indicators {
        bottom: 10px;
    }

    .home-banner-indicators li {
        width: 6px;
        height: 6px;
        margin: 0 4px;
    }

    .home-banner-indicators li.active {
        width: 16px;
    }
}

@media (max-width: 768px) {
    .home-banner-section .hero-slide {
        height: 160px;
        min-height: 160px;
        background-color: #ffffff;
    }

    .home-banner-img {
        object-fit: contain !important;
        filter: none !important;
    }

    .home-banner-section .carousel-inner,
    .home-banner-section .carousel-item {
        height: 160px;
    }
}

.header-menu-tezi .nav-link {
    font-size: 90%;
}

.header-cart-link {
    margin-left: auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.header-cart-link:hover {
    color: #FE0029;
    background: rgba(254, 0, 41, 0.08);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .header-cart-link {
        display: none !important;
    }
}

.carrito-panel,
.carrito-resumen {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.carrito-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.carrito-listado {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carrito-item {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px 150px 120px 48px;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    background: #ffffff;
}

.carrito-producto {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.carrito-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f8f8;
    flex: 0 0 72px;
}

.carrito-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrito-producto-nombre {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.carrito-producto-sku {
    font-size: 12px;
    color: #777777;
}

.carrito-precio,
.carrito-subtotal {
    font-weight: 700;
    color: #FE0029;
}

.carrito-cantidad {
    display: flex;
    align-items: center;
    gap: 6px;
}

.carrito-cantidad input {
    width: 58px;
    text-align: center;
    height: 34px;
    padding: 4px;
}

.carrito-acciones {
    text-align: right;
}

.carrito-resumen-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.carrito-resumen-linea strong {
    color: #FE0029;
}

.carrito-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(254, 0, 41, 0.08);
    color: #FE0029;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

@media (max-width: 991.98px) {
    .carrito-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .carrito-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-precio,
    .carrito-subtotal,
    .carrito-acciones {
        text-align: left;
    }
}
/* =========================================================
   PÁGINAS INTERNAS - Misma línea visual del inicio
   Estas reglas no modifican index.php; solo normalizan páginas internas.
========================================================= */

.page-shell {
    background: var(--ts-cream);
}

.page-hero-section {
    padding: 28px 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.page-hero-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(224, 197, 168, .45);
    border-radius: 28px;
    padding: 34px 24px 38px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .045);
}

.catalog-hero-kicker {
    display: inline-block;
    color: var(--ts-beige) !important;
    background: #fff !important;
    border: 1px solid var(--ts-border);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 16px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.page-title,
.catalog-hero .page-title {
    color: var(--ts-black) !important;
    font-size: clamp(2rem, 4vw, 3.9rem);
    font-weight: 800;
    line-height: 1.05;
}

.page-subtitle,
.catalog-hero .page-subtitle,
.catalog-hero .text-white {
    color: var(--ts-muted) !important;
    font-size: 1rem;
    line-height: 1.65;
}

.page-content-section {
    padding-top: 18px !important;
    padding-bottom: 48px !important;
    background: transparent !important;
}

.product-detail-section {
    padding-top: 28px !important;
}

.related-products-section {
    padding-top: 0 !important;
}

.page-section-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(224, 197, 168, .45);
    border-radius: 28px;
    padding: 26px 24px 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .045);
}

.page-section-card #categoriasListado > div,
.page-section-card #productosListado > div,
.page-section-card #proveedoresListado > div,
.page-section-card #productosRelacionados > div {
    margin-bottom: 0 !important;
}

.page-section-card #categoriasListado,
.page-section-card #productosListado,
.page-section-card #proveedoresListado,
.page-section-card #productosRelacionados {
    row-gap: 18px;
}

.page-list-header {
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(224, 197, 168, .35);
}

.page-list-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ts-black);
}

.page-empty-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px 26px;
}

.page-empty-icon {
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    background: rgba(181, 101, 29, .10);
    color: var(--ts-beige-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.contact-info-card,
.contact-form-card {
    background: linear-gradient(180deg, #fff 0%, var(--ts-cream-2) 100%);
    border: 1px solid rgba(224, 197, 168, .45);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .035);
}

.contact-info-card h2,
.contact-form-card h4 {
    color: var(--ts-black);
    font-weight: 800;
}

.product-detail-card {
    padding: 30px;
}

.product-detail-info {
    background: linear-gradient(180deg, #fff 0%, rgba(235, 235, 235, .70) 100%);
    border: 1px solid rgba(224, 197, 168, .42);
    border-radius: 22px;
    padding: 28px;
}

.product-detail-info small {
    font-weight: 800;
    letter-spacing: .08em;
}

.product-detail-info .display-4 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #FE0029 !important;
    font-weight: 800;
}

.carrito-panel,
.carrito-resumen {
    border: 1px solid rgba(224, 197, 168, .45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .045);
}

.carrito-resumen-total {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(224, 197, 168, .45);
}

@media (max-width: 991.98px) {
    .page-hero-section {
        padding-top: 18px !important;
    }

    .page-hero-card,
    .page-section-card {
        border-radius: 22px;
        padding: 22px 14px 26px;
    }

    .product-detail-card,
    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }

    .page-content-section {
        padding-bottom: 34px !important;
    }
}

@media (max-width: 575.98px) {
    .page-hero-section,
    .page-content-section,
    .product-detail-section,
    .related-products-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-hero-section > .ecommerce-wide-container,
    .page-content-section > .ecommerce-wide-container,
    .product-detail-section > .ecommerce-wide-container,
    .related-products-section > .ecommerce-wide-container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .page-title,
    .catalog-hero .page-title {
        font-size: 2rem;
    }
}
