/* ═══════════════════════════════════════════════════════════════════
   Product Customizer Styles — StickDecor v3.0
   Premium redesign for single-product pages (sd-* namespace)
   ═══════════════════════════════════════════════════════════════════ */

/* --- CSS Variables --- */
.sd-product-page {
    --sd-primary: var(--color-primary, #4DAAD5);
    --sd-primary-light: rgba(77, 170, 213, 0.08);
    --sd-primary-dark: #3a8fb5;
    --sd-green: #22c55e;
    --sd-green-dark: #16a34a;
    --sd-text: #1a1a1a;
    --sd-text-secondary: #64748b;
    --sd-text-muted: #94a3b8;
    --sd-border: #e2e8f0;
    --sd-border-hover: #cbd5e1;
    --sd-bg-subtle: #f8fafc;
    --sd-bg-warm: #faf9f7;
    --sd-radius: 12px;
    --sd-radius-sm: 8px;
    --sd-radius-lg: 16px;
    --sd-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --sd-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --sd-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --sd-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- SKU --- */
.sd-sku {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--sd-bg-subtle);
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}
.sd-sku__label {
    color: var(--sd-text-muted);
    font-weight: 500;
}
.sd-sku__value {
    color: var(--sd-text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* --- Breadcrumb --- */
.sd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0 1rem;
    font-size: 0.8125rem;
    color: var(--sd-text-muted);
}
.sd-breadcrumb a {
    color: var(--sd-text-secondary);
    text-decoration: none;
    transition: color var(--sd-transition);
}
.sd-breadcrumb a:hover {
    color: var(--sd-primary);
}
.sd-breadcrumb__sep {
    color: var(--sd-border);
    font-size: 0.75rem;
}
.sd-breadcrumb__current {
    color: var(--sd-text);
    font-weight: 500;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Product Page Layout --- */
.sd-product-page {
    padding-bottom: 4rem;
}
.sd-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 992px) {
    .sd-product-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 3rem;
    }
}

/* ═══════════════════ GALLERY ═══════════════════ */
.sd-gallery {
    position: sticky;
    top: 1.5rem;
}
.sd-gallery__main {
    position: relative;
    background: var(--sd-bg-subtle);
    border-radius: var(--sd-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--sd-shadow-sm);
}
.sd-gallery__main--sticker {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f5f5f5, #eaeaea);
}
.sd-gallery__main img,
.sd-gallery__main canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}
.sd-gallery__main:hover img {
    transform: scale(1.02);
}
.sd-sticker-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Zoom button */
.sd-gallery__main-zoom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    color: var(--sd-text);
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    cursor: pointer;
    transition: all var(--sd-transition);
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--sd-shadow-sm);
}
[dir="rtl"] .sd-gallery__main-zoom {
    left: auto;
    right: 1rem;
}
.sd-gallery__main-zoom:hover {
    background: #fff;
    box-shadow: var(--sd-shadow-md);
    transform: scale(1.05);
}

/* Badges */
.sd-gallery__badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}
[dir="rtl"] .sd-gallery__badges {
    right: auto;
    left: 1rem;
}
.sd-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    color: var(--sd-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--sd-shadow-sm);
}

/* Thumbnails */
.sd-gallery__thumbs {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.875rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.sd-gallery__thumbs::-webkit-scrollbar {
    display: none;
}
.sd-gallery__thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--sd-radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--sd-bg-subtle);
    padding: 0;
    transition: all var(--sd-transition);
    position: relative;
}
.sd-gallery__thumb.is-active {
    border-color: var(--sd-primary);
    box-shadow: 0 0 0 2px rgba(77, 170, 213, 0.2);
}
.sd-gallery__thumb:hover:not(.is-active) {
    border-color: var(--sd-border-hover);
}
.sd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sd-gallery__thumb--video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}
.sd-gallery__thumb-video-icon {
    color: #fff;
    opacity: 0.9;
}

/* ═══════════════════ PRODUCT INFO PANEL ═══════════════════ */
.sd-product-info {
    padding-top: 0;
}
.sd-product-info__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.sd-product-info__cat {
    font-size: 0.8125rem;
    color: var(--sd-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Wishlist */
.sd-product-info__wishlist {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--sd-border);
    border-radius: 50%;
    background: transparent;
    color: var(--sd-text-secondary);
    cursor: pointer;
    transition: all var(--sd-transition);
}
.sd-product-info__wishlist:hover {
    border-color: #fca5a5;
    color: #ef4444;
    background: #fef2f2;
}
.sd-product-info__wishlist.is-active,
.sd-product-info__wishlist[aria-pressed="true"] {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}
.sd-product-info__wishlist[aria-pressed="true"] svg {
    fill: #ef4444;
}

/* Title */
.sd-product-info__title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ═══════════════════ PRICE BOX ═══════════════════ */
.sd-price-box {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
    border-radius: var(--sd-radius);
    border: 1px solid rgba(77, 170, 213, 0.15);
}
.sd-price-box__from {
    font-size: 0.8125rem;
    color: var(--sd-text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.sd-price-box__price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sd-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.sd-price-box__unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sd-text-secondary);
}
.sd-price-box__total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(77, 170, 213, 0.15);
    font-size: 0.9375rem;
    color: var(--sd-text-secondary);
}
.sd-price-box__total strong {
    font-size: 1.375rem;
    color: var(--sd-primary-dark);
    font-weight: 700;
}

/* SKU */
.sd-product-page p[style*="font-size:12px"] {
    font-size: 0.75rem !important;
    color: var(--sd-text-muted) !important;
    margin: 0 0 1rem !important;
    padding: 0.35rem 0.75rem;
    background: var(--sd-bg-subtle);
    border-radius: 100px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ═══════════════════ COLOR PICKER ═══════════════════ */
.sd-sticker-color-wrap {
    margin-bottom: 1.25rem;
}
.sd-color-picker-group {
    margin-bottom: 1rem;
}
.sd-color-picker-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text);
    margin-bottom: 0.625rem;
}
.sd-color-swatches {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
}
.sd-color-swatch {
    aspect-ratio: 1/1;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
    outline: none;
}
.sd-color-swatch:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.sd-color-swatch.is-active {
    border-color: #0F0F10;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0F0F10;
    transform: scale(1.0);
}
.sd-color-swatch input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ═══════════════════ DIMENSIONS FORM ═══════════════════ */
.sd-dimensions {
    margin-bottom: 1.25rem;
}
.sd-dimensions__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 0.5rem;
}
.sd-dimensions__hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--sd-primary);
    text-decoration: none;
    margin-bottom: 0.875rem;
    font-weight: 500;
    transition: color var(--sd-transition);
}
.sd-dimensions__hint:hover {
    color: var(--sd-primary-dark);
}
.sd-dimensions__fields {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.sd-dimensions__field {
    flex: 1;
}
.sd-dimensions__field label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sd-text-secondary);
    margin-bottom: 0.4rem;
}
.sd-dimensions__input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    overflow: hidden;
    transition: all var(--sd-transition);
    background: #fff;
}
.sd-dimensions__input-wrap:focus-within {
    border-color: var(--sd-primary);
    box-shadow: 0 0 0 3px rgba(77, 170, 213, 0.12);
}
.sd-dimensions__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 0.875rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--sd-text);
    background: transparent;
    -moz-appearance: textfield;
}
.sd-dimensions__input::placeholder {
    color: var(--sd-text-muted);
    font-weight: 400;
}
.sd-dimensions__input::-webkit-inner-spin-button,
.sd-dimensions__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sd-dimensions__unit {
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sd-text-muted);
    background: var(--sd-bg-subtle);
    border: none;
    border-inline-start: 1px solid var(--sd-border);
    cursor: default;
    white-space: nowrap;
}
.sd-dim-unit-inline {
    padding: 0.65rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sd-text-secondary);
    background: var(--sd-bg-subtle);
    border: none;
    border-inline-start: 1px solid var(--sd-border);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
}
.sd-dimensions__note {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--sd-text-muted);
    margin: 0.35rem 0 0;
}

/* Error Message */
.sd-error-msg {
    display: none;
    padding: 0.625rem 0.875rem;
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc2626;
    background: #fef2f2;
    border-radius: var(--sd-radius-sm);
    border: 1px solid #fecaca;
}
.sd-error-msg.is-visible {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ═══════════════════ PRODUCT OPTIONS ═══════════════════ */
.sd-product-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.25rem 0;
}
.sd-product-option {
    display: block;
    cursor: pointer;
}
.sd-product-option__check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sd-product-option__box {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    transition: all var(--sd-transition);
    background: #fff;
}
.sd-product-option__box svg {
    flex-shrink: 0;
    color: var(--sd-text-muted);
    transition: color var(--sd-transition);
}
.sd-product-option__box--header {
    cursor: default;
    border-color: transparent;
    padding-bottom: 0.35rem;
    padding-inline-start: 0;
}
.sd-product-option__check:checked + .sd-product-option__box {
    border-color: var(--sd-primary);
    background: var(--sd-primary-light);
}
.sd-product-option__check:checked + .sd-product-option__box svg {
    color: var(--sd-primary);
}
.sd-product-option__box:hover {
    border-color: var(--sd-border-hover);
    box-shadow: var(--sd-shadow-sm);
}
.sd-product-option__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text);
}
.sd-product-option__desc {
    font-size: 0.8125rem;
    color: var(--sd-text-muted);
    margin-inline-start: auto;
}

/* ═══════════════════ FILTERS (Radio Group) ═══════════════════ */
.sd-product-option--filters {
    cursor: default;
}
.sd-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.75rem;
}
.sd-filter-option {
    cursor: pointer;
}
.sd-filter-option__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sd-filter-option__label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    border: 1.5px solid var(--sd-border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sd-text-secondary);
    transition: all var(--sd-transition);
    background: #fff;
}
.sd-filter-option__input:checked + .sd-filter-option__label {
    border-color: var(--sd-primary);
    background: var(--sd-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(77, 170, 213, 0.3);
}
.sd-filter-option__label:hover {
    border-color: var(--sd-border-hover);
    background: var(--sd-bg-subtle);
}

/* ═══════════════════ SIZE VARIANTS ═══════════════════ */
.sd-size-variants {
    margin-bottom: 1.25rem;
}
.sd-size-variants__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 0.625rem;
}
.sd-size-variant {
    display: block;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.sd-size-variant.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.sd-size-variant__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sd-size-variant__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    transition: all var(--sd-transition);
    background: #fff;
}
.sd-size-variant__input:checked + .sd-size-variant__box {
    border-color: var(--sd-primary);
    background: var(--sd-primary-light);
    box-shadow: 0 0 0 2px rgba(77, 170, 213, 0.1);
}
.sd-size-variant__box:hover {
    border-color: var(--sd-border-hover);
    box-shadow: var(--sd-shadow-sm);
}
.sd-size-variant__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text);
}
.sd-size-variant__price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text-secondary);
}
.sd-size-variant__input:checked + .sd-size-variant__box .sd-size-variant__price {
    color: var(--sd-primary-dark);
}

/* Custom Dimensions */
.sd-custom-dims {
    margin-bottom: 1.25rem;
}

/* ═══════════════════ METER FORM ═══════════════════ */
.sd-meter-form {
    margin-bottom: 1.25rem;
}
.sd-meter-fixed-width {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--sd-bg-subtle);
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
}
.sd-meter-fixed-width__label {
    font-weight: 500;
    color: var(--sd-text-secondary);
}
.sd-meter-fixed-width__value {
    font-weight: 700;
    color: var(--sd-text);
}
.sd-meter-fixed-width__badge {
    margin-inline-start: auto;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--sd-text-muted);
    background: var(--sd-border);
    padding: 2px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sd-meter-price-total {
    margin: 0.875rem 0;
}
/* Meter +/- stepper */
.sd-meter-input-wrap {
    gap: 0;
}
.sd-meter-step-btn {
    flex-shrink: 0;
    width: 42px;
    height: 48px;
    border: none;
    background: var(--sd-bg-subtle);
    color: var(--sd-text);
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    transition: background var(--sd-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.sd-meter-step-btn:hover {
    background: var(--sd-border);
}
#sd-meter-minus {
    border-inline-end: 1px solid var(--sd-border);
    border-radius: 0 var(--sd-radius-sm) var(--sd-radius-sm) 0;
}
#sd-meter-plus {
    border-inline-start: 1px solid var(--sd-border);
    border-radius: var(--sd-radius-sm) 0 0 var(--sd-radius-sm);
}
.sd-meter-length-input {
    text-align: center;
    flex: 0 0 70px;
    padding-inline: 0.5rem;
}
.sd-meter-unit-label {
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sd-text-muted);
    background: var(--sd-bg-subtle);
    border-inline-start: 1px solid var(--sd-border);
    white-space: nowrap;
}

/* Sticker Form */
.sd-sticker-form {
    margin-bottom: 1.25rem;
}

/* ═══════════════════ CTA BUTTON ═══════════════════ */
.sd-btn-customize {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-primary-dark) 100%);
    border: none;
    border-radius: var(--sd-radius);
    cursor: pointer;
    transition: all var(--sd-transition);
    margin-top: 0.75rem;
    box-shadow: 0 4px 14px rgba(77, 170, 213, 0.35);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.sd-btn-customize::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--sd-transition);
    pointer-events: none;
}
.sd-btn-customize:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(77, 170, 213, 0.45);
}
.sd-btn-customize:hover::after {
    opacity: 1;
}
.sd-btn-customize:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(77, 170, 213, 0.3);
}
.sd-btn-customize--cart {
    background: linear-gradient(135deg, var(--sd-green) 0%, var(--sd-green-dark) 100%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.sd-btn-customize--cart:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}
.sd-btn-customize:disabled,
.sd-btn-customize.is-loading {
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

/* ═══════════════════ USPs ═══════════════════ */
.sd-usps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 1.75rem 0;
    background: var(--sd-bg-subtle);
    border-radius: var(--sd-radius);
    border: 1px solid var(--sd-border);
    overflow: hidden;
}
@media (min-width: 768px) {
    .sd-usps {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.sd-usps__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sd-text-secondary);
    border-bottom: 1px solid var(--sd-border);
    transition: background var(--sd-transition);
}
.sd-usps__item:hover {
    background: rgba(77, 170, 213, 0.03);
}
/* Remove bottom border from last row */
@media (min-width: 768px) {
    .sd-usps__item:nth-last-child(-n+3) {
        border-bottom: none;
    }
    /* Add vertical separators */
    .sd-usps__item:not(:nth-child(3n)) {
        border-inline-end: 1px solid var(--sd-border);
    }
}
@media (max-width: 767px) {
    .sd-usps__item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .sd-usps__item:not(:nth-child(2n)) {
        border-inline-end: 1px solid var(--sd-border);
    }
}
.sd-usps__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--sd-primary);
}

/* ═══════════════════ SAMPLE BOX ═══════════════════ */
.sd-sample-box {
    padding: 1.5rem;
    background: var(--sd-bg-warm);
    border: 1.5px solid var(--sd-border);
    border-radius: var(--sd-radius);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.sd-sample-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sd-primary), var(--sd-green));
}
.sd-sample-box__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 0.375rem;
}
.sd-sample-box__desc {
    font-size: 0.875rem;
    color: var(--sd-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.sd-sample-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-primary-dark);
    background: #fff;
    border: 1.5px solid var(--sd-primary);
    border-radius: var(--sd-radius-sm);
    cursor: pointer;
    transition: all var(--sd-transition);
}
.sd-sample-box__btn:hover {
    background: var(--sd-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(77, 170, 213, 0.3);
}
.sd-sample-box__features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
}
.sd-sample-box__feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sd-text-secondary);
}
.sd-sample-box__feature svg {
    color: var(--sd-green);
    flex-shrink: 0;
}

/* ═══════════════════ PRODUCT DESCRIPTION ═══════════════════ */
.sd-product-desc {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sd-border);
}
.sd-product-desc__excerpt {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--sd-text-secondary);
}
.sd-product-desc__full {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--sd-text-secondary);
    margin-top: 0.75rem;
}
.sd-product-desc__toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color var(--sd-transition);
}
.sd-product-desc__toggle:hover {
    color: var(--sd-primary-dark);
}

/* ═══════════════════ OUT OF STOCK ═══════════════════ */
.sd-product-page .out-of-stock {
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #dc2626;
    padding: 0.875rem 1rem;
    background: #fef2f2;
    border-radius: var(--sd-radius-sm);
    border: 1px solid #fecaca;
    margin-top: 0.75rem;
}

/* ═══════════════════ TOAST ═══════════════════ */
.sd-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    background: var(--sd-text);
    color: #fff;
    border-radius: var(--sd-radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--sd-shadow-lg);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.sd-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.sd-toast a {
    color: var(--sd-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══════════════════ CUSTOMIZER MODAL ═══════════════════ */
.sd-customizer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15,15,20,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.sd-customizer-overlay.is-open {
    display: flex;
}

/* Base modal (non-wall) */
.sd-customizer-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Close button */
.sd-customizer-modal__close {
    position: absolute;
    top: 0.875rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.375rem;
    line-height: 1;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    z-index: 10;
    right: 0.875rem;
}
[dir="rtl"] .sd-customizer-modal__close {
    right: auto;
    left: 0.875rem;
}
.sd-customizer-modal__close:hover {
    background: #fff;
    color: #222;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Material Selector (page-level, outside modal) */
.sd-materials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.25rem 0;
}
.sd-materials__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 0.35rem;
}
.sd-material-option {
    display: block;
    cursor: pointer;
}
.sd-material-option__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sd-material-option__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    transition: all var(--sd-transition);
    background: #fff;
}
.sd-material-option__input:checked + .sd-material-option__box {
    border-color: var(--sd-primary);
    background: var(--sd-primary-light);
}
.sd-material-option__box:hover {
    border-color: var(--sd-border-hover);
    box-shadow: var(--sd-shadow-sm);
}
.sd-material-option__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text);
}
.sd-material-option__desc {
    font-size: 0.8125rem;
    color: var(--sd-text-muted);
}
.sd-material-option__price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sd-text);
    white-space: nowrap;
}

/* ═══════════════════ WALL CUSTOMIZER MODAL ═══════════════════ */
.sd-customizer-modal--wall {
    max-width: 1100px;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}
.sd-customizer-modal--wall .sd-customizer-modal__close {
    top: 0.875rem;
}

/* ── Canvas Area ── */
.sd-wall-preview {
    position: relative;
    background: linear-gradient(180deg, #e8e5e0 0%, #dddad4 100%);
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 280px;
}
.sd-wall-canvas {
    width: 100%;
    height: auto;
    display: block;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.sd-wall-reset-btn {
    position: absolute;
    top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: rgba(30,30,30,0.6);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    left: 0.75rem;
}
[dir="rtl"] .sd-wall-reset-btn {
    left: auto;
    right: 0.75rem;
}
.sd-wall-reset-btn:hover {
    background: rgba(30,30,30,0.8);
}

/* ═══════════════════ CONTROLS PANEL ═══════════════════ */
.sd-customizer-panel {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

/* ── Toolbar Row (dims + toggles) ── */
.sd-cust-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.sd-cust-toolbar__group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sd-cust-toolbar__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.03em;
}
.sd-cust-toolbar__sep {
    width: 1px;
    height: 24px;
    background: #e5e5e5;
    margin: 0 0.25rem;
}

/* Dimension inputs (inline compact) */
.sd-cust-dim {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.sd-cust-dim__input {
    width: 64px;
    padding: 0.4rem 0.375rem;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--sd-text);
    background: #fafafa;
    transition: all 0.2s;
    -moz-appearance: textfield;
}
.sd-cust-dim__input::-webkit-inner-spin-button,
.sd-cust-dim__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sd-cust-dim__input:focus {
    outline: none;
    border-color: var(--sd-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77,170,213,0.1);
}
.sd-cust-dim__unit {
    font-size: 0.6875rem;
    color: #aaa;
    font-weight: 500;
}
.sd-cust-dim__x {
    font-size: 0.875rem;
    color: #ccc;
    margin: 0 0.125rem;
}

/* Toggle pills (mirror, lamination) */
.sd-cust-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.75rem;
    border: 1.5px solid #e2e2e2;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    white-space: nowrap;
}
.sd-cust-toggle:hover {
    border-color: #ccc;
    background: #fff;
}
.sd-cust-toggle:has(input:checked) {
    border-color: var(--sd-primary);
    background: rgba(77,170,213,0.06);
}
.sd-cust-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--sd-primary);
    cursor: pointer;
    margin: 0;
}
.sd-cust-toggle__text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
}

/* ── Materials Row ── */
.sd-cust-materials {
    display: flex;
    align-items: stretch;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}
.sd-cust-mat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.625rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-inline-end: 1px solid #f0f0f0;
    position: relative;
}
.sd-cust-mat:last-child {
    border-inline-end: none;
}
.sd-cust-mat input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sd-cust-mat:hover {
    background: #fafafa;
}
.sd-cust-mat:has(input:checked) {
    background: rgba(77,170,213,0.05);
}
.sd-cust-mat:has(input:checked)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--sd-primary);
    border-radius: 2px 2px 0 0;
}
.sd-cust-mat__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #555;
}
.sd-cust-mat:has(input:checked) .sd-cust-mat__name {
    color: var(--sd-primary-dark);
}
.sd-cust-mat__price {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--sd-text);
    letter-spacing: -0.01em;
}
.sd-cust-mat:has(input:checked) .sd-cust-mat__price {
    color: var(--sd-primary-dark);
}

/* ── Filters Row ── */
.sd-cust-filters {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sd-cust-filters__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    margin-inline-end: 0.25rem;
    flex-shrink: 0;
}
.sd-cust-filter {
    cursor: pointer;
    flex-shrink: 0;
}
.sd-cust-filter input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sd-cust-filter__pill {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #777;
    background: #f5f5f5;
    border: 1.5px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sd-cust-filter__pill:hover {
    background: #eee;
    color: #555;
}
.sd-cust-filter input:checked + .sd-cust-filter__pill {
    background: rgba(77,170,213,0.08);
    border-color: var(--sd-primary);
    color: var(--sd-primary-dark);
    font-weight: 700;
}

/* ═══════════════════ ACTION BAR (always visible footer) ═══════════════════ */
.sd-cust-action {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

/* Info block: dims + area */
.sd-cust-action__info {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
}
.sd-cust-action__dims {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text);
    white-space: nowrap;
}
.sd-cust-action__meta {
    font-size: 0.75rem;
    color: #999;
}

/* Price */
.sd-cust-action__price {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--sd-text);
    letter-spacing: -0.025em;
    white-space: nowrap;
    margin-inline-start: auto;
}

/* ADD TO CART — Big green CTA */
.sd-cust-action__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 155px;
    box-shadow: 0 4px 14px rgba(22,163,74,0.3);
    width: auto !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
}
.sd-cust-action__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.sd-cust-action__btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(22,163,74,0.4) !important;
}
.sd-cust-action__btn:hover::after {
    opacity: 1;
}
.sd-cust-action__btn:active {
    transform: translateY(0) !important;
}
.sd-cust-action__btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}
.sd-cust-action__btn svg {
    flex-shrink: 0;
}

/* Hidden internal elements */
.sd-customizer-dims { display: none; }
.sd-customizer-summary { display: none; }
.sd-customizer-controls-row,
.sd-customizer-controls-row2 { display: none; }
.sd-modal-dims-edit { display: none; }
.sd-modal-dims-edit__title { display: none; }
.sd-panel-section { display: none; }
.sd-panel-footer { display: none; }

/* Materials inline (legacy/page-level) */
.sd-materials--inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.375rem;
    margin: 0 !important;
    flex-wrap: wrap;
}
.sd-materials--inline .sd-materials__title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 !important;
    margin-inline-end: 0.125rem !important;
    white-space: nowrap;
}
.sd-materials--inline .sd-material-option {
    display: inline-flex !important;
    margin: 0 !important;
}
.sd-materials--inline .sd-material-option__box {
    padding: 0.3rem 0.625rem;
    font-size: 0.75rem;
    gap: 0.25rem;
    border-radius: 100px;
}
.sd-materials--inline .sd-material-option__desc,
.sd-materials--inline .sd-material-option__box br {
    display: none !important;
}
.sd-materials--inline .sd-material-option__name {
    font-size: 0.75rem;
}
.sd-materials--inline .sd-material-option__price {
    font-size: 0.75rem;
    font-weight: 700;
}

/* ═══════════════════ CUSTOMIZER RESPONSIVE ═══════════════════ */
@media (max-width: 767px) {
    .sd-customizer-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .sd-customizer-modal--wall {
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 20px 20px 0 0;
    }
    .sd-cust-toolbar {
        padding: 0.625rem 1rem;
        gap: 0.5rem;
    }
    .sd-cust-action {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .sd-cust-action__price {
        font-size: 1.375rem;
    }
    .sd-cust-action__btn {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.8rem 1rem !important;
    }
    .sd-cust-materials {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sd-cust-mat {
        min-width: 90px;
    }
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 991px) {
    .sd-gallery {
        position: static;
    }
    .sd-product-info__title {
        font-size: 1.375rem;
    }
    .sd-price-box__price {
        font-size: 1.75rem;
    }
}
@media (max-width: 575px) {
    .sd-usps {
        grid-template-columns: 1fr;
    }
    .sd-usps__item:not(:last-child) {
        border-inline-end: none !important;
    }
    .sd-usps__item:last-child {
        border-bottom: none;
    }
    .sd-dimensions__fields {
        flex-direction: column;
    }
    .sd-product-info__title {
        font-size: 1.25rem;
    }
    .sd-price-box {
        padding: 1rem 1.125rem;
    }
    .sd-price-box__price {
        font-size: 1.5rem;
    }
}

/* ═══════════════════ WOOCOMMERCE TABS ═══════════════════ */
.sd-product-page .woocommerce-tabs {
    margin-top: 3rem;
    padding: 0 1rem;
    max-width: 960px;
    margin-inline: auto;
}

/* Tab Navigation */
.sd-product-page .woocommerce-tabs ul.wc-tabs,
.sd-product-page .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 0 0;
    border-bottom: 2px solid var(--sd-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sd-product-page .woocommerce-tabs ul.wc-tabs::before,
.sd-product-page .woocommerce-tabs ul.wc-tabs::after,
.sd-product-page .woocommerce-tabs ul.tabs::before,
.sd-product-page .woocommerce-tabs ul.tabs::after {
    display: none;
}

.sd-product-page .woocommerce-tabs ul.wc-tabs li,
.sd-product-page .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    position: relative;
}
.sd-product-page .woocommerce-tabs ul.wc-tabs li::before,
.sd-product-page .woocommerce-tabs ul.wc-tabs li::after,
.sd-product-page .woocommerce-tabs ul.tabs li::before,
.sd-product-page .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.sd-product-page .woocommerce-tabs ul.wc-tabs li a,
.sd-product-page .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--sd-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--sd-transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.sd-product-page .woocommerce-tabs ul.wc-tabs li a:hover,
.sd-product-page .woocommerce-tabs ul.tabs li a:hover {
    color: var(--sd-text);
}
.sd-product-page .woocommerce-tabs ul.wc-tabs li.active a,
.sd-product-page .woocommerce-tabs ul.tabs li.active a {
    color: var(--sd-primary);
    border-bottom-color: var(--sd-primary);
}

/* Tab Panels */
.sd-product-page .woocommerce-tabs .woocommerce-Tabs-panel,
.sd-product-page .woocommerce-tabs .panel {
    padding: 2rem 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--sd-text-secondary);
}
.sd-product-page .woocommerce-tabs .woocommerce-Tabs-panel h2,
.sd-product-page .woocommerce-tabs .panel h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 1rem;
}
.sd-product-page .woocommerce-tabs .woocommerce-Tabs-panel p,
.sd-product-page .woocommerce-tabs .panel p {
    margin: 0 0 1rem;
}
.sd-product-page .woocommerce-tabs .woocommerce-Tabs-panel p:last-child,
.sd-product-page .woocommerce-tabs .panel p:last-child {
    margin-bottom: 0;
}

/* Additional Information Table */
.sd-product-page .woocommerce-tabs .shop_attributes {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.sd-product-page .woocommerce-tabs .shop_attributes th,
.sd-product-page .woocommerce-tabs .shop_attributes td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sd-border);
    text-align: start;
}
.sd-product-page .woocommerce-tabs .shop_attributes th {
    font-weight: 600;
    color: var(--sd-text);
    background: var(--sd-bg-subtle);
    width: 35%;
}
.sd-product-page .woocommerce-tabs .shop_attributes td {
    color: var(--sd-text-secondary);
}
.sd-product-page .woocommerce-tabs .shop_attributes td p {
    margin: 0;
}
.sd-product-page .woocommerce-tabs .shop_attributes tr:last-child th,
.sd-product-page .woocommerce-tabs .shop_attributes tr:last-child td {
    border-bottom: none;
}

/* Reviews Tab */
.sd-product-page .woocommerce-tabs #comments {
    margin: 0;
}
.sd-product-page .woocommerce-tabs .woocommerce-Reviews-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 1.5rem;
}
.sd-product-page .woocommerce-tabs .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sd-product-page .woocommerce-tabs .commentlist li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--sd-border);
}
.sd-product-page .woocommerce-tabs .commentlist li:last-child {
    border-bottom: none;
}
.sd-product-page .woocommerce-tabs .comment-text {
    margin: 0;
}
.sd-product-page .woocommerce-tabs .comment-text .meta {
    font-size: 0.8125rem;
    color: var(--sd-text-muted);
    margin-bottom: 0.5rem;
}
.sd-product-page .woocommerce-tabs .comment-text .description p {
    margin: 0;
    color: var(--sd-text-secondary);
    line-height: 1.65;
}
.sd-product-page .woocommerce-tabs .star-rating {
    color: #f59e0b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Review Form */
.sd-product-page .woocommerce-tabs #review_form_wrapper {
    margin-top: 2rem;
}
.sd-product-page .woocommerce-tabs .comment-reply-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 1rem;
}
.sd-product-page .woocommerce-tabs .comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text);
    margin-bottom: 0.35rem;
}
.sd-product-page .woocommerce-tabs .comment-form input[type="text"],
.sd-product-page .woocommerce-tabs .comment-form input[type="email"],
.sd-product-page .woocommerce-tabs .comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--sd-border);
    border-radius: var(--sd-radius-sm);
    font-size: 0.9375rem;
    color: var(--sd-text);
    background: #fff;
    transition: border-color var(--sd-transition), box-shadow var(--sd-transition);
}
.sd-product-page .woocommerce-tabs .comment-form input:focus,
.sd-product-page .woocommerce-tabs .comment-form textarea:focus {
    outline: none;
    border-color: var(--sd-primary);
    box-shadow: 0 0 0 3px var(--sd-primary-light);
}
.sd-product-page .woocommerce-tabs .comment-form .form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--sd-primary), var(--sd-primary-dark));
    border: none;
    border-radius: var(--sd-radius-sm);
    cursor: pointer;
    transition: all var(--sd-transition);
    box-shadow: 0 2px 8px rgba(77, 170, 213, 0.25);
}
.sd-product-page .woocommerce-tabs .comment-form .form-submit input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(77, 170, 213, 0.35);
}

/* No reviews message */
.sd-product-page .woocommerce-tabs .woocommerce-noreviews {
    color: var(--sd-text-muted);
    font-size: 0.9375rem;
    padding: 1.5rem 0;
}

/* Responsive tabs */
@media (max-width: 575px) {
    .sd-product-page .woocommerce-tabs ul.wc-tabs li a,
    .sd-product-page .woocommerce-tabs ul.tabs li a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    .sd-product-page .woocommerce-tabs .woocommerce-Tabs-panel,
    .sd-product-page .woocommerce-tabs .panel {
        padding: 1.5rem 0;
    }
}

/* ═══════════════════ WALL COLOR PICKER ═══════════════════ */
.sd-wall-color-wrap {
    margin-bottom: 1.25rem;
}
.sd-wall-color-section__header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}
.sd-wall-color-section__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-text);
}
.sd-wall-color-section__note {
    font-size: 0.75rem;
    color: var(--sd-text-muted, #999);
    font-weight: 400;
}
.sd-wall-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sd-wall-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.sd-wall-swatch:hover {
    transform: scale(1.15);
}
.sd-wall-swatch.is-active {
    border-color: var(--sd-text);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sd-text);
    transform: scale(1.1);
}
.sd-wall-swatch--picker {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.sd-wall-swatch input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ═══════════════════ SUBTLE MIRROR TOGGLE ═══════════════════ */
.sd-mirror-option {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}
.sd-mirror-option__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--sd-text);
    font-size: 0.9375rem;
    font-weight: 700;
}
.sd-mirror-option__check {
    width: 16px;
    height: 16px;
    accent-color: var(--sd-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.sd-mirror-option__text {
    user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ + INSTALLATION VIDEOS SECTION
   ═══════════════════════════════════════════════════════════════════ */

.sd-faq-section {
    margin-top: 0;
    padding: 4.5rem 0 5rem;
    background: #ffffff;
    border-top: none;
    position: relative;
}
.sd-faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-secondary, #007ea9);
    border-radius: 2px;
}

/* ── Section Header ── */
.sd-faq-section__header {
    text-align: center;
    margin-bottom: 3rem;
}
.sd-faq-section__eyebrow {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-secondary, #007ea9);
    margin-bottom: 0.75rem;
}
.sd-faq-section__heading {
    font-size: clamp(1.6rem, 3.5vw, 2.125rem);
    font-weight: 800;
    color: var(--color-text, #191919);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Layout: side-by-side on desktop, stacked on mobile */
.sd-faq-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}
.sd-faq-layout--split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
    max-width: none;
}
@media (max-width: 900px) {
    .sd-faq-layout--split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ── Column Titles ── */
.sd-faq-col__title,
.sd-videos-col__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text, #191919);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sd-faq-col__title::before,
.sd-videos-col__title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--color-secondary, #007ea9);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── FAQ Accordion ── */
.sd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    border-top: none;
}
.sd-faq-item {
    border-bottom: none;
    background: var(--color-background-muted, #f9fafb);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e9ecef);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sd-faq-item:hover {
    border-color: rgba(0, 126, 169, 0.25);
}
.sd-faq-item:has(.sd-faq-item__btn[aria-expanded="true"]) {
    border-color: var(--color-secondary, #007ea9);
    box-shadow: 0 2px 12px rgba(0, 126, 169, 0.08);
    background: #fff;
}
.sd-faq-item__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.125rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    color: var(--color-text, #191919);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.15s;
}
.sd-faq-item__btn:hover {
    color: var(--color-secondary, #007ea9);
}
.sd-faq-item__btn[aria-expanded="true"] {
    color: var(--color-secondary, #007ea9);
}
.sd-faq-item__q {
    flex: 1;
}
.sd-faq-item__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color, #e9ecef);
    color: var(--color-text-muted, #6c757d);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sd-faq-item__btn:hover .sd-faq-item__icon {
    background: rgba(0, 126, 169, 0.08);
    border-color: rgba(0, 126, 169, 0.3);
    color: var(--color-secondary, #007ea9);
}
.sd-faq-item__btn[aria-expanded="true"] .sd-faq-item__icon {
    transform: rotate(180deg);
    background: var(--color-secondary, #007ea9);
    border-color: var(--color-secondary, #007ea9);
    color: #fff;
}
.sd-faq-item__ans {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.25rem;
}
.sd-faq-item__ans:not([hidden]) {
    max-height: 600px;
    padding: 0 1.25rem 1.25rem;
}
.sd-faq-item__ans[hidden] {
    display: block !important;
    max-height: 0;
    padding: 0 1.25rem;
}
.sd-faq-item__ans p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted, #6c757d);
    line-height: 1.8;
    border-top: 1px solid var(--border-color, #e9ecef);
    padding-top: 1rem;
}

/* ── FAQ Footer CTA ── */
.sd-faq-col__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted, #6c757d);
    padding: 1rem 1.5rem;
    background: var(--color-background-muted, #f9fafb);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e9ecef);
}
.sd-faq-col__cta a {
    color: var(--color-secondary, #007ea9);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.2s;
}
.sd-faq-col__cta a:hover {
    border-bottom-color: var(--color-secondary, #007ea9);
}

/* ── Videos Column ── */
.sd-videos-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sd-video-card {
    background: #fff;
    border: 1px solid var(--sd-border, #e2e8f0);
    border-radius: var(--sd-radius, 12px);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.sd-video-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Thumbnail / embed wrapper */
.sd-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    cursor: pointer;
    overflow: hidden;
}
.sd-video-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s, transform 0.3s;
}
.sd-video-card:hover .sd-video-thumb__img {
    opacity: 0.88;
    transform: scale(1.02);
}
.sd-video-thumb__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}
.sd-video-thumb__play:hover {
    transform: scale(1.1);
}
.sd-video-thumb__play svg {
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4));
}
.sd-video-thumb__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.85rem;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

/* iframe that replaces thumbnail on play */
.sd-video-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Download link */
.sd-video-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.6rem 1rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sd-text-secondary, #64748b);
    text-decoration: none;
    transition: color 0.15s;
}
.sd-video-download:hover {
    color: var(--sd-primary, #4DAAD5);
}

/* ═══════════════════════════════════════════════════════════════════
   CROSS-SELL SECTION — "יש לכם הכל?"
   ═══════════════════════════════════════════════════════════════════ */

.sd-xsell-section {
    padding: 4.5rem 0 5rem;
    background: #FAFAFA;
    border-top: 1px solid #F3F4F6;
}
/* Break out of the constrained parent (.container py-5) so the gray bg
   spans the full viewport width, like the related/UGC sections. */
.sd-product-v2 .sd-xsell-section,
body.single-product .sd-xsell-section {
    margin-inline-start: calc(50% - 50vw);
    margin-inline-end:   calc(50% - 50vw);
}
.sd-xsell-section > .container {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── Section Header ── */
.sd-xsell-section__eyebrow {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary, #007ea9);
    margin-bottom: 0.75rem;
}
.sd-xsell-section__title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.125rem);
    font-weight: 800;
    color: var(--color-text, #191919);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.sd-xsell-section__subtitle {
    display: block;
    text-align: center;
    color: var(--color-text-muted, #6c757d);
    font-size: 0.9375rem;
    margin: 0 0 2.75rem;
}

/* 4-column grid, collapses on smaller screens — centered when fewer items */
.sd-xsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: center;
    gap: 1.5rem;
}
@media (max-width: 1100px) {
    .sd-xsell-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .sd-xsell-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ── Card ── */
.sd-xsell-card {
    background: #fff;
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.sd-xsell-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Image */
.sd-xsell-card__img-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}
.sd-xsell-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 1rem;
    transition: transform 0.4s ease;
}
.sd-xsell-card:hover .sd-xsell-card__img {
    transform: scale(1.05);
}

/* Body */
.sd-xsell-card__body {
    padding: 1rem 1.125rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}
.sd-xsell-card__name-link {
    text-decoration: none;
    color: inherit;
}
.sd-xsell-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text, #191919);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sd-xsell-card__note {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-text-muted, #6c757d);
    margin: 0;
    line-height: 1.4;
}
.sd-xsell-card__note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-text-muted, #6c757d);
    opacity: 0.6;
}

/* Info accordion */
.sd-xsell-card__info-wrap {
    margin-top: auto;
    padding-top: 0.5rem;
}
.sd-xsell-info-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    border-top: 1px solid var(--border-color, #e9ecef);
    width: 100%;
    padding: 0.5rem 0 0;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--color-text-muted, #6c757d);
    text-align: right;
    transition: color 0.15s;
}
.sd-xsell-info-btn:hover {
    color: var(--color-secondary, #007ea9);
}
.sd-xsell-info-btn svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    margin-right: auto;
}
.sd-xsell-info-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.sd-xsell-info-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.8rem;
    color: var(--color-text-muted, #6c757d);
    line-height: 1.6;
    padding: 0;
}
.sd-xsell-info-body:not([hidden]) {
    max-height: 300px;
    padding: 0.5rem 0 0;
}
.sd-xsell-info-body[hidden] {
    display: block !important;
    max-height: 0;
    padding: 0;
}

/* Footer: price + full-width button */
.sd-xsell-card__footer {
    padding: 0.25rem 1.125rem 1.125rem;
    flex-shrink: 0;
}
.sd-xsell-card__price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text, #191919);
    line-height: 1;
    margin-bottom: 0.7rem;
}
.sd-xsell-card__price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

/* Add button — full width */
.sd-xsell-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--color-secondary, #007ea9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.sd-xsell-add-btn:hover {
    background: #006a8e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 126, 169, 0.3);
}
.sd-xsell-add-btn--link:hover {
    color: #fff;
}
.sd-xsell-add-btn.is-added {
    background: #16a34a;
}
.sd-xsell-add-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   v6 — IMAGE-DOMINANT CUSTOMIZER (overrides for .sd-customizer-modal--v6)
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --v6-blue: #4DAAD5;
    --v6-blue-hover: #3A95BF;
    --v6-ink: #0F0F10;
    --v6-ink-700: #2A2A2D;
    --v6-ink-500: #6B7280;
    --v6-ink-400: #9CA3AF;
    --v6-ink-200: #E5E7EB;
    --v6-ink-100: #F3F4F6;
    --v6-ink-50: #FAFAFA;
}

.sd-customizer-modal.sd-customizer-modal--v6 {
    max-width: 1180px !important;
    max-height: 94vh !important;
    padding: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    box-shadow: 0 40px 90px -24px rgba(15,15,16,.5), 0 0 0 1px rgba(15,15,16,.04) !important;
}

/* Header */
.sd-cust-v6-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid var(--v6-ink-100);
    flex-shrink: 0;
    gap: 16px;
    background: #fff;
}
.sd-cust-v6-head__product { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.sd-cust-v6-head__thumb {
    width: 42px; height: 42px;
    border-radius: 10px;
    background-size: cover; background-position: center;
    flex-shrink: 0;
    border: 1px solid var(--v6-ink-100);
}
.sd-cust-v6-head__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.sd-cust-v6-head__eyebrow {
    font-size: 10.5px; font-weight: 800; color: var(--v6-blue);
    letter-spacing: .12em; text-transform: uppercase; line-height: 1;
}
.sd-cust-v6-head h2 {
    font-size: 16.5px; font-weight: 900; letter-spacing: -.025em; line-height: 1.2;
    color: var(--v6-ink); margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-cust-v6-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--v6-ink-50);
    color: var(--v6-ink);
    display: grid; place-items: center;
    transition: all .25s;
    flex-shrink: 0;
    border: none; cursor: pointer;
    position: static !important; top: auto !important; left: auto !important; right: auto !important;
}
.sd-cust-v6-close:hover { background: var(--v6-ink); color: #fff; transform: rotate(90deg); }
.sd-cust-v6-close svg { width: 16px; height: 16px; }

/* Body grid */
.sd-cust-v6-body {
    flex: 1 1 auto; overflow: auto;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 2.8fr 1fr;
    gap: 20px;
    background: #fff;
    min-height: 0;
}

/* Cropper wrap */
.sd-cust-v6-cropper-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sd-cust-v6-cropper-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-cust-v6-cropper-head__title {
    font-size: 13.5px; font-weight: 800; color: var(--v6-ink);
    display: inline-flex; align-items: center; gap: 9px;
}
.sd-cust-v6-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--v6-ink);
    color: #fff;
    font-size: 11.5px; font-weight: 800;
    display: grid; place-items: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Frame wrap (with dim lines outside the canvas) */
.sd-cust-v6-frame-wrap {
    position: relative;
    padding: 0 22px 22px 22px;
    flex: 1;
    min-height: 0;
}
.sd-cust-v6-cropper {
    background:
        linear-gradient(45deg, var(--v6-ink-100) 25%, transparent 25%) 0 0/18px 18px,
        linear-gradient(-45deg, var(--v6-ink-100) 25%, transparent 25%) 0 9px/18px 18px,
        linear-gradient(45deg, transparent 75%, var(--v6-ink-100) 75%) 9px -9px/18px 18px,
        linear-gradient(-45deg, transparent 75%, var(--v6-ink-100) 75%) -9px 0/18px 18px,
        #fff !important;
    border: 1px solid var(--v6-ink-100) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    box-shadow: inset 0 0 0 1px rgba(15,15,16,.02), 0 6px 24px rgba(15,15,16,.06) !important;
    min-height: 360px;
    flex: none !important;
    padding: 0 !important;
}
.sd-cust-v6-cropper canvas.sd-wall-canvas {
    /* The canvas's internal pixel resolution is 1200x750 (8:5). When we
       stretched it to width:100% AND height:100% of the container, the
       container's aspect ratio (which depends on viewport / drawer
       width) didn't match 8:5 — so the canvas contents got squished
       horizontally on mobile. Force the canvas to render at its
       natural aspect ratio so the wallpaper image inside stays in
       its real proportions, never stretched. */
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1200 / 750 !important;
    max-height: 100% !important;
    display: block !important;
    margin: auto !important;
}

/* Width dim line — below */
.sd-cust-v6-dim-w {
    position: absolute;
    bottom: 0; left: 22px; right: 22px;
    height: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 700;
    color: var(--v6-ink-700);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.sd-cust-v6-dim-w::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: var(--v6-ink-200);
    transform: translateY(-50%);
}
.sd-cust-v6-dim-w span {
    background: #fff;
    padding: 1px 10px;
    position: relative; z-index: 1;
    color: var(--v6-ink-700);
}

/* Height dim line — outside the cropper, on the right (RTL) */
.sd-cust-v6-dim-h {
    position: absolute;
    top: 0; bottom: 22px;
    width: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 700;
    color: var(--v6-ink-700);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.sd-cust-v6-dim-h { left: 0; }
[dir="rtl"] .sd-cust-v6-dim-h { left: auto; right: 0; }
.sd-cust-v6-dim-h::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 1px; background: var(--v6-ink-200);
    transform: translateX(-50%);
}
.sd-cust-v6-dim-h span {
    background: #fff;
    padding: 6px 1px;
    position: relative; z-index: 1;
    writing-mode: vertical-rl;
    color: var(--v6-ink-700);
}

/* Cropper bar */
.sd-cust-v6-cropper-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px;
    background: var(--v6-ink-50);
    border-radius: 12px;
}
.sd-cust-v6-hint {
    font-size: 12px; color: var(--v6-ink-500); font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
}
.sd-cust-v6-hint svg { width: 13px; height: 13px; color: var(--v6-ink-400); }
.sd-cust-v6-btn,
.sd-cust-v6-cropper-bar .sd-wall-reset-btn {
    position: static !important;
    display: inline-flex !important; align-items: center !important; gap: 5px !important;
    padding: 7px 11px !important;
    background: #fff !important;
    border: 1.5px solid var(--v6-ink-200) !important;
    border-radius: 999px !important;
    font-size: 12px !important; font-weight: 700 !important;
    color: var(--v6-ink-700) !important;
    cursor: pointer !important;
    transition: all .15s !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
}
.sd-cust-v6-btn:hover,
.sd-cust-v6-cropper-bar .sd-wall-reset-btn:hover { border-color: var(--v6-ink) !important; color: var(--v6-ink) !important; background: #fff !important; }
.sd-cust-v6-btn svg { width: 13px; height: 13px; }

/* Sidebar */
.sd-cust-v6-side { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.sd-cust-v6-section { padding: 0 0 18px; position: relative; }
.sd-cust-v6-section + .sd-cust-v6-section { padding-top: 18px; border-top: 1px solid var(--v6-ink-100); }
.sd-cust-v6-section h3 {
    font-size: 13px; font-weight: 800; color: var(--v6-ink);
    margin: 0 0 12px 0; letter-spacing: -.005em;
    display: flex; align-items: center; gap: 9px;
    text-transform: none;
}
.sd-cust-v6-meta {
    margin-inline-start: auto;
    font-size: 11.5px; font-weight: 600; color: var(--v6-ink-500);
}

/* Dimensions inputs */
.sd-cust-v6-dims-row { display: flex; gap: 10px; min-width: 0; }
.sd-cust-v6-dims-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sd-cust-v6-dims-label {
    font-size: 11.5px; font-weight: 600; color: var(--v6-ink-500);
    letter-spacing: .04em; text-transform: uppercase;
}
.sd-cust-v6-dims-wrap {
    display: flex; align-items: stretch;
    background: #fff;
    border: 1.5px solid var(--v6-ink-200);
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
    transition: border-color .15s;
}
.sd-cust-v6-dims-wrap:focus-within { border-color: var(--v6-ink); }
.sd-cust-v6-dims-input {
    flex: 1; min-width: 0; width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 0; outline: 0;
    font-size: 14px; font-weight: 700;
    color: var(--v6-ink);
    font-variant-numeric: tabular-nums;
    text-align: end;
    appearance: textfield; -moz-appearance: textfield;
}
.sd-cust-v6-dims-input::-webkit-inner-spin-button,
.sd-cust-v6-dims-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sd-cust-v6-dims-unit {
    flex-shrink: 0;
    background: var(--v6-ink-50);
    border: 0; border-inline-start: 1px solid var(--v6-ink-200);
    font-size: 12.5px; font-weight: 600; color: var(--v6-ink-500);
    padding: 0 12px;
    display: flex; align-items: center;
}

/* Save proportions checkbox */
.sd-cust-v6-lock {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--v6-ink-50);
    border: 1.5px solid var(--v6-ink-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    font-size: 12.5px; font-weight: 600;
    color: var(--v6-ink);
    width: 100%;
    position: relative;
}
.sd-cust-v6-lock:hover { border-color: var(--v6-ink-700); }
.sd-cust-v6-lock:has(input:checked) { border-color: var(--v6-blue); background: rgba(77,170,213,.06); }
.sd-cust-v6-lock input { position: absolute; opacity: 0; pointer-events: none; }
.sd-cust-v6-lock__check {
    width: 18px; height: 18px;
    border: 1.5px solid var(--v6-ink-200);
    border-radius: 5px;
    display: grid; place-items: center;
    flex-shrink: 0;
    background: #fff;
    transition: all .15s;
}
.sd-cust-v6-lock:has(input:checked) .sd-cust-v6-lock__check { background: var(--v6-blue); border-color: var(--v6-blue); }
.sd-cust-v6-lock__check svg {
    width: 11px; height: 11px; color: #fff;
    opacity: 0; transform: scale(.6); transition: all .15s;
}
.sd-cust-v6-lock:has(input:checked) .sd-cust-v6-lock__check svg { opacity: 1; transform: scale(1); }
.sd-cust-v6-lock__text { flex: 1; }
.sd-cust-v6-lock__ratio {
    font-variant-numeric: tabular-nums;
    font-size: 11.5px; font-weight: 700;
    color: var(--v6-blue);
    background: rgba(77,170,213,.12);
    padding: 2px 8px;
    border-radius: 999px;
}
.sd-cust-v6-lock:not(:has(input:checked)) .sd-cust-v6-lock__ratio { display: none; }

/* Materials */
.sd-cust-v6-mats { display: flex; flex-direction: column; gap: 8px; }
.sd-cust-v6-mat {
    display: flex; align-items: center;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--v6-ink-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
}
.sd-cust-v6-mat:hover { border-color: var(--v6-ink-700); }
.sd-cust-v6-mat:has(input:checked) {
    border-color: var(--v6-blue);
    background: rgba(77,170,213,.04);
    box-shadow: 0 0 0 3px rgba(77,170,213,.06);
}
.sd-cust-v6-mat input { position: absolute; opacity: 0; pointer-events: none; }
.sd-cust-v6-mat__radio {
    width: 20px; height: 20px;
    border: 1.5px solid var(--v6-ink-200);
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
    background: #fff;
    transition: all .15s;
    position: relative;
}
.sd-cust-v6-mat:has(input:checked) .sd-cust-v6-mat__radio { border-color: var(--v6-blue); }
.sd-cust-v6-mat__radio::after {
    content: ''; width: 10px; height: 10px;
    background: var(--v6-blue); border-radius: 50%;
    opacity: 0; transform: scale(.4); transition: all .15s;
}
.sd-cust-v6-mat:has(input:checked) .sd-cust-v6-mat__radio::after { opacity: 1; transform: scale(1); }
.sd-cust-v6-mat__body { flex: 1; padding: 0 12px; min-width: 0; }
.sd-cust-v6-mat__name { font-size: 13.5px; font-weight: 700; color: var(--v6-ink); display: block; }
.sd-cust-v6-mat__desc { font-size: 11.5px; color: var(--v6-ink-500); margin-top: 2px; line-height: 1.4; display: block; }
/* Compact card when there's no description — used for the
   "ויניל ללא למינציה" option which is a quick variant of the main
   vinyl, not a different physical material. Reduces vertical chrome
   so the card reads as a single thin row in the sidebar. */
.sd-cust-v6-mat:not(:has(.sd-cust-v6-mat__desc)) {
    padding-block: 7px;
}
.sd-cust-v6-mat:not(:has(.sd-cust-v6-mat__desc)) .sd-cust-v6-mat__name {
    font-size: 13px;
}
.sd-cust-v6-mat__badge {
    display: inline-block;
    font-size: 10px; font-weight: 800;
    color: var(--v6-blue);
    background: rgba(77,170,213,.12);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: .03em;
    margin-inline-start: 6px;
    vertical-align: 1px;
}

/* Footer */
.sd-cust-v6-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid var(--v6-ink-100);
    background: var(--v6-ink-50);
    flex-shrink: 0;
    gap: 16px;
}
.sd-cust-v6-foot-trust {
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; color: var(--v6-ink-500); font-weight: 600;
    flex-wrap: wrap;
}
.sd-cust-v6-foot-trust span { display: inline-flex; align-items: center; gap: 5px; }
.sd-cust-v6-foot-trust svg { width: 13px; height: 13px; color: var(--v6-blue); flex-shrink: 0; }
.sd-cust-v6-foot-end { display: flex; align-items: center; gap: 14px; }
.sd-cust-v6-total { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1; }
.sd-cust-v6-total__label {
    font-size: 10.5px; font-weight: 700; color: var(--v6-ink-500);
    text-transform: uppercase; letter-spacing: .08em;
}
.sd-cust-v6-total__val {
    font-size: 22px; font-weight: 900; color: var(--v6-ink);
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
}
.sd-cust-v6-cta {
    display: inline-flex !important; align-items: center !important; gap: 9px !important;
    padding: 14px 26px !important;
    background: var(--v6-ink) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 14px !important; font-weight: 800 !important;
    transition: all .25s !important;
    box-shadow: 0 4px 14px rgba(15,15,16,.18) !important;
    white-space: nowrap !important;
    border: 0 !important; cursor: pointer !important;
    height: 46px !important;
    position: relative !important; overflow: hidden !important;
}
.sd-cust-v6-cta:hover { box-shadow: 0 8px 24px rgba(77,170,213,.45) !important; transform: translateY(-1px) !important; background: var(--v6-blue) !important; }
.sd-cust-v6-cta:active { transform: translateY(0) !important; }
.sd-cust-v6-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Mobile */
@media (max-width: 760px) {
    .sd-customizer-modal.sd-customizer-modal--v6 {
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    /* Maximize horizontal real-estate for the wall preview on mobile —
       keep just enough padding for the dim labels (240/360 ס"מ) which sit
       on the right and bottom of the cropper. Desktop is untouched. */
    .sd-cust-v6-body { grid-template-columns: 1fr !important; padding: 8px !important; gap: 14px; }
    .sd-cust-v6-foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
    .sd-cust-v6-cta { justify-content: center; width: 100%; padding: 14px 20px !important; }
    .sd-cust-v6-foot-trust { justify-content: center; gap: 14px; font-size: 11.5px; }
    .sd-cust-v6-cropper-wrap { gap: 8px !important; padding: 0 !important; }
    /* Bug fix: on mobile the cropper container previously had height:100%
       + min-height:280px which, on short viewports, forced the canvas's
       max-height:100% to win over its aspect-ratio:1200/750 — that
       squished the bitmap horizontally (the wall image appeared
       distorted, closer to 1:1 than to its real aspect). Locking the
       cropper itself to 1200/750 makes the box take its natural shape
       from its width, the canvas fills it 100×100, and no asymmetric
       scaling can occur. */
    .sd-cust-v6-cropper {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1200 / 750 !important;
        width: 100% !important;
    }
    .sd-cust-v6-cropper canvas.sd-wall-canvas {
        height: 100% !important;
        max-height: none !important;
        width: 100% !important;
        aspect-ratio: auto !important;
    }
    /* Make sure the dim labels stay visible (the user requested this). */
    .sd-cust-v6-dim-h, .sd-cust-v6-dim-w { font-size: 11px; }
}
