/* ========== Brand Carousel Widget ========== */
.sdz-brand-carousel {
    position: relative;
    overflow: hidden;
}

.sdz-brand-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: var(--sdz-gap, 6px);
}

.sdz-brand-carousel__track::-webkit-scrollbar {
    display: none;
}

.sdz-brand-card {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - var(--sdz-gap, 6px) * (var(--sdz-slides, 9) - 1)) / var(--sdz-slides, 9));
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #333;
    text-decoration: none;
}

@media (max-width: 767px) {
    .sdz-brand-card {
        flex: 0 0 calc((100% - var(--sdz-gap, 6px) * (var(--sdz-slides-mob, 2.2) - 1)) / var(--sdz-slides-mob, 2.2));
    }
}

.sdz-brand-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.sdz-brand-card:hover .sdz-brand-card__overlay {
    background: rgba(0, 0, 0, 0.5);
}

.sdz-brand-card__logo {
    max-width: 60%;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.sdz-brand-card:hover .sdz-brand-card__logo {
    transform: scale(1.05);
}

/* Arrows */
.sdz-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    opacity: 1;
    padding: 0;
}

.sdz-carousel-arrow:hover {
    background: #f0f0f0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.sdz-carousel-arrow svg {
    fill: #000;
    width: 20px;
    height: 20px;
}

.sdz-carousel-arrow--prev {
    left: 8px;
}

.sdz-carousel-arrow--next {
    right: 8px;
}

/* ========== Hero Carousel Widget ========== */
.sdz-hero-carousel {
    position: relative;
    overflow: hidden;
}

.sdz-hero-carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sdz-hero-carousel__track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* Slide */
.sdz-hero-slide {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    height: 420px;
    position: relative;
}

/* PC: left content + right image */
.sdz-hero-slide__content {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    background-color: var(--slide-bg, #f5f5f5);
    color: var(--slide-text, #000);
}

.sdz-hero-slide__image {
    width: 55%;
    overflow: hidden;
}

.sdz-hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sdz-hero-slide__logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.sdz-hero-slide__subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.sdz-hero-slide__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.sdz-hero-slide__desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
    opacity: 0.8;
}

.sdz-hero-slide__btn {
    display: inline-block;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    background: none;
    color: var(--slide-text, #000);
    border: none;
    border-bottom: 1px solid currentColor;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.sdz-hero-slide__btn:hover {
    opacity: 0.7;
}

/* Mobile overlay elements (hidden on PC) */
.sdz-hero-slide__mobile-overlay,
.sdz-hero-slide__mobile-content {
    display: none;
}

/* Arrows */
.sdz-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
}

.sdz-hero-arrow:hover {
    background: #f0f0f0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.sdz-hero-arrow svg {
    fill: #000;
    width: 20px;
    height: 20px;
}

.sdz-hero-arrow--prev {
    left: 16px;
}

.sdz-hero-arrow--next {
    right: 16px;
}

/* Dots - outside bottom, bar shape */
.sdz-hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
}

.sdz-hero-dot {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s;
}

.sdz-hero-dot.is-active {
    width: 40px;
    background: #000;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
    .sdz-hero-slide {
        display: block !important;
        position: relative;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Hide PC content panel completely */
    .sdz-hero-slide__content {
        display: none !important;
        width: 0 !important;
        overflow: hidden;
    }

    /* Image full width */
    .sdz-hero-slide__image {
        width: 100% !important;
        height: 100% !important;
    }

    /* Hide arrows on mobile */
    .sdz-hero-arrow {
        display: none !important;
    }

    /* Show mobile overlay */
    .sdz-hero-slide__mobile-overlay {
        display: block;
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 70%);
        pointer-events: none;
        z-index: 1;
    }

    /* Mobile content: only show logo (white), hide everything else */
    .sdz-hero-slide__mobile-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 24px;
        z-index: 2;
    }

    .sdz-hero-slide__mobile-content .sdz-hero-slide__logo {
        max-width: 80px;
        margin-bottom: 0;
        filter: brightness(0) invert(1);
    }

    .sdz-hero-slide__mobile-content .sdz-hero-slide__subtitle,
    .sdz-hero-slide__mobile-content .sdz-hero-slide__title,
    .sdz-hero-slide__mobile-content .sdz-hero-slide__desc,
    .sdz-hero-slide__mobile-content .sdz-hero-slide__btn {
        display: none !important;
    }

    .sdz-hero-dot {
        background: rgba(0, 0, 0, 0.2);
    }

    .sdz-hero-dot.is-active {
        background: #000;
    }
}

/* ========== Card Carousel Widget ========== */
.sdz-card-carousel {
    position: relative;
    overflow: hidden;
}

.sdz-card-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: var(--sdz-cc-gap, 16px);
}

.sdz-card-carousel__track::-webkit-scrollbar {
    display: none;
}

.sdz-card-item {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - var(--sdz-cc-gap, 16px) * (var(--sdz-cc-slides, 3.2) - 1)) / var(--sdz-cc-slides, 3.2));
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.sdz-card-item__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sdz-card-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.sdz-card-item__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
}

.sdz-card-item__logo {
    max-width: 60px;
    height: auto;
    object-fit: contain;
}

.sdz-card-item__bottom {
    margin-top: auto;
}

.sdz-card-item__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #fff;
}

.sdz-card-item__desc {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.85;
    color: #fff;
}

/* Card Carousel Arrows */
.sdz-card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
}

.sdz-card-arrow:hover {
    background: #f0f0f0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.sdz-card-arrow svg {
    fill: #000;
    width: 20px;
    height: 20px;
}

.sdz-card-arrow--prev {
    left: 12px;
}

.sdz-card-arrow--next {
    right: 12px;
}

@media (max-width: 767px) {
    .sdz-card-item {
        flex: 0 0 calc((100% - var(--sdz-cc-gap, 16px) * (var(--sdz-cc-slides-mob, 1.2) - 1)) / var(--sdz-cc-slides-mob, 1.2));
    }
}

/* ========== Product Gallery Widget ========== */
.sdz-pgallery {
    display: flex;
    height: 600px;
    gap: 16px;
}

.sdz-pgallery__thumbs {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}

.sdz-pgallery__thumbs::-webkit-scrollbar {
    display: none;
}

.sdz-pgallery__thumb {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    padding: 0;
    transition: border-color 0.2s, border-width 0.2s, opacity 0.2s;
}

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

.sdz-pgallery__thumb:hover {
    opacity: 0.8;
}

.sdz-pgallery__thumb.is-active {
    border-color: #000;
}

/* Main image area */
.sdz-pgallery__main {
    flex: 1;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
    cursor: grab;
}

.sdz-pgallery__main-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    height: 100%;
}

.sdz-pgallery__main-track.is-dragging {
    transition: none;
}

.sdz-pgallery__main-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.sdz-pgallery__main-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Skeleton loading */
@keyframes sdz-skeleton-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sdz-pgallery__main-slide.is-loading {
    position: relative;
}

.sdz-pgallery__main-slide.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sdz-skeleton-pulse 1.5s ease infinite;
}

.sdz-pgallery__main-slide.is-loading img {
    opacity: 0;
}

.sdz-pgallery__thumb.is-loading img {
    opacity: 0;
}

.sdz-pgallery__thumb.is-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sdz-skeleton-pulse 1.5s ease infinite;
}

/* Wishlist button */
.sdz-pgallery__wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #333;
    transition: color 0.2s, box-shadow 0.2s;
    padding: 0;
}

.sdz-pgallery__wishlist:hover {
    color: #e53935;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== Lightbox ===== */
.sdz-pgallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sdz-pgallery-lightbox.is-open {
    opacity: 1;
}

.sdz-pgallery-lightbox__img-wrap {
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.sdz-pgallery-lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.sdz-pgallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 0;
}

.sdz-pgallery-lightbox__close:hover {
    color: #000;
}

.sdz-pgallery-lightbox__prev,
.sdz-pgallery-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    padding: 0;
}

.sdz-pgallery-lightbox__prev:hover,
.sdz-pgallery-lightbox__next:hover {
    background: rgba(0,0,0,0.1);
}

.sdz-pgallery-lightbox__prev {
    left: 24px;
}

.sdz-pgallery-lightbox__next {
    right: 24px;
}

.sdz-pgallery-lightbox__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.sdz-pgallery-lightbox__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.sdz-pgallery-lightbox__dot.is-active {
    background: #000;
    transform: scale(1.3);
}

/* Mobile: stack vertically, thumbs become horizontal row */
@media (max-width: 767px) {
    .sdz-pgallery {
        flex-direction: column-reverse;
        height: auto;
    }

    .sdz-pgallery__thumbs {
        width: 100% !important;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sdz-pgallery__thumb {
        width: auto;
        height: 60px;
        aspect-ratio: 1;
    }

    .sdz-pgallery__main {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .sdz-pgallery__main-track {
        height: 100%;
    }

    .sdz-pgallery__main-slide {
        min-height: 100%;
    }

    .sdz-pgallery-lightbox__prev,
    .sdz-pgallery-lightbox__next {
        width: 36px;
        height: 36px;
    }

    .sdz-pgallery-lightbox__prev { left: 12px; }
    .sdz-pgallery-lightbox__next { right: 12px; }
}

/* ========== Product Brand Widget ========== */
.sdz-pbrand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sdz-pbrand__name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.sdz-pbrand__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sdz-pbrand__badge-img {
    height: 20px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.sdz-pbrand__badge-text {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    line-height: 1;
}

/* ========== Product Add to Cart Widget ========== */
.sdz-atc__attr {
    margin-bottom: 16px;
}

.sdz-atc__attr-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.sdz-atc__attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Swatch base */
.sdz-atc__swatch {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    padding: 6px 14px;
    overflow: hidden;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdz-atc__swatch:hover {
    border-color: #666;
}

.sdz-atc__swatch.is-active {
    border: 1px solid #000;
}

/* Image swatch */
.sdz-atc__swatch--image {
    padding: 2px;
}

.sdz-atc__swatch--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text swatch */
.sdz-atc__swatch--text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    min-height: 40px;
}

/* Actions row */
.sdz-atc__actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 16px;
}

/* Quantity */
.sdz-atc__qty {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.sdz-atc__qty-btn {
    width: 36px;
    height: 100%;
    border: none;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.15s;
    padding: 0;
}

.sdz-atc__qty-btn:hover {
    background: #f5f5f5;
}

.sdz-atc__qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    font-size: 14px;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
    height: 100%;
}

.sdz-atc__qty-input::-webkit-outer-spin-button,
.sdz-atc__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to cart button */
.sdz-atc__btn {
    flex: 1;
    height: 50px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.sdz-atc__btn:hover {
    opacity: 0.85;
}

.sdz-atc__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Buy Now button */
.sdz-atc__buy-now {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 10px;
    border: 1px solid #000;
    box-sizing: border-box;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sdz-atc__buy-now:hover {
    background: #000;
    color: #fff;
}

.sdz-atc__buy-now:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========== Featured Cards Widget ========== */
.sdz-fcards {
    overflow: hidden;
}

.sdz-fcards__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sdz-fcards__track::-webkit-scrollbar {
    display: none;
}

.sdz-fcards__item {
    flex: 0 0 calc(25% - 12px);
    height: 350px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.sdz-fcards__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.sdz-fcards__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    gap: 6px;
}

.sdz-fcards__logo {
    height: 32px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
}

.sdz-fcards__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.sdz-fcards__desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .sdz-fcards__item {
        flex: 0 0 calc(83.33% - 8px);
    }
}

/* ========== Product List Widget ========== */
.sdz-plist {
    position: relative;
}

.sdz-plist--carousel .sdz-plist__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.sdz-plist--carousel .sdz-plist__track::-webkit-scrollbar {
    display: none;
}

.sdz-plist--carousel .sdz-pcard {
    flex: 0 0 calc(20% - 12.8px);
    scroll-snap-align: start;
}

.sdz-plist--grid .sdz-plist__track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* Navigation arrows */
.sdz-plist__arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.sdz-plist__arrow:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.sdz-plist__arrow--prev { left: -20px; }
.sdz-plist__arrow--next { right: -20px; }

@media (max-width: 767px) {
    .sdz-plist--carousel .sdz-pcard {
        flex: 0 0 calc(50% - 8px);
    }

    .sdz-plist--grid .sdz-plist__track {
        grid-template-columns: repeat(2, 1fr);
    }

    .sdz-plist__arrow { display: none; }
}

/* ========== Product Tabs Widget ========== */
.sdz-ptabs {
    position: relative;
}

/* Header: title + shop all */
.sdz-ptabs__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sdz-ptabs__heading {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.sdz-ptabs__shopall {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.sdz-ptabs__shopall:hover {
    text-decoration: underline;
    color: #000;
}

/* Tab navigation */
.sdz-ptabs__nav {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sdz-ptabs__nav::-webkit-scrollbar {
    display: none;
}

.sdz-ptabs__tab {
    position: relative;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.sdz-ptabs__tab:hover {
    color: #000;
}

.sdz-ptabs__tab.is-active {
    color: #000;
    font-weight: 600;
}

.sdz-ptabs__tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000;
}

/* Content / Panel */
.sdz-ptabs__content {
    position: relative;
}

.sdz-ptabs__panel {
    position: relative;
}

.sdz-ptabs__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sdz-ptabs__track::-webkit-scrollbar {
    display: none;
}

.sdz-ptabs__track .sdz-pcard {
    flex: 0 0 calc(20% - 12.8px);
    scroll-snap-align: start;
}

/* Arrows */
.sdz-ptabs__arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: rgba(255,255,255,0.95);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.sdz-ptabs__arrow:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.sdz-ptabs__arrow--prev { left: -20px; }
.sdz-ptabs__arrow--next { right: -20px; }

/* Loading overlay */
.sdz-ptabs__loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdz-ptabs__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: sdz-ptabs-spin 0.7s linear infinite;
}

@keyframes sdz-ptabs-spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 767px) {
    .sdz-ptabs__heading {
        font-size: 18px;
    }

    .sdz-ptabs__nav {
        gap: 16px;
        margin-bottom: 16px;
    }

    .sdz-ptabs__tab {
        font-size: 13px;
    }

    .sdz-ptabs__track .sdz-pcard {
        flex: 0 0 calc(50% - 8px);
    }

    .sdz-ptabs__arrow {
        display: none;
    }
}

/* ========== Brand Cards Widget ========== */
.sdz-bcards {
    position: relative;
    overflow: hidden;
}

.sdz-bcards__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sdz-bcards__track::-webkit-scrollbar {
    display: none;
}

/* PC: 5.2 cards visible — each card = (100% - 5.2*gap) / 5.2 ≈ 17.5% */
.sdz-bcards__item {
    position: relative;
    flex: 0 0 calc((100% - 42px) / 5.2);
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    scroll-snap-align: start;
    text-decoration: none;
    color: #fff;
}

.sdz-bcards__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sdz-bcards__item:hover .sdz-bcards__bg {
    transform: scale(1.04);
}

/* External link icon — top right */
.sdz-bcards__ext-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    line-height: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.sdz-bcards__item:hover .sdz-bcards__ext-icon {
    opacity: 1;
}

/* Logo — bottom center */
.sdz-bcards__logo {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.sdz-bcards__logo img {
    max-height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

/* Arrows */
.sdz-bcards__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: rgba(255,255,255,0.9);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.sdz-bcards__arrow:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.sdz-bcards__arrow--prev { left: 8px; }
.sdz-bcards__arrow--next { right: 8px; }

/* Mobile: 3.5 cards visible */
@media (max-width: 767px) {
    .sdz-bcards__item {
        flex: 0 0 calc((100% - 25px) / 3.5);
        height: 200px;
    }

    .sdz-bcards__arrow {
        width: 32px;
        height: 32px;
    }

    .sdz-bcards__arrow svg {
        width: 16px;
        height: 16px;
    }

    .sdz-bcards__logo img {
        max-height: 24px;
    }

    .sdz-bcards__ext-icon svg {
        width: 12px;
        height: 12px;
    }
}

/* ========== Image Banner Widget ========== */
.sdz-ibanner {
    position: relative;
    display: block;
    width: 100%;
    height: 400px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.sdz-ibanner .sdz-ibanner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

a.sdz-ibanner:hover .sdz-ibanner__bg {
    transform: scale(1.03);
}

/* Left-to-right gradient overlay */
.sdz-ibanner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Content body — bottom-left */
.sdz-ibanner__body {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    max-width: 50%;
    box-sizing: border-box;
}

.sdz-ibanner__logo {
    margin-bottom: 12px;
    line-height: 0;
}

.sdz-ibanner__logo img {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.sdz-ibanner__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #fff;
}

.sdz-ibanner__desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 767px) {
    .sdz-ibanner {
        height: 260px;
    }

    .sdz-ibanner__body {
        max-width: 70%;
        padding: 20px;
    }

    .sdz-ibanner__title {
        font-size: 18px;
    }

    .sdz-ibanner__desc {
        font-size: 13px;
    }

    .sdz-ibanner__logo img {
        max-height: 30px;
    }
}

/* ========== Shop Filter Widget ========== */
.sdz-sfilter {
    width: 100%;
}

.sdz-sfilter__section {
    border-bottom: 1px solid #e5e5e5;
}

/* Heading / Accordion trigger */
.sdz-sfilter__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    text-align: left;
}

.sdz-sfilter__heading:hover {
    opacity: 0.75;
}

.sdz-sfilter__arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.sdz-sfilter__section.is-open .sdz-sfilter__arrow {
    transform: rotate(180deg);
}

/* Body — hidden by default */
.sdz-sfilter__body {
    display: none;
    padding-bottom: 16px;
}

.sdz-sfilter__section.is-open .sdz-sfilter__body {
    display: block;
}

/* Scrollable list */
.sdz-sfilter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sdz-sfilter__list::-webkit-scrollbar {
    width: 4px;
}

.sdz-sfilter__list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Category links */
.sdz-sfilter__cat-item {
    margin: 0;
    padding: 0;
}

.sdz-sfilter__cat-link {
    display: block;
    padding: 6px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.15s;
}

.sdz-sfilter__cat-link:hover,
.sdz-sfilter__cat-link.is-active {
    color: #000;
    font-weight: 600;
}

.sdz-sfilter__cat-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
}

/* Checkbox items */
.sdz-sfilter__check-item {
    margin: 0;
    padding: 0;
}

.sdz-sfilter__check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    user-select: none;
}

.sdz-sfilter__check-label:hover {
    color: #000;
}

.sdz-sfilter__checkbox {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #222;
    cursor: pointer;
    margin: 0;
}

/* ========== Product Archive Widget ========== */
.sdz-parcv__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    transition: opacity 0.25s ease;
}

/* Pagination */
.sdz-parcv__pag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.sdz-parcv__pag a,
.sdz-parcv__pag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.15s;
    line-height: 1;
}

.sdz-parcv__pag a:hover {
    border-color: #999;
    color: #000;
}

.sdz-parcv__pag .current {
    background-color: #222;
    border-color: #222;
    color: #fff;
    font-weight: 600;
}

.sdz-parcv__pag .dots {
    border: none;
    background: none;
    min-width: auto;
    padding: 0 4px;
}

.sdz-parcv__pag .prev,
.sdz-parcv__pag .next {
    line-height: 0;
}

@media (max-width: 767px) {
    .sdz-parcv__pag {
        margin-top: 24px;
    }

    .sdz-parcv__pag a,
    .sdz-parcv__pag span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ========== Brand / Designer Directory ========== */

/* ========== Brand Showcase Widget ========== */
.sdz-bshow__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sdz-bshow__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #333;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.sdz-bshow__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    transition: background 0.25s;
}

.sdz-bshow__card:hover {
    transform: scale(1.02);
}

.sdz-bshow__card:hover::before {
    background: rgba(0,0,0,0.35);
}

.sdz-bshow__logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.sdz-bshow__logo img {
    max-height: 40px;
    max-width: 70%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .sdz-bshow__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .sdz-bshow__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sdz-bshow__card {
        height: 150px;
    }
}

/* Search & Directory */
.sdz-bdir__search-wrap {
    position: relative;
    margin: 0 auto 24px;
    max-width: var(--sdz-bdir-search-width, 480px);
}

.sdz-bdir__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.sdz-bdir__search {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 14px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sdz-bdir__search:focus {
    border-color: #000;
}

.sdz-bdir__alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    justify-content: center;
}

.sdz-bdir__alpha-btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
    min-width: 30px;
    text-align: center;
    color: #333;
}

.sdz-bdir__alpha-btn:hover {
    background: rgba(0,0,0,0.06);
}

.sdz-bdir__alpha-btn.is-active {
    background: #000;
    color: #fff;
}

.sdz-bdir__alpha-btn.is-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.sdz-bdir__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sdz-bdir__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    background: transparent;
    text-decoration: none;
    overflow: hidden;
}

.sdz-bdir__item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.35s ease;
}

.sdz-bdir__item:hover::after {
    width: 100%;
}

.sdz-bdir__item-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
}

.sdz-bdir__item-icon svg {
    width: 16px;
    height: 16px;
}

.sdz-bdir__item-name {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sdz-bdir__item-count {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    flex-shrink: 0;
}

.sdz-bdir__empty {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .sdz-bdir__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .sdz-bdir__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sdz-bdir__alpha-btn {
        padding: 5px 7px;
        font-size: 11px;
        min-width: 24px;
    }

    .sdz-bdir__item {
        padding: 10px 4px;
    }

    .sdz-bdir__item-name {
        font-size: 13px;
    }
}
