/* ===== Single Product Premium Design ===== */

body.vs-single-product-page .site-main,
body.vs-single-product-page .content-area {
    overflow: visible;
}

.vs-single-product-page div.product {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.vs-sp-wrap {
    width: 100%;
}

.vs-sp-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.vs-sp-gallery-col,
.vs-sp-info-col {
    min-width: 0;
}

.vs-sp-gallery-card,
.vs-sp-info-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Gallery */
.vs-sp-gallery-card {
    padding: 18px;
}

.vs-sp-gallery-card .woocommerce-product-gallery {
    margin-bottom: 0 !important;
}

.vs-sp-gallery-card .woocommerce-product-gallery__wrapper {
    border-radius: 18px;
    overflow: hidden;
}

.vs-sp-gallery-card .woocommerce-product-gallery__image img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.vs-sp-gallery-card .flex-control-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px !important;
    padding: 0 !important;
    flex-wrap: wrap;
}

.vs-sp-gallery-card .flex-control-thumbs li {
    width: 72px !important;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all .25s ease;
    cursor: pointer;
}

.vs-sp-gallery-card .flex-control-thumbs li:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.vs-sp-gallery-card .flex-control-thumbs img {
    border-radius: 12px;
}

/* Badges */
.vs-sp-badges {
    position: absolute;
    top: 22px;
    left: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 5;
}

.vs-sp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
}

.vs-sp-badge.sale { background: #ef4444; }
.vs-sp-badge.featured { background: #7c3aed; }
.vs-sp-badge.new { background: #10b981; }
.vs-sp-badge.stockout { background: #111827; }

/* Info card */
.vs-sp-info-card {
    padding: 28px;
}

.vs-sp-breadcrumb {
    margin-bottom: 14px;
    font-size: 13px;
    color: #6b7280;
}

.vs-sp-breadcrumb nav {
    font-size: 13px;
}

.vs-bc-sep {
    margin: 0 8px;
    color: #d1d5db;
}

.vs-sp-title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.vs-sp-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.vs-sp-rating-stars .star-rating {
    margin: 0 !important;
}

.vs-sp-rating-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.vs-sp-rating-average {
    color: #111827;
    font-weight: 800;
}

.vs-sp-rating-divider {
    color: #cbd5e1;
}

/* Vendor card */
.vs-sp-vendor-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.vs-sp-vendor-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vs-sp-vendor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ede9fe;
}

.vs-sp-vendor-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vs-sp-vendor-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.vs-sp-vendor-verified {
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0891b2;
    font-size: 11px;
    font-weight: 700;
}

.vs-sp-vendor-sub {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.vs-sp-vendor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vs-sp-vendor-btn {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    transition: all .25s ease;
}

.vs-sp-vendor-btn.primary {
    background: #111827;
    color: #fff;
}

.vs-sp-vendor-btn.primary:hover {
    background: #000;
    color: #fff;
}

.vs-sp-vendor-btn.ghost {
    border: 1px solid #d1d5db;
    color: #111827;
    background: #fff;
}

.vs-sp-vendor-btn.ghost:hover {
    border-color: #111827;
    color: #111827;
}

/* Price */
.vs-sp-price-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.vs-sp-price-main {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.vs-sp-price-main .price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vs-sp-price-main del {
    color: #94a3b8;
    font-size: 18px;
    font-weight: 600;
}

.vs-sp-price-main ins {
    text-decoration: none;
    color: #111827;
}

.vs-sp-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
}

/* Short desc */
.vs-sp-shortdesc {
    margin-bottom: 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

/* Trust grid */
.vs-sp-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.vs-sp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.vs-icon {
    font-size: 18px;
}

/* Add to cart area */
.vs-single-product-page form.cart {
    margin: 0 0 20px !important;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
}

.vs-single-product-page .variations {
    margin-bottom: 16px !important;
}

.vs-single-product-page .variations th,
.vs-single-product-page .variations td {
    padding-bottom: 12px !important;
}

.vs-single-product-page .variations label {
    font-weight: 700;
    color: #0f172a;
}

.vs-single-product-page .variations select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
}

.vs-single-product-page .quantity {
    margin-right: 12px !important;
}

.vs-single-product-page .quantity .qty {
    min-width: 100px;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
}

.vs-single-product-page .single_add_to_cart_button.button {
    height: 52px;
    border-radius: 16px !important;
    padding: 0 24px !important;
    background: #111827 !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
    transition: all .25s ease;
}

.vs-single-product-page .single_add_to_cart_button.button:hover {
    background: #000 !important;
    transform: translateY(-1px);
}

.vs-single-product-page .woocommerce-variation-add-to-cart,
.vs-single-product-page .cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Meta box */
.vs-sp-meta-box {
    margin-top: 6px;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fafafa;
}

.vs-sp-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.vs-sp-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.vs-sp-meta-chip.stock.in {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.vs-sp-meta-chip.stock.out {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.vs-sp-meta-line {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}

.vs-sp-meta-line strong {
    color: #0f172a;
}

/* Share */
.vs-sp-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vs-sp-action-btn {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    transition: all .25s ease;
}

.vs-sp-action-btn:hover {
    border-color: #111827;
    color: #111827;
    transform: translateY(-1px);
}

/* Bottom sections */
.vs-sp-bottom-wrap {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.vs-single-product-page .woocommerce-tabs {
    margin-top: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.vs-single-product-page .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.vs-single-product-page .woocommerce-tabs ul.tabs::before,
.vs-single-product-page .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.vs-single-product-page .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 999px !important;
}

.vs-single-product-page .woocommerce-tabs ul.tabs li::before,
.vs-single-product-page .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.vs-single-product-page .woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    padding: 12px 18px !important;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 700;
}

.vs-single-product-page .woocommerce-tabs ul.tabs li.active a {
    background: #111827;
    color: #fff !important;
}

.vs-single-product-page .woocommerce-Tabs-panel {
    margin: 0 !important;
    padding: 10px 0 0 !important;
    color: #475569;
    line-height: 1.8;
}

.vs-sp-tab-content h3 {
    margin-top: 0;
    color: #0f172a;
}

.vs-sp-vendor-tab-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.vs-sp-vendor-tab-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.vs-sp-vendor-store-link {
    display: inline-flex;
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* More from vendor */
.vs-sp-more-vendor {
    margin-top: 34px;
}

.vs-sp-section-title {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.vs-sp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.vs-sp-mini-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: all .25s ease;
}

.vs-sp-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.vs-sp-mini-thumb {
    display: block;
    background: #f8fafc;
    padding: 14px;
}

.vs-sp-mini-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.vs-sp-mini-body {
    padding: 16px;
}

.vs-sp-mini-title {
    display: block;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 8px;
}

.vs-sp-mini-price {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.vs-sp-mini-btn {
    display: inline-flex;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Mobile sticky */
.vs-sp-mobile-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.vs-sp-mobile-price {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.vs-sp-mobile-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

/* Default related products */
.vs-single-product-page .related.products {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.vs-single-product-page .related.products > h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 1100px) {
    .vs-sp-hero {
        grid-template-columns: 1fr;
    }

    .vs-sp-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ═══════════════════════════════════════════
   MOBILE — SINGLE PRODUCT PAGE  (≤ 767px)
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ─ Page wrapper ─ */
    .vs-single-product-page div.product {
        margin: 12px auto 120px;   /* bottom space for sticky bar */
        padding: 0 12px;
    }

    /* ─ Cards ─ */
    .vs-sp-info-card,
    .vs-sp-gallery-card,
    .vs-single-product-page .woocommerce-tabs {
        border-radius: 18px;
        padding: 16px;
    }

    /* ─ Title ─ */
    .vs-sp-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    /* ─ Price ─ */
    .vs-sp-price-main {
        font-size: 24px;
    }

    /* ─ Vendor card ─ */
    .vs-sp-vendor-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .vs-sp-vendor-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .vs-sp-vendor-btn {
        flex: 1;
        text-align: center;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ─ Trust grid → 1 column ─ */
    .vs-sp-trust-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* ─ ADD TO CART FORM
       Hide it completely from the info card on mobile.
       The sticky bar at bottom handles Add to Cart instead.
    ─ */
    .vs-sp-info-card form.cart,
    .vs-sp-info-card .woocommerce-variation-add-to-cart {
        display: none !important;
    }

    /* ─ Also hide Stripe / Google Pay inside the info card ─ */
    .vs-sp-info-card .wc-stripe-payment-request-wrapper,
    .vs-sp-info-card #wc-stripe-payment-request-wrapper,
    .vs-sp-info-card .wc-stripe-product-checkout-button,
    .vs-sp-info-card [class*="stripe"],
    .vs-sp-info-card [id*="stripe"],
    .vs-sp-info-card [class*="gpay"],
    .vs-sp-info-card [class*="google-pay"],
    .vs-sp-info-card [class*="payment-request"] {
        display: none !important;
    }

    /* ─ STICKY BAR at bottom ─ */
    .vs-sp-mobile-sticky {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        border-radius: 0;
        padding: 10px 14px;
        gap: 10px;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(15,23,42,0.12);
    }

    .vs-sp-mobile-price {
        font-size: 15px;
        font-weight: 900;
        color: #0f172a;
        white-space: nowrap;
    }

    .vs-sp-mobile-cart-btn {
        flex: 1;
        height: 46px;
        min-width: 0;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 800;
        text-align: center;
        justify-content: center;
    }

    /* ─ Share / action buttons ─ */
    .vs-sp-actions-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .vs-sp-action-btn {
        flex: 1 1 auto;
        text-align: center;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    /* ─ Related products: 2 columns ─ */
    .vs-sp-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* ─ Tabs ─ */
    .vs-single-product-page .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 2px !important;
    }

    .vs-single-product-page .woocommerce-tabs ul.tabs li {
        flex-shrink: 0 !important;
    }

    /* ─ Reviews form ─ */
    .vs-single-product-page .woocommerce-Reviews #commentform textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}