
/* ERPVet Pro · VET-02C */

.shop-product-detail{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);
    gap:28px;
    align-items:start;
    margin-bottom:22px;
}

.shop-product-gallery,
.shop-product-info{
    background:#fff;
    border:1px solid #dce7eb;
    border-radius:22px;
    padding:20px;
}

.shop-product-main-image{
    min-height:420px;
    display:grid;
    place-items:center;
    background:#f6fafb;
    border-radius:18px;
    overflow:hidden;
}

.shop-product-main-image img{
    width:100%;
    height:420px;
    object-fit:contain;
}

.shop-product-main-image>span{
    font-size:72px;
    color:#8aa1aa;
}

.shop-product-thumbs{
    display:flex;
    gap:8px;
    margin-top:10px;
    overflow:auto;
}

.shop-product-thumbs button{
    width:72px;
    height:72px;
    flex:0 0 auto;
    border:1px solid #dce7eb;
    border-radius:12px;
    background:#fff;
    padding:4px;
    cursor:pointer;
}

.shop-product-thumbs img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:8px;
}

.shop-product-meta,
.shop-product-badges{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.shop-product-meta span,
.shop-species-chip,
.shop-info-chip{
    display:inline-flex;
    align-items:center;
    padding:6px 9px;
    border-radius:999px;
    background:#eef7f9;
    color:#0b6f82;
    font-size:11px;
    font-weight:800;
}

.shop-product-info h1{
    margin:10px 0;
    font-size:clamp(30px,4vw,46px);
    line-height:1.05;
}

.shop-product-lead{
    color:#667d86;
    line-height:1.6;
    font-size:16px;
}

.shop-product-buy-card{
    margin-top:18px;
    display:grid;
    gap:14px;
    padding:16px;
    border:1px solid #d9e7eb;
    border-radius:16px;
    background:#fbfdfe;
}

.shop-product-buy-card label{
    display:grid;
    gap:6px;
    font-size:13px;
    font-weight:800;
}

.shop-product-buy-card input,
.shop-product-buy-card select{
    width:100%;
    border:1px solid #dce7eb;
    border-radius:11px;
    padding:11px 12px;
    background:#fff;
}

.shop-presentation-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.shop-presentation-summary>div{
    border:1px solid #dce7eb;
    border-radius:12px;
    padding:12px;
    background:#fff;
}

.shop-presentation-summary small,
.shop-presentation-summary strong{
    display:block;
}

.shop-presentation-summary small{
    color:#70848e;
}

.shop-presentation-summary strong{
    margin-top:4px;
    font-size:20px;
}

.shop-product-description{
    margin-top:20px;
}

.shop-rich-content{
    color:#284954;
    line-height:1.7;
}

.checkout-payment-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.checkout-payment-head h2{
    margin-bottom:4px;
}

.checkout-payment-head p{
    margin:0;
    color:#70848e;
    font-size:13px;
}

.payment-lines{
    display:grid;
    gap:12px;
    margin-top:14px;
}

.payment-line{
    position:relative;
    border:1px solid #dce7eb;
    border-radius:15px;
    padding:14px 48px 14px 14px;
    background:#fbfdfe;
}

.payment-line-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr 1fr 1fr;
    gap:10px;
}

.payment-line-grid label{
    display:grid;
    gap:6px;
    font-size:12px;
    font-weight:800;
}

.payment-line-grid input,
.payment-line-grid select{
    width:100%;
    border:1px solid #dce7eb;
    border-radius:10px;
    padding:10px 11px;
    background:#fff;
}

.payment-amount-wrap{
    display:grid;
    grid-template-columns:1fr auto;
    gap:6px;
}

.payment-remove{
    position:absolute;
    right:10px;
    top:10px;
    width:30px;
    height:30px;
    border:0;
    border-radius:9px;
    background:#fff0f2;
    color:#a33a49;
    font-size:18px;
    cursor:pointer;
}

.payment-method-info{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:12px;
    margin-top:12px;
    padding:12px;
    border-radius:12px;
    background:#edf8fa;
}

.payment-method-copy{
    display:grid;
    gap:3px;
}

.payment-method-copy strong,
.payment-method-copy span,
.payment-method-copy small{
    display:block;
}

.payment-method-copy small{
    color:#5d7882;
}

.payment-method-qr{
    width:90px;
    height:90px;
    object-fit:contain;
    border-radius:10px;
    background:#fff;
}

.payment-balance{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px 14px;
    margin-top:12px;
    padding:13px;
    border-radius:12px;
    background:#f4f8f9;
}

.payment-balance strong.ok{color:#177559;}
.payment-balance strong.warning{color:#a66a13;}

.shop-payment-summary{margin-top:22px;}

.shop-payment-row{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid #edf2f4;
}

.shop-payment-row>div{
    display:grid;
    gap:4px;
}

.shop-payment-row>div:last-child{text-align:right;}
.shop-payment-row small{color:#70848e;}

.order-total-breakdown{
    margin-top:18px;
    padding-top:12px;
    border-top:1px solid #dce7eb;
}

.order-total-breakdown>div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:6px 0;
}

.order-total-breakdown .total{
    font-size:22px;
    font-weight:800;
    padding-top:12px;
}

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

.shop-product-link:hover{color:#087d94;}

.shop-main{
    --bs-body-bg:#fff;
    --bs-body-color:#173640;
    --bs-border-color:#dce7eb;
    --bs-secondary-bg:#eef5f7;
    --bs-tertiary-bg:#f7fbfc;
    --bs-emphasis-color:#173640;
    --bs-border-radius:.7rem;
    --bs-border-radius-sm:.5rem;
}

.shop-main .ts-wrapper{width:100%;}

.shop-main .ts-control{
    min-height:42px;
    border:1px solid #dce7eb!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#173640!important;
    padding:9px 12px!important;
}

.shop-main .ts-wrapper.focus .ts-control{
    border-color:#0aa9c0!important;
    box-shadow:0 0 0 3px rgba(10,169,192,.11)!important;
}

.shop-main .ts-dropdown,
.shop-main .ts-dropdown-content,
.shop-main .ts-dropdown .option,
.shop-main .ts-dropdown .no-results{
    background:#fff!important;
    color:#173640!important;
}

.shop-main .ts-dropdown{
    z-index:1200!important;
    border:1px solid #dce7eb!important;
    border-radius:12px!important;
    overflow:hidden;
    box-shadow:0 12px 36px rgba(8,42,56,.12);
}

.shop-main .ts-dropdown .active{
    background:#eaf8fa!important;
    color:#087d94!important;
}

.shop-main .ts-wrapper .item[data-value=""]{
    display:none!important;
}

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

@media(max-width:620px){
    .shop-product-gallery,
    .shop-product-info{
        padding:14px;
        border-radius:17px;
    }

    .shop-product-main-image,
    .shop-product-main-image img{
        min-height:280px;
        height:280px;
    }

    .payment-line-grid{grid-template-columns:1fr;}
    .checkout-payment-head{display:grid;}
    .payment-method-info{grid-template-columns:1fr;}
    .payment-method-qr{width:110px;height:110px;}
}

/* =========================================================
   VET-02C · Pagos y delivery · diseño compacto
   ========================================================= */

.compact-head h2 {
    margin-bottom: 4px;
}

.compact-head p {
    margin: 0;
    color: #667b84;
}

.payment-method-accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.payment-method-accordion {
    border: 1px solid #dce7eb;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(17, 52, 63, 0.05);
}

.payment-method-accordion[open] {
    border-color: #b7d9e3;
    box-shadow: 0 12px 28px rgba(17, 52, 63, 0.08);
}

.payment-method-accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #fcfeff 0%, #f5fafc 100%);
}

.payment-method-accordion-summary::-webkit-details-marker {
    display: none;
}

.payment-method-summary-main {
    display: grid;
    gap: 10px;
    width: 100%;
}

.payment-method-summary-title small {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #0b6f82;
    margin-bottom: 4px;
}

.payment-method-summary-title h3 {
    margin: 0;
    font-size: 18px;
    color: #173640;
}

.payment-method-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.payment-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f6fa;
    color: #0b6f82;
    font-size: 12px;
    font-weight: 700;
}

.payment-chip.muted {
    background: #eef3f5;
    color: #5f7680;
}

.payment-method-accordion-icon {
    flex: 0 0 auto;
    font-size: 20px;
    color: #5f7680;
    transition: transform .2s ease;
}

.payment-method-accordion[open] .payment-method-accordion-icon {
    transform: rotate(180deg);
}

.payment-method-accordion-body {
    padding: 0 18px 18px;
    border-top: 1px solid #edf3f5;
    background: #fff;
}

.compact-form-grid {
    margin-top: 14px;
}

.compact-form-grid label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2d4a54;
}

.compact-form-grid input,
.compact-form-grid textarea,
.compact-form-grid select {
    width: 100%;
    border: 1px solid #d7e3e8;
    border-radius: 12px;
    background: #fff;
    padding: 11px 12px;
}

.compact-form-grid textarea {
    min-height: 96px;
    resize: vertical;
}

.payment-setting-qr-wrap {
    display: flex;
    align-items: flex-start;
}

.payment-setting-qr-card {
    border: 1px dashed #c8d9df;
    border-radius: 16px;
    padding: 12px;
    background: #f9fcfd;
    display: inline-grid;
    gap: 8px;
}

.payment-setting-qr-card small {
    color: #607983;
    font-weight: 700;
}

.payment-setting-qr-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2ecef;
    padding: 8px;
}

.payment-method-bottom-bar {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #edf2f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Switch bonito */
.erp-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.erp-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.erp-switch-slider {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #c8d5da;
    transition: all .2s ease;
    flex: 0 0 auto;
}

.erp-switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.15);
    transition: all .2s ease;
}

.erp-switch input:checked + .erp-switch-slider {
    background: #0aa9c0;
}

.erp-switch input:checked + .erp-switch-slider::after {
    left: 25px;
}

.erp-switch-label {
    font-size: 13px;
    font-weight: 700;
    color: #2d4a54;
}

/* Responsive */
@media (max-width: 1100px) {
    .payment-method-accordion-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .payment-method-accordion-summary {
        padding: 14px;
    }

    .payment-method-accordion-body {
        padding: 0 14px 14px;
    }

    .payment-method-summary-title h3 {
        font-size: 16px;
    }

    .payment-method-bottom-bar {
        align-items: stretch;
    }

    .payment-method-bottom-bar .btn-primary {
        width: 100%;
    }
}
/* ==========================================================================
   VET-24B.2 · Tom Select sólido en todo el frontend de tienda
   El layout actual usa .shop-main-v8; las reglas históricas .shop-main no
   alcanzaban producto/checkout/cuenta y el dropdown podía heredar transparencia.
   ========================================================================== */
.shop-main-v8 .ts-wrapper{
    width:100%;
    min-width:0;
}
.shop-main-v8 .ts-control{
    min-height:44px;
    border:1px solid #dce7eb!important;
    border-radius:11px!important;
    background:#fff!important;
    background-color:#fff!important;
    color:#173640!important;
    box-shadow:none!important;
    padding:9px 12px!important;
    opacity:1!important;
}
.shop-main-v8 .ts-wrapper.focus .ts-control{
    border-color:#0aa9c0!important;
    box-shadow:0 0 0 3px rgba(10,169,192,.11)!important;
}
.shop-main-v8 .ts-dropdown,
.shop-main-v8 .ts-dropdown-content,
.shop-main-v8 .ts-dropdown .dropdown-input-wrap,
.shop-main-v8 .ts-dropdown .dropdown-input,
.shop-main-v8 .ts-dropdown .option,
.shop-main-v8 .ts-dropdown [data-selectable],
.shop-main-v8 .ts-dropdown .create,
.shop-main-v8 .ts-dropdown .no-results{
    background:#fff!important;
    background-color:#fff!important;
    color:#173640!important;
    opacity:1!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}
.shop-main-v8 .ts-dropdown{
    z-index:1600!important;
    border:1px solid #dce7eb!important;
    border-radius:12px!important;
    overflow:hidden;
    box-shadow:0 18px 42px rgba(8,42,56,.18)!important;
    isolation:isolate;
}
.shop-main-v8 .ts-dropdown .option,
.shop-main-v8 .ts-dropdown [data-selectable]{
    padding:10px 12px!important;
    line-height:1.4;
    white-space:normal!important;
    overflow-wrap:anywhere;
}
.shop-main-v8 .ts-dropdown .active,
.shop-main-v8 .ts-dropdown [data-selectable].active{
    background:#eaf8fa!important;
    color:#087d94!important;
}
.shop-main-v8 .ts-dropdown .dropdown-input{
    border-color:#dce7eb!important;
    border-radius:9px!important;
}
.shop-main-v8 .ts-wrapper.single .ts-control>.item{
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
