/*
 * Victor Scientific Co. storefront refresh
 * Conversion-focused visual polish for catalogue, offers, cart, checkout and product pages.
 */
:root {
    --vs-primary: var(--site-primary, #073c63);
    --vs-primary-dark: var(--site-secondary, #0f6f8f);
    --vs-navy: var(--site-secondary, #0f6f8f);
    --vs-text: #252d3d;
    --vs-muted: #6f7888;
    --vs-line: #e1e5eb;
    --vs-soft: #f5f6f8;
    --vs-success: #168247;
    --vs-radius: 10px;
    --vs-shadow: 0 12px 32px rgba(26, 34, 49, .08);
}

body.storefront-refresh-page,
body.checkout-refresh-page,
body.cart-refresh-page,
body.product-refresh-page,
body.vsc-offers-page,
body.vsc-hotdeals-page {
    background: var(--vs-soft);
    color: var(--vs-text);
}

body.storefront-refresh-page #content,
body.checkout-refresh-page #content,
body.cart-refresh-page #content,
body.product-refresh-page #content,
body.vsc-offers-page #content,
body.vsc-hotdeals-page #content {
    background: var(--vs-soft);
}

/* Consistent form controls */
.checkout-refresh-page .form-control,
.checkout-refresh-page .form-select,
.storefront-refresh-page .form-control,
.storefront-refresh-page .form-select {
    min-height: 46px;
    border: 1px solid #d9dee6 !important;
    border-radius: 8px !important;
    background: #fff;
    color: var(--vs-text);
    box-shadow: none !important;
}
.checkout-refresh-page .form-control:focus,
.checkout-refresh-page .form-select:focus,
.storefront-refresh-page .form-control:focus,
.storefront-refresh-page .form-select:focus {
    border-color: var(--vs-primary) !important;
    box-shadow: 0 0 0 3px rgba(201, 22, 34, .09) !important;
}

/* Offers / hot deals */
.vsc-offers-main { padding: 28px 0 58px; }
.vsc-offer-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 30px;
    align-items: center;
    min-height: 275px;
    padding: 38px 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 15%, rgba(255,255,255,.16), transparent 25%),
        linear-gradient(135deg, #171d2a 0%, #293346 58%, var(--vs-primary-dark) 130%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(22, 29, 43, .16);
}
.vsc-offer-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border: 46px solid rgba(255,255,255,.06);
    border-radius: 50%;
}
.vsc-offer-hero__content { position: relative; z-index: 2; }
.vsc-offer-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #ffc7cb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vsc-offer-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4.4vw, 54px);
    line-height: 1.08;
    font-weight: 850;
}
.vsc-offer-hero p {
    max-width: 700px;
    margin: 15px 0 0;
    color: #d4d9e2;
    font-size: 13px;
    line-height: 1.75;
}
.vsc-offer-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.vsc-offer-hero__actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 7px;
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
}
.vsc-offer-hero__actions a:first-child { border-color: var(--vs-primary); background: var(--vs-primary); }
.vsc-offer-hero__actions a:last-child { background: rgba(255,255,255,.08); }
.vsc-offer-stats { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vsc-offer-stat {
    min-height: 102px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
}
.vsc-offer-stat strong { display: block; color: #fff; font-size: 25px; line-height: 1; }
.vsc-offer-stat span { display: block; margin-top: 8px; color: #ced4df; font-size: 10px; line-height: 1.45; }
.vsc-offer-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 0 16px;
    padding: 18px 20px;
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius);
    background: #fff;
}
.vsc-offer-toolbar h2 { margin: 4px 0 0; color: var(--vs-text); font-size: 25px; }
.vsc-offer-toolbar p { margin: 5px 0 0; color: var(--vs-muted); font-size: 11px; }
.vsc-offer-toolbar form { min-width: 215px; }
.vsc-offer-toolbar label { display: block; margin-bottom: 5px; color: var(--vs-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.vsc-offer-toolbar select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid #d8dde5; border-radius: 7px; background: #fff; color: var(--vs-text); font-size: 11px; }
.vsc-offer-categories { display: flex; overflow-x: auto; gap: 8px; margin: 0 0 18px; padding: 2px 0 8px; scrollbar-width: thin; }
.vsc-offer-categories a {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #dce1e8;
    border-radius: 999px;
    background: #fff;
    color: #4b5567 !important;
    font-size: 10px;
    font-weight: 750;
}
.vsc-offer-categories a:hover { border-color: var(--vs-primary); color: var(--vs-primary) !important; }
.vsc-offer-empty {
    padding: 60px 22px;
    border: 1px dashed #ccd3dd;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}
.vsc-offer-empty i { color: var(--vs-primary); font-size: 36px; }
.vsc-offer-empty h2 { margin: 14px 0 7px; font-size: 23px; }
.vsc-offer-empty p { max-width: 550px; margin: 0 auto; color: var(--vs-muted); font-size: 12px; }
.vsc-offer-empty a { display: inline-flex; margin-top: 16px; padding: 11px 17px; border-radius: 7px; background: var(--vs-primary); color: #fff !important; font-size: 11px; font-weight: 800; }
.vsc-offer-pagination { margin-top: 28px; }
.vsc-offer-pagination .pagination { justify-content: center; }

/* Product-card conversion details */
.vsc-product-saving {
    width: 100%;
    margin-top: 4px;
    color: var(--vs-success);
    font-size: 9px;
    font-weight: 750;
}
.vsc-product-badge.is-strong { background: var(--vs-primary-dark); box-shadow: 0 4px 10px rgba(168,15,25,.22); }
.vsc-review-new { color: #7f8897; }

/* Institutional CTA */
.vsc-bulk-banner { padding: 0 0 42px; background: var(--vs-soft); }
.vsc-bulk-banner__inner {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 27px 30px;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--vs-shadow);
}
.vsc-bulk-banner__icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--site-primary-soft, #f5f6f8); color: var(--vs-primary); font-size: 22px; }
.vsc-bulk-banner h2 { margin: 0 0 5px; color: var(--vs-text); font-size: clamp(20px, 2.4vw, 29px); }
.vsc-bulk-banner p { margin: 0; color: var(--vs-muted); font-size: 11px; line-height: 1.65; }
.vsc-bulk-banner__actions { display: flex; gap: 8px; }
.vsc-bulk-banner__actions a { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 15px; border: 1px solid var(--vs-primary); border-radius: 7px; color: var(--vs-primary) !important; font-size: 10px; font-weight: 800; white-space: nowrap; }
.vsc-bulk-banner__actions a:first-child { background: var(--vs-primary); color: #fff !important; }

/* Checkout */
/* Reserve the fixed desktop header height so checkout content never slides underneath it. */
.checkout-refresh-page #content { padding-top: 122px; }
.chheckout-section { padding: 28px 0 58px; background: var(--vs-soft); }
.desktop-qty-control {
    display: inline-flex; align-items: center; justify-content: center; margin: auto;
    width: max-content; overflow: hidden; border: 1px solid #e5e7eb;
    border-radius: 6px; background: #fff;
}
.desktop-qty-control button {
    width: 34px; height: 34px; border: 0; background: #f8f9fa;
    font-size: 20px; line-height: 1; cursor: pointer;
}
.desktop-qty-control button:hover { background: var(--vs-primary); color: #fff; }
.desktop-qty-control .qty-input {
    width: 42px; height: 34px; border: 0; border-right: 1px solid #eee;
    border-left: 1px solid #eee; background: #fff; text-align: center; font-weight: 600;
}

.checkout-refresh-page .checkout-shipping > form > .card,
.checkout-refresh-page .cart_details > .card {
    overflow: hidden;
    border: 1px solid var(--vs-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--vs-shadow);
}
.checkout-refresh-page .checkout-shipping .card-header,
.checkout-refresh-page .cart_details .card-header {
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid #e8ebf0;
    background: #fff;
}
.checkout-refresh-page .checkout-shipping .card-header h6,
.checkout-refresh-page .cart_details .card-header h5 { margin: 0; color: var(--vs-text); font-size: 16px; line-height: 1.55; font-weight: 800; }
.checkout-refresh-page .checkout-shipping .card-body,
.checkout-refresh-page .cart_details .card-body { padding: 20px; }
.checkout-refresh-page label { margin-bottom: 6px; color: #454f60; font-size: 12px; font-weight: 700; }
.checkout-refresh-page textarea.form-control { min-height: 92px; }
.checkout-refresh-page .checkout-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 0 0 16px;
}
.checkout-refresh-page .checkout-trust-row span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid #e0e5eb;
    border-radius: 7px;
    background: #fff;
    color: #596375;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}
.checkout-refresh-page .checkout-trust-row i { color: var(--vs-success); }
.checkout-refresh-page .payment-methods .form-check {
    min-height: 54px;
    display: flex;
    align-items: center;
    border: 1px solid #dfe4eb !important;
    border-radius: 8px !important;
    background: #fbfcfd !important;
}
.checkout-refresh-page .payment-methods .form-check:has(input:checked) {
    border-color: var(--vs-success) !important;
    background: #f0faf4 !important;
}
.checkout-refresh-page .order_place {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--vs-primary) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 7px 16px rgba(201,22,34,.2);
}
.checkout-refresh-page .order_place:hover { background: var(--vs-primary-dark) !important; }
.checkout-refresh-page .coupon-section { margin: 16px 20px 0 !important; }
.checkout-refresh-page .cart_table { margin: 0; border-color: #e3e7ed; }
.checkout-refresh-page .cart_table thead th { padding: 12px 8px; border-color: #e3e7ed; background: #f6f7f9; color: #4a5363; font-size: 10px; }
.checkout-refresh-page .cart_table td { vertical-align: middle; border-color: #e7eaf0; font-size: 11px; }
.checkout-refresh-page .cart_table img { width: 56px; height: 56px; margin-right: 7px; border: 1px solid #e5e8ed; border-radius: 6px; object-fit: contain; background: #fff; }

/* Cart */
.cart-refresh-page .breadcrumb-section { background: #fff; border-bottom: 1px solid #e3e7ed; }
.cart-refresh-page .vcart-section { padding: 28px 0 58px; background: var(--vs-soft); }
.cart-refresh-page .vcart-inner,
.cart-refresh-page .cart-summary,
.cart-refresh-page .coupon-form {
    overflow: hidden;
    border: 1px solid var(--vs-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: var(--vs-shadow);
}
.cart-refresh-page .cart-title { padding: 18px 20px; border-bottom: 1px solid #e7eaf0; }
.cart-refresh-page .cart-title h4,
.cart-refresh-page .cart-summary h5 { margin: 0; color: var(--vs-text); font-weight: 800; }
.cart-refresh-page .vcart-content { padding: 0 18px 14px; }
.cart-refresh-page .vcart-content .table th { padding: 13px 9px; background: #f6f7f9; color: #555f70; font-size: 10px; }
.cart-refresh-page .vcart-content .table td { padding: 12px 9px; vertical-align: middle; font-size: 11px; }
.cart-refresh-page .vcart-content img { width: 58px; height: 58px; border: 1px solid #e4e8ee; border-radius: 6px; object-fit: contain; }
.cart-refresh-page .coupon-form { margin-top: 12px; padding: 14px; }
.cart-refresh-page .coupon-form form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cart-refresh-page .coupon-form input { min-height: 43px; padding: 0 12px; border: 1px solid #dce1e8; border-radius: 7px; }
.cart-refresh-page .coupon-form button { padding: 0 17px; border: 0; border-radius: 7px; background: var(--vs-navy); color: #fff; font-size: 11px; font-weight: 800; }
.cart-refresh-page .cart-summary { padding: 18px; }
.cart-refresh-page .cart-summary h5 { margin-bottom: 13px; }
.cart-refresh-page .cart-summary .table td { padding: 10px 3px; border-color: #e7eaf0; font-size: 11px; }
.cart-refresh-page .go_cart { display: flex; min-height: 47px; align-items: center; justify-content: center; border-radius: 7px; background: var(--vs-primary) !important; color: #fff !important; font-size: 11px; font-weight: 850; }
.cart-refresh-page .vcart-empty { padding: 52px 20px; text-align: center; }
.cart-refresh-page .vcart-empty i { color: var(--vs-primary); font-size: 35px; }
.cart-refresh-page .vcart-empty h2 { margin: 13px 0 6px; font-size: 22px; }
.cart-refresh-page .vcart-empty p { color: var(--vs-muted); font-size: 11px; }
.cart-refresh-page .vcart-empty a { display: inline-flex; margin-top: 10px; padding: 10px 15px; border-radius: 7px; background: var(--vs-primary); color: #fff !important; font-size: 10px; font-weight: 800; }

/* Product page surface polish */
.product-refresh-page .details-section,
.product-refresh-page .pro_details_area,
.product-refresh-page .related-product-section { background: var(--vs-soft); }
.product-refresh-page .product-details,
.product-refresh-page .details-action-box,
.product-refresh-page .gomobd-review-section {
    border: 1px solid var(--vs-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(26,34,49,.05);
}
.product-refresh-page .details-ratting-wrapper .no-review-yet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #687284;
    font-size: 11px;
    font-weight: 700;
}
.product-refresh-page .details-ratting-wrapper .no-review-yet i { color: #efb21a; }

@media (max-width: 991px) {
    .vsc-offer-hero { grid-template-columns: 1fr; min-height: 0; }
    .vsc-offer-stats { max-width: 520px; }
    .vsc-bulk-banner__inner { grid-template-columns: 58px 1fr; }
    .vsc-bulk-banner__actions { grid-column: 2; }
}

@media (max-width: 767px) {
    .checkout-refresh-page #content { padding-top: 0; }
    .vsc-offers-main { padding: 16px 0 38px; }
    .vsc-offer-hero { gap: 22px; padding: 27px 21px; border-radius: 10px; }
    .vsc-offer-hero h1 { font-size: 31px; }
    .vsc-offer-hero p { font-size: 11px; }
    .vsc-offer-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .vsc-offer-stat { min-height: 88px; padding: 14px; }
    .vsc-offer-stat strong { font-size: 21px; }
    .vsc-offer-toolbar { align-items: stretch; flex-direction: column; padding: 15px; }
    .vsc-offer-toolbar form { min-width: 0; }
    .vsc-bulk-banner { padding-bottom: 30px; }
    .vsc-bulk-banner__inner { grid-template-columns: 1fr; padding: 22px 18px; }
    .vsc-bulk-banner__actions { grid-column: auto; flex-wrap: wrap; }
    .checkout-refresh-page .checkout-trust-row { grid-template-columns: 1fr; }
    .checkout-refresh-page .checkout-shipping .card-body,
    .checkout-refresh-page .cart_details .card-body { padding: 14px; }
    .checkout-refresh-page .coupon-section { margin: 12px 14px 0 !important; }
    .checkout-refresh-page .cart_table { min-width: 620px; }
    .checkout-refresh-page .cust-order-1 { margin-top: 14px; }
    .cart-refresh-page .vcart-section { padding-top: 16px; }
    .cart-refresh-page .cart-summary { margin-top: 14px; }
    .cart-refresh-page .vcart-content { padding: 0; }
    .cart-refresh-page .vcart-content .table { min-width: 690px; }
}


/* ===== V15 unified discount + pill action system (2026-08-28) =====
   One visual language across catalogue cards, related products and product details.
   Colours follow the admin-configured primary theme; controls keep existing behaviour. */
.vsc-product-badge.vsc-product-badge--discount,
.product_item_inner .sale-badge-box,
.product-details-discount-badge .sale-badge-text {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 2px solid rgba(255,255,255,.92) !important;
    border-radius: 50% !important;
    background: var(--site-primary, #073c63) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(15,23,42,.20) !important;
}

.vsc-product-badge.vsc-product-badge--discount,
.product-details-discount-badge .sale-badge-text,
.product_item_inner .sale-badge-box {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    text-align: center !important;
    line-height: 1 !important;
}

.vsc-product-badge--discount .vsc-product-badge__percent,
.product-details-discount-badge .sale-badge-percent,
.product_item_inner .sale-badge-percent {
    display: block;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: -.02em;
}

.vsc-product-badge--discount .vsc-product-badge__label,
.product-details-discount-badge .sale-badge-label,
.product_item_inner .sale-badge-label {
    display: block;
    margin-top: 2px;
    color: #fff !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}


.product_item_inner .sale-badge-inner {
    width: 48px !important;
    height: 48px !important;
}
/* Featured remains a compact non-discount label. */
.vsc-product-badge.vsc-product-badge--featured {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: var(--site-primary, #073c63) !important;
    color: #fff !important;
}

/* Screenshot-inspired rounded CTA silhouette. */
.vsc-cart-btn,
.vsc-icon-btn,
.product-refresh-page .single_product .add_cart_btn,
.product-refresh-page .single_product .order_now_btn,
.product-refresh-page .product-contact-btn,
.product-refresh-page .related-product-section .order-btn,
.product-refresh-page .related-product-section .order-btn-link,
.product-refresh-page .related-product-section .cart-icon-btn,
.product-refresh-page .related-product-section .cart-icon-link {
    border-radius: 999px !important;
}

.product-refresh-page .single_product .add_cart_btn,
.product-refresh-page .single_product .order_now_btn {
    min-height: 48px;
    height: 48px;
    border-color: var(--site-primary, #073c63) !important;
    background: var(--site-primary, #073c63) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(15,23,42,.14);
}

@media (hover:hover) and (pointer:fine) {
    .product-refresh-page .single_product .add_cart_btn:hover,
    .product-refresh-page .single_product .order_now_btn:hover {
        border-color: var(--site-secondary, var(--site-primary, #073c63)) !important;
        background: var(--site-secondary, var(--site-primary, #073c63)) !important;
    }
}

@media (max-width: 575.98px) {
    .vsc-product-badge.vsc-product-badge--discount,
    .product_item_inner .sale-badge-box,
    .product-details-discount-badge .sale-badge-text {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* Accessibility + rendering hardening: keep keyboard focus visible and avoid
   unnecessary layout work for explicitly marked below-the-fold sections. */
.storefront-refresh-page :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(7, 60, 99, .35);
    outline-offset: 2px;
}
.storefront-refresh-page .vsc-perf-defer {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}
@media (prefers-reduced-motion: reduce) {
    .storefront-refresh-page *,
    .storefront-refresh-page *::before,
    .storefront-refresh-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
