.tvs-wrap{--navy:#123c86;--cyan:#10aeea;--light:#f5f8fc;font-family:Arial,Tahoma,sans-serif;max-width:1200px;margin:20px auto;color:#15233a}
.tvs-head{display:flex;align-items:center;gap:18px;padding:16px 20px;background:#fff;border-radius:20px;box-shadow:0 8px 30px rgba(18,60,134,.10);margin-bottom:22px}
.tvs-head img{width:130px;height:auto;object-fit:contain}.tvs-head h1{margin:0;color:var(--navy);font-size:25px}.tvs-head p{margin:5px 0;color:#697586}
.tvs-cart-open,.tvs-add,.tvs-place-order{border:0;border-radius:12px;background:linear-gradient(90deg,var(--navy),var(--cyan));color:#fff;font-weight:700;padding:12px 18px;cursor:pointer}
.tvs-cart-open{margin-right:auto}.tvs-count{background:#fff;color:var(--navy);padding:2px 7px;border-radius:20px;margin-right:5px}
.tvs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.tvs-product{background:#fff;border:1px solid #e8eef5;border-radius:18px;padding:14px;box-shadow:0 5px 18px rgba(0,0,0,.05)}
.tvs-product-img{height:190px;border-radius:14px;background:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden}.tvs-product-img img{max-width:100%;max-height:100%;object-fit:contain}
.tvs-product h3{font-size:18px;margin:13px 0 7px;color:var(--navy)}.tvs-product-excerpt{font-size:13px;line-height:1.7;color:#667085;min-height:40px}
.tvs-price{font-size:18px;font-weight:800;color:var(--navy);margin:12px 0}.tvs-price del{font-size:12px;color:#98a2b3;margin-right:7px}.tvs-stock{font-size:12px;color:#07844b;margin-bottom:8px}
.tvs-pack,.tvs-checkout input,.tvs-checkout select,.tvs-checkout textarea{width:100%;box-sizing:border-box;border:1px solid #d9e2ec;border-radius:10px;padding:11px;margin:7px 0;background:#fff}
.tvs-add{width:100%;margin-top:10px}.tvs-add:disabled{opacity:.45;cursor:not-allowed}
.tvs-drawer{position:fixed;inset:0;background:rgba(10,25,50,.48);z-index:999999;display:none}.tvs-drawer.is-open{display:block}.tvs-drawer-box{background:#fff;width:min(560px,94vw);height:100%;margin-right:auto;padding:22px;box-sizing:border-box;overflow:auto;position:relative}
.tvs-close{position:absolute;left:18px;top:15px;border:0;background:none;font-size:32px;cursor:pointer;color:#667085}.tvs-drawer h2{color:var(--navy)}.tvs-cart-line{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f5}
.tvs-qty button{border:1px solid #dbe4ee;background:#fff;border-radius:7px;width:28px;height:28px;cursor:pointer}.tvs-remove{border:0;background:none;color:#d92d20;cursor:pointer}.tvs-summary{background:var(--light);border-radius:14px;padding:14px;margin:15px 0}.tvs-summary div{display:flex;justify-content:space-between;margin:7px 0}.tvs-total-row{font-size:19px;font-weight:800;border-top:1px solid #dce5ef;padding-top:10px}.tvs-checkout{padding-bottom:20px}.tvs-place-order{width:100%;font-size:16px}.tvs-msg{margin-top:12px;font-weight:700}.tvs-empty{grid-column:1/-1;padding:50px;text-align:center;background:#fff;border-radius:18px}
@media(max-width:900px){.tvs-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.tvs-head{flex-wrap:wrap}.tvs-head img{width:105px}.tvs-cart-open{width:100%;margin:0}.tvs-grid{grid-template-columns:repeat(2,1fr);gap:10px}.tvs-product-img{height:145px}.tvs-product{padding:10px}.tvs-product h3{font-size:16px}.tvs-drawer-box{width:100%}}

.tvs-price{border:2px solid #1b1b1b;border-radius:18px;padding:15px 12px;text-align:center;min-height:64px;display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;font-size:21px;font-weight:800;color:var(--navy);margin:12px 0}
.tvs-quantity-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;color:#344054;font-weight:700}
.tvs-quantity-control{display:flex;align-items:center;border:1px solid #d9e2ec;border-radius:10px;overflow:hidden;background:#fff}
.tvs-quantity-control button{width:34px;height:34px;border:0;background:#f3f6fa;color:var(--navy);font-size:20px;cursor:pointer}
.tvs-qty-input{width:45px;height:34px;border:0;text-align:center;font-weight:700;outline:none}
@media(max-width:650px){.tvs-price{font-size:18px;padding:13px 8px;min-height:60px}.tvs-quantity-row{font-size:13px}}

.tvs-toolbar{display:flex;gap:10px;margin:0 0 18px;align-items:center}
.tvs-search,.tvs-category-filter{flex:1;min-width:0;border:1px solid #d9e2ec;border-radius:12px;padding:12px 14px;background:#fff;box-sizing:border-box}
.tvs-toolbar .tvs-category-filter{max-width:260px}
@media(max-width:650px){.tvs-toolbar{flex-direction:column}.tvs-toolbar>*{width:100%;max-width:none!important}.tvs-search,.tvs-category-filter{flex:auto}}

.tvs-coupon-row{display:flex;gap:8px;margin:12px 0 4px}
.tvs-coupon-code{flex:1;border:1px solid #d9e2ec;border-radius:10px;padding:11px;box-sizing:border-box}
.tvs-apply-coupon{border:0;border-radius:10px;padding:0 16px;background:#eef4fb;color:var(--navy);font-weight:700;cursor:pointer}
.tvs-coupon-msg{font-size:13px;min-height:20px;margin-bottom:5px}
.tvs-low-stock{color:#b54708;font-weight:700}

.tvs-admin-sort-list{max-width:760px;margin:20px 0;padding:0;list-style:none}
.tvs-sort-item{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:14px;margin:8px 0;display:flex;align-items:center;gap:12px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.tvs-sort-item:active{cursor:grabbing}
.tvs-drag-handle{color:#667085}
.tvs-admin-sort-count{margin-right:auto;color:#667085}
.tvs-dragging{opacity:.65;box-shadow:0 8px 20px rgba(0,0,0,.12);transform:scale(1.01)}
.tvs-admin-sort-msg{margin-right:10px}

/* TetraVet Store v1.5 — responsive visual refinement */
.tvs-store-wrap{max-width:1180px;margin:0 auto;padding:22px 18px 50px;box-sizing:border-box}
.tvs-store-hero{max-width:980px;margin:0 auto 18px;padding:18px 24px 16px;border-radius:24px;box-sizing:border-box}
.tvs-store-hero img{max-height:125px;width:auto;object-fit:contain}
.tvs-store-hero h2{margin:8px 0 4px;font-size:30px;line-height:1.25}
.tvs-store-hero p{margin:0 0 12px;font-size:16px}
.tvs-cart-button{max-width:430px;margin:8px auto 0;min-height:52px}
.tvs-controls{max-width:980px;margin:0 auto 18px;display:grid;grid-template-columns:1.25fr 1fr;gap:12px}
.tvs-search,.tvs-category-select{height:58px;border-radius:16px!important;box-sizing:border-box}
.tvs-products-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.tvs-product-card{height:100%;display:flex;flex-direction:column;box-sizing:border-box}
.tvs-product-image{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.tvs-product-image img{width:100%;height:100%;object-fit:contain}
.tvs-product-card .tvs-product-name{min-height:52px;display:flex;align-items:flex-start;justify-content:center;line-height:1.45;margin:10px 8px 6px}
.tvs-product-card .tvs-variants{margin-top:auto}
.tvs-product-card .tvs-qty,.tvs-product-card .tvs-add{margin-top:10px}
.tvs-product-card .tvs-add{min-height:46px;border-radius:14px}
.tvs-product-card .tvs-price{min-height:48px;display:flex;align-items:center;justify-content:center}
.tvs-category-modal{border-radius:24px 24px 0 0}

@media (max-width:900px){
 .tvs-store-wrap{padding:14px 12px 38px}
 .tvs-store-hero{padding:14px 18px 14px;border-radius:20px}
 .tvs-store-hero img{max-height:100px}
 .tvs-store-hero h2{font-size:26px}
 .tvs-controls{grid-template-columns:1fr;gap:9px}
 .tvs-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tvs-product-card{border-radius:18px}
 .tvs-product-card .tvs-product-name{font-size:17px;min-height:50px}
}

@media (max-width:520px){
 .tvs-store-wrap{padding:10px 8px 30px}
 .tvs-store-hero{padding:12px 12px 11px;margin-bottom:12px;border-radius:18px}
 .tvs-store-hero img{max-height:78px}
 .tvs-store-hero h2{font-size:22px;margin:5px 0 2px}
 .tvs-store-hero p{font-size:14px;margin-bottom:8px}
 .tvs-cart-button{min-height:46px;width:92%;font-size:18px}
 .tvs-search,.tvs-category-select{height:52px;border-radius:14px!important;font-size:17px}
 .tvs-products-grid{gap:8px}
 .tvs-product-card{padding:8px!important;border-radius:16px}
 .tvs-product-image{border-radius:12px}
 .tvs-product-card .tvs-product-name{font-size:15px;line-height:1.4;min-height:44px;margin:8px 3px 4px}
 .tvs-product-card .tvs-price{min-height:42px;font-size:15px}
 .tvs-product-card .tvs-add{min-height:42px;font-size:15px;border-radius:11px}
 .tvs-product-card .tvs-qty{transform:scale(.94);transform-origin:center}
}



/* TetraVet Store 1.5.3 — REAL single-column product layout */
.tvs-grid{
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    width:100%!important;
    max-width:900px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    gap:18px!important;
}
.tvs-grid > *{
    width:100%!important;
    max-width:100%!important;
    flex:0 0 100%!important;
    grid-column:1 / -1!important;
}
.tvs-product{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
@media (max-width:700px){
    .tvs-grid{
        max-width:none!important;
        gap:12px!important;
        padding-left:8px!important;
        padding-right:8px!important;
        box-sizing:border-box!important;
    }
    .tvs-grid > *{
        width:100%!important;
        flex-basis:100%!important;
    }
    .tvs-product{
        width:100%!important;
    }
}

/* TetraVet Store 1.5.4 — mobile coupon layout */
.tvs-coupon-form{width:100%;max-width:100%;box-sizing:border-box}
.tvs-coupon-form input,.tvs-coupon-form button{box-sizing:border-box;max-width:100%}
@media (max-width:700px){
 .tvs-coupon-form{
   display:flex!important;
   flex-direction:column!important;
   align-items:stretch!important;
   gap:10px!important;
   width:100%!important;
   max-width:100%!important;
   overflow:visible!important;
 }
 .tvs-coupon-form input{
   width:100%!important;
   min-width:0!important;
   margin:0!important;
 }
 .tvs-coupon-form button{
   width:100%!important;
   min-width:0!important;
   margin:0!important;
   position:static!important;
 }
}

/* TetraVet Store 1.5.5 — definitive coupon mobile fix */
@media (max-width:700px){
  .tvs-cart,
  .tvs-cart-content,
  .tvs-cart-summary,
  .tvs-checkout,
  .tvs-coupon,
  .tvs-coupon-form,
  .coupon-form,
  .coupon,
  form[action*="coupon"]{
    max-width:100%!important;
    width:100%!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  .tvs-coupon,
  .tvs-coupon-form,
  .coupon-form,
  form[action*="coupon"]{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }

  .tvs-coupon input[type="text"],
  .tvs-coupon input[type="search"],
  .tvs-coupon input[name*="coupon"],
  .tvs-coupon-form input[type="text"],
  .tvs-coupon-form input[name*="coupon"],
  .coupon-form input[type="text"],
  .coupon-form input[name*="coupon"],
  form[action*="coupon"] input{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:1 1 auto!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  .tvs-coupon button,
  .tvs-coupon input[type="submit"],
  .tvs-coupon-form button,
  .tvs-coupon-form input[type="submit"],
  .coupon-form button,
  .coupon-form input[type="submit"],
  form[action*="coupon"] button,
  form[action*="coupon"] input[type="submit"]{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:0!important;
    box-sizing:border-box!important;
    position:static!important;
  }

  /* Prevent any cart row from forcing the page wider than the viewport. */
  .tvs-cart *,
  .tvs-checkout *,
  .tvs-coupon *,
  .tvs-coupon-form *{
    max-width:100%;
    box-sizing:border-box;
  }
  html,body{
    overflow-x:hidden!important;
  }
}

/* TetraVet Store 1.5.6 — actual coupon row mobile fix */
.tvs-coupon-row{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.tvs-coupon-row input.tvs-coupon-code{
    box-sizing:border-box!important;
}
@media (max-width:700px){
    .tvs-drawer-box{
        max-width:100%!important;
        width:100%!important;
        box-sizing:border-box!important;
        overflow-x:hidden!important;
    }
    .tvs-coupon-row{
        display:flex!important;
        flex-direction:column!important;
        align-items:stretch!important;
        justify-content:flex-start!important;
        gap:10px!important;
        width:100%!important;
        max-width:100%!important;
        box-sizing:border-box!important;
        margin:12px 0!important;
    }
    .tvs-coupon-row .tvs-coupon-code{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        flex:0 0 auto!important;
        margin:0!important;
        box-sizing:border-box!important;
    }
    .tvs-coupon-row .tvs-apply-coupon{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        flex:0 0 auto!important;
        margin:0!important;
        box-sizing:border-box!important;
        position:static!important;
    }
    html,body{
        overflow-x:hidden!important;
    }
}


/* v1.5.8 — align quantity +/- controls consistently on mobile and desktop */
.tvs-product-card .tvs-quantity-control,
.tvs-product .tvs-quantity-control{
    display:grid!important;
    grid-template-columns:48px minmax(40px,1fr) 48px!important;
    align-items:stretch!important;
    height:44px!important;
    min-height:44px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
.tvs-product-card .tvs-quantity-control > button,
.tvs-product .tvs-quantity-control > button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
    font-family:Arial,Tahoma,sans-serif!important;
    font-size:25px!important;
    font-weight:700!important;
    text-align:center!important;
    vertical-align:middle!important;
    border:0!important;
    border-radius:0!important;
    box-sizing:border-box!important;
}
.tvs-product-card .tvs-quantity-control .tvs-qty-input,
.tvs-product .tvs-quantity-control .tvs-qty-input{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    line-height:44px!important;
    text-align:center!important;
    box-sizing:border-box!important;
    appearance:textfield!important;
    -moz-appearance:textfield!important;
}
.tvs-product-card .tvs-quantity-control .tvs-qty-input::-webkit-inner-spin-button,
.tvs-product-card .tvs-quantity-control .tvs-qty-input::-webkit-outer-spin-button,
.tvs-product .tvs-quantity-control .tvs-qty-input::-webkit-inner-spin-button,
.tvs-product .tvs-quantity-control .tvs-qty-input::-webkit-outer-spin-button{
    -webkit-appearance:none!important;
    margin:0!important;
}
@media(max-width:650px){
 .tvs-product-card .tvs-quantity-control,
 .tvs-product .tvs-quantity-control{height:44px!important;min-height:44px!important}
}
