/**
 * niceshop — Frontend Styles
 * WooCommerce Marketplace Product Grid for Digital Printing Shops
 *
 * Design System: Mobile-first, BEM naming, CSS custom properties (overridable via Brand Identity),
 * Dark mode support, Inter font stack, dense marketplace-style product cards.
 *
 * @package niceshop
 * @version 1.0.0
 */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Overridable by Brand Identity settings)
   ========================================================================== */

:root {
    /* ── Brand (overridable via admin) ── */
    --niceshop-primary-brand-color: #4287F5;
    --niceshop-primary-brand-hover: #2E73E1;
    --niceshop-primary-brand-soft: rgba(66, 135, 245, 0.10);
    --niceshop-price-text-color: #1E293B;
    --niceshop-wishlist-active-color: #DC2626;
    --niceshop-print-upload-accent-color: #0EA5E9;
    --niceshop-border-radius: 8px;

    /* ── Surfaces ── */
    --niceshop-surface: #FFFFFF;
    --niceshop-surface-alt: #F8FAFC;
    --niceshop-surface-hover: #F1F5F9;

    /* ── Typography ── */
    --niceshop-text: #0F172A;
    --niceshop-text-soft: #475569;
    --niceshop-text-muted: #94A3B8;
    --niceshop-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    /* ── Borders ── */
    --niceshop-border: #E2E8F0;
    --niceshop-border-hover: #CBD5E1;

    /* ── Semantic colors ── */
    --niceshop-sale-badge: #DC2626;
    --niceshop-sale-bg: #FEF2F2;
    --niceshop-success: #16A34A;
    --niceshop-star: #F59E0B;
    --niceshop-cart: #4F46E5;
    --niceshop-cart-success: #16A34A;
    --niceshop-upload-bg: #F0F9FF;
    --niceshop-upload-border: #0EA5E9;
    --niceshop-wishlist-inactive: #94A3B8;
    --niceshop-dark-buy-now: #4287F5;
    --niceshop-dark-buy-now-hover: #2E73E1;

    /* ── Radii ── */
    --niceshop-radius-sm: 6px;
    --niceshop-radius-md: 8px;
    --niceshop-radius-lg: 12px;

    /* ── Shadows ── */
    --niceshop-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --niceshop-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
    --niceshop-shadow-float: 0 2px 8px rgba(0, 0, 0, 0.12);
    --niceshop-shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* ── Transitions ── */
    --niceshop-transition: 0.2s ease;
    --niceshop-transition-slow: 0.3s ease;

    /* ── Spacing ── */
    --niceshop-grid-gap: 12px;
    --niceshop-card-padding: 10px;

    /* ── Configurable button text (overridden by admin Brand Identity) ── */
    --niceshop-buy-btn-text-color: #FFFFFF;
    --niceshop-buy-btn-font-size: 11px;
    --niceshop-product-title-font-size: 13px;
    --niceshop-single-product-title-font-size: 24px;
    --niceshop-popup-cta-text-color: #FFFFFF;
    --niceshop-popup-cta-font-size: 15px;
    --niceshop-popup-product-title-font-size: 18px;
}


/* ==========================================================================
   2. RESET & BASE (Scoped to niceshop components)
   ========================================================================== */

.niceshop-grid,
.niceshop-product-slider,
.niceshop-card,
.niceshop-pdp,
.niceshop-popup,
.niceshop-overlay,
.niceshop-modal,
.niceshop-upload-zone {
    box-sizing: border-box;
}

.niceshop-grid *,
.niceshop-product-slider *,
.niceshop-card *,
.niceshop-pdp *,
.niceshop-popup *,
.niceshop-modal *,
.niceshop-upload-zone *,
.niceshop-overlay * {
    box-sizing: inherit;
}

.niceshop-card button,
.niceshop-product-slider button,
.niceshop-pdp button,
.niceshop-popup button,
.niceshop-modal button,
.niceshop-upload-zone button {
    font-family: var(--niceshop-font);
    cursor: pointer;
    border: none;
    outline: none;
}

.niceshop-card button:focus-visible,
.niceshop-product-slider button:focus-visible,
.niceshop-pdp button:focus-visible,
.niceshop-popup button:focus-visible,
.niceshop-modal button:focus-visible,
.niceshop-upload-zone button:focus-visible {
    outline: 2px solid var(--niceshop-primary-brand-color);
    outline-offset: 2px;
}

.niceshop-card a:focus-visible,
.niceshop-pdp a:focus-visible {
    outline: 2px solid var(--niceshop-primary-brand-color);
    outline-offset: 2px;
}


/* ==========================================================================
   3. PRODUCT GRID (.niceshop-grid)
   ========================================================================== */

.niceshop-grid {
    display: grid;
    gap: var(--niceshop-grid-gap);
    font-family: var(--niceshop-font);
}

/* Mobile-first: 2 columns */
.niceshop-grid {
    grid-template-columns: repeat(2, 1fr);
}


/* ==========================================================================
   4. PRODUCT CARD (.niceshop-card)
   ========================================================================== */

.niceshop-card {
    background: var(--niceshop-surface);
    border-radius: var(--niceshop-radius-md);
    border: 1px solid var(--niceshop-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--niceshop-transition),
                border-color var(--niceshop-transition),
                transform var(--niceshop-transition);
    cursor: pointer;
    position: relative;
}

.niceshop-card:hover {
    box-shadow: var(--niceshop-shadow-hover);
    border-color: var(--niceshop-border-hover);
    transform: translateY(-1px);
}


/* ==========================================================================
   5. CARD THUMBNAIL (.niceshop-card__thumb)
   ========================================================================== */

.niceshop-card__thumb {
    position: relative;
    width: 100%;
    background: var(--niceshop-surface-alt);
    overflow: hidden;
}

.niceshop-card__thumb-link {
    display: block;
    position: absolute;
    inset: 0;
}

.niceshop-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--niceshop-transition-slow);
}

.niceshop-card:hover .niceshop-card__img {
    transform: scale(1.04);
}


/* ==========================================================================
   6. CARD BADGES (.niceshop-card__badge)
   ========================================================================== */

.niceshop-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
    z-index: 3;
    pointer-events: none;
}

/* Sale badge */
.niceshop-card__badge--sale {
    background: var(--niceshop-sale-badge);
    color: #FFFFFF;
}

/* Print badge */
.niceshop-card__badge--print {
    background: var(--niceshop-print-upload-accent-color);
    color: #FFFFFF;
}

/* Two badges stacking — shift PRINT badge below SALE */
.niceshop-card__badge--sale + .niceshop-card__badge--print,
.niceshop-card__badge--print:nth-child(3) {
    top: 34px;
}


/* ==========================================================================
   7. CARD FLOATING ICONS — Wishlist & Cart
   ========================================================================== */

/* ── Wishlist icon (bottom-left) ── */
.niceshop-card__wishlist {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--niceshop-wishlist-inactive);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--niceshop-shadow-float);
    transition: all var(--niceshop-transition);
    font-size: 15px;
    z-index: 4;
    padding: 0;
    line-height: 1;
}

.niceshop-card__wishlist:hover {
    transform: scale(1.15);
    color: var(--niceshop-wishlist-active-color);
}

.niceshop-card__wishlist.active {
    color: var(--niceshop-wishlist-active-color);
    background: rgba(255, 255, 255, 0.95);
}

/* ── Cart icon (bottom-right) ── */
.niceshop-card__cart {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--niceshop-cart);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--niceshop-shadow-float);
    transition: all var(--niceshop-transition);
    font-size: 14px;
    font-weight: 700;
    z-index: 4;
    padding: 0;
    line-height: 1;
}

.niceshop-card__cart:hover {
    background: var(--niceshop-primary-brand-hover);
    transform: scale(1.15);
}

.niceshop-card__cart.success {
    background: var(--niceshop-cart-success);
}

/* Tooltips on floating icons */
.niceshop-card__wishlist::after,
.niceshop-card__cart::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    background: var(--niceshop-dark-buy-now);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 400;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    letter-spacing: 0;
    text-transform: none;
}

.niceshop-card__wishlist::after {
    left: 50%;
    transform: translateX(-50%);
}

.niceshop-card__cart::after {
    right: 0;
}

.niceshop-card__wishlist:hover::after,
.niceshop-card__cart:hover::after {
    opacity: 1;
}


/* ==========================================================================
   8. CARD BODY (.niceshop-card__body)
   ========================================================================== */

.niceshop-card__body {
    padding: var(--niceshop-card-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Title ── */
.niceshop-card__title-link {
    text-decoration: none;
    color: inherit;
}

.niceshop-card__title {
    font-size: var(--niceshop-product-title-font-size);
    line-height: 1.35;
    font-weight: 500;
    color: var(--niceshop-text);
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* ── Short Description ── */
.niceshop-card__short-desc {
    font-size: 11px;
    line-height: 1.4;
    color: var(--niceshop-text-muted);
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta row (rating + sold) ── */
.niceshop-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.niceshop-card__rating {
    font-size: 11px;
    color: var(--niceshop-text-soft);
    display: flex;
    align-items: center;
    gap: 2px;
}

.niceshop-card__stars {
    color: var(--niceshop-star);
    font-size: 10px;
    line-height: 1;
}

.niceshop-card__rating-num {
    color: var(--niceshop-text-soft);
    font-weight: 500;
}

.niceshop-card__sold {
    font-size: 11px;
    color: var(--niceshop-text-muted);
}

/* ── Price area ── */
.niceshop-card__price-area {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.niceshop-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--niceshop-price-text-color);
    line-height: 1;
}

/* WooCommerce price HTML compatibility */
.niceshop-card__price del {
    font-size: 11px;
    font-weight: 400;
    color: var(--niceshop-text-muted);
    text-decoration: line-through;
    margin-right: 3px;
}

.niceshop-card__price ins {
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--niceshop-price-text-color);
    line-height: 1;
}

/* ── Dual Action Buttons ── */
.niceshop-card__actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.niceshop-card__btn {
    flex: 1;
    padding: 8px 0;
    border-radius: var(--niceshop-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: all var(--niceshop-transition);
    font-family: var(--niceshop-font);
    text-decoration: none;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Detail button — outline */
.niceshop-card__btn--detail {
    background: var(--niceshop-surface);
    color: var(--niceshop-primary-brand-color);
    border: 1.5px solid var(--niceshop-primary-brand-color);
}

.niceshop-card__btn--detail:hover {
    background: var(--niceshop-primary-brand-soft);
}

.niceshop-card__btn--detail:active {
    transform: scale(0.97);
}

/* Buy Now button — solid */
.niceshop-card__btn--buy {
    background: var(--niceshop-primary-brand-color);
    color: var(--niceshop-buy-btn-text-color);
    font-size: var(--niceshop-buy-btn-font-size);
    border: none;
    letter-spacing: 0.2px;
}

.niceshop-card__btn--buy:hover {
    background: var(--niceshop-primary-brand-hover);
}

.niceshop-card__btn--buy:active {
    transform: scale(0.97);
}


/* ==========================================================================
   9. PRODUCT SLIDER (.niceshop-product-slider)
   ========================================================================== */

.niceshop-product-slider-wrapper {
    width: 100%;
}

.niceshop-product-slider {
    --niceshop-slider-gap: var(--niceshop-gap, var(--niceshop-grid-gap));
    position: relative;
    font-family: var(--niceshop-font);
}

.niceshop-product-slider__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px;
    margin: -2px;
}

.niceshop-product-slider__viewport::-webkit-scrollbar {
    display: none;
}

.niceshop-product-slider__track {
    display: flex;
    gap: var(--niceshop-slider-gap);
    align-items: stretch;
}

.niceshop-product-slider__slide {
    flex: 0 0 calc((100% - var(--niceshop-slider-gap)) / 2);
    min-width: 0;
    scroll-snap-align: start;
}

.niceshop-product-slider .niceshop-card {
    height: 100%;
}

.niceshop-product-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 36px !important;
    min-width: 36px;
    height: 36px !important;
    min-height: 36px;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--niceshop-primary-brand-color) !important;
    color: #FFFFFF !important;
    box-shadow: var(--niceshop-shadow-float);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    overflow: hidden;
    transition: opacity var(--niceshop-transition),
                transform var(--niceshop-transition),
                background var(--niceshop-transition);
}

.niceshop-product-slider__arrow span {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-top: -2px;
}

.niceshop-product-slider__arrow:hover {
    background: var(--niceshop-primary-brand-hover) !important;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.05);
}

.niceshop-product-slider__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.niceshop-product-slider__arrow--prev {
    left: 6px;
}

.niceshop-product-slider__arrow--next {
    right: 6px;
}

.niceshop-product-slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.niceshop-product-slider__dot {
    width: 9px !important;
    min-width: 9px;
    height: 9px !important;
    min-height: 9px;
    border-radius: 50% !important;
    background: var(--niceshop-border-hover) !important;
    padding: 0 !important;
    transition: transform var(--niceshop-transition),
                background var(--niceshop-transition);
}

.niceshop-product-slider__dot.is-active {
    background: var(--niceshop-primary-brand-color) !important;
    transform: scale(1.2);
}


/* ==========================================================================
   10. PRODUCT DETAIL PAGE (.niceshop-pdp)
   ========================================================================== */

.niceshop-pdp {
    font-family: var(--niceshop-font);
    max-width: 100%;
    margin: 0 auto;
}

.niceshop-pdp__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--niceshop-surface);
    border-radius: var(--niceshop-radius-lg);
    border: 1px solid var(--niceshop-border);
    overflow: hidden;
}

/* ── Gallery ── */
.niceshop-pdp__gallery {
    position: relative;
    background: var(--niceshop-surface-alt);
    display: flex;
    flex-direction: column;
}

.niceshop-pdp__main-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 320px;
}

.niceshop-pdp__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--niceshop-radius-sm);
}

/* ── Thumbnails strip ── */
.niceshop-pdp__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    border-top: 1px solid var(--niceshop-border);
    background: var(--niceshop-surface);
}

.niceshop-pdp__thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: var(--niceshop-radius-sm);
    background: var(--niceshop-surface-alt);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color var(--niceshop-transition);
}

.niceshop-pdp__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.niceshop-pdp__thumb.active {
    border-color: var(--niceshop-primary-brand-color);
}

.niceshop-pdp__thumb:hover {
    border-color: var(--niceshop-primary-brand-hover);
}

/* ── Info section ── */
.niceshop-pdp__info {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
}

.niceshop-pdp__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--niceshop-primary-brand-color);
    font-weight: 600;
    margin: 0 0 8px 0;
}

.niceshop-pdp__title {
    font-size: var(--niceshop-single-product-title-font-size);
    font-weight: 700;
    line-height: 1.3;
    color: var(--niceshop-text);
    margin: 0 0 16px 0;
}

/* ── Meta row ── */
.niceshop-pdp__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.niceshop-pdp__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--niceshop-text-soft);
}

.niceshop-pdp__stars {
    color: var(--niceshop-star);
    font-size: 14px;
    line-height: 1;
}

.niceshop-pdp__rating-count {
    color: var(--niceshop-text-muted);
    font-size: 13px;
}

.niceshop-pdp__sold {
    font-size: 13px;
    color: var(--niceshop-text-soft);
}

.niceshop-pdp__print-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--niceshop-print-upload-accent-color);
    background: var(--niceshop-upload-bg);
    padding: 3px 10px;
    border-radius: 4px;
}

/* ── Divider ── */
.niceshop-pdp__divider {
    border: none;
    border-top: 1px solid var(--niceshop-border);
    margin: 20px 0;
}

/* ── Price block ── */
.niceshop-pdp__price-block {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.niceshop-pdp__price {
    font-size: 32px;
    font-weight: 800;
    color: var(--niceshop-text);
    line-height: 1;
}

.niceshop-pdp__price ins {
    text-decoration: none;
    font-size: 32px;
    font-weight: 800;
    color: var(--niceshop-text);
}

.niceshop-pdp__price-old {
    font-size: 16px;
    color: var(--niceshop-text-muted);
    text-decoration: line-through;
}

.niceshop-pdp__discount-badge {
    display: inline-block;
    background: var(--niceshop-sale-bg);
    color: var(--niceshop-sale-badge);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ── Short description box ── */
.niceshop-pdp__short-desc-box {
    background: var(--niceshop-surface-alt);
    border-radius: var(--niceshop-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
}

.niceshop-pdp__short-desc-label {
    font-weight: 600;
    color: var(--niceshop-text);
}

.niceshop-pdp__short-desc-text {
    color: var(--niceshop-text-soft);
}

/* ── Variants ── */
.niceshop-pdp__variants {
    margin-bottom: 24px;
}

.niceshop-pdp__variant-group {
    margin-bottom: 16px;
}

.niceshop-pdp__variant-group:last-child {
    margin-bottom: 0;
}

.niceshop-pdp__variant-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--niceshop-text);
    margin: 0 0 8px 0;
}

.niceshop-pdp__variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.niceshop-pdp__variant-opt {
    padding: 8px 16px;
    border: 2px solid var(--niceshop-border) !important;
    border-radius: var(--niceshop-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--niceshop-transition);
    background: var(--niceshop-surface);
    color: var(--niceshop-text);
    font-family: var(--niceshop-font);
}

.niceshop-pdp__variant-opt:hover {
    border-color: var(--niceshop-primary-brand-color) !important;
}

.niceshop-pdp__variant-opt.selected {
    border-color: var(--niceshop-primary-brand-color) !important;
    background: var(--niceshop-primary-brand-soft);
    color: var(--niceshop-primary-brand-color);
    font-weight: 600;
}

/* ── Quantity controls ── */
.niceshop-pdp__qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.niceshop-pdp__qty-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--niceshop-text);
}

.niceshop-pdp__qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--niceshop-border);
    border-radius: var(--niceshop-radius-sm);
    overflow: hidden;
}

.niceshop-pdp__qty-btn {
    width: 36px;
    height: 36px;
    background: var(--niceshop-surface-alt);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--niceshop-transition);
    font-family: var(--niceshop-font);
    color: var(--niceshop-text);
    border: none !important;
    padding: 0;
}

.niceshop-pdp__qty-btn:hover {
    background: var(--niceshop-border);
}

.niceshop-pdp__qty-num {
    width: 48px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-left: 1px solid var(--niceshop-border);
    border-right: 1px solid var(--niceshop-border);
    height: 36px;
    font-family: var(--niceshop-font);
    background: var(--niceshop-surface);
    color: var(--niceshop-text);
    -moz-appearance: textfield;
}

.niceshop-pdp__qty-num::-webkit-inner-spin-button,
.niceshop-pdp__qty-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── CTA buttons ── */
.niceshop-pdp__cta {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.niceshop-pdp__add-cart {
    flex: 1;
    min-width: 140px;
    padding: 14px 0;
    background: var(--niceshop-primary-brand-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--niceshop-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--niceshop-transition);
    font-family: var(--niceshop-font);
}

.niceshop-pdp__add-cart:hover {
    background: var(--niceshop-primary-brand-hover);
}

.niceshop-pdp__add-cart:active {
    transform: scale(0.98);
}

.niceshop-pdp__wishlist-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border: 1px solid var(--niceshop-border);
    background: var(--niceshop-surface);
    border-radius: var(--niceshop-radius-sm);
    cursor: pointer;
    font-size: 20px;
    transition: all var(--niceshop-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: var(--niceshop-wishlist-inactive);
    font-family: var(--niceshop-font);
    padding: 0;
}

.niceshop-pdp__wishlist-btn:hover {
    border-color: var(--niceshop-wishlist-active-color);
    color: var(--niceshop-wishlist-active-color);
}

.niceshop-pdp__wishlist-btn.active {
    color: var(--niceshop-wishlist-active-color);
    border-color: var(--niceshop-wishlist-active-color);
    background: var(--niceshop-sale-bg);
}

.niceshop-pdp__buy-now {
    flex: 1;
    min-width: 180px;
    padding: 14px 0;
    background: var(--niceshop-dark-buy-now);
    color: #FFFFFF;
    border: none;
    border-radius: var(--niceshop-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--niceshop-transition);
    font-family: var(--niceshop-font);
}

.niceshop-pdp__buy-now:hover {
    background: var(--niceshop-dark-buy-now-hover);
}

.niceshop-pdp__buy-now:active {
    transform: scale(0.98);
}

/* ── Trust bar ── */
.niceshop-pdp__trust {
    margin-top: 24px;
    display: flex;
    gap: 24px;
    font-size: 12px;
    color: var(--niceshop-text-muted);
    flex-wrap: wrap;
}

.niceshop-pdp__trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Description section ── */
.niceshop-pdp__description {
    margin-top: 32px;
    background: var(--niceshop-surface);
    border-radius: var(--niceshop-radius-lg);
    border: 1px solid var(--niceshop-border);
    padding: 32px 40px;
}

.niceshop-pdp__desc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--niceshop-text);
    margin: 0 0 16px 0;
}

.niceshop-pdp__desc-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--niceshop-text-soft);
}

.niceshop-pdp__desc-content > *:first-child {
    margin-top: 0;
}

.niceshop-pdp__desc-content > *:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   10. BUY NOW POPUP / MODAL (.niceshop-overlay, .niceshop-popup)
   ========================================================================== */

/* ── Overlay ── */
body.niceshop-overlay-open {
    overflow: hidden;
}

.niceshop-overlay {
    position: fixed;
    inset: 0;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 32%),
        rgba(15, 23, 42, 0.72);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: niceshop-fade-in 0.24s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ── Modal ── */
.niceshop-modal {
    position: relative;
    background: var(--niceshop-surface);
    border-radius: var(--niceshop-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.24);
    width: 100%;
    max-width: 1180px;
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: niceshop-modal-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--niceshop-font);
}

@keyframes niceshop-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Modal header ── */
.niceshop-modal__header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.niceshop-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--niceshop-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.niceshop-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(248, 250, 252, 0.96);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--niceshop-transition), transform var(--niceshop-transition);
    border: none;
    color: var(--niceshop-text-soft);
    font-family: var(--niceshop-font);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.niceshop-modal__close:hover {
    background: rgba(226, 232, 240, 0.96);
    color: var(--niceshop-text);
    transform: rotate(90deg) scale(1.02);
}

/* ── Modal body (scrollable) ── */
.niceshop-modal__body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.88) 100%);
}

.niceshop-modal__body::-webkit-scrollbar {
    width: 6px;
}

.niceshop-modal__body::-webkit-scrollbar-thumb {
    background: var(--niceshop-border-hover);
    border-radius: 3px;
}

.niceshop-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.niceshop-modal-loader {
    min-height: 320px;
    display: grid;
    place-items: center;
    color: var(--niceshop-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.niceshop-popup-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.niceshop-overlay--cart-picker .niceshop-modal {
    max-width: 720px;
}

.niceshop-popup-shell--cart {
    min-height: auto;
}

.niceshop-popup-shell--cart .niceshop-popup__aside {
    padding: 22px 24px 18px;
}

.niceshop-popup-shell--cart .niceshop-popup__media-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
}

.niceshop-popup-shell--cart .niceshop-popup__thumb {
    aspect-ratio: 1 / 1;
    max-height: none;
}

.niceshop-popup-shell--cart .niceshop-popup__title,
.niceshop-popup-shell--cart .niceshop-popup__subtitle,
.niceshop-popup-shell--cart .niceshop-popup__meta,
.niceshop-popup-shell--cart .niceshop-popup__eyebrow {
    display: none;
}

.niceshop-popup-shell--cart .niceshop-popup__aside-price {
    color: var(--niceshop-sale-badge);
}

.niceshop-popup-shell--cart .niceshop-popup__section {
    padding-top: 20px;
}

.niceshop-popup-shell--cart .niceshop-popup__section-grid {
    grid-template-columns: 1fr;
    padding-bottom: 16px;
}

.niceshop-popup-shell--cart .niceshop-popup__sticky {
    padding-top: 16px;
}

.niceshop-popup-shell--cart .niceshop-popup__summary {
    display: none;
}

.niceshop-popup-shell--cart .niceshop-popup__actions {
    width: 100%;
    grid-template-columns: 1fr;
}

.niceshop-popup__aside {
    padding: 24px 28px 22px;
    border-right: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.96));
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.niceshop-popup__media-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.niceshop-popup__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 320px;
    border-radius: calc(var(--niceshop-radius-lg) + 4px);
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 1));
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.niceshop-popup__thumb img,
.niceshop-popup__thumb-img {
    object-fit: contain !important;
    padding: 12px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 1));
}

.niceshop-popup__thumb img,
.niceshop-popup__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.niceshop-popup__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.niceshop-popup__eyebrow {
    display: inline-flex;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--niceshop-primary-brand-color);
    background: var(--niceshop-primary-brand-soft);
    padding: 5px 10px;
    border-radius: 999px;
}

.niceshop-popup__title {
    font-size: var(--niceshop-popup-product-title-font-size);
    font-weight: 700;
    line-height: 1.22;
    color: var(--niceshop-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.niceshop-popup__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--niceshop-text-soft);
}

.niceshop-popup__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.niceshop-popup__rating,
.niceshop-popup__meta-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 12px;
    color: var(--niceshop-text-soft);
}

.niceshop-popup__meta-star {
    color: var(--niceshop-star);
    font-size: 13px;
}

.niceshop-popup__aside-price {
    font-size: 25px;
    font-weight: 800;
    color: var(--niceshop-price-text-color);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.niceshop-popup__aside-price del,
.niceshop-popup__aside-price del .woocommerce-Price-amount {
    font-size: 14px;
    color: var(--niceshop-text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

.niceshop-popup__aside-price ins {
    text-decoration: none;
    color: var(--niceshop-sale-badge);
}

.niceshop-popup__estimate {
    padding: 16px 18px;
    border-radius: var(--niceshop-radius-md);
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.92);
}

.niceshop-popup__estimate-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--niceshop-text-muted);
    margin-bottom: 6px;
}

.niceshop-popup__estimate-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--niceshop-primary-brand-color);
}

.niceshop-popup__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.niceshop-popup__benefits li {
    position: relative;
    padding: 12px 14px 12px 44px;
    font-size: 13px;
    font-weight: 600;
    color: var(--niceshop-text);
    line-height: 1.4;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.niceshop-popup__benefits li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4236 0%, #E1261C 100%);
    box-shadow: 0 6px 14px rgba(225, 38, 28, 0.25);
}

.niceshop-popup__benefits li::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 50%;
    width: 5px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: translateY(-65%) rotate(45deg);
}

.niceshop-popup__promo {
    padding: 14px 18px;
    border-radius: var(--niceshop-radius-md);
    color: var(--niceshop-text);
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.98), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(254, 226, 226, 0.96);
    font-size: 13px;
    line-height: 1.55;
}

.niceshop-popup__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.niceshop-popup__section {
    padding: 24px 28px 0;
}

.niceshop-popup__section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    padding-bottom: 24px;
}

.niceshop-popup__section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.niceshop-popup__section-head h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--niceshop-text);
    letter-spacing: -0.02em;
}

.niceshop-popup__section-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--niceshop-text-soft);
}

.niceshop-popup__step {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--niceshop-primary-brand-color), var(--niceshop-primary-brand-hover));
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.18);
}

.niceshop-popup__variants {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.niceshop-popup__variant-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.niceshop-popup__variant-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--niceshop-text);
    margin: 0;
}

.niceshop-popup__variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.niceshop-popup__variant-opt {
    min-height: 44px;
    padding: 10px 16px;
    border: 1.5px solid var(--niceshop-border) !important;
    border-radius: calc(var(--niceshop-radius-sm) + 2px);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: none !important;
    transition-duration: 0s !important;
    animation: none !important;
    background: var(--niceshop-surface);
    color: var(--niceshop-text);
    font-family: var(--niceshop-font);
    line-height: 1.2;
}

.niceshop-popup__variant-opt--image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 8px 12px 8px 8px;
}

.niceshop-popup__variant-opt--image img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--niceshop-surface-alt);
    flex-shrink: 0;
}

.niceshop-popup__variant-opt:hover {
    border-color: var(--niceshop-primary-brand-color) !important;
    transform: none;
    box-shadow: none;
}

.niceshop-popup__variant-opt,
.niceshop-popup__variant-opt:hover,
.niceshop-popup__variant-opt:focus,
.niceshop-popup__variant-opt:focus-visible,
.niceshop-popup__variant-opt:active,
.niceshop-popup__variant-opt.active {
    transition: none !important;
    transition-property: none !important;
    transition-duration: 0s !important;
    animation: none !important;
}

.niceshop-popup__variant-opt:focus,
.niceshop-popup__variant-opt:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.niceshop-popup__variant-opt.selected,
.niceshop-popup__variant-opt.active {
    border-color: var(--niceshop-primary-brand-color) !important;
    background: var(--niceshop-primary-brand-soft);
    color: var(--niceshop-primary-brand-color);
}

.niceshop-popup__empty-state {
    padding: 16px 18px;
    border-radius: var(--niceshop-radius-md);
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(203, 213, 225, 0.96);
    font-size: 13px;
    color: var(--niceshop-text-soft);
}

.niceshop-popup__qty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.niceshop-popup__qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--niceshop-border);
    border-radius: calc(var(--niceshop-radius-md) + 2px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
}

.niceshop-popup__qty-btn {
    width: 52px;
    height: 52px;
    background: var(--niceshop-surface-alt);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--niceshop-transition);
    font-family: var(--niceshop-font);
    color: var(--niceshop-text);
    border: none !important;
    padding: 0;
}

.niceshop-popup__qty-btn:hover {
    background: var(--niceshop-border);
}

.niceshop-popup__qty-num {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-left: 1px solid var(--niceshop-border);
    border-right: 1px solid var(--niceshop-border);
    height: 52px;
    font-family: var(--niceshop-font);
    background: var(--niceshop-surface);
    color: var(--niceshop-text);
    -moz-appearance: textfield;
}

.niceshop-popup__qty-num::-webkit-inner-spin-button,
.niceshop-popup__qty-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.niceshop-popup__qty-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--niceshop-text-muted);
}

.niceshop-popup__qty-meta strong {
    font-size: 14px;
    color: var(--niceshop-primary-brand-color);
}

.niceshop-popup__qty-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.niceshop-popup__qty-total {
    display: block;
    color: var(--niceshop-sale-badge);
    font-size: 14px;
    line-height: 1.25;
}

.niceshop-popup-shell--cart .niceshop-popup__qty-meta {
    align-items: flex-end;
}

.niceshop-popup-shell--cart .niceshop-popup__qty-total {
    font-size: 16px;
}

.niceshop-popup__note-box,
.niceshop-popup__qty-card {
    height: 100%;
    padding: 18px;
    border-radius: calc(var(--niceshop-radius-md) + 2px);
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.92);
}

.niceshop-popup__note-input {
    width: 100%;
    min-height: 144px;
    border: 1px solid rgba(203, 213, 225, 0.96);
    border-radius: calc(var(--niceshop-radius-sm) + 2px);
    background: #FFFFFF;
    resize: vertical;
    padding: 14px 16px;
    font-family: var(--niceshop-font);
    font-size: 14px;
    color: var(--niceshop-text);
    line-height: 1.6;
}

.niceshop-popup__note-input:focus {
    border-color: var(--niceshop-primary-brand-color);
    outline: none;
    box-shadow: 0 0 0 4px var(--niceshop-primary-brand-soft);
}

.niceshop-popup__note-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--niceshop-text-muted);
}

/* ── Upload inside popup ── */
.niceshop-popup__upload {
    margin-bottom: 4px;
}

.niceshop-popup__upload .niceshop-upload-zone__drop {
    padding: 28px 20px;
}

.niceshop-popup__upload .niceshop-upload-zone__icon {
    font-size: 34px;
}

.niceshop-popup__sticky {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 28px 24px;
    margin-top: auto;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98) 24%);
    border-top: 1px solid rgba(226, 232, 240, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.niceshop-popup__summary {
    min-width: 240px;
}

.niceshop-popup__summary-row,
.niceshop-popup__summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.niceshop-popup__summary-row {
    font-size: 13px;
    color: var(--niceshop-text-soft);
    margin-bottom: 6px;
}

.niceshop-popup__summary-row strong {
    color: var(--niceshop-text);
}

.niceshop-popup__summary-row--muted {
    color: var(--niceshop-text-muted);
}

.niceshop-popup__summary-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.88);
    font-size: 15px;
    font-weight: 700;
    color: var(--niceshop-text);
}

.niceshop-popup__summary-total strong {
    font-size: 30px;
    color: var(--niceshop-sale-badge);
    letter-spacing: -0.03em;
}

.niceshop-popup__actions {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr);
    gap: 12px;
    width: min(100%, 560px);
}

.niceshop-popup__secondary-btn,
.niceshop-popup__checkout-btn {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: calc(var(--niceshop-radius-md) + 2px);
    font-family: var(--niceshop-font);
    font-weight: 700;
    transition: background var(--niceshop-transition), transform var(--niceshop-transition), border-color var(--niceshop-transition), color var(--niceshop-transition);
}

.niceshop-popup__secondary-btn {
    background: #FFFFFF;
    color: var(--niceshop-text);
    border: 1.5px solid rgba(203, 213, 225, 0.96);
    font-size: 14px;
}

.niceshop-popup__secondary-btn:hover {
    border-color: var(--niceshop-primary-brand-color);
    color: var(--niceshop-primary-brand-color);
    transform: translateY(-1px);
}

/* ── Checkout button ── */
.niceshop-popup__checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--niceshop-primary-brand-color), var(--niceshop-primary-brand-hover));
    color: var(--niceshop-popup-cta-text-color);
    border: none;
    font-size: var(--niceshop-popup-cta-font-size);
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.22);
}

.niceshop-popup__checkout-label {
    display: inline-block;
}

.niceshop-popup__checkout-arrow {
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.niceshop-popup__checkout-btn:hover {
    background: linear-gradient(135deg, var(--niceshop-primary-brand-hover), var(--niceshop-primary-brand-color));
    transform: translateY(-1px);
}

.niceshop-popup__checkout-btn:hover .niceshop-popup__checkout-arrow {
    transform: translateX(3px);
}

.niceshop-popup__checkout-btn:active {
    transform: scale(0.99);
}

.niceshop-popup__checkout-btn:disabled,
.niceshop-popup__checkout-btn.disabled,
.niceshop-popup__secondary-btn:disabled,
.niceshop-popup__secondary-btn.disabled {
    background: #CBD5E1;
    color: #94A3B8;
    cursor: not-allowed;
    transform: none;
    border-color: #CBD5E1;
    box-shadow: none;
}

.niceshop-popup__action--loading {
    pointer-events: none;
}

/* ── Modal footer ── */
.niceshop-modal__footer {
    padding: 0 22px 22px;
}


/* ==========================================================================
   11. UPLOAD ZONE (.niceshop-upload-zone)
   ========================================================================== */

.niceshop-upload-zone {
    font-family: var(--niceshop-font);
    margin-bottom: 20px;
}

.niceshop-upload-zone__drop {
    background: var(--niceshop-upload-bg);
    border: 2px dashed var(--niceshop-upload-border);
    border-radius: var(--niceshop-radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--niceshop-transition);
    cursor: pointer;
}

.niceshop-upload-zone__drop:hover,
.niceshop-upload-zone__drop.drag-over,
.niceshop-upload-zone__drop.niceshop-upload-zone__drop--over {
    border-color: #0284C7;
    background: #E0F2FE;
}

.niceshop-upload-zone__icon {
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1;
}

.niceshop-upload-zone__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--niceshop-text);
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.niceshop-upload-zone__hint {
    font-size: 12px;
    color: var(--niceshop-text-muted);
    font-weight: 400;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 6px;
}

.niceshop-upload-zone__subhint {
    font-size: 12px;
    color: var(--niceshop-text-muted);
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.niceshop-upload-zone__browse {
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--niceshop-primary-brand-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--niceshop-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--niceshop-transition);
    font-family: var(--niceshop-font);
}

.niceshop-upload-zone__browse:hover {
    background: var(--niceshop-primary-brand-hover);
}

/* ── File list ── */
.niceshop-upload-zone__files {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.niceshop-upload-zone__file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--niceshop-surface);
    border: 1px solid var(--niceshop-border);
    border-radius: calc(var(--niceshop-radius-sm) + 2px);
    font-size: 13px;
    flex-wrap: wrap;
}

.niceshop-upload-zone__file-name {
    flex: 1;
    min-width: 160px;
    color: var(--niceshop-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.niceshop-upload-zone__file-status {
    font-size: 12px;
    color: var(--niceshop-text-muted);
}

.niceshop-upload-zone__file-status--done {
    color: var(--niceshop-success);
    font-weight: 700;
}

.niceshop-upload-zone__file-status--error {
    color: var(--niceshop-sale-badge);
    font-weight: 700;
}

.niceshop-upload-zone__remove {
    cursor: pointer;
    color: var(--niceshop-sale-badge);
    font-size: 18px;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color var(--niceshop-transition);
    margin-left: auto;
}

.niceshop-upload-zone__remove:hover {
    color: #B91C1C;
}

.niceshop-upload-zone__progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    overflow: hidden;
}

.niceshop-upload-zone__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--niceshop-primary-brand-color), var(--niceshop-primary-brand-hover));
    transition: width 0.2s ease;
}

.niceshop-upload-zone__file--done {
    border-color: rgba(22, 163, 74, 0.24);
    background: rgba(240, 253, 244, 0.9);
}

.niceshop-upload-zone__file--error {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(254, 242, 242, 0.95);
}

/* ── Error message ── */
.niceshop-upload-zone__error {
    font-size: 12px;
    color: var(--niceshop-sale-badge);
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--niceshop-sale-bg);
    border-radius: var(--niceshop-radius-sm);
    display: none;
}

/* ── Note (file attached to order) ── */
.niceshop-upload-zone__note {
    font-size: 12px;
    color: var(--niceshop-text-muted);
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.niceshop-upload-zone__note::before {
    content: "\1F4A1";
    margin-right: 5px;
}


/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */

@keyframes niceshop-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes niceshop-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes niceshop-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading spinner for buttons */
.niceshop-card__btn--loading,
.niceshop-pdp__add-cart--loading,
.niceshop-pdp__buy-now--loading,
.niceshop-popup__checkout-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.niceshop-card__btn--loading::after,
.niceshop-pdp__add-cart--loading::after,
.niceshop-pdp__buy-now--loading::after,
.niceshop-popup__checkout-btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: niceshop-spin 0.6s linear infinite;
}

/* Toast notification */
.niceshop-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--niceshop-dark-buy-now);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: var(--niceshop-radius-md);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--niceshop-font);
    box-shadow: var(--niceshop-shadow-modal);
    z-index: 99999;
    animation: niceshop-slide-up 0.3s ease;
    pointer-events: none;
}

.niceshop-toast--success {
    background: var(--niceshop-success);
}

.niceshop-toast--error {
    background: var(--niceshop-sale-badge);
}

.niceshop-toast--fade-out {
    animation: niceshop-fade-out 0.3s ease forwards;
}

@keyframes niceshop-fade-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
}


/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── Tablet: 481px – 768px (3 columns) ── */
@media (min-width: 481px) {
    .niceshop-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .niceshop-product-slider__slide {
        flex-basis: calc((100% - var(--niceshop-slider-gap) - var(--niceshop-slider-gap)) / 3);
    }

    .niceshop-card__title {
        font-size: var(--niceshop-product-title-font-size);
    }
}

/* ── Desktop: 769px+ (5 columns) ── */
@media (min-width: 769px) {
    .niceshop-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .niceshop-product-slider__slide {
        flex-basis: calc((100% - var(--niceshop-slider-gap) - var(--niceshop-slider-gap) - var(--niceshop-slider-gap) - var(--niceshop-slider-gap)) / 5);
    }

    .niceshop-card__title {
        font-size: var(--niceshop-product-title-font-size);
    }
}

/* ── Small mobile tweaks: <= 480px ── */
@media (max-width: 480px) {
    .niceshop-grid {
        gap: 8px;
    }

    .niceshop-product-slider {
        --niceshop-slider-gap: 8px;
    }

    .niceshop-product-slider__arrow {
        width: 30px;
        height: 30px;
    }

    .niceshop-card__body {
        padding: 8px;
    }

    .niceshop-card__title {
        font-size: var(--niceshop-product-title-font-size);
    }

    .niceshop-card__price {
        font-size: 14px;
    }

    .niceshop-card__btn {
        font-size: 10px;
        padding: 7px 0;
    }

    .niceshop-card__wishlist,
    .niceshop-card__cart {
        width: 26px;
        height: 26px;
        font-size: 13px;
        bottom: 6px;
    }

    .niceshop-card__wishlist {
        left: 6px;
    }

    .niceshop-card__cart {
        right: 6px;
    }

    .niceshop-card__badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }

    .niceshop-card__badge--sale + .niceshop-card__badge--print,
    .niceshop-card__badge--print:nth-child(3) {
        top: 28px;
    }
}

/* ==========================================================================
   14. PDP RELATED / RECOMMENDATION SLIDER — 3-column compact
   ========================================================================== */

/* 3 slides on mobile, 4 on desktop — PDP related slider */
.niceshop-pdp__related-slider .niceshop-product-slider__slide {
    flex: 0 0 calc((100% - var(--niceshop-slider-gap, 12px) * 2) / 3);
}

@media (min-width: 769px) {
    .niceshop-pdp__related-slider .niceshop-product-slider__slide {
        flex: 0 0 calc((100% - var(--niceshop-slider-gap, 12px) * 3) / 4);
    }
}

/* Hide prev/next arrows on PDP related slider */
.niceshop-pdp__related-section .niceshop-product-slider__arrow {
    display: none !important;
}

/* Compact card styles scoped to the PDP recommendation section */
.niceshop-pdp__related-section .niceshop-card__body {
    padding: 7px;
}

.niceshop-pdp__related-section .niceshop-card__title {
    font-size: 11px;
    margin-bottom: 2px;
    -webkit-line-clamp: 2;
}

.niceshop-pdp__related-section .niceshop-card__meta {
    gap: 3px;
    margin-bottom: 4px;
}

.niceshop-pdp__related-section .niceshop-card__rating,
.niceshop-pdp__related-section .niceshop-card__sold {
    font-size: 9px;
}

.niceshop-pdp__related-section .niceshop-card__stars {
    font-size: 9px;
}

.niceshop-pdp__related-section .niceshop-card__price {
    font-size: 12px;
}

.niceshop-pdp__related-section .niceshop-card__price ins {
    font-size: 12px;
}

.niceshop-pdp__related-section .niceshop-card__price del {
    font-size: 9px;
}

.niceshop-pdp__related-section .niceshop-card__price-area {
    margin-bottom: 2px;
}

.niceshop-pdp__related-section .niceshop-card__actions {
    gap: 4px;
    margin-top: 5px;
}

.niceshop-pdp__related-section .niceshop-card__btn {
    font-size: 9px;
    padding: 5px 0;
}

.niceshop-pdp__related-section .niceshop-card__wishlist,
.niceshop-pdp__related-section .niceshop-card__cart {
    width: 24px;
    height: 24px;
    font-size: 12px;
    bottom: 5px;
}

.niceshop-pdp__related-section .niceshop-card__wishlist {
    left: 5px;
}

.niceshop-pdp__related-section .niceshop-card__cart {
    right: 5px;
}

.niceshop-pdp__related-section .niceshop-card__badge {
    font-size: 8px;
    padding: 2px 4px;
    top: 5px;
    left: 5px;
}

/* ── PDP responsive ── */
@media (max-width: 768px) {
    .niceshop-pdp__grid {
        grid-template-columns: 1fr;
    }

    .niceshop-pdp__info {
        padding: 24px 20px;
    }

    .niceshop-pdp__title {
        font-size: max(18px, calc(var(--niceshop-single-product-title-font-size) - 4px));
    }

    .niceshop-pdp__price {
        font-size: 26px;
    }

    .niceshop-pdp__price ins {
        font-size: 26px;
    }

    .niceshop-pdp__main-img {
        min-height: 260px;
    }

    .niceshop-pdp__description {
        padding: 24px 20px;
    }

    .niceshop-pdp__cta {
        flex-direction: column;
    }

    .niceshop-pdp__wishlist-btn {
        width: 100%;
        height: 44px;
        order: -1;
    }

    .niceshop-pdp__trust {
        gap: 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .niceshop-pdp__info {
        padding: 20px 16px;
    }

    .niceshop-pdp__title {
        font-size: max(16px, calc(var(--niceshop-single-product-title-font-size) - 6px));
        margin-bottom: 12px;
    }

    .niceshop-pdp__price {
        font-size: 24px;
    }

    .niceshop-pdp__price ins {
        font-size: 24px;
    }

    .niceshop-pdp__price-old {
        font-size: 14px;
    }

    .niceshop-pdp__main-img {
        min-height: 220px;
    }

    .niceshop-pdp__thumbs {
        padding: 8px;
        gap: 6px;
    }

    .niceshop-pdp__thumb {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .niceshop-pdp__description {
        padding: 20px 16px;
        margin-top: 20px;
    }
}

/* ── Popup/modal responsive ── */
@media (max-width: 960px) {
    .niceshop-modal {
        max-width: 920px;
    }

    .niceshop-popup__section-grid {
        grid-template-columns: 1fr;
    }

    .niceshop-popup__sticky {
        flex-direction: column;
        align-items: stretch;
    }

    .niceshop-popup__actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .niceshop-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .niceshop-modal {
        max-width: 100%;
        max-height: 92dvh;
        border-radius: var(--niceshop-radius-lg) var(--niceshop-radius-lg) 0 0;
        animation: niceshop-slide-up-mobile 0.3s ease;
    }

    .niceshop-modal__header {
        padding: 18px 18px 16px;
        border-radius: var(--niceshop-radius-lg) var(--niceshop-radius-lg) 0 0;
    }

    .niceshop-modal__title {
        font-size: 18px;
    }

    .niceshop-popup__aside {
        padding: 16px 16px 18px;
        gap: 14px;
    }

    .niceshop-popup-shell--cart .niceshop-popup__aside {
        padding: 16px;
    }

    .niceshop-popup-shell--cart .niceshop-popup__media-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
    }

    .niceshop-popup-shell--cart .niceshop-popup__thumb {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }

    .niceshop-popup__media-card {
        gap: 14px;
    }

    .niceshop-popup__thumb {
        aspect-ratio: 4 / 3;
        max-height: 220px;
    }

    .niceshop-popup__title {
        font-size: max(16px, calc(var(--niceshop-popup-product-title-font-size) - 2px));
    }

    .niceshop-popup__subtitle {
        font-size: 13px;
    }

    .niceshop-popup__aside-price {
        font-size: 18px;
    }

    .niceshop-popup__estimate {
        padding: 14px 16px;
    }

    .niceshop-popup__benefits {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .niceshop-popup__benefits li {
        font-size: 12px;
        padding: 10px 10px 10px 40px;
        min-height: 52px;
    }

    .niceshop-popup__promo {
        margin-bottom: 12px;
        font-size: 12px;
        padding: 12px 14px;
    }

    .niceshop-popup__main {
        min-height: 0;
    }

    .niceshop-popup__section {
        padding: 18px 18px 0;
    }

    .niceshop-popup__section-head {
        gap: 12px;
        margin-bottom: 14px;
    }

    .niceshop-popup__section-head h4 {
        font-size: 16px;
    }

    .niceshop-popup__variant-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .niceshop-popup-shell--cart .niceshop-popup__variant-options {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .niceshop-popup__variant-options::-webkit-scrollbar {
        display: none;
    }

    .niceshop-popup__variant-opt {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .niceshop-popup-shell--cart .niceshop-popup__variant-opt {
        flex: 0 1 auto;
        min-width: 0;
    }

    .niceshop-popup-shell--cart .niceshop-popup__variant-opt--image {
        min-width: calc(50% - 6px);
    }

    .niceshop-popup__section-grid {
        grid-template-columns: 1fr;
    }

    .niceshop-popup__note-input {
        min-height: 118px;
    }

    .niceshop-popup__sticky {
        position: sticky;
        gap: 14px;
        padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: stretch;
    }

    .niceshop-popup__summary {
        min-width: 0;
    }

    .niceshop-popup__summary-total strong {
        font-size: 24px;
    }

    .niceshop-popup__actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .niceshop-popup__secondary-btn,
    .niceshop-popup__checkout-btn {
        min-height: 52px;
    }
}

@keyframes niceshop-slide-up-mobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}


/* ==========================================================================
   13.5 MODERN PRODUCT DETAIL EXPERIENCE
   ========================================================================== */

body.niceshop-product-modern.woocommerce div.product div.images,
body.niceshop-product-modern.woocommerce div.product .summary.entry-summary {
    display: none !important;
}

body.niceshop-product-modern {
    background:
        radial-gradient(circle at top left, rgba(255, 233, 230, 0.75), transparent 34%),
        linear-gradient(180deg, #FFFDFC 0%, #F7F3EF 100%);
}

body.niceshop-product-modern.woocommerce div.product {
    display: block;
    margin-top: 12px;
}

body.niceshop-product-modern .woocommerce-breadcrumb {
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--niceshop-text-muted);
}

body.niceshop-product-modern .woocommerce-breadcrumb a {
    color: var(--niceshop-text-soft);
    text-decoration: none;
}

body.niceshop-product-modern .woocommerce-breadcrumb a:hover {
    color: var(--niceshop-primary-brand-color);
}

.niceshop-pdp--modern {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 48px;
    color: var(--niceshop-text);
    font-family: 'Plus Jakarta Sans', var(--niceshop-font);
    overflow-x: clip;
}

.niceshop-pdp--modern .niceshop-pdp__modern-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
    gap: 32px;
    align-items: start;
}

.niceshop-pdp--modern .niceshop-pdp__gallery-panel,
.niceshop-pdp--modern .niceshop-pdp__config-panel {
    max-width: 100%;
    min-width: 0;
}

.niceshop-pdp--modern .niceshop-pdp__gallery-panel {
    display: grid;
    gap: 22px;
}

.niceshop-pdp--modern .niceshop-pdp__gallery-card,
.niceshop-pdp--modern .niceshop-pdp__product-head,
.niceshop-pdp--modern .niceshop-pdp__config-card,
.niceshop-pdp--modern .niceshop-pdp__details-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.niceshop-pdp--modern .niceshop-pdp__gallery-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 22px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 216, 209, 0.75), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 244, 0.96) 100%);
}

.niceshop-pdp--modern .niceshop-pdp__badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    padding: 9px 14px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #E1261C;
    box-shadow: 0 10px 25px rgba(225, 38, 28, 0.14);
    font-size: 13px;
    font-weight: 700;
}

.niceshop-pdp--modern .niceshop-pdp__main-frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 600px;
    border-radius: 26px;
    background:
        radial-gradient(circle at bottom left, rgba(237, 240, 244, 0.8), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
    border: 1px solid rgba(232, 237, 242, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.niceshop-pdp--modern .niceshop-pdp__img {
    width: min(100%, 92%);
    max-width: 100%;
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 34px 36px rgba(15, 23, 42, 0.12));
}

.niceshop-pdp--modern .niceshop-pdp__gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--niceshop-text);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform var(--niceshop-transition), background var(--niceshop-transition);
}

.niceshop-pdp--modern .niceshop-pdp__gallery-nav:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.04);
}

.niceshop-pdp--modern .niceshop-pdp__gallery-nav--prev {
    left: 24px;
}

.niceshop-pdp--modern .niceshop-pdp__gallery-nav--next {
    right: 24px;
}

.niceshop-pdp--modern .niceshop-pdp__thumbs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: 0;
    border-top: none;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 12px;
}

.niceshop-pdp--modern .niceshop-pdp__thumb {
    width: 100%;
    min-width: 0;
    height: 88px;
    border: 1px solid rgba(223, 228, 235, 0.95) !important;
    border-radius: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
    padding: 8px;
    transition: transform var(--niceshop-transition), border-color var(--niceshop-transition), box-shadow var(--niceshop-transition);
}

.niceshop-pdp--modern .niceshop-pdp__thumb.active {
    border-color: rgba(225, 38, 28, 0.95) !important;
    box-shadow: 0 16px 26px rgba(225, 38, 28, 0.12);
    transform: translateY(-2px);
}

.niceshop-pdp--modern .niceshop-pdp__thumb:hover {
    border-color: rgba(225, 38, 28, 0.65) !important;
}

.niceshop-pdp--modern .niceshop-pdp__thumb img {
    object-fit: contain;
}

.niceshop-pdp--modern .niceshop-pdp__product-head {
    border-radius: 28px;
    padding: 28px 30px;
}

.niceshop-pdp--modern .niceshop-pdp__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #D94841;
}

.niceshop-pdp--modern .niceshop-pdp__title {
    margin: 0;
    font-size: var(--niceshop-single-product-title-font-size, 20px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.niceshop-pdp--modern .niceshop-pdp__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 24px;
}

.niceshop-pdp--modern .niceshop-pdp__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--niceshop-text-soft);
}

.niceshop-pdp--modern .niceshop-pdp__stars {
    color: #FDBA29;
    letter-spacing: 1px;
}

.niceshop-pdp--modern .niceshop-pdp__rating strong,
.niceshop-pdp--modern .niceshop-pdp__sold {
    color: var(--niceshop-text);
}

.niceshop-pdp--modern .niceshop-pdp__meta-sep {
    width: 1px;
    height: 16px;
    background: rgba(203, 213, 225, 0.85);
}

.niceshop-pdp--modern .niceshop-pdp__trust-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.niceshop-pdp--modern .niceshop-pdp__trust-pill {
    min-height: 72px;
    padding: 12px 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
    border: 1px solid rgba(231, 236, 242, 0.94);
    color: var(--niceshop-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.niceshop-pdp--modern .niceshop-pdp__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--niceshop-primary-brand-color);
    flex-shrink: 0;
}

.niceshop-pdp--modern .niceshop-pdp__trust-icon svg {
    width: 100%;
    height: 100%;
}

.niceshop-pdp--modern .niceshop-pdp__trust-text {
    display: block;
}

.niceshop-pdp--modern .niceshop-pdp__estimate-card {
    margin-top: 20px;
    padding: 20px 22px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 246, 243, 0.98) 0%, rgba(255, 236, 231, 0.92) 100%);
    border: 1px solid rgba(255, 218, 210, 0.95);
    display: grid;
    gap: 8px;
}

.niceshop-pdp--modern .niceshop-pdp__estimate-label {
    font-size: 14px;
    color: var(--niceshop-text-soft);
}

.niceshop-pdp--modern .niceshop-pdp__estimate-value {
    font-size: 28px;
    color: #E1261C;
    letter-spacing: -0.03em;
}

.niceshop-pdp--modern .niceshop-pdp__config-card {
    position: sticky;
    top: 26px;
    padding: 28px 28px 24px;
    border-radius: 30px;
}

.niceshop-pdp--modern .niceshop-pdp__price-block {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    margin-bottom: 20px;
}

.niceshop-pdp--modern .niceshop-pdp__price-label {
    display: block;
    margin-bottom: 8px;
    color: var(--niceshop-text-soft);
    font-size: 13px;
    font-weight: 600;
}

.niceshop-pdp--modern .niceshop-pdp__price {
    font-size: clamp(32px, 2.4vw, 44px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #E1261C;
}

.niceshop-pdp--modern .niceshop-pdp__price ins {
    text-decoration: none;
    color: #E1261C;
}

.niceshop-pdp--modern .niceshop-pdp__price del {
    display: block;
    margin-bottom: 6px;
    color: var(--niceshop-text-muted);
    font-size: 16px;
    font-weight: 500;
}

.niceshop-pdp--modern .niceshop-pdp__price-note {
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    color: var(--niceshop-text-muted);
}

.niceshop-pdp--modern .niceshop-pdp__summary-text {
    margin: 0 0 22px;
    color: var(--niceshop-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.niceshop-pdp--modern .niceshop-pdp__spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.niceshop-pdp--modern .niceshop-pdp__spec-card {
    padding: 16px 18px;
    border-radius: 20px;
    background: #FBFCFE;
    border: 1px solid rgba(231, 236, 242, 0.94);
    display: grid;
    gap: 8px;
}

.niceshop-pdp--modern .niceshop-pdp__spec-card span {
    font-size: 13px;
    color: var(--niceshop-text-muted);
}

.niceshop-pdp--modern .niceshop-pdp__spec-card strong {
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ── Wholesale wrapper ── */
.niceshop-pdp--modern .niceshop-pdp__wholesale {
    position: relative;
    margin: 0 0 22px;
    overflow: visible;
}

/* ── Toggle button ── */
.niceshop-pdp--modern .niceshop-pdp__wholesale-toggle {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 14px;
    background: var(--niceshop-surface-alt);
    color: var(--niceshop-text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    outline: none !important;
    box-shadow: none !important;
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-toggle:hover {
    border-color: var(--niceshop-primary-brand-color) !important;
    background: var(--niceshop-surface);
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-toggle:focus,
.niceshop-pdp--modern .niceshop-pdp__wholesale-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--niceshop-primary-brand-color) !important;
}

/* Label */
.niceshop-pdp--modern .niceshop-pdp__wholesale-toggle span:first-child {
    font-size: 13px;
    font-weight: 700;
    color: var(--niceshop-text);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Price preview */
.niceshop-pdp--modern .niceshop-pdp__wholesale-toggle strong {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--niceshop-text-muted);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Arrow icon */
.niceshop-pdp--modern .niceshop-pdp__wholesale-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.7);
    color: var(--niceshop-text-soft);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--niceshop-transition), background var(--niceshop-transition);
}

.niceshop-pdp--modern .niceshop-pdp__wholesale.is-open .niceshop-pdp__wholesale-toggle {
    border-color: var(--niceshop-primary-brand-color) !important;
    background: var(--niceshop-surface);
}

.niceshop-pdp--modern .niceshop-pdp__wholesale.is-open .niceshop-pdp__wholesale-arrow {
    transform: rotate(90deg);
    background: var(--niceshop-primary-brand-soft);
    color: var(--niceshop-primary-brand-color);
}

/* ── Dropdown panel ── */
.niceshop-pdp--modern .niceshop-pdp__wholesale-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    padding: 16px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

/* ── Panel header ── */
.niceshop-pdp--modern .niceshop-pdp__wholesale-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-sheet-head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--niceshop-text);
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-sheet-head button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    background: var(--niceshop-surface-alt);
    color: var(--niceshop-text-muted);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-sheet-head button:hover {
    background: var(--niceshop-border);
    color: var(--niceshop-text);
}

/* ── Tier rows ── */
.niceshop-pdp--modern .niceshop-pdp__wholesale-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(231, 236, 242, 0.7);
    color: var(--niceshop-text-soft);
    font-size: 13px;
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-row:first-child {
    border-top: none;
    padding-top: 0;
}

.niceshop-pdp--modern .niceshop-pdp__wholesale-row strong {
    color: #E1261C;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.niceshop-pdp--modern .niceshop-pdp__section {
    padding-top: 26px;
    margin-top: 26px;
    border-top: 1px solid rgba(231, 236, 242, 0.94);
}

.niceshop-pdp--modern .niceshop-pdp__section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.niceshop-pdp--modern .niceshop-pdp__step {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FF4236 0%, #E1261C 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 28px rgba(225, 38, 28, 0.2);
}

.niceshop-pdp--modern .niceshop-pdp__section-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.niceshop-pdp--modern .niceshop-pdp__section-head h3 small {
    font-size: 13px;
    font-weight: 500;
    color: var(--niceshop-text-muted);
}

.niceshop-pdp--modern .niceshop-pdp__section-head p {
    margin: 4px 0 0;
    color: var(--niceshop-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.niceshop-pdp--modern .niceshop-pdp__variants {
    display: grid;
    gap: 18px;
}

.niceshop-pdp--modern .niceshop-pdp__variant-label {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--niceshop-text);
}

.niceshop-pdp--modern .niceshop-pdp__variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.niceshop-pdp--modern .niceshop-pdp__variant-opt {
    min-height: 48px;
    padding: 12px 18px;
    border: 1.5px solid rgba(219, 226, 233, 0.98) !important;
    border-radius: 16px;
    background: #FFFFFF;
    color: var(--niceshop-text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--niceshop-transition);
}

.niceshop-pdp--modern .niceshop-pdp__variant-opt:hover {
    border-color: rgba(225, 38, 28, 0.48) !important;
    transform: translateY(-1px);
}

.niceshop-pdp--modern .niceshop-pdp__variant-opt.active {
    border-color: #FF5A4D !important;
    background: rgba(255, 89, 77, 0.08);
    color: #E1261C;
    box-shadow: inset 0 0 0 1px rgba(255, 89, 77, 0.12);
}

.niceshop-pdp--modern .niceshop-pdp__empty-state {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(203, 213, 225, 0.92);
    color: var(--niceshop-text-soft);
    font-size: 14px;
}

.niceshop-pdp--modern .niceshop-pdp__upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
}

.niceshop-pdp--modern .niceshop-pdp__upload-wrap .niceshop-upload-zone {
    margin: 0;
}

.niceshop-pdp--modern .niceshop-upload-zone__drop {
    border: 1.5px dashed rgba(210, 217, 225, 0.95);
    border-radius: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
    padding: 28px 20px;
}

.niceshop-pdp--modern .niceshop-upload-zone__drop:hover,
.niceshop-pdp--modern .niceshop-upload-zone__drop--over {
    border-color: rgba(255, 89, 77, 0.65);
    background: linear-gradient(180deg, #FFF8F6 0%, #FFFFFF 100%);
}

.niceshop-pdp--modern .niceshop-upload-zone__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 89, 77, 0.08);
    color: #E1261C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.niceshop-pdp--modern .niceshop-upload-zone__text {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--niceshop-text);
}

.niceshop-pdp--modern .niceshop-upload-zone__subhint,
.niceshop-pdp--modern .niceshop-upload-zone__hint,
.niceshop-pdp--modern .niceshop-upload-zone__note {
    color: var(--niceshop-text-muted);
}

.niceshop-pdp--modern .niceshop-upload-zone__browse {
    margin-top: 16px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    background: #101827;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.niceshop-pdp--modern .niceshop-pdp__service-card {
    min-height: 100%;
    padding: 22px;
    border-radius: 24px;
    border: 1px dashed rgba(210, 217, 225, 0.95);
    background: linear-gradient(180deg, #FFFFFF 0%, #FCF7F6 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.niceshop-pdp--modern .niceshop-pdp__service-card span {
    color: var(--niceshop-text-soft);
    font-size: 14px;
}

.niceshop-pdp--modern .niceshop-pdp__service-btn {
    min-height: 48px;
    border-radius: 14px;
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    background: #FFFFFF;
    color: var(--niceshop-text);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-decoration: none;
}

.niceshop-pdp--modern .niceshop-pdp__service-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.niceshop-pdp--modern .niceshop-pdp__section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.niceshop-pdp--modern .niceshop-pdp__note-box {
    padding: 18px;
    border-radius: 22px;
    background: #FFFFFF;
    border: 1px solid rgba(231, 236, 242, 0.94);
}

.niceshop-pdp--modern .niceshop-pdp__note-input {
    width: 100%;
    min-height: 144px;
    border: none;
    resize: vertical;
    background: transparent;
    font: inherit;
    color: var(--niceshop-text);
}

.niceshop-pdp--modern .niceshop-pdp__note-input:focus {
    outline: none;
}

.niceshop-pdp--modern .niceshop-pdp__note-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--niceshop-text-muted);
}

.niceshop-pdp--modern .niceshop-pdp__qty-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
    border: 1px solid rgba(231, 236, 242, 0.94);
    display: grid;
    gap: 14px;
}

.niceshop-pdp--modern .niceshop-pdp__qty-controls {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    border: 1px solid rgba(219, 226, 233, 0.98);
    border-radius: 18px;
    overflow: hidden;
    background: #FFFFFF;
}

.niceshop-pdp--modern .niceshop-pdp__qty-btn {
    width: 54px;
    height: 54px;
    background: #FAFBFD;
    color: var(--niceshop-text);
    font-size: 22px;
    font-weight: 700;
}

.niceshop-pdp--modern .niceshop-pdp__qty-num {
    width: 100%;
    height: 54px;
    border: none;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    background: transparent;
}

.niceshop-pdp--modern .niceshop-pdp__qty-num:focus {
    outline: none;
}

.niceshop-pdp--modern .niceshop-pdp__qty-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--niceshop-text-muted);
}

.niceshop-pdp--modern .niceshop-pdp__qty-meta strong {
    color: #E1261C;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.niceshop-pdp--modern .niceshop-pdp__sticky-summary {
    margin-top: 28px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 249, 247, 0.98) 0%, rgba(255, 241, 237, 0.92) 100%);
    border: 1px solid rgba(255, 218, 210, 0.85);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.niceshop-pdp--modern .niceshop-pdp__summary {
    padding: 0;
}

.niceshop-pdp--modern .niceshop-pdp__summary h4 {
    margin: 0 0 16px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.niceshop-pdp--modern .niceshop-pdp__summary-row,
.niceshop-pdp--modern .niceshop-pdp__summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.niceshop-pdp--modern .niceshop-pdp__summary-row {
    padding: 10px 0;
    color: var(--niceshop-text-soft);
    border-top: 1px solid rgba(255, 218, 210, 0.72);
}

.niceshop-pdp--modern .niceshop-pdp__summary-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.niceshop-pdp--modern .niceshop-pdp__summary-row strong {
    color: var(--niceshop-text);
}

.niceshop-pdp--modern .niceshop-pdp__summary-total {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 218, 210, 0.85);
    align-items: center;
}

.niceshop-pdp--modern .niceshop-pdp__summary-total span {
    font-size: 16px;
    font-weight: 700;
}

.niceshop-pdp--modern .niceshop-pdp__summary-total strong {
    color: #E1261C;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.niceshop-pdp--modern .niceshop-pdp__summary-footnote {
    margin: 12px 0 0;
    color: var(--niceshop-text-muted);
    font-size: 13px;
}

.niceshop-pdp--modern .niceshop-pdp__cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.niceshop-pdp--modern .niceshop-pdp__cta-stack .niceshop-pdp__checkout,
.niceshop-pdp--modern .niceshop-pdp__cta-stack .niceshop-pdp__add-cart {
    width: 100%;
    justify-content: center;
}

.niceshop-pdp--modern .niceshop-pdp__checkout,
.niceshop-pdp--modern .niceshop-pdp__add-cart,
.niceshop-pdp--modern .niceshop-pdp__mobile-cart,
.niceshop-pdp--modern .niceshop-pdp__mobile-checkout {
    min-height: 58px;
    border-radius: 18px;
    font-family: 'Plus Jakarta Sans', var(--niceshop-font);
    font-size: 16px;
    font-weight: 800;
    transition: transform var(--niceshop-transition), box-shadow var(--niceshop-transition), background var(--niceshop-transition), color var(--niceshop-transition);
}

.niceshop-pdp--modern .niceshop-pdp__checkout {
    background: linear-gradient(180deg, #FF4236 0%, #E1261C 100%);
    color: #FFFFFF;
    box-shadow: 0 18px 34px rgba(225, 38, 28, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 22px;
}

.niceshop-pdp--modern .niceshop-pdp__checkout:hover,
.niceshop-pdp--modern .niceshop-pdp__mobile-checkout:hover {
    transform: translateY(-1px);
}

.niceshop-pdp--modern .niceshop-pdp__add-cart,
.niceshop-pdp--modern .niceshop-pdp__mobile-cart {
    background: rgba(255, 255, 255, 0.9);
    color: var(--niceshop-text);
    border: 1.5px solid rgba(15, 23, 42, 0.1);
}

.niceshop-pdp--modern .niceshop-pdp__details-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.niceshop-pdp--modern .niceshop-pdp__details-card {
    border-radius: 28px;
    padding: 28px 30px;
}

.niceshop-pdp--modern .niceshop-pdp__details-card--description {
    margin-top: 0;
}

.niceshop-pdp--modern .niceshop-pdp__details-head {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.niceshop-pdp--modern .niceshop-pdp__details-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #D94841;
}

.niceshop-pdp--modern .niceshop-pdp__details-head h3 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.niceshop-pdp--modern .niceshop-pdp__details-body,
.niceshop-pdp--modern .niceshop-pdp__detail-list {
    color: var(--niceshop-text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.niceshop-pdp--modern .niceshop-pdp__details-body p:first-child {
    margin-top: 0;
}

.niceshop-pdp--modern .niceshop-pdp__detail-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(231, 236, 242, 0.94);
}

.niceshop-pdp--modern .niceshop-pdp__detail-row:first-child {
    border-top: none;
    padding-top: 0;
}

.niceshop-pdp--modern .niceshop-pdp__detail-row strong {
    color: var(--niceshop-text);
    text-align: right;
}

.niceshop-pdp--modern .niceshop-pdp__related-section {
    margin-top: 30px;
    padding: 28px 30px 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.niceshop-pdp--modern .niceshop-pdp__related-head {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
}

.niceshop-pdp--modern .niceshop-pdp__related-head h3 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.niceshop-pdp--modern .niceshop-pdp__related-head p {
    margin: 0;
    color: var(--niceshop-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.niceshop-pdp--modern .niceshop-pdp__related-slider {
    width: 100%;
}

.niceshop-pdp--modern .niceshop-pdp__mobile-bar {
    display: none;
}

body.niceshop-product-modern .related.products {
    margin-top: 48px;
}

@media (max-width: 1200px) {
    .niceshop-pdp--modern .niceshop-pdp__modern-grid,
    .niceshop-pdp--modern .niceshop-pdp__details-grid {
        grid-template-columns: 1fr;
    }

    .niceshop-pdp--modern .niceshop-pdp__config-card {
        position: static;
    }

    .niceshop-pdp--modern .niceshop-pdp__main-frame {
        min-height: 520px;
    }
}


@media (max-width: 991px) {
    .niceshop-pdp--modern .niceshop-pdp__upload-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.niceshop-product-modern {
        padding-bottom: 92px;
        overflow-x: hidden;
    }

    .niceshop-pdp--modern {
        max-width: 100%;
        margin-bottom: 28px;
        padding-inline: 0;
    }

    .niceshop-pdp--modern .niceshop-pdp__modern-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 18px;
    }

    .niceshop-pdp--modern .niceshop-pdp__gallery-panel,
    .niceshop-pdp--modern .niceshop-pdp__config-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .niceshop-pdp--modern .niceshop-pdp__gallery-card,
    .niceshop-pdp--modern .niceshop-pdp__product-head,
    .niceshop-pdp--modern .niceshop-pdp__config-card,
    .niceshop-pdp--modern .niceshop-pdp__details-card,
    .niceshop-pdp--modern .niceshop-pdp__related-section {
        border-radius: 24px;
        padding: 20px;
    }

    .niceshop-pdp--modern .niceshop-pdp__main-frame {
        aspect-ratio: 1 / 1;
        min-height: 0;
        max-height: none;
    }

    .niceshop-pdp--modern .niceshop-pdp__img {
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 8px;
    }

    .niceshop-pdp--modern .niceshop-pdp__gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .niceshop-pdp--modern .niceshop-pdp__gallery-nav--prev {
        left: 12px;
    }

    .niceshop-pdp--modern .niceshop-pdp__gallery-nav--next {
        right: 12px;
    }

    .niceshop-pdp--modern .niceshop-pdp__thumbs {
        display: flex;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .niceshop-pdp--modern .niceshop-pdp__thumbs::-webkit-scrollbar,
    .niceshop-pdp--modern .niceshop-pdp__variant-options::-webkit-scrollbar {
        display: none;
    }

    .niceshop-pdp--modern .niceshop-pdp__thumb {
        min-width: 76px;
        width: 76px;
        height: 76px;
    }

    .niceshop-pdp--modern .niceshop-pdp__title {
        font-size: max(14px, calc(var(--niceshop-single-product-title-font-size, 20px) - 4px));
        font-weight: 600;
    }

    .niceshop-pdp--modern .niceshop-pdp__trust-icons {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .niceshop-pdp--modern .niceshop-pdp__spec-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .niceshop-pdp--modern .niceshop-pdp__trust-pill {
        min-height: 60px;
        font-size: 11px;
        padding: 10px 8px;
    }

    .niceshop-pdp--modern .niceshop-pdp__section-head h3 {
        font-size: 16px;
    }

    .niceshop-pdp--modern .niceshop-pdp__related-head h3 {
        font-size: 22px;
    }

    .niceshop-pdp--modern .niceshop-pdp__variant-options {
        flex-wrap: wrap;
        gap: 8px;
    }

    .niceshop-pdp--modern .niceshop-pdp__wholesale-toggle {
        padding: 12px 14px;
        gap: 8px;
    }

    .niceshop-pdp--modern .niceshop-pdp__wholesale-panel {
        max-height: min(60vh, 340px);
        overflow-y: auto;
    }

    .niceshop-pdp--modern .niceshop-pdp__variant-opt {
        flex: 0 1 auto;
        min-height: 42px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .niceshop-pdp--modern .niceshop-pdp__summary-total strong {
        font-size: 32px;
    }

    .niceshop-pdp--modern .niceshop-pdp__cta-stack {
        display: none;
    }

    .niceshop-pdp--modern .niceshop-pdp__mobile-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 9991;
        display: grid;
        gap: 12px;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
        border: 1px solid rgba(231, 236, 242, 0.96);
        backdrop-filter: blur(16px);
    }

    .niceshop-pdp--modern .niceshop-pdp__mobile-total {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 12px;
    }

    .niceshop-pdp--modern .niceshop-pdp__mobile-total span {
        color: var(--niceshop-text-muted);
        font-size: 13px;
    }

    .niceshop-pdp--modern .niceshop-pdp__mobile-total strong {
        color: #E1261C;
        font-size: 28px;
        letter-spacing: -0.04em;
    }

    .niceshop-pdp--modern .niceshop-pdp__mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .niceshop-pdp--modern .niceshop-pdp__mobile-checkout {
        background: linear-gradient(180deg, #FF4236 0%, #E1261C 100%);
        color: #FFFFFF;
        box-shadow: 0 18px 34px rgba(225, 38, 28, 0.2);
    }
}

@media (max-width: 560px) {
    .niceshop-pdp--modern .niceshop-pdp__gallery-card,
    .niceshop-pdp--modern .niceshop-pdp__product-head,
    .niceshop-pdp--modern .niceshop-pdp__config-card,
    .niceshop-pdp--modern .niceshop-pdp__details-card,
    .niceshop-pdp--modern .niceshop-pdp__related-section {
        padding: 16px;
    }

    .niceshop-pdp--modern .niceshop-pdp__main-frame {
        aspect-ratio: 1 / 1;
        min-height: 0;
        border-radius: 20px;
    }

    .niceshop-pdp--modern .niceshop-pdp__gallery-card {
        padding: 12px;
        border-radius: 22px;
    }

    .niceshop-pdp--modern .niceshop-pdp__gallery-nav {
        width: 38px;
        height: 38px;
    }

    .niceshop-pdp--modern .niceshop-pdp__thumb {
        min-width: 64px;
        width: 64px;
        height: 64px;
        border-radius: 14px;
        padding: 6px;
    }

    .niceshop-pdp--modern .niceshop-pdp__qty-controls {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }

    .niceshop-pdp--modern .niceshop-pdp__qty-btn,
    .niceshop-pdp--modern .niceshop-pdp__qty-num {
        height: 48px;
    }

    .niceshop-pdp--modern .niceshop-pdp__mobile-actions {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   14. PRINT STYLES (hide interactive elements)
   ========================================================================== */

@media print {
    .niceshop-overlay,
    .niceshop-card__wishlist,
    .niceshop-card__cart,
    .niceshop-card__badge,
    .niceshop-card__actions,
    .niceshop-pdp__wishlist-btn,
    .niceshop-pdp__buy-now,
    .niceshop-pdp__cta,
    .niceshop-upload-zone,
    .niceshop-toast {
        display: none !important;
    }

    .niceshop-card {
        break-inside: avoid;
        border: 1px solid #CCC;
        box-shadow: none;
    }

    .niceshop-pdp__grid {
        border: 1px solid #CCC;
    }
}


/* ==========================================================================
   16. WOOCOMMERCE SINGLE PRODUCT — NiceShop polish
   Targets WooCommerce's native single-product template.
   Themes that already style these will naturally take precedence;
   we only fill gaps and apply brand colours.
   ========================================================================== */

/* Scoped to .woocommerce pages with a single product */
.woocommerce div.product {
    font-family: var(--niceshop-font);
}

/* ── Gallery ── */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    border-radius: var(--niceshop-radius-lg);
    overflow: hidden;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: var(--niceshop-radius-sm);
    opacity: 0.7;
    transition: opacity var(--niceshop-transition);
    cursor: pointer;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
    opacity: 1;
    outline: 2px solid var(--niceshop-primary-brand-color);
}

/* ── Summary column ── */
.woocommerce div.product .summary {
    padding-left: 24px;
}

/* ── Product title ── */
.woocommerce div.product .product_title {
    font-size: var(--niceshop-single-product-title-font-size);
    font-weight: 700;
    color: var(--niceshop-text);
    line-height: 1.3;
    margin-bottom: 8px;
}

/* ── Star rating ── */
.woocommerce div.product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.woocommerce div.product .star-rating {
    color: var(--niceshop-star);
    font-size: 14px;
}

.woocommerce div.product .woocommerce-review-link {
    font-size: 13px;
    color: var(--niceshop-text-soft);
    text-decoration: none;
}

.woocommerce div.product .woocommerce-review-link:hover {
    color: var(--niceshop-primary-brand-color);
    text-decoration: underline;
}

/* ── Rating + sold meta line (niceshop inject) ── */
.niceshop-pdp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--niceshop-text-soft);
    margin: 0 0 14px;
}

.niceshop-pdp-meta__stars {
    color: var(--niceshop-star);
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1;
}

.niceshop-pdp-meta__num {
    font-weight: 600;
    color: var(--niceshop-text);
}

.niceshop-pdp-meta__reviews {
    font-weight: 400;
    color: var(--niceshop-text-muted);
}

.niceshop-pdp-meta__sep {
    width: 1px;
    height: 14px;
    background: var(--niceshop-border);
}

.niceshop-pdp-meta__sold strong {
    color: var(--niceshop-text);
    font-weight: 700;
}

/* ── Quick specs box (niceshop inject) ── */
.niceshop-pdp-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    font-size: 13px;
    padding: 16px;
    background: var(--niceshop-surface-alt);
    border-radius: var(--niceshop-radius-md);
    margin: 0 0 20px;
}

.niceshop-pdp-specs__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.niceshop-pdp-specs__k {
    color: var(--niceshop-text-muted);
}

.niceshop-pdp-specs__v {
    color: var(--niceshop-text);
    font-weight: 600;
    text-align: right;
}

/* ── Variant pills (replaces native <select>) ── */
.niceshop-pdp__variant-opts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 6px;
}

.niceshop-pdp__opt {
    padding: 8px 16px;
    border: 1.5px solid var(--niceshop-border);
    border-radius: var(--niceshop-radius-sm);
    font-size: 13px;
    background: var(--niceshop-surface);
    color: var(--niceshop-text);
    font-family: var(--niceshop-font);
    line-height: 1.2;
    transition: border-color var(--niceshop-transition),
                background var(--niceshop-transition),
                color var(--niceshop-transition);
}

.niceshop-pdp__opt:hover {
    border-color: var(--niceshop-primary-brand-color);
}

.niceshop-pdp__opt.sel {
    border-color: var(--niceshop-primary-brand-color);
    background: var(--niceshop-primary-brand-soft);
    color: var(--niceshop-primary-brand-color);
    font-weight: 600;
}

/* ── Trust bar (niceshop inject) ── */
.niceshop-pdp-trust {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--niceshop-border);
    padding-top: 16px;
    margin-top: 18px;
}

.niceshop-pdp-trust__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--niceshop-text-soft);
    background: var(--niceshop-surface-alt);
    padding: 6px 12px;
    border-radius: var(--niceshop-radius-sm);
}

/* ── Sticky mobile CTA (niceshop inject) ── */
.niceshop-pdp-mcta {
    display: none;
}

/* ── Price ── */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--niceshop-primary-brand-color);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: var(--niceshop-text-muted);
    font-size: 1rem;
    font-weight: 400;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
    color: var(--niceshop-sale-badge);
}

/* ── Short description ── */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 14px;
    color: var(--niceshop-text-soft);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ── Upload zone inside product page ── */
.woocommerce div.product .niceshop-upload-zone {
    margin-bottom: 16px;
}

/* ── Quantity input ── */
.woocommerce div.product .quantity .qty {
    border: 1px solid var(--niceshop-border);
    border-radius: var(--niceshop-radius-sm);
    font-family: var(--niceshop-font);
    font-size: 15px;
    padding: 8px 12px;
    text-align: center;
    width: 70px;
    transition: border-color var(--niceshop-transition);
}

.woocommerce div.product .quantity .qty:focus {
    border-color: var(--niceshop-primary-brand-color);
    outline: none;
}

/* ── Add to cart button ── */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product button.single_add_to_cart_button {
    background: var(--niceshop-primary-brand-color) !important;
    border-color: var(--niceshop-primary-brand-color) !important;
    color: #fff !important;
    border-radius: var(--niceshop-radius-sm) !important;
    font-family: var(--niceshop-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    transition: background var(--niceshop-transition), transform var(--niceshop-transition) !important;
    cursor: pointer;
    border: none !important;
}

.woocommerce div.product .single_add_to_cart_button:hover,
.woocommerce div.product button.single_add_to_cart_button:hover {
    background: var(--niceshop-primary-brand-hover) !important;
    transform: translateY(-1px);
}

/* ── Variations (variable products) — stacked label + pills ── */
.woocommerce div.product table.variations,
.woocommerce div.product table.variations tbody,
.woocommerce div.product table.variations tr {
    display: block;
    width: 100%;
}

.woocommerce div.product table.variations {
    margin-bottom: 16px;
}

.woocommerce div.product table.variations tr {
    margin-bottom: 14px;
}

.woocommerce div.product table.variations th,
.woocommerce div.product table.variations td {
    display: block;
    width: 100%;
    padding: 0;
}

.woocommerce div.product table.variations th {
    font-weight: 600;
    font-size: 13px;
    color: var(--niceshop-text);
    margin-bottom: 6px;
}

.woocommerce div.product .reset_variations {
    font-size: 12px;
    color: var(--niceshop-text-muted);
    display: inline-block;
    margin-top: 6px;
}

.woocommerce div.product .reset_variations:hover {
    color: var(--niceshop-sale-badge);
}

.woocommerce div.product table.variations select {
    border: 1px solid var(--niceshop-border);
    border-radius: var(--niceshop-radius-sm);
    font-family: var(--niceshop-font);
    font-size: 14px;
    padding: 8px 10px;
    width: 100%;
    background: var(--niceshop-surface);
    color: var(--niceshop-text);
    cursor: pointer;
    transition: border-color var(--niceshop-transition);
}

.woocommerce div.product table.variations select:focus {
    border-color: var(--niceshop-primary-brand-color);
    outline: none;
}

/* ── Variation availability / price ── */
.woocommerce div.product .woocommerce-variation-availability p,
.woocommerce div.product .woocommerce-variation-price .price {
    font-size: 14px;
}

/* ── Product meta (SKU, categories, tags) ── */
.woocommerce div.product .product_meta {
    font-size: 13px;
    color: var(--niceshop-text-soft);
    border-top: 1px solid var(--niceshop-border);
    padding-top: 14px;
    margin-top: 14px;
}

.woocommerce div.product .product_meta a {
    color: var(--niceshop-primary-brand-color);
    text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
    text-decoration: underline;
}

/* ── Tabs (Description, Reviews) ── */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--niceshop-border);
    padding: 0;
    list-style: none;
    margin: 0 0 20px;
    display: flex;
    gap: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--niceshop-text-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--niceshop-transition), border-color var(--niceshop-transition);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--niceshop-primary-brand-color);
    border-bottom-color: var(--niceshop-primary-brand-color);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--niceshop-primary-brand-color);
}

/* ── Related products heading ── */
.woocommerce .related.products h2 {
    font-family: var(--niceshop-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--niceshop-text);
    margin-bottom: 16px;
}

/* ── In stock badge ── */
.woocommerce div.product .in-stock,
.woocommerce div.product p.in-stock {
    color: var(--niceshop-success);
    font-size: 13px;
    font-weight: 600;
}

/* ── Out of stock ── */
.woocommerce div.product .out-of-stock,
.woocommerce div.product p.out-of-stock {
    color: var(--niceshop-sale-badge);
    font-size: 13px;
    font-weight: 600;
}

/* ── Sale badge on single product ── */
.woocommerce div.product span.onsale {
    background: var(--niceshop-sale-badge);
    border-radius: var(--niceshop-radius-sm);
    font-family: var(--niceshop-font);
    font-size: 12px;
    font-weight: 700;
    min-width: auto;
    min-height: auto;
    padding: 4px 10px;
    line-height: 1.4;
    top: 12px;
    left: 12px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .woocommerce div.product .summary {
        padding-left: 0;
    }

    .woocommerce div.product .product_title {
        font-size: max(18px, calc(var(--niceshop-single-product-title-font-size) - 6px));
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 1.5rem;
    }

    .niceshop-pdp-specs {
        grid-template-columns: 1fr;
    }

    /* Sticky mobile CTA bar */
    body.single-product {
        padding-bottom: 76px;
    }

    .niceshop-pdp-mcta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        gap: 10px;
        padding: 12px 16px;
        background: var(--niceshop-surface);
        border-top: 1px solid var(--niceshop-border);
        z-index: 9990;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }

    .niceshop-pdp-mcta__cart,
    .niceshop-pdp-mcta__buy {
        flex: 1;
        height: 48px;
        border-radius: var(--niceshop-radius-md);
        font-family: var(--niceshop-font);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        border: none;
    }

    .niceshop-pdp-mcta__cart {
        background: var(--niceshop-surface);
        color: var(--niceshop-primary-brand-color);
        border: 1.5px solid var(--niceshop-primary-brand-color);
    }

    .niceshop-pdp-mcta__buy {
        background: var(--niceshop-dark-buy-now);
        color: #fff;
    }
}
