/* Tienda pública BotyCheck */
body.page-shop {
    --shop-accent: #ea0200;
    --shop-card-bg: rgba(255, 255, 255, 0.04);
    --shop-border: rgba(255, 255, 255, 0.1);
}

.shop-kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.shop-page-lead {
    color: rgba(255, 255, 255, 0.72);
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Index: encabezado y catálogo */
.shop-index-section {
    padding-top: 0.5rem;
}

.shop-index-container {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 992px) {
    .shop-index-container {
        padding-top: 3.5rem;
        padding-bottom: 4.5rem;
    }
}

.shop-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding-bottom: 2.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
    .shop-page-header {
        padding-bottom: 3.25rem;
    }
}

.shop-page-header__main {
    max-width: 42rem;
}

.shop-page-title {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.shop-page-header__actions {
    flex-shrink: 0;
    padding-bottom: 0.15rem;
}

.shop-index-alert {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.shop-catalog-section {
    padding-top: 2.75rem;
}

@media (min-width: 992px) {
    .shop-catalog-section {
        padding-top: 3.5rem;
    }
}

.shop-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .shop-catalog-head {
        margin-bottom: 2.5rem;
    }
}

.shop-catalog-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
}

.shop-catalog-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.shop-product-grid {
    margin-top: 0;
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.shop-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--shop-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.shop-cart-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.shop-cart-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--shop-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Carrito flotante (mobile) */
.shop-cart-fab {
    display: none;
}

@media (max-width: 991.98px) {
    body.page-shop .shop-index-section,
    body.page-shop .shop-detail-section {
        padding-bottom: 5.5rem !important;
    }

    .shop-index-container {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .shop-page-header {
        padding-bottom: 1.25rem;
        gap: 1rem;
    }

    .shop-page-header__main .shop-kicker {
        margin-bottom: 0.5rem !important;
    }

    .shop-page-title {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
    }

    .shop-page-lead {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .shop-catalog-section {
        padding-top: 1.25rem;
    }

    .shop-catalog-head {
        margin-bottom: 1.15rem;
    }

    .shop-catalog-title {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.2rem;
    }

    .shop-catalog-subtitle {
        font-size: 0.8rem;
    }

    .shop-product-grid {
        --bs-gutter-y: 1rem;
    }

    /* Tarjeta horizontal en catálogo: más aire, tipografía más contenida */
    .shop-product-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 7.5rem;
    }

    .shop-product-card:hover {
        transform: none;
    }

    .shop-product-card__media {
        width: 34%;
        max-width: 7.5rem;
        min-width: 5.5rem;
        aspect-ratio: 1;
        flex-shrink: 0;
    }

    .shop-product-card__body {
        flex: 1;
        min-width: 0;
        padding: 0.95rem 1rem 0.95rem 0.85rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.45rem;
    }

    .shop-product-card__title {
        font-size: 0.88rem;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .shop-price-row {
        gap: 0.35rem 0.5rem;
    }

    .shop-price-current {
        font-size: 0.98rem;
        font-weight: 700;
    }

    .shop-price-old {
        font-size: 0.78rem;
    }

    .shop-discount-pill {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }

    /* Carrito: cada artículo como tarjeta en mobile */
    .shop-cart-table .table thead {
        display: none;
    }

    .shop-cart-table .table tbody tr.shop-cart-line {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "product product"
            "price qty"
            "subtotal remove";
        gap: 0.65rem 1rem;
        padding: 1rem;
        border-bottom: 1px solid var(--shop-border);
    }

    .shop-cart-table .table tbody tr.shop-cart-line:last-child {
        border-bottom: 0;
    }

    .shop-cart-table .table td {
        display: block;
        border: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .shop-cart-table .shop-cart-line-product {
        grid-area: product;
    }

    .shop-cart-table .shop-cart-line-product .d-flex {
        gap: 0.85rem !important;
        align-items: flex-start !important;
    }

    .shop-cart-table .shop-cart-line-product img {
        width: 4.25rem !important;
        height: 4.25rem !important;
        flex-shrink: 0;
    }

    .shop-cart-table .shop-cart-line-product a {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        line-height: 1.45;
    }

    .shop-cart-table .shop-cart-line-price {
        grid-area: price;
        text-align: left !important;
        font-size: 0.84rem !important;
        color: rgba(255, 255, 255, 0.88);
    }

    .shop-cart-table .shop-cart-line-price::before {
        content: 'Precio';
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 0.3rem;
        font-family: var(--bs-body-font-family);
    }

    .shop-cart-table .shop-cart-line-qty {
        grid-area: qty;
        justify-self: end;
    }

    .shop-cart-table .shop-cart-line-qty::before {
        content: 'Cantidad';
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 0.3rem;
    }

    .shop-cart-table .shop-cart-line-qty .form-control {
        max-width: 4.5rem;
        font-size: 0.86rem;
        margin-left: auto;
    }

    .shop-cart-table .shop-cart-line-subtotal {
        grid-area: subtotal;
        text-align: left !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        align-self: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .shop-cart-table .shop-cart-line-subtotal::before {
        content: 'Subtotal';
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 0.15rem;
        font-weight: 400;
        font-family: var(--bs-body-font-family);
    }

    .shop-cart-table .shop-cart-line-remove {
        grid-area: remove;
        text-align: right !important;
        align-self: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .shop-cart-link--inline {
        display: none !important;
    }

    .shop-cart-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 1.15rem;
        bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
        z-index: 1040;
        width: 3.35rem;
        height: 3.35rem;
        border-radius: 50%;
        background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 1.45rem;
        text-decoration: none;
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .shop-cart-fab:hover,
    .shop-cart-fab:focus-visible {
        color: #fff;
        transform: translateY(-2px);
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .shop-cart-fab__badge {
        position: absolute;
        top: -0.2rem;
        right: -0.15rem;
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 0.3rem;
        border-radius: 999px;
        background: var(--shop-accent);
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #0d0d0d;
        box-shadow: 0 2px 6px rgba(234, 2, 0, 0.45);
    }
}

.shop-product-card {
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shop-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 2, 0, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.shop-product-card__media {
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-card__placeholder {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
}

.shop-product-card__body {
    padding: 1.35rem 1.4rem 1.5rem;
}

.shop-product-card__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.shop-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.shop-price-current {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.shop-price-old {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
    font-size: 0.95rem;
}

.shop-discount-pill {
    background: rgba(234, 2, 0, 0.18);
    color: #ff8a8a;
    border: 1px solid rgba(234, 2, 0, 0.35);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .shop-detail-grid {
        grid-template-columns: 1fr;
    }
}

.shop-gallery-main {
    aspect-ratio: 1;
    border-radius: 1rem;
    border: 1px solid var(--shop-border);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.shop-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.shop-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 0.65rem;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.shop-gallery-thumb.is-active,
.shop-gallery-thumb:hover {
    border-color: var(--shop-accent);
}

.shop-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-detail-title {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.shop-detail-desc {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.shop-detail-desc ul {
    padding-left: 1.1rem;
}

.shop-detail-desc li {
    margin-bottom: 0.35rem;
}

.shop-stock-ok {
    color: #7dcea0;
    font-size: 0.9rem;
}

.shop-stock-out {
    color: #f1948a;
    font-size: 0.9rem;
}

.shop-qty-input {
    max-width: 5.5rem;
}

.shop-add-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--shop-border);
}

.shop-cart-table {
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: 1rem;
    overflow: hidden;
}

.shop-cart-table table {
    margin-bottom: 0;
    color: #fff;
}

.shop-cart-table th {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--shop-border) !important;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.shop-cart-table td {
    border-color: var(--shop-border) !important;
    vertical-align: middle;
}

@media (min-width: 992px) {
    .shop-cart-table__grid {
        table-layout: fixed;
        width: 100%;
    }

    .shop-cart-table th,
    .shop-cart-table td {
        padding: 1.15rem 1.35rem;
    }

    .shop-cart-col-product {
        width: auto;
    }

    .shop-cart-col-price {
        width: 7.25rem;
    }

    .shop-cart-col-qty {
        width: 5rem;
        text-align: center;
    }

    .shop-cart-col-subtotal {
        width: 8.5rem;
    }

    .shop-cart-col-action {
        width: 3.75rem;
    }

    .shop-cart-line-product .d-flex {
        gap: 1.1rem !important;
        align-items: center !important;
    }

    .shop-cart-line-product a {
        font-size: 0.94rem;
        line-height: 1.5;
        display: block;
        padding-right: 0.5rem;
    }

    .shop-cart-line-price,
    .shop-cart-line-subtotal {
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .shop-cart-line-qty {
        text-align: center;
    }

    .shop-cart-line-qty .form-control {
        width: 3.5rem;
        max-width: 3.5rem;
        min-width: 3.5rem;
        margin: 0 auto;
        padding: 0.3rem 0.35rem;
        text-align: center;
    }
}

.shop-cart-summary {
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.shop-cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.shop-cart-table-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal solicitud de compra — bordes grises (Velzon usa secondary azul) */
.shop-request-modal .modal-content {
    border: 1px solid var(--shop-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.shop-request-modal .modal-header,
.shop-request-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.shop-request-modal .form-control {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.shop-request-modal .form-control:focus {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
}

.shop-request-items {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--shop-border);
    border-radius: 0.75rem;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.shop-request-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.shop-request-item:last-child {
    border-bottom: 0;
}

.shop-request-item--total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
