/* Flags de descuento y nuevo — pagina de producto */
.product-container .page-content {
    position: relative;
}

.product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.product-flags li.product-flag {
    background: rgba(63, 165, 53, 0.12);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: var(--fw-regular);
    font-size: var(--fs-sm);
    line-height: 1;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: auto;
    min-height: auto;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.product-flags li.product-flag.discount,
.product-flags li.product-flag.discount-amount,
.product-flags li.product-flag.discount-percentage,
.product-flags li.product-flag.on-sale {
    background: rgba(37, 101, 172, 0.12);
    color: var(--color-info);
}

.product-flags li.product-flag.new {
    background: #d4edda;
    color: #28a745;
}

.product-individual-page .product-flags {
    position: static;
    flex-direction: row;
    margin: -8px 0 12px;
    width: auto;
}

/* Eliminar max-width del parent theme que desperdicia espacio */
#product #content {
    max-width: none;
}

/* Reducir gutter entre columnas de producto */
.product-container.row {
    margin-left: 0;
    margin-right: 0;
}

.product-container.row > .col-md-7 {
    padding-left: 0;
    padding-right: 20px;
}

.product-container.row > .col-md-5 {
    padding-left: 20px;
    padding-right: 0;
}

/* Header de la seccion de comentarios */
#product-comments-list-header{
    display: none;
}

/* Container de comentarios vacíos */
#empty-product-comment{
    display: none;
}

/* Lista de comentarios */
#product-comments-list{
    display: none;
}

/* Cover de la imagen del producto */
.product-cover .layer {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    cursor: zoom-in;
    background: none;
    opacity: 0;
}

/* Zoom de la lupa */
.product-cover .layer .zoom-in {
    display: none;
}

/* Parrafo de descripcion del producto */
#tab-content .tab-pane .product-description p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
}

/* hover del link activo de productos */
.tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover {
    border-bottom: 2px solid var(--color-primary);
}

/* Link activo de productos */
.tabs .nav-tabs .nav-link.active {
    color: var(--color-primary);;
}

/* Contenedor tab de descripcion y ficha tecnica */
.tabs {
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: none;
    line-height: var(--lh-base);
    font-family: var(--font-body);
}

.tabs .nav-tabs .nav-link {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--color-text-muted);
    border: 0;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: -1px;
    transition: color var(--t-base), border-color var(--t-base);
}

.tabs .nav-tabs .nav-link:hover {
    color: var(--color-primary);
    border-bottom: 3px solid rgba(63, 165, 53, 0.3);
}

.tabs .nav-tabs .nav-link.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    background: transparent;
}

.table-details {
    margin-bottom: 1rem;
}

.tabs #product-details {
    padding: 0;
}

.table-details table {
    width: 100%;
    border-collapse: collapse;
}

.table-details thead th {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--color-primary);
    text-align: left;
}

.table-details tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.table-details tbody tr:last-child {
    border-bottom: none;
}

.table-details tbody th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #444;
    padding: 0.625rem 1rem;
    text-transform: capitalize;
    white-space: nowrap;
    width: 1%;
}

.table-details tbody td {
    font-size: 0.875rem;
    color: #333;
    padding: 0.625rem 1rem;
    text-align: right;
}

/* Marca del producto */
.tabs .tab-pane .table-details .manufacturer-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: none;
}

/* Titulo del producto */
.product-container .title_product_single,
.product-container h1[itemprop="name"],
.product-detail-name {
    font-family: var(--font-heading);
    font-weight: var(--fw-extra);
    font-size: var(--fs-3xl);
    line-height: var(--lh-tight);
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 var(--space-md);
}

/* Contenedor de products variants */
.product-actions .product-variants{
    display: flex;
    flex-direction: row;
    gap: 50px;
}

/* Variantes del producto */
.product-actions .product-variants-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
}

/* Label de variantes del producto */
.product-actions .product-variants-item .control-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #777;
}

/* Listas de variantes del producto */
.product-variants > .product-variants-item ul li {
    margin-right: .625rem;
    margin-top: 1.2rem;
}



/* Combobox de variantes del producto */
.product-actions .product-variants-item select.form-control-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 40px 8px 12px;
    border-radius: 999px;
    border: 1px solid rgb(208, 212, 220);
    background: #fff;
    font-size: 0.9rem;
    color: #222;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    min-width: 120px;
}

/* Hover del combobox de las variantes del producto */
.product-actions .product-variants-item select.form-control-select:hover {
    border-color: rgba(63, 165, 53, 0.6);
}

/* focus del combobox de las variantes del producto */
.product-actions .product-variants-item select.form-control-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(63, 165, 53, 0.15);
}

/* Seccion de productos que te podrían interesar */
.product-accessories{
    margin-top: 5rem;
}

/* Titulo de la seccion de productos que te podrían interesar */
.product-accessories .text-uppercase {
    font-family: var(--font-heading);
    font-weight: var(--fw-extra);
    font-size: var(--fs-2xl);
    line-height: var(--lh-tight);
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}


/* Input chequeado en variantes del producto */
.product-variants > .product-variants-item ul li .input-color:checked + .color {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(63, 165, 53, 0.6);
    transform: scale(1.15);
}

/* color de los inputs de las variantes del producto  */
.product-variants > .product-variants-item ul li .color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Imagen del producto */
.product-container .product-cover img {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Precio del producto - inline cuando hay descuento */
.product-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-sm);
}

.product-prices > div {
    margin-bottom: 0;
}

.product-price,
.product-prices .current-price,
.current-price-value {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extra);
    color: var(--color-cta);
}

.product-prices .regular-price {
    color: var(--color-text-soft);
    text-decoration: line-through;
    font-size: var(--fs-lg);
    margin-right: 0;
    font-weight: var(--fw-regular);
}

.product-prices .discount {
    background: var(--color-danger);
    color: #fff;
    padding: 4px var(--space-sm);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    margin-left: var(--space-sm);
}

#product-availability .alert {
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
}

.product-actions .product-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.product-quantity .add,
.product-quantity .qty {
    margin-bottom: 0;
}

.product-add-to-cart .add-to-cart,
.add button[type="submit"],
.btn-primary.add-to-cart {
    background: var(--color-cta);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    padding: 0 var(--space-lg);
    height: 42px;
    min-height: 0 !important;
    border: 0;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--t-base), box-shadow var(--t-base);
    box-shadow: var(--shadow-cta);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.product-actions .wishlist-button-add {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
    min-width: 42px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.product-actions .wishlist-button-add i {
    color: #fff !important;
    transition: color var(--t-base);
}

.product-actions .wishlist-button-add:hover {
    background-color: #fff !important;
    border: 1px solid var(--color-primary) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.product-actions .wishlist-button-add:hover i {
    color: var(--color-primary) !important;
    transform: none !important;
}

.product-add-to-cart .add-to-cart:hover,
.add button[type="submit"]:hover,
.btn-primary.add-to-cart:hover {
    background: var(--color-cta-dark);
}

.product-add-to-cart .add-to-cart .material-icons,
.add button[type="submit"] .material-icons,
.btn-primary.add-to-cart .material-icons {
    margin: 0;
    line-height: 1;
}

.bootstrap-touchspin {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 42px !important; 
    width: auto;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    overflow: hidden;
}

.bootstrap-touchspin .input-group-btn-vertical {
    display: contents;
}

.bootstrap-touchspin .form-control,
.bootstrap-touchspin input.js-cart-line-product-quantity,
.bootstrap-touchspin input[type="number"] {
    order: 2;
    flex: 0 0 46px;
    width: 46px !important;
    height: 40px !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font-family: var(--font-body);
    font-weight: var(--fw-bold);
    font-size: var(--fs-base);
    color: var(--color-text);
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.bootstrap-touchspin .form-control:focus {
    outline: none;
    box-shadow: none;
}

.bootstrap-touchspin input[type="number"]::-webkit-outer-spin-button,
.bootstrap-touchspin input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
}

/* Botones − / + */
.bootstrap-touchspin .btn-touchspin {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important; 
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--t-base), color var(--t-base);
}

.bootstrap-touchspin .bootstrap-touchspin-down {
    order: 1;
    border-right: 1px solid var(--color-border);
}

.bootstrap-touchspin .bootstrap-touchspin-up {
    order: 3;
    border-left: 1px solid var(--color-border);
}

.bootstrap-touchspin .btn-touchspin:hover {
    background: rgba(63, 165, 53, 0.1);
    color: var(--color-primary);
}

.bootstrap-touchspin .btn-touchspin:active {
    background: rgba(63, 165, 53, 0.18);
}

.bootstrap-touchspin .touchspin-up,
.bootstrap-touchspin .touchspin-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 0 !important;
    line-height: 1;
}

.bootstrap-touchspin .touchspin-up::after,
.bootstrap-touchspin .touchspin-down::after {
    content: none !important;
}

.bootstrap-touchspin .touchspin-up::before,
.bootstrap-touchspin .touchspin-down::before {
    font-family: var(--font-body), Arial, sans-serif !important;
    font-size: 18px;
    font-weight: var(--fw-bold);
    line-height: 0;
}

.bootstrap-touchspin .touchspin-down::before {
    content: "\2212"; /* signo menos − */
}

.bootstrap-touchspin .touchspin-up::before {
    content: "+";
}


.product-line-grid .row:has(> .qty) {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

.product-line-grid .row:has(> .qty) > .qty {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.product-line-grid .row:has(> .qty) > .price {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    padding-left: var(--space-md);
    padding-right: var(--space-sm);
    text-align: right;
    white-space: nowrap;
}

.product-line-grid-right.product-line-actions > .row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.product-line-grid-right.product-line-actions > .row > .col-md-10 {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
}

.product-line-grid-right.product-line-actions > .row > .col-md-2 {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.product-line-grid-right.product-line-actions .row:has(> .qty) > .price {
    flex: 0 0 auto;
    min-width: max-content;
    padding-left: var(--space-sm);
}

@media (min-width: 768px) {
    .product-line-grid {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .product-line-grid > .product-line-grid-left {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    .product-line-grid > .product-line-grid-body {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .product-line-grid > .product-line-grid-right.product-line-actions {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
}

/* ===== Manufacturer logo above h1 ===== */
.product-individual-information > img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

/* ===== Flatten table-details inside product page tabs (override quickview.css card styling) ===== */
.tabs .tab-content .table-details table {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    border-collapse: collapse;
}

.tabs .tab-content .table-details table thead th,
.tabs .tab-content .table-details table thead th:last-child {
    background-color: transparent;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    text-align: left;
    border-bottom: 2px solid var(--color-primary);
    padding: 0.75rem 1rem;
}

/* ===== Warnings button: compact pill ===== */
.product-warnings-cta {
    text-align: center;
    margin-top: 2rem;
}

.product-warnings-cta .btn-warnings {
    border-radius: 999px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: var(--fw-bold);
    text-transform: none;
}

#product-details .table-details {
    margin-bottom: 0;
}

#product-details .product-manufacturer,
#product-details .product-out-of-stock {
    border: none;
    padding: 0;
    background: none;
    margin: 0;
}

/* ===== Login link in details tab: no blue hover ===== */
.table-details a[href*="authentication"],
.table-details a[href*="login"],
.table-details a[href*="iniciar"] {
    color: var(--color-primary);
    font-weight: var(--fw-bold);
    text-decoration: none;
}

.table-details a[href*="authentication"]:hover,
.table-details a[href*="login"]:hover,
.table-details a[href*="iniciar"]:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===== Brands block: full-width + alternate bg ===== */
#main .container-brands {
    margin: 5rem 0 0;
}

#main .container-brands .container-title-btn {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #ebebeb;
    padding-bottom: 3rem;
}

#main .container-brands .brands-slider.swiper .swiper-slide {
    height: 160px;
}

#main .container-brands .container-title-btn .titulo {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

#main .container-brands .container-title-btn .titulo h3,
#main .container-brands .container-title-btn .titulo h4 {
    margin-bottom: 0.75rem;
}
