/**
 * Gallery Style 3 — SectionFour-aligned product details
 */

/* ── product-single shell: transparent, no shadow ── */
.product-single:has(.pd-gallery-style3){
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
    overflow: visible;
}

/* kill style3 layout-one overrides when gallery 3 is active */
.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .vertical-thumbs{
    width: 80px !important;
    max-height: none !important;
}

@media (min-width: 768px) {
    .product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .vertical-thumbs{
        width: 100px !important;
    }
}

@media (min-width: 1024px) {
    .product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .vertical-thumbs{
        width: 120px !important;
    }
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-swiper-thumbs{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-swiper-thumbs img{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .p-thumb-img-slider .swiper-slide{
    margin-bottom: 0 !important;
    border: none !important;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .p-details-big-img{
    width: 100% !important;
    max-width: 100% !important;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-slider-img{
    width: 100% !important;
    height: 100% !important;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-slider-img img:not(.zoomImg){
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-slider-img,
.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-slider-img img,
.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-swiper-thumbs,
.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-vertical-slider-container .single-swiper-thumbs img{
    border-radius: inherit;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .product-gallery .swiper-slide img{
    object-fit: contain !important;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .pd-action-order-btns{
    direction: ltr !important;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .product-title{
    text-transform: none !important;
}

.product_details.style3 .product-single:has(.pd-gallery-style3) .product-qty-form{
    background: transparent !important;
    padding: 0 !important;
    justify-content: stretch;
}

/* badge removed for gallery 3 */
.product-single:has(.pd-gallery-style3) .pd-details-gallery > .flag-name {
    display: none !important;
}

/* sticky gallery like SectionFour lg:sticky */
.product-single:has(.pd-gallery-style3) .product-gallery-sticky{
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 10;
}

/* ══════════════════════════════════════
   GALLERY — SectionFour gallery-parent
   flex row, gap, thumbs left / main right
   ══════════════════════════════════════ */

.pd-gallery-style3 {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    width: 100% !important;
    max-width: 100%;
    background: transparent;
    box-shadow: none;
}

@media (min-width: 640px) {
    .pd-gallery-style3 { gap: 12px; }
}

@media (min-width: 768px) {
    .pd-gallery-style3 {
        gap: 16px;
        grid-template-columns: 100px minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .pd-gallery-style3 {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

/* thumbs rail — single column, 80 → 120px, height matches the stage */
.pd-gallery-style3 .p-thumb-img-slider,
.pd-gallery-style3 .vertical-thumbs {
    flex: none;
    width: 80px !important;
    min-width: 0;
    min-height: 0;
    height: auto !important;
    max-height: 100%;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
    order: 1;
    background: transparent;
    /* soft clip: last 5px of the rail fades instead of a hard cut */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 5px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 5px), transparent 100%);
}

@media (min-width: 768px) {
    .pd-gallery-style3 .p-thumb-img-slider,
    .pd-gallery-style3 .vertical-thumbs {
        flex-basis: 100px;
        width: 100px !important;
    }
}

@media (min-width: 1024px) {
    .pd-gallery-style3 .p-thumb-img-slider,
    .pd-gallery-style3 .vertical-thumbs {
        flex-basis: 120px;
        width: 120px !important;
    }
}

.pd-gallery-style3 .vertical-thumbs .swiper-wrapper {
    flex-direction: column !important;
    margin: 0 !important;
    gap: 8px;
    height: auto !important;
}

@media (min-width: 640px) {
    .pd-gallery-style3 .vertical-thumbs .swiper-wrapper { gap: 10px; }
}

.pd-gallery-style3 .p-thumb-img-slider .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* arrows sit above/below the column, never over a thumb */
.pd-gallery-style3 .p-thumb-img-slider .swiper-button-prev,
.pd-gallery-style3 .p-thumb-img-slider .swiper-button-next {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 18px !important;
    margin: 0 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: #9ca3af;
    opacity: 1;
    z-index: 10;
}

.pd-gallery-style3 .p-thumb-img-slider .swiper-button-prev { top: 0 !important; }
.pd-gallery-style3 .p-thumb-img-slider .swiper-button-next { top: auto !important; bottom: 0 !important; }

.pd-gallery-style3 .vertical-thumbs:has(.swiper-button-prev:not(.swiper-button-lock)) .swiper-wrapper {
    padding: 22px 0;
}

.pd-gallery-style3 .p-thumb-img-slider .swiper-button-lock {
    display: none !important;
}

.pd-gallery-style3 .p-thumb-img-slider .swiper-button-prev:hover,
.pd-gallery-style3 .p-thumb-img-slider .swiper-button-next:hover {
    color: var(--primary-color);
}

.pd-gallery-style3 .p-thumb-img-slider .swiper-button-prev::after,
.pd-gallery-style3 .p-thumb-img-slider .swiper-button-next::after {
    display: none;
}

.pd-gallery-style3 .p-thumb-img-slider .swiper-button-prev::before,
.pd-gallery-style3 .p-thumb-img-slider .swiper-button-next::before {
    font-size: 14px;
    color: inherit;
}

/* thumb button: aspect-square, border, object-contain
   3-class selector to beat demo.css .pd-vertical-slider-container .vertical-thumbs .single-swiper-thumbs */
.pd-gallery-style3 .vertical-thumbs .single-swiper-thumbs,
.pd-gallery-style3 .single-swiper-thumbs {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    margin: 0 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pd-gallery-style3 .single-swiper-thumbs:hover {
    border-color: #d1d5db !important;
}

.pd-gallery-style3 .single-swiper-thumbs img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

/* active: border primary + glow + scale — SectionFour */
.pd-gallery-style3 .swiper-slide-thumb-active.single-swiper-thumbs {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.pd-gallery-style3 .swiper-slide-thumb-active::before {
    display: none !important;
}

.pd-gallery-style3 .swiper-slide-thumb-active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0.05;
    pointer-events: none;
}

/* main stage: square, fills the 1fr column — beat demo.css calc(100% - 116px) */
.pd-gallery-style3 .p-details-big-img,
.pd-gallery-style3.pd-vertical-slider-container .p-details-big-img {
    width: 100% !important;
    max-width: 100% !important;
    flex: none;
    min-width: 0;
    order: 2;
    position: relative;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #ececec !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    min-height: 0;
    align-self: stretch;
}

.pd-gallery-style3 .p-details-big-img .swiper-wrapper,
.pd-gallery-style3 .p-details-big-img .swiper-slide {
    width: 100% !important;
    height: 100% !important;
}

.pd-gallery-style3 .single-slider-img {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    padding: 12px;
    border: none !important;
    margin: 0 !important;
    background: transparent !important;
    cursor: zoom-in;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .pd-gallery-style3 .single-slider-img { padding: 16px; }
}

.pd-gallery-style3 .single-slider-img img:not(.zoomImg),
.pd-gallery-style3 .single-slider-img video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0;
    display: block;
    border: none !important;
    border-radius: 0;
}

/* nav: frosted white circles — SectionFour */
.pd-gallery-style3 .p-details-big-img .swiper-button-prev,
.pd-gallery-style3 .p-details-big-img .swiper-button-next {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    margin-top: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border: 1px solid #fff !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    color: #374151;
    opacity: 1;
    z-index: 5;
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.pd-gallery-style3 .p-details-big-img .swiper-button-prev { left: 4px !important; }
.pd-gallery-style3 .p-details-big-img .swiper-button-next { right: 4px !important; }

@media (min-width: 640px) {
    .pd-gallery-style3 .p-details-big-img .swiper-button-prev,
    .pd-gallery-style3 .p-details-big-img .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .pd-gallery-style3 .p-details-big-img .swiper-button-prev { left: 8px !important; }
    .pd-gallery-style3 .p-details-big-img .swiper-button-next { right: 8px !important; }
}

@media (min-width: 768px) {
    .pd-gallery-style3 .p-details-big-img .swiper-button-prev,
    .pd-gallery-style3 .p-details-big-img .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .pd-gallery-style3 .p-details-big-img .swiper-button-prev { left: 16px !important; }
    .pd-gallery-style3 .p-details-big-img .swiper-button-next { right: 16px !important; }
}

.pd-gallery-style3 .p-details-big-img .swiper-button-prev:hover,
.pd-gallery-style3 .p-details-big-img .swiper-button-next:hover {
    background: #fff !important;
    color: var(--primary-color);
}

.pd-gallery-style3 .p-details-big-img .swiper-button-prev::after,
.pd-gallery-style3 .p-details-big-img .swiper-button-next::after {
    display: none;
}

.pd-gallery-style3 .p-details-big-img .swiper-button-prev::before,
.pd-gallery-style3 .p-details-big-img .swiper-button-next::before {
    font-size: 16px;
    color: inherit;
}

.pd-gallery-style3 .p-details-big-img .swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* SectionFour has no pagination dots */
.pd-gallery-style3 .p-details-slider-2-pagination {
    display: none !important;
}

/* ══════════════════════════════════════
   DETAILS column
   ══════════════════════════════════════ */

.product-single:has(.pd-gallery-style3) .product-details[data-sticky-options]{
    padding: 0;
    background: transparent !important;
}

@media (min-width: 768px) {
    .product-single:has(.pd-gallery-style3) .product-details[data-sticky-options]{
        padding-left: 16px;
    }
}

/* title: text-[32px] font-[400] */
.product-single:has(.pd-gallery-style3) .product-details .product-title{
    font-size: clamp(20px, 2.5vw, 32px) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: var(--title-color, #333) !important;
    text-transform: none !important;
    margin: 0 0 4px !important;
}

.product-single:has(.pd-gallery-style3) .product-details .product-title > span{
    color: red !important;
    border: 1px solid red !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
    padding: 2px 5px !important;
    margin-left: 10px !important;
    vertical-align: middle;
    text-transform: lowercase !important;
    display: inline-block;
    line-height: 1;
}

.product-single:has(.pd-gallery-style3) .product-details .ratings-container,
.product-single:has(.pd-gallery-style3) .product-details .pd-wishlist-btn{
    display: none !important;
}

/* price: text-[26px] font-[500] */
.product-single:has(.pd-gallery-style3) .product-details .product-price{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 4px;
    overflow: hidden;
}

.product-single:has(.pd-gallery-style3) .product-details .product-price ins.new-price{
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    color: var(--title-color, #333);
    text-decoration: none;
    line-height: 1.2;
}

.product-single:has(.pd-gallery-style3) .product-details .product-price del.old-price{
    font-size: 14px;
    font-weight: 400;
    color: #aaa;
}

.product-single:has(.pd-gallery-style3) .product-details .product-price .save-label{
    display: inline-flex !important;
    align-items: center;
    background: var(--primary-color);
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-single:has(.pd-gallery-style3) .product-details .product-stock-info,
.product-single:has(.pd-gallery-style3) .product-details .stock-number{
    display: block !important;
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 4px;
}

.product-single:has(.pd-gallery-style3) .product-details .product-divider{
    border: 0;
    border-top: 1px dashed #e5e7eb;
    margin: 8px 0;
    width: 100% !important;
    opacity: 1;
}

.product-single:has(.pd-gallery-style3) .product-details .product-short-desc{
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* hide separate Color/Size pickers — SectionFour uses together cards */
.product-single:has(.pd-gallery-style3) .product-details .product-variation-form{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ══════════════════════════════════════
   VARIANTS — SectionFour card grid (together)
   ══════════════════════════════════════ */

.product-single:has(.pd-gallery-style3) .pd-g3-choose-option{
    margin-bottom: 16px;
}

.product-single:has(.pd-gallery-style3) .pd-g3-choose-label{
    display: block;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--title-color, #333);
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .pd-g3-choose-label{
        font-size: 14px;
        margin-bottom: 20px;
    }
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .pd-g3-variant-grid{
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-card{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 2px dotted color-mix(in srgb, var(--primary-color) 20%, transparent);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .pd-g3-variant-card{
        padding: 12px;
        gap: 6px;
    }
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-card:hover:not(:disabled){
    border-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-card.is-selected{
    border-color: transparent;
    background: color-mix(in srgb, var(--primary-color) 90%, transparent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-card.is-oos{
    opacity: 0.4;
    cursor: not-allowed;
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-img{
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-attrs{
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-card.is-selected .pd-g3-variant-attrs{
    color: #fff;
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-price-badge{
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 10;
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .pd-g3-variant-price-badge{
        width: 50px;
        height: 50px;
    }
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-price-badge svg{
    width: 100%;
    height: 100%;
    display: block;
}

.product-single:has(.pd-gallery-style3) .pd-g3-variant-price-text{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

/* ── cart: SectionFour — qty row + 2-col CTAs ── */
.product-single:has(.pd-gallery-style3) .product-details #product_details_add_to_cart_section{
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 8px;
    align-items: stretch;
    margin-top: 20px;
    margin-bottom: 8px;
    width: 100%;
}

.product-single:has(.pd-gallery-style3) .product-details .product-qty-form{
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: stretch;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

/* SectionFive has no "Quantity:" label */
.product-single:has(.pd-gallery-style3) .product-details .product-qty-form > span{
    display: none;
}

.product-single:has(.pd-gallery-style3) .product-details .product-qty-form .input-group{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    max-width: none !important;
    height: 48px;
    min-height: 48px;
    padding: 6px;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(
        to bottom right,
        color-mix(in srgb, var(--primary-color) 90%, white),
        var(--primary-color)
    ) !important;
    box-shadow: none;
    gap: 0;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .product-details .product-qty-form .input-group{
        height: 50px;
        min-height: 50px;
    }
}

@media (min-width: 768px) {
    .product-single:has(.pd-gallery-style3) .product-details .product-qty-form .input-group{
        height: 48px;
        min-height: 48px;
    }
}

@media (min-width: 1024px) {
    .product-single:has(.pd-gallery-style3) .product-details .product-qty-form .input-group{
        height: 52px;
        min-height: 52px;
    }
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details{
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--primary-color) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    font-size: 0 !important;
    line-height: 1;
    order: unset;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details:hover{
    background: color-mix(in srgb, var(--primary-color) 8%, white) !important;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details:active{
    transform: scale(0.9);
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details:disabled,
.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details.disabled{
    opacity: 0.3;
    pointer-events: none;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details.increase{
    order: 3;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details.decrease{
    order: 1;
}

.product-single:has(.pd-gallery-style3) .product-details .input-group .form-control{
    order: 2;
    flex: 1;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff !important;
    height: 100%;
    box-shadow: none !important;
    padding: 0;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .product-details .input-group .form-control{
        font-size: 18px;
    }
}

.product-single:has(.pd-gallery-style3) .product-details .input-group .form-control::-webkit-outer-spin-button,
.product-single:has(.pd-gallery-style3) .product-details .input-group .form-control::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details::before{
    display: none !important;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details::after{
    content: "";
    display: block;
    background: currentColor;
    border-radius: 1px;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details.decrease::after{
    width: 14px;
    height: 2px;
}

.product-single:has(.pd-gallery-style3) .product-details .quantity__value_details.increase::after{
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}

/* qty in col 1, Add to Cart col 2, Buy Now full-width row 2 — SectionFive */
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns{
    display: contents;
}

/* Add to Cart — bg-primary text-white rounded-md uppercase font-normal + shadow */
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .addToCartWithQty,
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .removeFromCartQty{
    grid-column: 2;
    grid-row: 1;
    height: 44px !important;
    max-height: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    background: var(--primary-color) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0px 8px 15px #00000017 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 !important;
    padding: 0 8px !important;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .addToCartWithQty:hover,
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .removeFromCartQty:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .addToCartWithQty,
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .removeFromCartQty{
        height: 50px !important;
        font-size: 14px !important;
    }
}

@media (min-width: 768px) {
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .addToCartWithQty,
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .removeFromCartQty{
        height: 48px !important;
        font-size: 16px !important;
    }
}

@media (min-width: 1024px) {
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .addToCartWithQty,
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .removeFromCartQty{
        height: 56px !important;
        font-size: 18px !important;
    }
}

.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .addToCartWithQty i{
    display: inline-block !important;
    font-size: 20px;
}

/* Buy Now — bg-white text-title rounded-md uppercase font-normal + shadow, full width */
.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .buyNow-btn{
    grid-column: 1 / -1;
    grid-row: 2;
    height: 44px !important;
    max-height: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff !important;
    color: var(--title-color, #333) !important;
    border: 0 !important;
    box-shadow: 0px 8px 15px #00000017 !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 8px !important;
    transition: opacity 0.3s ease;
}

.product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .buyNow-btn:hover {
    background: #fff !important;
    color: var(--title-color, #333) !important;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .buyNow-btn{
        height: 50px !important;
        font-size: 14px !important;
    }
}

@media (min-width: 768px) {
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .buyNow-btn{
        height: 48px !important;
        font-size: 16px !important;
    }
}

@media (min-width: 1024px) {
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .buyNow-btn{
        height: 56px !important;
        font-size: 18px !important;
    }
}

/* WhatsApp + Call — grid-cols-2 gap-3 mt-2 sm:mt-3 */
.product-single:has(.pd-gallery-style3) .product-details .product-details-action-group{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .product-details .product-details-action-group{
        margin-top: 12px;
    }
}

.product-single:has(.pd-gallery-style3) .product-details .product-details-action-group .btn{
    height: 44px !important;
    max-height: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    box-shadow: 0px 8px 15px #00000017 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 8px !important;
    transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
    .product-single:has(.pd-gallery-style3) .product-details .product-details-action-group .btn{
        height: 50px !important;
        font-size: 14px !important;
    }
}

@media (min-width: 768px) {
    .product-single:has(.pd-gallery-style3) .product-details .product-details-action-group .btn{
        height: 48px !important;
        font-size: 16px !important;
    }
}

@media (min-width: 1024px) {
    .product-single:has(.pd-gallery-style3) .product-details .product-details-action-group .btn{
        height: 56px !important;
        font-size: 18px !important;
    }
}

.product-single:has(.pd-gallery-style3) .product-details .product-details-action-group .btn:hover{
    opacity: 0.9;
}

.product-single:has(.pd-gallery-style3) .product-details .whatsapp-order-btn{
    background: #16a34a !important;
    color: #fff !important;
}

.product-single:has(.pd-gallery-style3) .product-details .whatsapp-order-btn i,
.product-single:has(.pd-gallery-style3) .product-details .call-for-order-btn i{
    display: inline-block !important;
}

.product-single:has(.pd-gallery-style3) .product-details .call-for-order-btn{
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* brand row */
.product-single:has(.pd-gallery-style3) .product-details .pd-brand-group{
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    background: transparent;
}

.product-single:has(.pd-gallery-style3) .product-details .product-brand{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    padding: 5px 12px;
    background: transparent;
}

.product-single:has(.pd-gallery-style3) .product-details .product-brand span{
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.product-single:has(.pd-gallery-style3) .product-details .product-brand img{
    max-height: 44px;
    width: auto;
}

/* ══════════════════════════════════════
   MOBILE
   ══════════════════════════════════════ */

@media (max-width: 767px) {
    .product_details.style3 .product-single:has(.pd-gallery-style3) .row .pd-details-gallery{
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ── gallery: shorter on mobile so it doesn't dominate the page ── */
    .pd-gallery-style3 {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
        max-height: 240px;
    }

    .pd-gallery-style3 .p-thumb-img-slider,
    .pd-gallery-style3 .vertical-thumbs {
        display: block !important;
        flex: none;
        width: 72px !important;
        max-height: 240px !important;
    }

    .pd-gallery-style3 .vertical-thumbs .swiper-wrapper {
        gap: 6px;
    }

    .pd-gallery-style3 .p-thumb-img-slider .swiper-slide,
    .pd-gallery-style3 .vertical-thumbs .single-swiper-thumbs {
        width: 72px !important;
        max-width: 72px !important;
        height: 72px !important;
        max-height: 72px !important;
        aspect-ratio: 1 / 1;
        border-radius: 6px !important;
    }

    .pd-gallery-style3 .p-details-big-img {
        width: 100% !important;
        max-height: 240px !important;
        aspect-ratio: 1 / 1;
        border-radius: 10px !important;
    }

    .pd-gallery-style3 .single-slider-img {
        padding: 10px;
    }

    .pd-gallery-style3 .p-details-big-img .swiper-button-prev,
    .pd-gallery-style3 .p-details-big-img .swiper-button-next {
        opacity: 1 !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    /* ── details column ── */
    .product-single:has(.pd-gallery-style3) .product-details[data-sticky-options]{
        padding: 16px 0 0;
    }

    .product-single:has(.pd-gallery-style3) .product-details .product-title{
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    .product-single:has(.pd-gallery-style3) .product-details .product-price ins.new-price{
        font-size: 20px;
    }

    .product-single:has(.pd-gallery-style3) .product-details .pd-g3-choose-label{
        margin-bottom: 12px;
    }

    .product-single:has(.pd-gallery-style3) .product-details .pd-g3-variant-grid{
        gap: 10px 8px;
    }

    /* ── actions: keep qty + cart on one row, readable labels ── */
    .product-single:has(.pd-gallery-style3) .product-details #product_details_add_to_cart_section{
        grid-template-columns: 32% 1fr;
        gap: 8px;
        margin-top: 16px;
    }

    .product-single:has(.pd-gallery-style3) .product-details .product-qty-form .input-group{
        height: 44px;
        min-height: 44px;
    }

    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .addToCartWithQty,
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .removeFromCartQty,
    .product-single:has(.pd-gallery-style3) .product-details .pd-action-order-btns .buyNow-btn,
    .product-single:has(.pd-gallery-style3) .product-details .product-details-action-group .btn{
        height: 40px !important;
        font-size: 11px !important;
        gap: 5px;
        padding: 0 6px !important;
        line-height: 1.2;
        text-align: center;
    }

    .product-single:has(.pd-gallery-style3) .product-details .product-details-action-group{
        gap: 8px;
        margin-top: 8px;
    }

    .product-single:has(.pd-gallery-style3) .product-details .product-details-action-group .btn i{
        font-size: 14px;
    }

    /* brand row wraps instead of squashing */
    .product-single:has(.pd-gallery-style3) .product-details .pd-brand-group{
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
    }
}
