/* ============================================
   NOTABENE - Product Detail v5
   Mobile Swiper + Desktop 2x2 Grid + Premium
   ============================================ */

/* === Section === */
.pd-section {
    padding: 20px 0 60px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* === Breadcrumb === */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.pd-breadcrumb a {
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}

.pd-breadcrumb a:hover {
    color: #222;
}

.pd-breadcrumb .separator {
    color: #ccc;
    font-size: 11px;
}

/* ======================
   MOBILE GALLERY SLIDER
   ====================== */
.pd-mobile-gallery {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f7;
}

.pd-mobile-gallery__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-mobile-gallery__slider {
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.pd-mobile-gallery__track {
    display: flex;
    will-change: transform;
}

.pd-mobile-gallery__slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.pd-mobile-gallery__slide img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.pd-mobile-gallery__counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.pd-mobile-gallery__thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pd-mobile-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.pd-mobile-gallery__thumb {
    width: 56px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.pd-mobile-gallery__thumb.active {
    border-color: #1a1a2e;
    opacity: 1;
}

.pd-mobile-gallery__thumb:hover {
    opacity: 0.8;
}

.pd-mobile-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ======================
   2x2 GRID GALLERY (Desktop)
   ====================== */
.pd-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

/* Utility: d-lg-grid */
.d-lg-grid {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-grid {
        display: grid !important;
    }
}

.pd-gallery-cell {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f7;
    aspect-ratio: 3/4;
}

.pd-gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pd-gallery-cell:hover img {
    transform: scale(1.04);
}

/* "See all" overlay on 4th image if more than 4 */
.pd-gallery-cell__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    gap: 8px;
    transition: background 0.3s ease;
}

.pd-gallery-cell__overlay:hover {
    background: rgba(0, 0, 0, 0.55);
}

.pd-gallery-cell__overlay i {
    font-size: 18px;
}

/* Single image fallback */
.pd-gallery-grid.single-image {
    grid-template-columns: 1fr;
}

.pd-gallery-grid.single-image .pd-gallery-cell {
    aspect-ratio: 3/4;
    border-radius: 16px;
}

/* When only 3 images */
.pd-gallery-grid.three-images .pd-gallery-cell:first-child {
    grid-row: 1 / 3;
    aspect-ratio: auto;
}

/* Badges */
.pd-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    animation: badgeSlideIn 0.4s ease forwards;
}

.pd-badge--sale {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.pd-badge--new {
    background: linear-gradient(135deg, #e91e90, #ff6eb4);
}

.pd-badge--bestseller {
    background: linear-gradient(135deg, #ffa502, #ffbe76);
}

.pd-badge--season {
    background: linear-gradient(135deg, #5352ed, #a29bfe);
}

.pd-badge--discount {
    background: linear-gradient(135deg, #ff4757, #c44569);
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ======================
   CUSTOM LIGHTBOX
   ====================== */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #fff;
    font-size: 20px;
}

.pd-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pd-lightbox__img-wrap {
    max-width: 85vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.pd-lightbox__img-wrap.zoomed {
    overflow: visible;
    cursor: grab;
}

.pd-lightbox__img-wrap.dragging {
    cursor: grabbing;
}

.pd-lightbox__img-wrap img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform;
}

.pd-lightbox__img-wrap.zoomed img {
    max-width: none;
    max-height: none;
}

.pd-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.pd-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.pd-lightbox__nav--prev {
    left: 24px;
}

.pd-lightbox__nav--next {
    right: 24px;
}

.pd-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Zoom controls */
.pd-lightbox__zoom-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pd-lightbox__zoom-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.pd-lightbox__zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.pd-lightbox__zoom-level {
    position: absolute;
    bottom: 80px;
    right: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

/* Lightbox thumbnail strip */
.pd-lightbox__thumbstrip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    max-width: 80vw;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
}

.pd-lightbox__thumbstrip::-webkit-scrollbar {
    display: none;
}

.pd-lightbox__thumb {
    width: 48px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all 0.25s;
    opacity: 0.5;
}

.pd-lightbox__thumb.active {
    border-color: #fff;
    opacity: 1;
}

.pd-lightbox__thumb:hover {
    opacity: 0.85;
}

.pd-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================
   RIGHT PANEL
   ====================== */
.pd-info {
    padding: 8px 0 8px 8px;
}

@media (max-width: 991px) {
    .pd-info {
        padding: 28px 0 0 0;
    }
}

.pd-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

/* Price Block */
.pd-price-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 14px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.pd-price-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
}

.pd-price-current {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
}

.pd-price-old {
    font-size: 18px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 500;
}

.pd-price-netto {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.pd-price-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.pd-price-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
    color: #fff;
}

/* Short description */
.pd-short-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

/* Quick Links */
.pd-quick-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pd-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f7;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pd-quick-link:hover {
    background: #fff;
    border-color: #ddd;
    color: #1a1a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* ======================
   VARIANT CARDS
   ====================== */
.pd-variants-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-variants-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #ddd, transparent);
}

.pd-variant-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #eee;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.pd-variant-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pd-variant-card.active {
    border-color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.1);
}

.pd-variant-card__image {
    width: 60px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.pd-variant-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.pd-variant-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pd-variant-card__image:hover img {
    transform: scale(1.1);
}

.pd-variant-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.pd-variant-color {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}

.pd-variant-color__swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #eee;
    flex-shrink: 0;
}

.pd-variant-sizes {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.pd-variant-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    width: fit-content;
}

.pd-variant-stock--in {
    background: #e8f5e9;
    color: #2e7d32;
}

.pd-variant-stock--out {
    background: #fce4ec;
    color: #c62828;
}

/* Qty Control */
.pd-variant-qty-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pd-variant-qty-label {
    font-size: 11px;
    font-weight: 600;
    font-style: italic;
    color: #e91e63;
    white-space: nowrap;
}

.pd-variant-qty {
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    height: 56px;
    background: #f8f9fa;
    flex-shrink: 0;
}

.pd-variant-qty .pd-qty-btn {
    width: 50px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    user-select: none;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    line-height: 1;
    touch-action: manipulation;
}

.pd-variant-qty .pd-qty-btn:hover {
    background: #e8e8e8;
    color: #222;
}

.pd-variant-qty .pd-qty-btn:active {
    background: #ddd;
}

.pd-variant-qty .pd-qty-input {
    width: 60px;
    height: 56px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    background: #fff;
    color: #1a1a2e;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    touch-action: manipulation;
}

.pd-variant-qty .pd-qty-input::-webkit-outer-spin-button,
.pd-variant-qty .pd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Notify Button */
.pd-variant-meta {
    flex-shrink: 0;
}

.pd-notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #1a73e8;
    color: #1a73e8;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pd-notify-btn:hover {
    background: #1a73e8;
    color: #fff;
}

.pd-notify-btn.notified {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
    cursor: default;
}

/* Eye / Bag indicators */
.pd-variant-eye {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.pd-variant-card.active .pd-variant-eye {
    display: flex;
}

.pd-variant-eye i {
    color: #fff;
    font-size: 10px;
}

.pd-variant-bag-icon {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    background: #ff9800;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.pd-variant-bag-icon i {
    color: #fff;
    font-size: 10px;
}

/* === Add to Cart === */
.pd-addtocart-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    color: #fff;
    margin: 24px 0;
    letter-spacing: 0.3px;
}

.pd-addtocart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.3);
}

.pd-addtocart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pd-addtocart-btn.in-cart {
    background: linear-gradient(135deg, #ff9800 0%, #ff6d00 100%);
}

.pd-addtocart-btn__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-addtocart-btn__right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

/* === Actions === */
.pd-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.pd-action-btn:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
    background: #f8f9fa;
}

/* === Meta === */
.pd-meta {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.pd-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.pd-meta-item label {
    color: #999;
    font-weight: 500;
}

.pd-meta-item span {
    color: #555;
    font-weight: 600;
}

/* === Tabs === */
.pd-tabs {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #eee;
}

.pd-tabs .nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    gap: 32px;
    margin-bottom: 32px;
}

.pd-tabs .nav-link {
    border: none !important;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    position: relative;
    transition: color 0.3s;
    background: transparent !important;
}

.pd-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a2e;
    transition: width 0.3s ease;
}

.pd-tabs .nav-link.active {
    color: #1a1a2e !important;
}

.pd-tabs .nav-link.active::after {
    width: 100%;
}

.pd-tabs .tab-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.pd-tabs .product-single__addtional-info .item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pd-tabs .product-single__addtional-info .item label {
    font-weight: 600;
    color: #333;
    min-width: 160px;
}

/* === Related === */
.pd-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #eee;
}

.pd-related__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 32px;
}

.pd-related__title strong {
    background: linear-gradient(135deg, #1a1a2e, #5352ed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video Modal */
#videoModal .modal-dialog {
    max-width: 267px !important;
    width: 267px !important;
    margin: auto;
}

#videoModal .modal-content {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    border: none;
}

#videoModal .modal-header {
    position: absolute;
    right: -8px;
    top: -8px;
    z-index: 1060;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

#videoModal .modal-body {
    background: #000;
    border-radius: 16px;
    padding: 0 !important;
    width: 267px !important;
    height: 476px !important;
}

#videoModal .video-container {
    width: 267px !important;
    height: 476px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}

#videoModal .video-container iframe {
    width: 267px !important;
    height: 476px !important;
    border: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pd-info>* {
    animation: fadeInUp 0.4s ease forwards;
}

.pd-info>*:nth-child(1) {
    animation-delay: 0.05s;
}

.pd-info>*:nth-child(2) {
    animation-delay: 0.1s;
}

.pd-info>*:nth-child(3) {
    animation-delay: 0.15s;
}

.pd-info>*:nth-child(4) {
    animation-delay: 0.2s;
}

.pd-info>*:nth-child(5) {
    animation-delay: 0.25s;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 991px) {
    .pd-gallery-grid {
        position: static;
    }

    .pd-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .pd-section {
        padding: 15px 16px 40px;
    }

    .pd-info {
        padding-top: 24px;
    }

    .pd-price-block {
        padding: 16px;
    }

    .pd-price-current {
        font-size: 24px;
    }

    .pd-actions {
        flex-direction: column;
    }

    /* Lightbox mobile adjustments */
    .pd-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .pd-lightbox__nav--prev {
        left: 8px;
    }

    .pd-lightbox__nav--next {
        right: 8px;
    }

    .pd-lightbox__img-wrap {
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
    }

    .pd-lightbox__img-wrap img {
        max-width: 100vw;
        max-height: 85vh;
    }

    .pd-lightbox__zoom-controls {
        bottom: 80px;
        right: 12px;
        gap: 6px;
    }

    .pd-lightbox__zoom-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .pd-lightbox__zoom-level {
        bottom: 126px;
        right: 12px;
        font-size: 11px;
    }

    .pd-lightbox__thumbstrip {
        bottom: 12px;
        max-width: 90vw;
        padding: 4px;
    }

    .pd-lightbox__thumb {
        width: 40px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .pd-section {
        padding: 50px 12px 32px;
    }

    .pd-title {
        font-size: 20px;
    }

    .pd-mobile-gallery {
        border-radius: 10px;
    }

    .pd-mobile-gallery__thumb {
        width: 48px;
        height: 60px;
    }

    .pd-variant-card {
        padding: 12px;
        gap: 10px;
    }

    .pd-variant-card__image {
        width: 56px;
        height: 75px;
    }

    .pd-variant-qty {
        height: 52px;
    }

    .pd-variant-qty .pd-qty-btn {
        width: 46px;
        height: 52px;
        font-size: 20px;
    }

    .pd-variant-qty .pd-qty-input {
        width: 56px;
        height: 52px;
        font-size: 18px;
    }

    .pd-quick-links {
        gap: 8px;
    }

    .pd-quick-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pd-tabs .nav-tabs {
        gap: 16px;
    }

    .pd-tabs .nav-link {
        font-size: 12px;
    }

    .pd-lightbox__nav {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}