:root {
    --catalog-primary: #087a42;
    --catalog-primary-dark: #065f35;
    --catalog-accent: #0ea5a3;
    --catalog-ink: #17212b;
    --catalog-muted: #687584;
    --catalog-line: #dce5ee;
    --catalog-soft: #f3f7f5;
    --catalog-bg: #f7f9fb;
    --catalog-star: #f5a400;
    --catalog-danger: #dc2626;
    --catalog-warning: #f59e0b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 14px 14px, rgba(8, 122, 66, .08) 1px, transparent 1px),
        var(--catalog-bg);
    background-size: 28px 28px;
    color: var(--catalog-ink);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
}

button,
input,
select {
    font: inherit;
}

.catalogo-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(220, 229, 238, .9);
    box-shadow: 0 10px 28px rgba(23, 33, 43, .08);
    backdrop-filter: blur(12px);
}

.catalogo-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 126px;
    max-width: 245px;
    min-height: 48px;
    color: var(--catalog-ink);
    text-decoration: none;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: .02em;
}

.brand__logo {
    display: block;
    max-width: 230px;
    max-height: 58px;
    object-fit: contain;
}

.brand__fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
}

.brand__fallback i {
    color: var(--catalog-primary);
    font-size: 30px;
}

.brand-divider {
    height: 36px;
    width: 1px;
    background: linear-gradient(var(--catalog-primary), var(--catalog-accent));
}

.catalogo-label {
    padding: 7px 11px;
    border: 1px solid rgba(8, 122, 66, .22);
    border-radius: 999px;
    background: #effaf4;
    color: var(--catalog-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.catalogo-slogan {
    max-width: 280px;
    overflow: hidden;
    color: var(--catalog-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalogo-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--catalog-line);
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.icon-btn:hover {
    border-color: rgba(8, 122, 66, .35);
    color: var(--catalog-primary);
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--catalog-primary);
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
}

.catalogo-page {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 44px;
}

.hero-slider {
    width: 100%;
    margin: 0 auto 24px;
    overflow: hidden;
    background: #102018;
    border: 1px solid rgba(8, 122, 66, .12);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(23, 33, 43, .12);
}

.hero-slider,
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 280px;
}

.hero-slider__image {
    height: 280px;
    object-fit: cover;
}

.hero-slider__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 62%;
    padding: 34px 68px;
    color: #fff;
    background: linear-gradient(90deg, rgba(8, 18, 14, .84), rgba(8, 18, 14, .34), transparent);
}

.hero-slider__content h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 850;
}

.hero-slider__content p {
    margin: 0 0 16px;
    line-height: 1.5;
}

.hero-slider__button {
    padding: 9px 15px;
    background: var(--catalog-primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.empty-slide {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #102018;
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 850;
    letter-spacing: .03em;
}

.carousel-control-prev,
.carousel-control-next {
    width: 52px;
}

.catalogo-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.filters,
.products-toolbar,
.product-card {
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--catalog-line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 33, 43, .06);
}

.promotion-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #dc2626;
    color: #fff;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
}

.product-card__old-price {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: line-through;
}

.filters {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.filters__title {
    margin-bottom: 16px;
    color: var(--catalog-ink);
    font-size: 18px;
    font-weight: 850;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 12px;
    border: 1px solid #cbd8e4;
    border-radius: 8px;
    background: #fbfcfd;
    color: var(--catalog-ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search-box input:focus {
    border-color: rgba(8, 122, 66, .55);
    box-shadow: 0 0 0 4px rgba(8, 122, 66, .1);
}

.search-box i {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--catalog-muted);
}

.filter-group {
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--catalog-line);
}

.filter-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-heading,
.filter-heading--large {
    margin-bottom: 12px;
    color: var(--catalog-ink);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.check-row,
.switch-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 30px;
    margin: 0;
    color: #405160;
    cursor: pointer;
}

.check-row input {
    width: 15px;
    height: 15px;
    accent-color: var(--catalog-primary);
}

#priceFilter {
    width: 100%;
    accent-color: var(--catalog-primary);
}

.price-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--catalog-muted);
    font-size: 13px;
    font-weight: 700;
}

.stars {
    display: flex;
    gap: 6px;
    color: var(--catalog-star);
    font-size: 19px;
}

.switch-row input {
    position: absolute;
    opacity: 0;
}

.switch-ui {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d7e0ea;
    position: relative;
    box-shadow: inset 0 0 0 1px #c5d0db;
}

.switch-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .24);
    transition: transform .18s ease;
}

.switch-row input:checked + .switch-ui {
    background: var(--catalog-primary);
}

.switch-row input:checked + .switch-ui::after {
    transform: translateX(20px);
}

.products-toolbar {
    min-height: 56px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--catalog-muted);
}

.products-toolbar strong {
    color: var(--catalog-primary-dark);
}

.products-toolbar label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}

.products-toolbar select {
    height: 36px;
    min-width: 190px;
    border: 1px solid #cbd8e4;
    border-radius: 8px;
    background: #fff;
    color: #405160;
    padding: 0 9px;
    outline: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.product-card {
    position: relative;
    min-height: 350px;
    padding: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-card:hover {
    border-color: rgba(8, 122, 66, .3);
    box-shadow: 0 18px 34px rgba(23, 33, 43, .12);
    transform: translateY(-3px);
}

.favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(220, 229, 238, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    color: #aeb8c3;
    font-size: 18px;
    transition: color .18s ease, transform .18s ease, border-color .18s ease;
}

.favorite-btn:hover,
.favorite-btn.is-active {
    border-color: rgba(220, 38, 38, .18);
    color: #e11d48;
    transform: scale(1.03);
}

.stock-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    max-width: calc(100% - 66px);
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(23, 33, 43, .14);
}

.promotion-badge + .stock-badge {
    top: 46px;
}

.stock-badge--ok {
    background: var(--catalog-primary);
}

.stock-badge--low {
    background: var(--catalog-warning);
    color: #2b2210;
}

.stock-badge--out {
    background: var(--catalog-danger);
}

.product-card__image-wrap {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2px -2px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #f8fafc, #eef4f1);
}

.product-card__image {
    max-width: 92%;
    max-height: 178px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(23, 33, 43, .12));
}

.image-placeholder {
    color: #94a3b8;
    font-size: 76px;
    line-height: 1;
}

.add-btn {
    width: 100%;
    height: 40px;
    margin: 8px 0 10px;
    border: 0;
    border-radius: 8px;
    background: var(--catalog-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 850;
    transition: background .18s ease, transform .18s ease;
}

.add-btn:hover {
    background: var(--catalog-primary-dark);
}

.product-card[data-stock="0"] .add-btn {
    background: #9ca3af;
    cursor: not-allowed;
}

.product-card__name {
    display: block;
    min-height: 38px;
    color: #111827;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.28;
    text-decoration: none;
}

.product-card__name:hover {
    color: var(--catalog-primary-dark);
}

.product-card__stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    color: var(--catalog-star);
    font-size: 13px;
}

.product-card__stars span {
    margin-left: 4px;
    color: #7c8792;
    font-size: 12px;
    font-weight: 700;
}

.product-card__price {
    margin-top: 8px;
    color: var(--catalog-primary);
    font-size: 19px;
    font-weight: 900;
}

.empty-products {
    margin-top: 18px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #cbd5df;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: #7c8792;
}

.empty-products i {
    font-size: 34px;
}

.modal-content {
    border-radius: 8px !important;
}

.catalog-offcanvas {
    width: min(520px, 100vw) !important;
}

.catalog-offcanvas .offcanvas-header {
    min-height: 84px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--catalog-line);
    background: linear-gradient(135deg, #fff, #f1faf5);
}

.catalog-offcanvas .offcanvas-body {
    padding: 18px 20px 24px;
    background: #f7faf8;
}

.catalog-offcanvas:has(.checkout-shell) .offcanvas-header {
    display: none;
}

.catalog-offcanvas:has(.checkout-shell) .offcanvas-body {
    padding: 0;
    background: #f6f5f8;
}

.cart-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--catalog-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cart-summary-top {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--catalog-muted);
    font-size: 12px;
}

.cart-summary-top strong {
    color: var(--catalog-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: 1px solid #e1e9e4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(23, 33, 43, .05);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cart-item:hover {
    border-color: rgba(8, 122, 66, .26);
    box-shadow: 0 11px 24px rgba(23, 33, 43, .08);
    transform: translateY(-1px);
}

.cart-item__image-wrap {
    width: 72px;
    height: 72px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #f4f8f5, #edf4ef);
}

.cart-item__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item__info > strong {
    overflow: hidden;
    color: var(--catalog-ink);
    font-size: 14px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__info > span {
    color: var(--catalog-muted);
    font-size: 11px;
}

.cart-item__meta {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item__meta > strong {
    color: var(--catalog-primary-dark);
    font-size: 15px;
    font-weight: 900;
}

.cart-quantity {
    padding: 4px 7px;
    border-radius: 999px;
    background: #eff7f2;
    color: #4c6658;
    font-size: 10px;
    font-weight: 800;
}

.remove-cart {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    background: #fff7f7;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.remove-cart:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.04);
}

.cart-total-card {
    margin-top: 16px;
    padding: 17px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--catalog-primary-dark), var(--catalog-primary));
    color: #fff;
    box-shadow: 0 12px 24px rgba(8, 122, 66, .2);
}

.cart-total-card div {
    display: flex;
    flex-direction: column;
}

.cart-total-card span {
    font-size: 13px;
    font-weight: 850;
}

.cart-total-card small {
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
}

.cart-total-card > strong {
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.cart-empty {
    min-height: 420px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-empty__icon {
    width: 78px;
    height: 78px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #e9f7ef;
    color: var(--catalog-primary);
    display: grid;
    place-items: center;
    font-size: 34px;
}

.cart-empty h6 {
    margin-bottom: 7px;
    font-size: 17px;
    font-weight: 850;
}

.cart-empty p {
    max-width: 270px;
    margin-bottom: 20px;
    color: var(--catalog-muted);
    font-size: 12px;
    line-height: 1.55;
}

.cart-continue {
    padding: 9px 15px;
    border: 0;
    border-radius: 8px;
    background: var(--catalog-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.cart-checkout-link {
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--catalog-primary), var(--catalog-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 900;
    text-decoration: none;
}

.cart-checkout-link:hover {
    color: #fff;
    filter: brightness(.96);
}

.product-detail-carousel {
    min-height: 340px;
    overflow: hidden;
    background: #f6f8fb;
    border: 1px solid var(--catalog-line);
    border-radius: 8px;
}

.product-detail-carousel,
.product-detail-carousel .carousel-inner,
.product-detail-carousel .carousel-item {
    height: 340px;
}

.detail-image {
    height: 340px;
    object-fit: contain;
    background: #fff;
}

.detail-image-placeholder {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f6f8fb;
    font-size: 96px;
}

.product-detail-carousel .carousel-control-prev-icon,
.product-detail-carousel .carousel-control-next-icon {
    filter: invert(1) grayscale(1);
}

.detail-price {
    margin-bottom: 8px;
    color: var(--catalog-primary);
    font-size: 30px;
    font-weight: 900;
}

.detail-stock {
    color: #4f5f6f;
}

.detail-stock-status {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    vertical-align: middle;
}

.detail-stock-status--ok {
    background: var(--catalog-primary);
}

.detail-stock-status--low {
    background: var(--catalog-warning);
    color: #2b2210;
}

.detail-stock-status--out {
    background: var(--catalog-danger);
}

.detail-description {
    min-height: 118px;
    color: #4f5f6f;
    line-height: 1.65;
    white-space: pre-line;
}

#detailAddButton {
    border-radius: 8px !important;
    background: var(--catalog-primary);
    border-color: var(--catalog-primary);
    color: #fff;
}

#detailAddButton:hover {
    background: var(--catalog-primary-dark);
    border-color: var(--catalog-primary-dark);
}

#detailAddButton:focus {
    box-shadow: 0 0 0 4px rgba(8, 122, 66, .18);
}

.catalog-footer {
    margin-top: 36px;
    background: #17212b;
    color: #fff;
}

.catalog-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr .8fr;
    gap: 36px;
}

.catalog-footer h6 {
    margin-bottom: 14px;
    font-weight: 850;
}

.catalog-footer__brand img {
    display: block;
    max-width: 180px;
    max-height: 54px;
    margin-bottom: 12px;
    object-fit: contain;
}

.catalog-footer__brand strong {
    font-size: 20px;
}

.catalog-footer__brand p {
    margin: 7px 0 0;
    color: #aeb9c5;
}

.catalog-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.catalog-footer__contact a,
.catalog-footer__contact span {
    display: flex;
    gap: 9px;
    color: #c8d1da;
    text-decoration: none;
}

.catalog-footer__socials div {
    display: flex;
    gap: 8px;
}

.catalog-footer__socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #40505f;
    color: #fff;
    text-decoration: none;
}

.catalog-footer__socials a:hover {
    border-color: var(--catalog-accent);
    color: var(--catalog-accent);
}

@media (max-width: 980px) {
    .catalogo-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .filters__title,
    .search-box {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .filter-group {
        margin: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .catalogo-header__inner,
    .catalogo-page {
        width: min(100% - 20px, 1180px);
    }

    .catalogo-header__inner {
        min-height: 68px;
        gap: 9px;
    }

    .brand {
        min-width: 0;
        max-width: 150px;
        font-size: 18px;
    }

    .brand__logo {
        max-width: 145px;
        max-height: 48px;
    }

    .brand-divider {
        height: 28px;
    }

    .catalogo-label {
        padding: 5px 8px;
        font-size: 11px;
    }

    .catalogo-actions {
        gap: 6px;
    }

    .catalogo-slogan {
        display: none;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .hero-slider,
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slider__image,
    .empty-slide {
        height: 180px;
    }

    .hero-slider__content {
        max-width: 88%;
        padding: 22px 44px;
    }

    .hero-slider__content h1 {
        font-size: 22px;
    }

    .filters {
        display: block;
    }

    .filter-group {
        margin-bottom: 18px;
    }

    .products-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .products-toolbar label,
    .products-toolbar select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 330px;
    }

    .product-card__image-wrap {
        height: 178px;
    }

    .product-detail-carousel,
    .product-detail-carousel .carousel-inner,
    .product-detail-carousel .carousel-item,
    .detail-image,
    .detail-image-placeholder {
        height: 260px;
    }

.catalog-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.checkout-shell {
    min-height: 100vh;
    padding: 24px 54px 44px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 245, 248, .96)),
        #f6f5f8;
}

.checkout-topbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #6d7280;
}

.checkout-back {
    border: 0;
    background: transparent;
    color: #808696;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
}

.checkout-back:hover,
.checkout-secure i {
    color: #0fa36b;
}

.checkout-secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3c4150;
    font-weight: 850;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 42px;
    align-items: start;
    padding-top: 18px;
}

.checkout-main {
    display: grid;
    gap: 28px;
}

.checkout-step {
    padding: 28px 30px;
    background: rgba(255, 255, 255, .64);
    border: 1px solid rgba(226, 232, 240, .58);
    border-radius: 8px;
}

.checkout-step__title {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.checkout-step__title h3,
.order-summary h3 {
    margin: 0;
    color: #30394c;
    font-size: 18px;
    font-weight: 900;
}

.checkout-step__number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4faf, #8c3be4);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(172, 65, 197, .24);
}

.checkout-step__number--purple {
    background: linear-gradient(135deg, #8847e5, #bf2bbd);
}

.delivery-choice,
.payment-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.delivery-pill,
.payment-tab {
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: #667085;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 850;
    transition: border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.delivery-pill input,
.payment-tab input {
    position: absolute;
    opacity: 0;
}

.delivery-pill--selected,
.payment-card--selected {
    border-color: #b73ec7;
    color: #3b4050;
    box-shadow: 0 8px 22px rgba(147, 51, 234, .09);
}

.checkout-address-card {
    min-height: 50px;
    margin: 0;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, .75);
    color: #8a92a3;
}

.checkout-address-card input {
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4a5161;
    font-weight: 750;
    text-transform: uppercase;
}

.address-edit {
    width: 30px;
    height: 30px;
    border: 1px solid #d7dde7;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #fff;
}

.checkout-help {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a92a3;
    font-weight: 650;
}

.payment-dot {
    width: 10px;
    height: 10px;
    border: 1px solid #b9c1d0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px #fff;
}

.payment-card--selected .payment-dot {
    background: #2ca9e1;
    border-color: #2ca9e1;
}

.payment-proof {
    min-height: 104px;
    padding: 17px 20px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 94% 12%, rgba(255, 255, 255, .14) 0 44px, transparent 45px),
        linear-gradient(135deg, #8d35d6, #ee2b8d);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
}

.payment-proof strong,
.payment-proof span,
.payment-proof small,
.payment-proof b {
    display: block;
}

.payment-proof strong {
    margin-bottom: 4px;
}

.payment-proof span,
.payment-proof small {
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.payment-proof b {
    margin: 9px 0;
    font-size: 17px;
    letter-spacing: .08em;
}

.payment-qr-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 20px;
}

.payment-evidence {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.payment-evidence label {
    margin: 0;
}

.payment-evidence span {
    display: block;
    margin-bottom: 8px;
    color: #778092;
    font-weight: 800;
}

.checkout-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7dde7;
    border-radius: 6px;
    background: #fff;
    color: #3f4758;
    padding: 10px 12px;
    outline: 0;
    resize: vertical;
}

.checkout-input:focus {
    border-color: #b73ec7;
    box-shadow: 0 0 0 3px rgba(183, 62, 199, .1);
}

.payment-evidence small {
    display: block;
    margin-top: 6px;
    color: #9aa1ae;
    font-size: 11px;
}

.checkout-note {
    margin-top: 15px;
}

.order-summary {
    position: sticky;
    top: 22px;
    padding: 28px 26px 20px;
    border: 1px solid rgba(226, 232, 240, .6);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 38px rgba(47, 55, 75, .1);
}

.summary-heading {
    margin-bottom: 22px;
}

.summary-heading span {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #6e7787;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
}

.summary-items {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.summary-item {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.summary-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.summary-item strong {
    display: block;
    overflow: hidden;
    color: #4a5161;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-item small {
    display: block;
    color: #8c94a4;
    font-size: 12px;
}

.summary-item b {
    color: #2298e8;
    font-size: 15px;
}

.summary-item .remove-cart {
    position: absolute;
    right: -10px;
    top: -14px;
    width: 26px;
    height: 26px;
    opacity: 0;
}

.summary-item:hover .remove-cart {
    opacity: 1;
}

.summary-totals {
    display: grid;
    gap: 9px;
    padding-top: 4px;
}

.summary-totals div,
.summary-final {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.summary-totals span {
    color: #8b94a3;
}

.summary-totals strong {
    color: #4b5565;
}

.summary-free {
    color: #20a66f !important;
}

.summary-final {
    align-items: baseline;
    margin: 28px 0 20px;
    color: #3f4758;
    font-size: 17px;
    font-weight: 900;
}

.summary-final strong {
    color: #218ee4;
    font-size: 24px;
}

.checkout-submit {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #8d35d6, #ee2b8d);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
}

.checkout-submit:disabled {
    opacity: .7;
}

.summary-secure {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
    color: #8a92a3;
}

@media (max-width: 940px) {
    .checkout-shell {
        padding: 18px 18px 30px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 620px) {
    .checkout-topbar,
    .delivery-choice,
    .payment-tabs,
    .payment-evidence {
        grid-template-columns: 1fr;
    }

    .checkout-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-step,
    .order-summary {
        padding: 20px 16px;
    }

    .summary-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .summary-item b {
        grid-column: 2;
    }
}

/* Renovación visual del escaparate */
body {
    background: #f5f7f6;
    color: #17221c;
}
.catalogo-header { border-bottom: 1px solid #e3e9e5; box-shadow: 0 5px 22px rgba(20, 40, 29, .07); }
.catalogo-header__inner, .catalogo-page { width: min(1240px, calc(100% - 40px)); }
.icon-btn { border-radius: 50%; background: #f8faf9; }
.icon-btn:hover { background: #edf8f1; box-shadow: 0 6px 16px rgba(8, 122, 66, .12); }
.hero-slider { margin-bottom: 18px; border: 0; border-radius: 16px; box-shadow: 0 18px 48px rgba(20, 40, 29, .15); }
.hero-slider, .hero-slider .carousel, .hero-slider .carousel-inner, .hero-slider .carousel-item, .hero-slider__image { height: 330px; }
.hero-slider__content { padding-left: 72px; }
.hero-slider__content h1 { max-width: 560px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.hero-slider__button { padding: 11px 20px; border-radius: 8px; box-shadow: 0 8px 20px rgba(8, 122, 66, .28); }
.catalog-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; padding: 22px 26px; border: 1px solid #e1e8e3; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(20, 40, 29, .045); }
.catalog-intro__eyebrow { color: var(--catalog-primary); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.catalog-intro h2 { margin: 4px 0 4px; font-size: clamp(21px, 2.4vw, 29px); font-weight: 850; }
.catalog-intro p { margin: 0; color: #738078; font-size: 13px; }
.catalog-benefits { display: flex; gap: 10px; }
.catalog-benefits span { min-width: 120px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f1f8f4; color: #426050; font-size: 11px; }
.catalog-benefits i { color: var(--catalog-primary); font-size: 18px; }
.catalogo-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
.filters { top: 94px; padding: 22px; border-color: #e1e8e3; border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 40, 29, .055); }
.filters__title { display: flex; align-items: center; gap: 8px; }
.filters__title::before { content: "\F3E1"; font-family: "bootstrap-icons"; color: var(--catalog-primary); }
.products-toolbar { min-height: 62px; padding: 13px 18px; border-color: #e1e8e3; border-radius: 12px; box-shadow: none; }
.products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { min-height: 420px; display: flex; flex-direction: column; padding: 14px 16px 16px; border-color: #e1e8e3; border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 40, 29, .055); }
.product-card:hover { border-color: rgba(8, 122, 66, .32); box-shadow: 0 20px 42px rgba(20, 40, 29, .13); transform: translateY(-5px); }
.product-card__image-wrap { height: 220px; margin: -2px -4px 14px; border-radius: 11px; background: linear-gradient(145deg, #fafcfb, #eef5f1); }
.product-card__image { max-height: 202px; transition: transform .25s ease; }
.product-card:hover .product-card__image { transform: scale(1.035); }
.product-card__category { margin-bottom: 5px; color: var(--catalog-primary); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.product-card__name { min-height: 42px; font-size: 16px; line-height: 1.3; }
.product-card__stars { margin-top: 5px; }
.product-card__old-price { margin-top: auto; padding-top: 10px; }
.product-card__price { margin-top: 2px; font-size: 22px; letter-spacing: -.02em; }
.add-btn { height: 43px; margin: 12px 0 0; border-radius: 9px; box-shadow: 0 8px 18px rgba(8, 122, 66, .18); }
.promotion-badge { top: 14px; left: 14px; border-radius: 6px; box-shadow: 0 6px 16px rgba(220, 38, 38, .2); }
.stock-badge { border: 1px solid rgba(255,255,255,.8); box-shadow: 0 6px 15px rgba(20,40,29,.12); }
.favorite-btn { border-radius: 50%; box-shadow: 0 5px 14px rgba(20,40,29,.08); }
.catalog-footer { border-top: 1px solid #dce6df; background: #14221a; color: #dce8e0; }

@media (max-width: 1080px) {
    .catalog-benefits span { min-width: 0; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .catalogo-header__inner, .catalogo-page { width: min(100% - 24px, 1240px); }
    .catalog-intro { align-items: flex-start; flex-direction: column; }
    .catalog-benefits { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
    .catalogo-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
}
@media (max-width: 560px) {
    .hero-slider, .hero-slider .carousel, .hero-slider .carousel-inner, .hero-slider .carousel-item, .hero-slider__image { height: 240px; }
    .hero-slider__content { max-width: 88%; padding: 24px 28px; }
    .catalog-benefits { grid-template-columns: 1fr; }
    .products-toolbar { align-items: flex-start; flex-direction: column; }
    .products-toolbar label, .products-toolbar select { width: 100%; }
    .products-grid { grid-template-columns: 1fr; }
    .product-card { min-height: 400px; }
}

/* Presentación del catálogo: márgenes reales y beneficios con el mismo ancho. */
.customer-page .catalogo-page .catalog-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 30px 32px;
    margin-bottom: 24px;
    border: 1px solid #dce6d6;
    border-radius: 18px;
    background: linear-gradient(115deg, #fff 35%, #f4f8ee 100%);
    box-shadow: 0 4px 18px #29442b05;
}
.catalog-intro__copy { min-width: 0; }
.customer-page .catalog-intro__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #567545;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.5;
}
.customer-page .catalog-intro h2 {
    margin: 0;
    max-width: 580px;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-wrap: balance;
    color: #244b35;
}
.customer-page .catalog-intro p {
    margin: 12px 0 0;
    max-width: 510px;
    font-size: .84rem;
    line-height: 1.7;
    color: #687963;
}
.customer-page .catalog-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}
.customer-page .catalog-benefits > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 18px 12px;
    background: #ffffffc9;
    border: 1px solid #e0e8d9;
    border-radius: 12px;
    text-align: center;
}
.customer-page .catalog-benefits i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--catalog-primary, #28734f);
    background: #eff5e8;
    border-radius: 10px;
    font-size: 1.15rem;
}
.customer-page .catalog-benefits b { color: #45613b; font-size: .74rem; line-height: 1.5; font-weight: 600; }
@media (max-width: 1050px) {
    .customer-page .catalogo-page .catalog-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px; }
    .customer-page .catalog-benefits > span { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; }
}
@media (max-width: 575px) {
    .customer-page .catalogo-page .catalog-intro { padding: 22px 20px; gap: 20px; border-radius: 14px; }
    .customer-page .catalog-benefits { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .customer-page .catalog-benefits > span { padding: 10px 12px; gap: 12px; }
    .customer-page .catalog-benefits b { font-size: .8rem; }
    .customer-page .catalog-benefits i { width: 32px; height: 32px; font-size: 1rem; }
}
