/* Sardoot WooCommerce — PLP catalog, product cards, bottom sheets */

@keyframes catalog-skeleton-shimmer {
    to {
        background-position-x: -20%;
    }
}

/* Self-contained skeleton — JS-injected markup must not rely on Tailwind scan */
.sardoot-catalog .skeleton,
.sardoot-catalog .catalog-skeleton-block {
    background-color: #ededed;
    background-image: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    background-size: 200% 100%;
    background-position-x: 180%;
    animation: catalog-skeleton-shimmer 1s ease-in-out infinite;
}

.sardoot-catalog.is-loading {
    pointer-events: none;
}

.catalog-filter {
    position: relative;
}

.catalog-filter.is-skeleton-loading > :not(.catalog-filter-skeleton) {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.catalog-filter-skeleton {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 0.25rem 1rem;
    background-color: var(--color-bg-primary, #fcf9f4);
    pointer-events: none;
}

.catalog-filter-skeleton__header {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border-primary-tertiary, #e8e4de);
}

@media (min-width: 1024px) {
    .catalog-filter-skeleton__header {
        display: flex;
    }
}

.catalog-filter-skeleton__row {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border-primary-tertiary, #e8e4de);
}

@media (min-width: 1024px) {
    .catalog-filter-skeleton__row {
        padding: 1.5rem 0;
    }
}

.catalog-filter-skeleton__row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-filter-skeleton__toggles {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-primary-tertiary, #e8e4de);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.catalog-filter-skeleton__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-skeleton-bar {
    height: 1.25rem;
    border-radius: 0.375rem;
}

.catalog-skeleton-bar--title {
    width: 6rem;
}

.catalog-skeleton-bar--clear {
    width: 4rem;
}

.catalog-skeleton-bar--label {
    width: 7rem;
}

.catalog-skeleton-bar--label-lg {
    width: 8rem;
}

.catalog-skeleton-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.catalog-skeleton-pill {
    width: 3.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.catalog-products-grid--skeleton {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 2rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .catalog-products-grid--skeleton {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 2.5rem;
        row-gap: 3.5rem;
    }
}

.catalog-product-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
}

.catalog-product-skeleton__media {
    width: 100%;
    aspect-ratio: 282 / 376;
    border-radius: 0.5rem;
}

@media (max-width: 1023px) {
    .catalog-product-skeleton__media {
        aspect-ratio: 161 / 220;
    }
}

.catalog-product-skeleton__line {
    height: 1.25rem;
    border-radius: 0.375rem;
}

.catalog-product-skeleton__line--title {
    width: 75%;
    max-width: 12rem;
    margin-inline-start: 0;
}

.catalog-product-skeleton__prices {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.catalog-product-skeleton__line--price {
    width: 5rem;
}

.catalog-product-skeleton__line--price-sm {
    width: 3.5rem;
    height: 1rem;
}

.catalog-product-skeleton__line--meta {
    width: 6rem;
    height: 1rem;
    margin-inline-start: 0;
}

.catalog-pagination-skeleton {
    height: 2.5rem;
    max-width: 20rem;
    margin: 2rem auto;
    border-radius: 0.5rem;
}

[data-catalog-pagination-wrap].is-skeleton-loading > :not(.catalog-pagination-skeleton) {
    visibility: hidden;
}

.catalog-filter--desktop {
    display: none;
}

@media (min-width: 1024px) {
    .catalog-filter--desktop {
        display: block;
    }

    .catalog-sheet,
    .catalog-sheet-backdrop,
    .catalog-mobile-toolbar {
        display: none !important;
    }
}

.catalog-filter--mobile {
    display: flex;
}

/* Category tree filter (Figma 204:1673) */
.catalog-category-expand i {
    display: block;
}

.catalog-category-item.is-active {
    color: var(--color-text-brand-secondary, #B06047);
}

.catalog-sheet--filter .catalog-filter__actions {
    box-shadow: 0 -0.5rem 1rem rgba(12, 10, 9, 0.04);
}

/* Product grid */
.sardoot-products-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sardoot-product-card {
    position: relative;
}

/* Carousel slides — mobile fixed width (Figma 161); desktop width from Splide perPage:4 */
.sardoot-product-carousel .splide__slide {
    width: 10.0625rem;
    flex-shrink: 0;
}

@media (min-width: 77rem) {
    .sardoot-product-carousel .splide__slide {
        width: auto;
    }
}

.sardoot-product-card__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 282 / 376;
    flex-shrink: 0;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .sardoot-product-card__media {
        aspect-ratio: 161 / 220;
    }
}

.sardoot-product-card__media .woocommerce-LoopProduct-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.sardoot-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex: 1 1 auto;
}

.sardoot-product-card__placeholder {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}

.sardoot-product-card__placeholder [class*='sdicon-'] {
    font-size: 3rem;
    line-height: 1;
    opacity: 0.45;
}

.sardoot-product-card__badge {
    z-index: 2;
}

.sardoot-product-card__video {
    z-index: 2;
    pointer-events: none;
}

.sardoot-product-card__soldout {
    color: var(--color-text-error-primary, #c10007);
}

.sardoot-product-card__brand {
    color: var(--color-text-brand-secondary, #b06047);
}

.sardoot-product-card .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sardoot-product-card .add_to_cart_button,
.sardoot-product-card .button.product_type_variable,
.sardoot-product-card .button.product_type_grouped {
    display: none;
}

.sardoot-product-card__price {
    line-height: 1;
}

.sardoot-product-card__price-currency {
    font-size: 0.625rem;
}

.sardoot-product-card__price-value {
    font-size: 1rem;
    font-weight: 600;
}

.sardoot-product-card__price-regular {
    font-size: 0.75rem;
    color: var(--color-text-quatenary, #79716b);
    text-decoration: line-through;
}

/* Sort bar */
.catalog-sort-bar .catalog-sort-option {
    color: var(--color-text-secondary, #79716b);
}

.catalog-sort-bar .catalog-sort-option:hover {
    color: var(--color-text-primary, #0c0a09);
}

.catalog-sort-bar .catalog-sort-option.is-active {
    color: var(--color-text-brand-secondary, #B06047);
    font-weight: 600;
}

/* Mobile sort sheet — Figma 193:50547 */
[data-catalog-sort-mobile] .catalog-sort-option {
    color: var(--color-text-primary, #0c0a09);
    font-weight: 400;
    background-color: transparent;
}

[data-catalog-sort-mobile] .catalog-sort-option.is-active {
    color: var(--color-text-brand-secondary, #B06047);
    font-weight: 600;
    background-color: var(--color-primary-100, #f6e9e2);
}

/* Pagination — Figma node 164:5308 */
.catalog-pagination {
}

a.catalog-page-item {
    color: inherit;
    text-decoration: none;
}

a.catalog-page-item.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.catalog-page-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.catalog-page-nav:not(.is-disabled):hover,
a.catalog-page-item.catalog-page-nav:hover {
    color: var(--color-text-primary, #0c0a09);
}

.catalog-page-item {
    background: transparent;
    border-top: 2px solid var(--color-placeholder-subtle, #d6d3d1);
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.catalog-page-nav.is-disabled {
    cursor: default;
    pointer-events: none;
}

.catalog-page-num:not(.is-active):hover,
a.catalog-page-item.catalog-page-num:hover {
    color: var(--color-text-brand-secondary, #B06047);
}

.catalog-page-num.is-active {
    color: var(--color-text-brand-secondary, #B06047);
    border-top-color: var(--color-text-brand-secondary, #B06047);
    cursor: default;
}

/* Accordion — smooth expand/collapse */
.catalog-filter-accordion__icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-filter-accordion.is-open .catalog-filter-accordion__icon {
    transform: rotate(180deg);
}

.catalog-filter-accordion__summary {
    transition: opacity 0.3s ease, max-height 0.35s ease, margin 0.35s ease;
    max-height: 3rem;
    opacity: 1;
    overflow: hidden;
}

.catalog-filter-accordion__summary.is-hidden,
.catalog-filter-accordion.is-open .catalog-filter-accordion__summary,
.catalog-filter-accordion__summary:empty {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.catalog-filter-accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-filter-accordion.is-open .catalog-filter-accordion__panel {
    grid-template-rows: 1fr;
}

.catalog-filter-accordion__panel-inner {
    min-height: 0;
    overflow: hidden;
}

.catalog-filter-accordion:not(.is-open) .catalog-filter-accordion__panel-inner {
    visibility: hidden;
}

/* Bottom sheet */
.catalog-sheet.is-open,
.catalog-sheet:not(.translate-y-full):not(.hidden) {
    transform: translateY(0);
}

.catalog-sheet.translate-y-full {
    transform: translateY(100%);
}

/* Price range — dual-thumb slider (oxygame range-slide pattern)
   Track full width = rail + half thumb on each side so end thumbs are not clipped. */
.catalog-price-filter__track {
    --catalog-price-thumb-size: 1rem; /* matches thumb size-4 */
    position: relative;
    height: 1.5rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-inline: calc(var(--catalog-price-thumb-size) / 2);
}

.catalog-price-filter__rail {
    position: relative;
    width: 100%;
    height: 100%;
}

.catalog-price-filter__track-line {
    pointer-events: none;
}

.catalog-price-filter__range {
    pointer-events: none;
    height: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.catalog-price-filter__thumb {
    pointer-events: none;
    top: 50%;
    width: var(--catalog-price-thumb-size);
    height: var(--catalog-price-thumb-size);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.catalog-price-filter__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 3;
    opacity: 0;
}

.catalog-price-filter__input--min {
    z-index: 4;
}

.catalog-price-filter__input--max {
    z-index: 5;
}

.catalog-price-filter__input::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: transparent;
    border: transparent;
    height: 1.5rem;
}

.catalog-price-filter__input::-moz-range-track {
    -moz-appearance: none;
    background: transparent;
    border: transparent;
    height: 1.5rem;
}

.catalog-price-filter__input::-ms-track {
    background: transparent;
    border-color: transparent;
    color: transparent;
    height: 1.5rem;
}

.catalog-price-filter__input:focus {
    outline: none;
}

.catalog-price-filter__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 1.25rem;
    height: 1.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.catalog-price-filter__input::-moz-range-thumb {
    pointer-events: all;
    width: 1.25rem;
    height: 1.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.catalog-price-filter__input::-ms-thumb {
    pointer-events: all;
    width: 1.25rem;
    height: 1.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.catalog-price-filter__input::-ms-fill-lower,
.catalog-price-filter__input::-ms-fill-upper {
    background: transparent;
    border: 0;
}

.catalog-price-filter__input::-ms-tooltip {
    display: none;
}

/* Process steps (legacy class + Figma stepper) */
.process-step.is-active {
    font-weight: 700;
}

.sardoot-cart-item.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.sardoot-order-summary-sticky,
.sardoot-pdp-sticky {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

/* Sticky PDP price stays compact; discount row can wrap under on narrow screens */
.sardoot-pdp-sticky [data-pdp-price] {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
}

.sardoot-checkout-privacy p {
    margin: 0;
}

.sardoot-checkout-privacy a {
    color: var(--color-text-brand-secondary, #0d9488);
    font-weight: 600;
    text-decoration: none;
}

.sardoot-checkout-privacy a:hover {
    text-decoration: underline;
}

.sardoot-checkout-place-order .woocommerce-terms-and-conditions {
    max-height: 12rem;
    overflow: auto;
}

/* WooCommerce notices — themed */
.woocommerce-NoticeGroup,
.woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid;
    font-size: 0.875rem;
    line-height: 1.6;
}

.woocommerce-error {
    color: var(--color-text-error-primary, #c10007);
    background: var(--color-bg-error-primary, #fef2f2);
    border-color: var(--color-border-error, #ffc9c9);
}

.woocommerce-message {
    color: var(--color-text-brand-secondary, #c17054);
    background: var(--color-bg-brand-primary, #fbf5f2);
    border-color: var(--color-border-brand-primary-subtle, #e6d8c2);
}

.woocommerce-info {
    color: var(--color-text-secondary, #57534e);
    background: var(--color-bg-secondary, #f3ede4);
    border-color: var(--color-border-primary-tertiary, #e7e5e4);
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    margin: 0;
    padding: 0.25rem 0;
}

.woocommerce-error li + li,
.woocommerce-message li + li,
.woocommerce-info li + li {
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

body.woocommerce-cart .site-footer,
body.woocommerce-checkout .site-footer {
    padding-bottom: 5.5rem;
}

@media (min-width: 1024px) {
    body.woocommerce-cart .site-footer,
    body.woocommerce-checkout .site-footer {
        padding-bottom: 0;
    }
}

.woocommerce-checkout--result,
.woocommerce-checkout--guest {
    width: 100%;
}

.sardoot-checkout-hidden-fields {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* My Account OTP auth */
.woocommerce-myaccount--guest {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
}

.sardoot-myaccount-auth {
    isolation: isolate;
}

.sardoot-auth-submit.btn {
    display: flex;
    width: 100%;
    min-height: 3rem;
    background-color: var(--color-text-brand-secondary, #b06047) !important;
    color: #fff !important;
    border: 0;
    border-radius: 0.5rem;
    font-weight: 700;
}

.sardoot-auth-submit.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sardoot-auth-submit.btn:not(:disabled):hover {
    opacity: 0.9;
}

.sardoot-myaccount-auth__card .btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.sardoot-auth-form.is-locked [data-auth-submit] {
    background-color: var(--color-bg-disabled, #e7e9f0);
    color: var(--color-text-disabled, #c4c6cf);
    pointer-events: none;
}

.sardoot-auth-otp.border-text-error-primary {
    border-color: var(--color-text-error-primary, #c10007);
}

.sardoot-auth-mobile.border-text-error-primary {
    border-color: var(--color-text-error-primary, #c10007);
}

.woocommerce-myaccount--guest .woocommerce-MyAccount-navigation {
    display: none;
}

/* Category PLP — subcategory Splide strip */
.catalog-subcategories__slider {
    position: relative;
}

.catalog-subcategories__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.catalog-subcategories__slider.is-overflow .catalog-subcategories__fade.has-fade {
    opacity: 1;
}

/* RTL: inline-start = right, inline-end = left */
.catalog-subcategories__fade--start {
    inset-inline-start: 0;
    background: linear-gradient(
        to left,
        var(--color-bg-primary, #fcf9f4) 0%,
        transparent 100%
    );
}

.catalog-subcategories__fade--end {
    inset-inline-end: 0;
    background: linear-gradient(
        to right,
        var(--color-bg-primary, #fcf9f4) 0%,
        transparent 100%
    );
}

.catalog-subcategories-splide:not(.is-initialized) .splide__list {
    display: flex;
    gap: 0.75rem;
    overflow: hidden;
}

.catalog-subcategories-splide .splide__slide {
    width: auto;
}

.catalog-subcategories__item:hover .catalog-subcategories__label {
    color: var(--color-text-brand-primary, #b06047);
}
/* -------------------------------------------------------------------------
   PDP - single product (Figma)
   ------------------------------------------------------------------------- */

.sardoot-pdp-gallery__thumb {
    border: 1px solid transparent;
}

.sardoot-pdp-gallery__thumb.is-active {
    border-color: var(--color-text-primary, #0c0a09);
}

/* Main image frame — Figma 580×775; full column width, height from aspect-ratio */
.sardoot-pdp-gallery__stage {
    width: 100%;
}

.sardoot-pdp-gallery__frame {
    aspect-ratio: 580 / 775;
    width: 100%;
    overflow: hidden;
}

.sardoot-pdp-gallery__frame > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sardoot-pdp-gallery__thumb--video .sardoot-pdp-gallery__video-overlay,
.sardoot-pdp-lightbox__thumb--video .sardoot-pdp-gallery__video-overlay {
    pointer-events: none;
    background: rgba(0, 0, 0, 0.3);
}

.sardoot-pdp-gallery__thumb--video .sardoot-pdp-gallery__video-overlay i,
.sardoot-pdp-lightbox__thumb--video .sardoot-pdp-gallery__video-overlay i {
    font-size: 2rem;
    line-height: 1;
    color: #fff;
}

.sardoot-pdp-gallery__video,
.sardoot-pdp-lightbox__video {
    background: var(--color-bg-secondary, #f3ede4);
}

.sardoot-pdp-gallery__video .plyr,
.sardoot-pdp-lightbox__video .plyr {
    height: 100%;
    width: 100%;
}

.sardoot-pdp-gallery__video .plyr__video-wrapper,
.sardoot-pdp-lightbox__video .plyr__video-wrapper {
    height: 100%;
    background: transparent;
}

.sardoot-pdp-gallery__video .plyr__poster,
.sardoot-pdp-lightbox__video .plyr__poster {
    background-size: cover;
    background-position: center;
}

.sardoot-pdp-gallery__video video,
.sardoot-pdp-lightbox__video video,
.sardoot-pdp-gallery__video-el,
.sardoot-pdp-lightbox__video-el {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.sardoot-pdp-gallery__video-expand {
    pointer-events: auto;
}

/* Mobile gallery pagination bars (Figma Indicator) */
.sardoot-pdp-gallery__pagination {
    position: static;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sardoot-pdp-gallery__pagination .splide__pagination__page {
    width: 0.625rem;
    height: 0.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
    background: var(--color-bg-disabled, #e7e5e4);
    opacity: 1;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.sardoot-pdp-gallery__pagination .splide__pagination__page.is-active {
    width: 1.125rem;
    background: var(--color-text-brand-secondary, #b06047);
}

.sardoot-pdp-gallery__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Color / size autoWidth Splide — no native scrollbar; arrows only on overflow */
.sardoot-pdp-attr-slider .splide__track {
    overflow: hidden;
}

.sardoot-pdp-attr-slider .splide__list {
    display: flex;
    align-items: center;
}

.sardoot-pdp-attr-slider .splide__slide {
    width: auto;
}

.sardoot-pdp-attr-slider__arrow {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.sardoot-pdp-attr-slider__arrow:disabled {
    cursor: not-allowed;
}

.sardoot-pdp-color__swatch {
    border: 3px solid transparent;
    border-radius: 9999px;
}

.sardoot-pdp-color.is-selected .sardoot-pdp-color__swatch {
    border-color: var(--color-text-primary, #0c0a09);
}

.sardoot-pdp-color.is-disabled {
    pointer-events: none;
}

.sardoot-pdp-size.is-selected {
    background-color: var(--color-text-primary, #0c0a09);
    border-color: var(--color-text-primary, #0c0a09);
    color: #fff;
}

.sardoot-pdp-size.is-disabled {
    background-color: var(--color-bg-disabled-subtle, #f5f5f4);
    border-color: var(--color-text-disabled, #d6d3d1);
    color: var(--color-text-disabled, #d6d3d1);
    pointer-events: none;
}

.sardoot-pdp-strike {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sardoot-pdp-strike::before,
.sardoot-pdp-strike--box::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140%;
    height: 2px;
    background: var(--color-text-disabled, #d6d3d1);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sardoot-pdp-atc .btn:disabled,
.sardoot-pdp-atc .btn.is-size-required:disabled {
    background-color: var(--color-bg-disabled, #e7e5e4);
    color: var(--color-text-disabled, #d6d3d1);
    border-color: transparent;
    cursor: not-allowed;
    opacity: 1;
}

.sardoot-pdp-lightbox__thumb.is-active {
    border: 1px solid var(--color-text-primary, #0c0a09);
    opacity: 1;
}

/* Mobile thumb strip — touch horizontal scroll when overflowing */
.sardoot-pdp-lightbox__thumbs {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
}

.sardoot-pdp-lightbox__thumbs::-webkit-scrollbar {
    height: 0.25rem;
}

.sardoot-pdp-lightbox__thumbs::-webkit-scrollbar-thumb {
    background: var(--color-bg-disabled-solid, #d6d3d1);
    border-radius: 9999px;
}

@media (min-width: 77rem) {
    .sardoot-pdp-lightbox__thumbs {
        scrollbar-width: none;
    }

    .sardoot-pdp-lightbox__thumbs::-webkit-scrollbar {
        display: none;
    }
}

/* Sold-out stamp — Figma Unavailable (503:2915 / 503:3554) */
.sardoot-pdp-soldout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sardoot-pdp-soldout.hidden {
    display: none;
}

.sardoot-pdp-soldout__img {
    pointer-events: none;
}
.sardoot-pdp-lightbox[hidden]:not(.is-open),
.sardoot-pdp-dialog[hidden]:not(.is-open) {
    display: none !important;
}

.sardoot-pdp-lightbox,
.sardoot-pdp-dialog {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.35s linear;
}

.sardoot-pdp-lightbox.is-open,
.sardoot-pdp-dialog.is-open {
    visibility: visible;
    pointer-events: auto;
}

.sardoot-pdp-lightbox__backdrop,
.sardoot-pdp-dialog__backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sardoot-pdp-lightbox.is-open .sardoot-pdp-lightbox__backdrop,
.sardoot-pdp-dialog.is-open .sardoot-pdp-dialog__backdrop {
    opacity: 1;
}

.sardoot-pdp-lightbox__panel,
.sardoot-pdp-dialog__panel {
    transform: translateY(100%);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
    will-change: transform, opacity;
}

@media (min-width: 77rem) {
    .sardoot-pdp-lightbox__panel,
    .sardoot-pdp-dialog__panel {
        transform: translateY(1rem) scale(0.97);
        opacity: 0;
    }
}

.sardoot-pdp-lightbox.is-open .sardoot-pdp-lightbox__panel,
.sardoot-pdp-dialog.is-open .sardoot-pdp-dialog__panel {
    transform: none;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .sardoot-pdp-lightbox,
    .sardoot-pdp-dialog,
    .sardoot-pdp-lightbox__backdrop,
    .sardoot-pdp-dialog__backdrop,
    .sardoot-pdp-lightbox__panel,
    .sardoot-pdp-dialog__panel {
        transition: none;
    }
}

.sardoot-pdp-review__body {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sardoot-pdp-review__body.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Star fill color only — never set content/font-family on .sdicon-* here */
.sardoot-pdp-star--filled {
    color: #facc15;
}

[data-pdp-wishlist].is-active,
[data-pdp-wishlist].is-active .sdicon-heart-filled {
    color: var(--color-text-error-primary, #c10007);
}

.sardoot-pdp-wishlist-modal-icon {
    position: relative;
}

.sardoot-pdp-wishlist-modal-icon.is-removed::after {
    content: "";
    position: absolute;
    inset-inline: 0.35rem;
    top: 50%;
    height: 0.125rem;
    background: currentColor;
    border-radius: 9999px;
    transform: translateY(-50%) rotate(-42deg);
    pointer-events: none;
}

/* My Account (logged-in Profile) */
/* Mobile hub: no card frame (Figma). Desktop keeps border/radius/padding utilities. */
@media (max-width: 76.999rem) {
    .sardoot-account-nav {
        border: 0;
        border-radius: 0;
        padding: 0;
    }
}

.sardoot-account-nav__list {
    list-style: none;
}

.sardoot-account-nav__list .woocommerce-MyAccount-navigation-link {
    list-style: none;
}

.sardoot-account-nav__link:hover {
    background-color: var(--color-bg-brand-primary, #fbf5f2);
    color: var(--color-text-brand-secondary, #b06047);
}

.sardoot-account-profile .woocommerce-error,
.sardoot-account-profile .woocommerce-message,
.sardoot-account-profile .woocommerce-info {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Profile view + edit: keep all field values/inputs right-aligned (RTL) */
.sardoot-account-profile-view [data-account-view-value],
.sardoot-account-profile-view [data-account-view-row] > span,
.sardoot-account-profile__form .woocommerce-Input,
.sardoot-account-profile__form .input-text,
.sardoot-account-profile__form [data-account-birthday-open],
.sardoot-account-profile__form [data-account-birthday-display] {
    text-align: start;
    direction: inherit;
}

.sardoot-wishlist-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sardoot-order-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sardoot-order-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile orders list — divider rows, no card chrome (Figma 1:20292) */
@media (max-width: 76.99rem) {
    .sardoot-account-orders .sardoot-order-card {
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border-primary-tertiary, #e7e5e4);
        padding: 1rem 0;
    }

    .sardoot-account-orders .sardoot-order-card:last-child {
        border-bottom: 0;
    }

    /* Mobile wishlist — divider rows only (Figma 1:20122) */
    .sardoot-account-wishlist .sardoot-wishlist-card {
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border-primary-tertiary, #e7e5e4);
        padding: 1rem 0;
    }

    .sardoot-account-wishlist .sardoot-wishlist-card:last-child {
        border-bottom: 0;
    }

    /* Mobile account addresses — divider rows only (Figma 1:19559) */
    .sardoot-account-addresses .sardoot-address-card--account {
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border-primary-tertiary, #e7e5e4);
        padding: 1rem 0;
    }

    .sardoot-account-addresses .sardoot-address-card--account:last-child {
        border-bottom: 0;
    }
}

/*
 * Orders filter chips — Splide autoWidth on mobile; wrap tablist from lg.
 * Splide 4.1.2 destroy keeps `is-initialized` and removes `is-active` but does
 * NOT add `is-destroyed`. Core then sets `.splide__list { display:block }`,
 * which stacks every chip full-width. Override that inactive state.
 */
.sardoot-account-orders__filters.is-initialized:not(.is-active) .splide__track,
.sardoot-account-orders__filters.is-desktop-filters .splide__track {
    overflow: visible;
}

.sardoot-account-orders__filters.is-initialized:not(.is-active) .splide__list,
.sardoot-account-orders__filters.is-desktop-filters .splide__list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    transform: none !important;
    height: auto;
}

.sardoot-account-orders__filters.is-initialized:not(.is-active) .splide__slide,
.sardoot-account-orders__filters.is-desktop-filters .splide__slide {
    width: auto !important;
    margin: 0 !important;
}

@media print {
    .sardoot-account-nav,
    .woocommerce-breadcrumb,
    [data-account-logout-dialog] {
        display: none !important;
    }

    /* A4 invoice (Figma 1:21090) */
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    html,
    body {
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    [data-account-invoice],
    [data-account-invoice] * {
        visibility: visible !important;
    }

    [data-account-invoice] {
        position: absolute;
        inset: 0;
        width: 100%;
        background: #fff !important;
        color: #171717 !important;
    }

    .sardoot-order-invoice__print-btn,
    .site-header,
    .site-footer,
    .website-wrapper > header,
    .sardoot-account-nav {
        display: none !important;
    }

    .sardoot-order-invoice__screen {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .sardoot-order-invoice header img {
        height: 3.625rem !important;
        max-width: 10rem !important;
    }

    .sardoot-order-invoice h1 {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }

    .sardoot-order-invoice .grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .sardoot-order-invoice section {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
    }

    .sardoot-order-invoice section h2 {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .sardoot-order-invoice section .text-sm {
        font-size: 0.625rem !important;
        line-height: 1.4 !important;
    }

    .sardoot-order-invoice__table-wrap {
        overflow: visible !important;
        border-radius: 0.75rem !important;
    }

    .sardoot-order-invoice__table {
        min-width: 0 !important;
        font-size: 0.625rem !important;
    }

    .sardoot-order-invoice__table th,
    .sardoot-order-invoice__table td {
        padding: 0.5rem !important;
    }

    .sardoot-order-invoice__grand {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sardoot-order-invoice .mt-10,
    .sardoot-order-invoice .lg\:mt-12 {
        margin-top: 1.5rem !important;
        font-size: 0.625rem !important;
    }
}


/* Account — Jalali birthday wheel picker (Figma 1:19849) */
.sardoot-birthday-picker-panel {
    width: 100%;
    max-width: 28.75rem; /* 460px */
    margin-inline: auto;
}

.sardoot-wheel-picker__frame {
    position: relative;
}

.sardoot-wheel-picker__columns {
    display: flex;
    justify-content: center;
    gap: 2.8125rem;
}

.sardoot-wheel-picker__column {
    width: 3.75rem;
    flex-shrink: 0;
}

.sardoot-wheel-picker__column[data-wheel-column="month"] {
    width: 5.5rem;
}

.sardoot-wheel-picker__viewport {
    position: relative;
    height: 11.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    touch-action: none;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 28%,
        #000 72%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 28%,
        #000 72%,
        transparent 100%
    );
}

.sardoot-wheel-picker__viewport.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.sardoot-wheel-picker__viewport::-webkit-scrollbar {
    display: none;
}

.sardoot-wheel-picker__list {
    margin: 0;
    padding: 4.5rem 0;
    list-style: none;
}

.sardoot-wheel-picker__item {
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    color: var(--color-text-quatenary, #79716b);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    transform: scale(0.78);
    opacity: 0.55;
    transition:
        color 0.15s ease,
        font-size 0.15s ease,
        font-weight 0.15s ease,
        transform 0.15s ease,
        opacity 0.15s ease;
}

.sardoot-wheel-picker__item.is-far {
    font-size: 0.8125rem;
    transform: scale(0.78);
    opacity: 0.55;
}

.sardoot-wheel-picker__item.is-near {
    font-size: 1rem;
    transform: scale(0.92);
    opacity: 0.78;
}

.sardoot-wheel-picker__item.is-selected {
    color: var(--color-text-primary, #0c0a09);
    font-size: 1.25rem;
    font-weight: 600;
    transform: scale(1.08);
    opacity: 1;
}

.sardoot-wheel-picker__highlight {
    pointer-events: none;
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 2.25rem;
    transform: translateY(-50%);
    border-block: 1px solid var(--color-border-primary-tertiary, #e7e5e4);
    z-index: 1;
}

.sardoot-wheel-picker__column .sardoot-wheel-picker__viewport {
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    .sardoot-wheel-picker__item {
        transition: none;
    }
}

/* Account — addresses / wishlist / orders list content has no outer card chrome (Figma Profile) */
.sardoot-account__content--flush,
.sardoot-account__content:has(.sardoot-account-addresses),
.sardoot-account__content:has(.sardoot-account-wishlist),
.sardoot-account__content:has(.sardoot-account-orders) {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent;
}

/* Mobile user-info — flush page (Figma 1:19522); desktop keeps bordered content card */
@media (max-width: 63.99rem) {
    .sardoot-account__content:has(.sardoot-account-profile) {
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent;
    }
}

.sardoot-account--view-order .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Order detail product row — Figma 1:20873 (thumb 92×122) */
.sardoot-account-order-detail__thumb {
    width: 5.75rem;
    height: 7.625rem;
    max-width: 5.75rem;
    max-height: 7.625rem;
}

.sardoot-account-order-detail__thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
}

.sardoot-account-order-detail__item {
    min-height: 0;
}
.sardoot-account-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.sardoot-account-notice[hidden],
.sardoot-account-notice.hidden {
    display: none;
    margin-bottom: 0;
}

.sardoot-account-notice--success {
    display: flex;
    border: 1px solid var(--color-text-success-primary, #007a55);
    background-color: var(--color-bg-success-primary, #ecfdf5);
    color: var(--color-text-primary, #0c0a09);
}

.sardoot-account-notice--error {
    display: flex;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.sardoot-account-notice__body {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.875rem;
    line-height: 1.4;
}

.sardoot-account-notice__close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-success-primary, #007a55);
    cursor: pointer;
}

.sardoot-account-notice__close:hover {
    opacity: 0.8;
}
