/* Product page styles (group a), moved from inline <style> blocks in product_details.php. Order matters. */

/* from line 293 */
.shop-single-gallery {
    max-width: 600px;
    margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
  }
    .shop-single-gallery > a {
        display: block;
        width: 100%;
                position: relative;
    }
        .shop-single-gallery > a::after {
        content: "";
                position: absolute;
                inset: 0;
        background-image: url('../../Admin/assets/images/logo/npf2.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 50px auto;
            opacity: 0.65;
        transform: rotate(-1deg);
            mix-blend-mode: normal;
            filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.28));
                pointer-events: none;
        }
  .main-image {
    width: 100%;
    height: 400px;
        object-fit: contain;
        object-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease-in-out;
        margin: 0 auto 16px;
  }
  /* ── Thumbnail strip wrapper ─────────────────────────────── */
  .custom-thumbnails-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
  }

  /* Edge fade — masks the left/right before the arrow buttons */
  .custom-thumbnails-slider::before,
  .custom-thumbnails-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
  }
  .custom-thumbnails-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  }
  .custom-thumbnails-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  }

  /* ── Scroll container — fixed height prevents vertical jump ─ */
  .thumbnails-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;        /* ← kills vertical scroll bleed */
    align-items: center;       /* ← centres all items on the same baseline */
    gap: 8px;
    padding: 10px 40px;
    height: 110px;             /* ← fixed: 80px thumb + 15px top/bottom pad */
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: grab;
    position: relative;
    z-index: 1;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
  }
  .thumbnails-container::-webkit-scrollbar { display: none; }
  .thumbnails-container { -ms-overflow-style: none; scrollbar-width: none; }

  /* ── Thumbnail anchors ───────────────────────────────────── */
  .thumbnails-container a,
  .thumbnails-container .yt-thumb-item {
    flex: 0 0 auto;
    position: relative;
    display: block;
    border-radius: 7px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.2s ease, box-shadow 0.2s ease;
  }

  /* Watermark overlay on each thumb */
  .thumbnails-container a::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../Admin/assets/images/logo/npf2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px auto;
    opacity: 0.75;
    transform: rotate(-18deg);
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 1px rgba(0,0,0,.35)) drop-shadow(0 0 1px rgba(255,255,255,.35));
    pointer-events: none;
    border-radius: 7px;
  }

  /* ── Thumbnail images — no scale on hover (causes repaints) ─ */
  .thumbnails-container img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: cover;
    border-radius: 7px;
    cursor: pointer;
    display: block;
    transition: opacity 0.2s ease;
  }
  .thumbnails-container a:hover img,
  .thumbnails-container .yt-thumb-item:hover .yt-thumb-wrapper img {
    opacity: 0.82;
  }

  /* ── Selected state — outline on the anchor, not the img ─── */
  .thumbnails-container .npf-thumb.selected {
    outline-color: #5C86B8;
    box-shadow: 0 0 0 1px rgba(92,134,184,0.25), 0 2px 8px rgba(92,134,184,0.18);
  }

  .thumbnails-container.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
  }

  /* ── GLightbox watermark ─────────────────────────────────── */
  .gslide-image { position: relative; }
  .gslide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../Admin/assets/images/logo/npf2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px auto;
    opacity: 0.75;
    transform: rotate(-1deg);
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.28)) drop-shadow(0 0 2px rgba(255,255,255,.28));
    pointer-events: none;
  }

  /* ── Arrow buttons ───────────────────────────────────────── */
  .slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 11px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 5;
    cursor: pointer;
  }
  .slider-button:hover {
    background: #5C86B8;
    border-color: #5C86B8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(92,134,184,0.35);
  }
  .slider-button.prev { left: 3px; }
  .slider-button.next { right: 3px; }
  /* hide template slider class */
  .flexslider,
  .flexslider-thumbnails,
  .flexslider-photo,
  .img-slider,
  .flexslider-app {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .flex-direction-nav,
  .flex-control-nav,
  .flex-control-thumbs {
    display: none !important;
  }

  .custom-thumbnails-slider {
  position: relative;
  z-index: 1;
    width: 100%;
    max-width: 600px;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.3s, color 0.3s;
    z-index: 6; 
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 576px) {
    .thumbnails-container {
        padding: 10px 34px;
        height: 106px;
        gap: 6px;
    }
    .thumbnails-container img {
        width: 76px;
        height: 76px;
        min-width: 76px;
    }
    .slider-button {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    .slider-button.prev { left: 2px; }
    .slider-button.next { right: 2px; }
}

/* -- table --*/
.table.table-bordered tr {
    display: flex;
    flex-wrap: wrap;
}

.table.table-bordered td {
    flex: 1 0 50%;   
    min-width: 0;
    box-sizing: border-box;
}

.table.table-bordered {
    width: 100%;
    table-layout: fixed;
}

.table.table-bordered .form-control,
.table.table-bordered select,
.table.table-bordered input {
    width: 100%;
    max-width: 100%;
}

.shop-single img,
.shop-single iframe,
.shop-single video,
.shop-single table {
    max-width: 100%;
}

.shop-single-desc,
.shop-single-info {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 1200px) {
    .shop-single > .container {
        max-width: 1480px;
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (min-width: 992px) {
    .shop-single .row {
        align-items: flex-start;
    }

    .shop-single-gallery {
        position: sticky;
        top: 110px;
    }

    .main-image {
        height: clamp(440px, 56vh, 620px);
    }

    .thumbnails-container img {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }
}

.shop-single.py-90 {
    padding-top: 36px !important;
}

@media (max-width: 767.98px) {
    .shop-single.py-90 {
        padding-top: 22px !important;
    }
}

.shop-single-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 22px;
    animation: panelFadeUp 0.55s ease both;
}

.shop-single-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.shop-single-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 10px;
    background: #5C86B8;
}

.product-google-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-decoration: none;
    padding: 5px 0;
    row-gap: 2px;
}
.product-google-rating:hover { text-decoration: none; opacity: 0.85; }

.npf-urgency-strip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 14px;
}
.npf-urgency-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    width: fit-content;
}
.npf-urgency-view { border-left: 3px solid #dc2626; background: #fff5f5; }
.npf-urgency-delivery { border-left: 3px solid #0f766e; background: #f0fdf9; }

.product-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.product-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.product-trust-badge i {
    color: #16a34a;
}

.mobile-sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    display: none;
}

.mobile-sticky-cart .mobile-sticky-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-sticky-cart .mobile-call-btn,
.mobile-sticky-cart .mobile-add-btn {
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.mobile-sticky-cart .mobile-call-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    border-color: #1faf5f;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.35);
}

.mobile-sticky-cart .mobile-call-btn:hover,
.mobile-sticky-cart .mobile-call-btn:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e, #0f766e);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.42);
}

.mobile-sticky-cart .mobile-add-btn {
    background: #ff6b35;
    color: #fff;
}

.mobile-sticky-cart .mobile-add-btn:disabled,
.mobile-sticky-cart .mobile-add-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.shop-single-gallery {
    animation: panelFadeUp 0.55s ease both;
}

.shop-single-info .table.table-bordered {
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
}

.shop-single-info .table.table-bordered td {
    padding: 12px;
    transition: background 0.25s ease;
}

.shop-single-info .table.table-bordered tr:hover td {
    background: rgba(92, 134, 184, 0.08);
}

.shop-single-info .table.table-bordered label {
    display: inline-block;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #374151;
    margin-bottom: 7px;
    padding-left: 8px;
    border-left: 3px solid #2563eb;
}

.shop-single-info .form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    min-height: 44px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.shop-single-info select.form-control {
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    min-height: 46px;
    padding: 10px 40px 10px 14px;
    font-size: .95rem;
    font-weight: 500;
    color: #1f2937;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C86B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.shop-single-info .form-control:hover {
    border-color: #5C86B8;
}
.shop-single-info select.form-control:hover {
    border-color: #5C86B8;
    background-color: #f8faff;
}

.shop-single-info .form-control:focus {
    border-color: #5C86B8;
    box-shadow: 0 0 0 3px rgba(92, 134, 184, 0.2);
    transform: translateY(-1px);
}
.shop-single-info select.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: #fff;
    outline: none;
}

@media (max-width: 991.98px) {
    .shop-single-info .form-control:focus,
    .shop-single-info select.form-control:focus {
        transform: none;
    }
}

.shop-single-info .table.table-bordered select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    border-color: rgba(92, 134, 184, 0.45);
    background-image: linear-gradient(45deg, transparent 50%, #5C86B8 50%), linear-gradient(135deg, #5C86B8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    animation: variantSelectGlow 2s ease-in-out infinite;
}

.shop-single-info .table.table-bordered select.form-control:hover,
.shop-single-info .table.table-bordered select.form-control:focus {
    background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
}

/* On mobile/touch screens: restore native select so it opens reliably.
   appearance:none + animation blocks the native dropdown in touch/emulation mode. */
@media (max-width: 991.98px) {
    .shop-single-info .table.table-bordered select.form-control {
        appearance: auto;
        -webkit-appearance: auto;
        -moz-appearance: auto;
        background-image: none;
        padding-right: 8px;
        animation: none;
    }
}

.shop-single-info .btn-showcase .theme-btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-single-info .btn-showcase .theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.shop-single-info .btn-showcase .theme-btn2 {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    border: 1px solid #1faf5f;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.35);
}

.shop-single-info .btn-showcase .theme-btn2:hover,
.shop-single-info .btn-showcase .theme-btn2:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e, #0f766e);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.42);
}

.shop-single-info .btn-showcase.mattress-price-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.shop-single-info .btn-showcase.mattress-price-actions .theme-btn {
    margin: 0;
}

.shop-single-details {
    animation: panelFadeUp 0.6s ease both;
    animation-delay: 0.12s;
}

.related-item .product-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.related-item .product-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
}

.related-item .item-2 > [class*="col-"] {
    display: flex;
}

.related-item .product-item .product-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid #edf1f6;
}

.related-item .product-item .product-img > a,
.related-item .product-item .product-img > a > img {
    width: 100%;
    height: 100%;
    display: block;
}

.related-item .product-item .product-img > a > img {
    object-fit: contain;
    object-position: center;
    padding: 12px;
    transition: transform 0.3s ease;
}

.related-item .product-item:hover .product-img > a > img {
    transform: scale(1.04);
}

.related-item .product-item .product-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 12px;
    gap: 8px;
}

.related-item .product-item .product-meta {
    display: flex;
    align-items: center;
}

.related-item .product-item .product-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #475569;
    background: #f3f4f6;
}

.related-item .product-item .product-title {
    margin-bottom: 0;
    min-height: 44px;
}

.related-item .product-item .product-title a {
    color: #111827;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item .product-item .product-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.related-item .product-item .product-price span {
    font-weight: 700;
    color: #ff6b35;
    font-size: 16px;
}

.related-item .product-item .product-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.related-item .product-item .product-cart-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    background: #ea580c;
    box-shadow: 0 12px 20px rgba(234, 88, 12, 0.35);
}

.related-item .view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5C86B8, #3f73af);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(63, 115, 175, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.related-item .view-more-btn i {
    transition: transform 0.25s ease;
}

.related-item .view-more-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(63, 115, 175, 0.34);
    background: linear-gradient(135deg, #4f7fb4, #3469a7);
}

.related-item .view-more-btn:hover i {
    transform: translateX(3px);
}

@keyframes panelFadeUp {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes variantSelectGlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(92, 134, 184, 0.16);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(92, 134, 184, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-single-gallery,
    .shop-single-info,
    .shop-single-details,
    .related-item .product-item,
    .shop-single-info .form-control,
    .shop-single-info select.form-control,
    .shop-single-info .btn-showcase .theme-btn,
    .related-item .view-more-btn,
    .related-item .view-more-btn i {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 576px) {
    .table.table-bordered td {
        flex-basis: 100%;
    }

    .shop-single-info {
        padding: 16px;
    }

    .shop-single-info .btn-showcase {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .shop-single-info .btn-showcase .theme-btn,
    .shop-single-info .btn-showcase input.theme-btn {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    .shop-single-info .btn-showcase.mattress-price-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-single-info .btn-showcase.mattress-price-actions .theme-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .related-item .product-item .product-img {
        aspect-ratio: 1 / 1;
    }

    .related-item .product-item .product-img > a > img {
        padding: 6px;
    }
}

@media (max-width: 991.98px) {
    .mobile-sticky-cart {
        display: block;
    }

    body {
        padding-bottom: 140px;
    }

    #scroll-top {
        display: none !important;
    }

    /* Ensure the table with dropdowns renders above the sticky cart */
    .shop-single-info .table.table-bordered {
        position: relative;
        z-index: 1050;
    }

    /* Dropdowns open upward on mobile so they don't get clipped */
    .shop-single-info .table.table-bordered select.form-control {
        position: relative;
        z-index: 1050;
    }
}

@media (min-width: 992px) {
    .shop-single-info .table.table-bordered td {
        flex-basis: 33.3333%;
    }
}

/* from line 1188 */
.theme-btn.add-to-cart-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Add to Cart button animation ───────────────────────────────────────── */
.btn-showcase .theme-btn.add-to-cart-btn {
    position: relative;
    overflow: hidden;
}
/* Shine sweep */
.btn-showcase .theme-btn.add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.32) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: atc-shine 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes atc-shine {
    0%   { left: -75%; opacity: 1; }
    50%  { left: 125%; opacity: 1; }
    51%,100% { left: 125%; opacity: 0; }
}
/* Scale pulse — clearly visible, works regardless of theme-btn's own shadow */
.btn-showcase .theme-btn.add-to-cart-btn:not(.disabled):not(:disabled) {
    animation: atc-pulse 2.4s ease-in-out infinite;
}
@keyframes atc-pulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.035); }
}
.btn-showcase .theme-btn.add-to-cart-btn.disabled::after,
.btn-showcase .theme-btn.add-to-cart-btn:disabled::after { display: none; }
.btn-showcase .theme-btn.add-to-cart-btn.disabled,
.btn-showcase .theme-btn.add-to-cart-btn:disabled { animation: none; }
/* Press-down on click */
.btn-showcase .theme-btn.add-to-cart-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.08s ease;
    animation: none;
}
/* Adding... state */
.btn-showcase .theme-btn.add-to-cart-btn.atc-adding {
    opacity: .85;
    pointer-events: none;
    animation: none;
}

/* ── OR separator — inside btn-showcase so it renders after JS inserts cards ── */
.npf-or-sep {
    position: relative;
    text-align: center;
    margin: 6px 0 12px;
    line-height: 0;
}
.npf-or-sep::before {
    content: '';
    display: block;
    height: 1px;
    background: #ddd8d0;
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
}
.npf-or-sep span {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 0 10px;
    font-size: 11px;
    color: #999;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1;
}

/* from line 1270 */
/* ── Breadcrumb bar ─────────────────────────────────────────── */
.npf-breadcrumb-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    font-size: .82rem;
}
.npf-breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 2px;
}
.npf-breadcrumb li { display: flex; align-items: center; }
.npf-breadcrumb a { color: #4f46e5; text-decoration: none; }
.npf-breadcrumb a:hover { text-decoration: underline; }
.npf-bc-sep { color: #adb5bd; margin: 0 4px; }
.npf-bc-current { color: #6c757d; font-weight: 500; }

/* ── Sticky info panel (desktop only) ──────────────────────── */
@media (min-width: 992px) {
    .shop-single-info-sticky {
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

/* ── Trust strip v2 ─────────────────────────────────────────── */
.product-trust-strip-v2 {
    display: flex;
    gap: 10px;
    margin: 18px 0 4px;
}
.ptrust-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbff;
    min-width: 0;
}
.ptrust-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}
.ptrust-icon-2 { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.ptrust-icon-3 { background: linear-gradient(135deg, #16a34a, #15803d); }
.ptrust-title {
    font-size: .78rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.ptrust-sub {
    font-size: .71rem;
    color: #6b7280;
    margin-top: 1px;
    line-height: 1.2;
}
@media (max-width: 767px) {
    .product-trust-strip-v2 { flex-wrap: wrap; }
    .ptrust-card { flex: 0 0 calc(50% - 5px); flex-direction: row; }
    .npf-qty-stepper { max-width: 100%; }
}

/* ── Quantity stepper pill ──────────────────────────────────── */
.npf-qty-stepper {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 160px;
    height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
    margin-top: 2px;
}
.npf-qty-stepper button {
    flex: 0 0 38px;
    background: #f8f9fa;
    border: none;
    border-right: 1px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background .15s;
}
.npf-qty-stepper button:last-child {
    border-right: none;
    border-left: 1px solid #dee2e6;
}
.npf-qty-stepper button:hover  { background: #e9ecef; color: #1d4ed8; }
.npf-qty-stepper button:active { background: #dee2e6; }
.npf-qty-stepper .npf-qty-display {
    flex: 1;
    text-align: center;
    font-size: .95rem;
    font-weight: 600;
    color: #212529;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* ── YouTube thumbnail in gallery ───────────────────────────── */
.yt-thumb-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
    border-radius: 7px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.2s ease, box-shadow 0.2s ease;
}
.yt-thumb-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 7px;
    overflow: hidden;
    line-height: 0;
}
.yt-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}
.yt-thumb-item:hover .yt-thumb-wrapper img { opacity: 0.82; }
.yt-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.38);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    transition: background .2s;
}
.yt-thumb-item:hover .yt-play-overlay { background: rgba(0,0,0,.55); }
.yt-play-overlay svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
/* Label hidden — play overlay already signals it's a video */
.yt-thumb-label { display: none; }

/* ── 3D floating button on main image ───────────────────────── */
#npf-3d-fab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f0f19;
    color: #fff;
    border: 1.5px solid rgba(201,168,76,0.7);
    border-radius: 30px;
    padding: 7px 16px 7px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
#npf-3d-fab:hover {
    background: #C9A84C;
    border-color: #C9A84C;
    color: #1a1000;
    transform: scale(1.03);
}
#npf-3d-fab svg { flex-shrink: 0; }

/* ── Reviews tab badge ──────────────────────────────────────── */
.npf-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    margin-left: 5px;
    line-height: 1;
}

/* ── Reviews grid ───────────────────────────────────────────── */
.npf-reviews-tab { padding: 8px 0; }
.npf-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.npf-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.npf-review-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); }
.npf-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.npf-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.npf-review-name {
    font-weight: 600;
    font-size: .88rem;
    color: #1e293b;
}
.npf-review-stars {
    color: #f59e0b;
    font-size: .82rem;
    letter-spacing: 1px;
}
.npf-review-text {
    font-size: .85rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}
.npf-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}
.npf-no-reviews i { font-size: 2.5rem; margin-bottom: 10px; display: block; }

/* ── Offer banner on product details ───────────────────────── */
.npf-offer-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 14px 0 8px;
    font-size: .85rem;
}
.npf-offer-label {
    font-weight: 700;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.npf-offer-label i { color: #f59e0b; }
.npf-offer-saving { font-size: .8rem; color: #065f46; font-weight: 600; }

/* ── Custom Design request link ────────────────────────────── */
.co-custom-link-wrap { margin-top: 10px; }
.co-custom-design-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1.5px solid #5C3A1E;
    border-radius: 30px;
    color: #5C3A1E;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(92,58,30,.08);
    transition: background .15s, color .15s, box-shadow .15s;
}
.co-custom-design-btn i { color: #c8960c; transition: color .15s; }
.co-custom-design-btn:hover {
    background: #5C3A1E;
    color: #fff;
    box-shadow: 0 4px 14px rgba(92,58,30,.22);
}
.co-custom-design-btn:hover i { color: #f6d27a; }
/* ── Advance Booking Card ───────────────────────────────── */
.npf-book-now-card {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #e5cc8a;
    box-shadow: 0 4px 18px rgba(200,134,10,0.12);
}
.npf-bnc-header {
    background: linear-gradient(135deg, #3d1f08 0%, #5C3A1E 50%, #7a4b28 100%);
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.npf-bnc-title {
    color: #FFD98E;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.npf-bnc-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4cde80;
    flex-shrink: 0;
    animation: bnc-pulse 2s infinite;
}
@keyframes bnc-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(76,222,128,.55); }
    50%      { box-shadow: 0 0 0 7px rgba(76,222,128,0); }
}
.npf-bnc-badge {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}
.npf-bnc-body {
    background: #fffbf0;
    padding: 14px 16px 6px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.npf-bnc-fee {
    font-size: 30px;
    font-weight: 900;
    color: #C8860A;
    line-height: 1;
}
.npf-bnc-fee-meta {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    padding-bottom: 3px;
}
.npf-bnc-sub {
    background: #fffbf0;
    padding: 4px 16px 12px;
    font-size: 12px;
    color: #7a5c30;
}
.npf-bnc-btn-wrap {
    background: #fffbf0;
    padding: 0 16px 12px;
}
.co-book-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #C8860A 0%, #e6a020 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(200,134,10,0.38);
    letter-spacing: .2px;
}
.co-book-now-btn:hover {
    opacity: .92;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(200,134,10,0.45);
}
.npf-bnc-trust {
    background: #fdf5e0;
    border-top: 1px solid #f0e0b0;
    padding: 7px 16px;
    font-size: 11px;
    color: #8a6a2a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.npf-bnc-trust i { font-size: 10px; }

/* ── Floating share bar (desktop only) ─────────────────────── */
.npf-share-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 500;
}
.npf-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
    color: #fff;
}
.npf-share-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,.26);
    color: #fff;
}
.npf-share-btn.copy-btn { background: #4f46e5; }
.npf-share-btn.wa-btn   { background: #25d366; }
.npf-share-btn.top-btn  { background: #64748b; }
.npf-share-tooltip {
    position: absolute;
    right: 50px;
    white-space: nowrap;
    background: #1e293b;
    color: #fff;
    font-size: .72rem;
    padding: 3px 8px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    top: 50%;
    transform: translateY(-50%);
}
.npf-share-btn:hover .npf-share-tooltip { opacity: 1; }
@media (max-width: 991px) {
    .npf-share-bar { display: none; }
}

/* ── Related product cards hover ────────────────────────────── */
.related-product-card-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.related-product-card-wrap .rp-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .22s;
    border-radius: 8px;
}
.related-product-card-wrap:hover .rp-hover-overlay { opacity: 1; }
.rp-hover-overlay .rp-view-btn {
    background: #fff;
    color: #4f46e5;
    font-size: .8rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 20px;
    text-decoration: none;
    border: none;
}
.rp-hover-overlay .rp-view-btn:hover { background: #4f46e5; color: #fff; }
.rp-cat-chip {
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: .7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: .3px;
}

/* ── GLightbox YouTube video — centred, responsive, fits viewport ─ */
/* Constrain wrapper width so height never exceeds viewport (16:9) */
.gslide-video .gvideo-wrapper {
    width: min(900px, 96vw, calc((100vh - 80px) * 1.778)) !important;
    max-width: 96vw !important;
    max-height: none !important;
    margin: auto !important;
}
/* Make the iframe fill wrapper with correct aspect ratio */
.gslide-video .gvideo-wrapper iframe,
.gslide-video .gvideo-wrapper video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: none !important;
    border: none;
}
/* Ensure the slide itself is vertically centred */
.gslide-video {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100% !important;
}
/* YouTube Shorts — narrower wrapper with 9:16 ratio */
.glightbox-container.gshorts .gvideo-wrapper {
    width: min(380px, 96vw, calc((100vh - 80px) * 0.5625)) !important;
}
.glightbox-container.gshorts .gvideo-wrapper iframe,
.glightbox-container.gshorts .gvideo-wrapper video {
    aspect-ratio: 9 / 16 !important;
}
