.gas-wishlist-card-media img {
    box-sizing: border-box;
    object-fit: contain !important;
    object-position: center !important;
    padding: 10px;
    background: linear-gradient(145deg, #faf7f2, #f1f4f7);
}

.gas-product-stage {
    position: relative;
    aspect-ratio: 1.32 / 1;
    max-height: 720px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e4eaf0 !important;
    box-shadow: 0 4px 20px rgba(11, 55, 107, 0.04);
    touch-action: pan-y;
    overflow: hidden;
    cursor: zoom-in;
}

@media (min-width: 1101px) {
    .gas-product-overview {
        width: min(1320px, 100%);
        margin-inline: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px;
    }
}

.gas-product-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gas-product-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gas-product-slide img,
.gas-product-slide .gas-stage-image,
.gas-product-slide .woocommerce-placeholder {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    transform-origin: center center;
    will-change: transform, transform-origin;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), transform-origin 0.05s ease-out;
}

.gas-product-breadcrumb {
    direction: rtl;
    gap: 7px;
}

.gas-breadcrumb-separator {
    width: 10px;
    height: 10px;
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 10px;
    color: #58718b;
}

.gas-breadcrumb-separator svg {
    display: block;
    width: 9px !important;
    height: 9px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gas-breadcrumb-current a {
    color: #0b376b;
}

.gas-single-wishlist {
    z-index: 7 !important;
}

.gas-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 55, 91, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #0b376b;
    box-shadow: 0 8px 22px rgba(8, 39, 70, 0.12);
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.gas-gallery-arrow:hover {
    background: #0b376b;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.gas-gallery-prev { right: 14px; }
.gas-gallery-next { left: 14px; }
.gas-gallery-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.gas-gallery-zoom-hint {
    position: absolute;
    top: 61px;
    left: 15px;
    bottom: auto;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #0b376b;
    border: 1px solid rgba(15, 55, 91, 0.14);
    box-shadow: 0 4px 16px rgba(8, 39, 70, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.gas-gallery-zoom-hint:hover {
    background: #0b376b;
    color: #fff;
    transform: scale(1.08);
}

/* Horizontal Scrollable Thumbnails */
.gas-product-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px 2px 10px !important;
    margin-top: 14px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch !important;
}

.gas-product-thumbs::-webkit-scrollbar {
    height: 5px !important;
}

.gas-product-thumbs::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 999px !important;
}

.gas-product-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 999px !important;
}

.gas-product-thumbs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.gas-product-thumbs button {
    flex: 0 0 78px !important;
    width: 78px !important;
    height: 78px !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    background: #fff !important;
    padding: 0 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    scroll-snap-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.gas-product-thumbs button.is-active,
.gas-product-thumbs button:hover {
    border-color: #0b376b !important;
    box-shadow: 0 4px 14px rgba(11, 55, 107, 0.16) !important;
    transform: translateY(-2px);
}

.gas-product-thumbs img {
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 4px;
    background: #fafaf9;
    display: block;
}

/* Lightbox Modal */
.gas-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.28s;
}

.gas-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

body.gas-lightbox-active {
    overflow: hidden !important;
}

.gas-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 40, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gas-lightbox-shell {
    position: relative;
    z-index: 2;
    width: min(1280px, 94vw);
    height: min(920px, 92vh);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 20px;
    box-sizing: border-box;
}

.gas-lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    color: #fff;
    flex: 0 0 auto;
}

.gas-lightbox-count {
    font-size: 14px;
    font-weight: 850;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.gas-lightbox-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.gas-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.08);
}

.gas-lightbox-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.gas-lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gas-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
}

.gas-lightbox-thumbs-wrap {
    width: 100%;
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 10px 16px;
    display: flex;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    box-sizing: border-box;
}

.gas-lightbox-thumbs-wrap::-webkit-scrollbar {
    height: 5px;
}

.gas-lightbox-thumbs-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.gas-lightbox-thumbs-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

.gas-lightbox-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    padding: 4px 6px;
}

.gas-lightbox-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    border-radius: 12px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.gas-lightbox-thumb.is-active,
.gas-lightbox-thumb:hover {
    border-color: #38bdf8;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.55);
}

.gas-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: block;
    padding: 2px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .gas-product-stage { aspect-ratio: 1 / 1.12; max-height: none; }
    .gas-product-slide img { padding: 0; }
    .gas-gallery-arrow { width: 36px; height: 36px; }
    .gas-gallery-prev { right: 9px; }
    .gas-gallery-next { left: 9px; }
    .gas-gallery-zoom-hint { width: 34px; height: 34px; top: 50px; left: 10px; bottom: auto; }
    .gas-product-thumbs button { flex-basis: 64px !important; width: 64px !important; height: 64px !important; }
    .gas-lightbox-shell { width: 96vw; height: 94vh; padding: 12px 10px 16px; }
    .gas-lightbox-thumb { flex: 0 0 54px; width: 54px; height: 54px; min-width: 54px; min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    .gas-product-slide { transition: none; }
}
