/* Afridi Fabrics — UI interactions, motion, polish */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

#site-announcement {
    height: 2.25rem;
}

body.has-site-announcement .site-header-offset {
    top: 2.25rem;
}

body.has-site-announcement #scroll-progress {
    top: 2.25rem;
}

#site-header {
    overflow: visible;
    transition: box-shadow 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.site-header-shell {
    isolation: isolate;
    overflow: visible;
}

.site-logo-img {
    display: block;
    height: 3.75rem;
    width: auto;
    max-width: none;
}

@media (min-width: 640px) {
    .site-logo-img {
        height: 4rem;
    }
}

@media (min-width: 1024px) {
    .site-logo-img {
        height: 5.25rem;
    }
}

@media (min-width: 1280px) {
    .site-logo-img {
        height: 5.5rem;
    }
}

.site-footer .site-logo-img {
    height: 5rem;
}

@media (min-width: 768px) {
    .site-footer .site-logo-img {
        height: 5.75rem;
    }
}

@media (min-width: 1024px) {
    .site-footer .site-logo-img {
        height: 6.25rem;
    }
}

@media (min-width: 1536px) {
    .site-header-brand {
        max-width: none;
    }
}

.site-header-nav {
    overflow: visible;
}

#desktop-nav .site-nav-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 2px;
    font-family: Manrope, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #4e4639;
    transition: color 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 1280px) {
    #desktop-nav .site-nav-link {
        font-size: 10px;
        letter-spacing: 0.12em;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 1536px) {
    #desktop-nav .site-nav-link {
        font-size: 11px;
        letter-spacing: 0.14em;
        padding: 0.55rem 0.85rem;
    }
}

#desktop-nav .site-nav-link:hover {
    color: #775a19;
    background-color: rgba(119, 90, 25, 0.1);
}

#desktop-nav .site-nav-link.is-active {
    color: #775a19;
    font-weight: 700;
    background-color: rgba(119, 90, 25, 0.14);
}

.site-nav-dropdown {
    position: relative;
}

.site-nav-dropdown__menu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 13.5rem;
    padding-top: 0.35rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 60;
}

.site-nav-dropdown:hover .site-nav-dropdown__menu,
.site-nav-dropdown:focus-within .site-nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav-dropdown__panel {
    background: #faf9f6;
    border: 1px solid #d1c5b4;
    box-shadow: 0 8px 24px rgba(26, 28, 26, 0.1);
    padding: 0.35rem 0;
}

.site-nav-dropdown__item {
    display: block;
    padding: 0.65rem 1rem;
    font-family: Manrope, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4e4639;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav-dropdown__item:hover {
    color: #775a19;
    background-color: rgba(119, 90, 25, 0.1);
}

.home-category-card .aspect-\[3\/4\] {
    box-shadow: 0 1px 0 rgba(127, 118, 103, 0.12);
}

@media (max-width: 767px) {
    body.has-site-announcement {
        padding-bottom: 4.5rem;
    }
}

.sticky-below-site-header {
    top: 4.75rem;
}

body.has-site-announcement .sticky-below-site-header {
    top: 7rem;
}

@media (min-width: 768px) {
    body.has-site-announcement .sticky-below-site-header {
        top: 7.25rem;
    }
}

@media (min-width: 1024px) {
    .sticky-below-site-header {
        top: 5.75rem;
    }

    body.has-site-announcement .sticky-below-site-header {
        top: 8rem;
    }
}

#site-header.header-scrolled {
    box-shadow: 0 4px 24px rgba(26, 28, 26, 0.08);
    background-color: rgba(250, 249, 246, 0.98);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

.btn-press:active {
    transform: scale(0.97);
}

.masonry-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.masonry-item.is-filtered-out {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

#mobile-nav-panel {
    animation: slideDownNav 0.3s ease;
}

@keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card-hover .product-actions {
    transform: translateY(12px);
}

.product-card-body {
    min-height: 11.5rem;
}

.product-card-title {
    min-height: 3.25rem;
}

.product-card-meta {
    min-height: 2rem;
}

.product-card-price {
    min-height: 1.5rem;
}

.product-card-desc {
    min-height: 2.75rem;
}

.product-card-cta {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

details[open] > summary .material-symbols-outlined {
    transform: rotate(180deg);
}

html.is-lightbox-open {
    overflow: hidden;
}

/* ── Collections faceted filters ── */

.collections-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 120px;
}

@media (min-width: 1024px) {
    .collections-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .collections-layout__sidebar {
        width: 17rem;
        flex-shrink: 0;
        position: sticky;
        top: 6.5rem;
        align-self: flex-start;
        z-index: 30;
    }

    body.has-site-announcement .collections-layout__sidebar {
        top: 8.75rem;
    }
}

.collections-layout__main {
    flex: 1;
    min-width: 0;
}

.facet-sidebar {
    padding: 1.25rem;
    background: #faf9f6;
    border: 1px solid #d1c5b4;
}

.facet-panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.facet-group {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.facet-group__title {
    display: block;
    width: 100%;
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #d1c5b4;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a1c1a;
}

.facet-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.facet-list--scroll {
    max-height: 11rem;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #c5b8a8 transparent;
}

.facet-list--scroll::-webkit-scrollbar {
    width: 4px;
}

.facet-list--scroll::-webkit-scrollbar-thumb {
    background: #c5b8a8;
    border-radius: 4px;
}

.facet-check {
    display: grid;
    grid-template-columns: 1.125rem 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.35rem;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.facet-check:hover:not(.is-disabled) {
    background: rgba(119, 90, 25, 0.05);
}

.facet-check.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.facet-check__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.facet-check__box {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid #7f7667;
    border-radius: 3px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.facet-check__box::after {
    content: "";
    width: 0.35rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform 0.15s ease;
}

.facet-check__input:checked + .facet-check__box {
    background: #775a19;
    border-color: #775a19;
}

.facet-check__input:checked + .facet-check__box::after {
    transform: rotate(45deg) scale(1);
}

.facet-check__input:focus-visible + .facet-check__box {
    outline: 2px solid #775a19;
    outline-offset: 2px;
}

.facet-check__label {
    font-size: 0.875rem;
    line-height: 1.35;
    color: #4e4639;
    transition: color 0.2s ease;
}

.facet-check.is-checked .facet-check__label,
.facet-check:hover:not(.is-disabled) .facet-check__label {
    color: #775a19;
}

.facet-check__count {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #7f7667;
    min-width: 1.25rem;
    text-align: right;
}

.facet-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.facet-swatch {
    position: relative;
    cursor: pointer;
}

.facet-swatch.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.facet-swatch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.facet-swatch__chip {
    display: block;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background-color: var(--swatch-color, #e3e2e0);
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(26, 28, 26, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.facet-swatch__chip--neutral {
    background: linear-gradient(135deg, #efeeeb 50%, #e3e2e0 50%);
}

.facet-swatch:hover:not(.is-disabled) .facet-swatch__chip {
    transform: scale(1.08);
}

.facet-swatch.is-checked .facet-swatch__chip,
.facet-swatch__input:checked + .facet-swatch__chip {
    border-color: #775a19;
    box-shadow: 0 0 0 2px rgba(119, 90, 25, 0.22);
}

.facet-swatch__input:focus-visible + .facet-swatch__chip {
    outline: 2px solid #775a19;
    outline-offset: 2px;
}

.facet-swatch-labels {
    margin-top: 0.65rem;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: #775a19;
}

.facet-selects {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.facet-select {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.facet-select__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7f7667;
}

.facet-select__control {
    width: 100%;
    border: 1px solid #d1c5b4;
    background: transparent;
    padding: 0.55rem 0.65rem;
    font-size: 0.8125rem;
    color: #1a1c1a;
    border-radius: 2px;
}

.facet-select__control:focus {
    border-color: #775a19;
    outline: none;
    box-shadow: 0 0 0 1px #775a19;
}

.facet-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.facet-panel__apply {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #775a19;
    color: #fff;
    padding: 0.85rem 1rem;
    min-height: 2.75rem;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.25;
    text-transform: uppercase;
    transition: filter 0.2s ease;
}

.facet-panel__apply:hover {
    filter: brightness(1.08);
}

.facet-panel__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    border: 1px solid #d1c5b4;
    color: #4e4639;
    padding: 0.85rem 1rem;
    min-height: 2.75rem;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.25;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.facet-panel__clear:hover {
    border-color: #775a19;
    color: #775a19;
}

.facet-empty {
    font-size: 0.8125rem;
    color: #7f7667;
}

.facet-mobile-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #d1c5b4;
    padding: 0.85rem 1rem;
    background: #faf9f6;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a1c1a;
}

.facet-mobile-toggle__left {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.facet-mobile-toggle__badge {
    font-size: 9px;
    background: #c5a059;
    color: #261900;
    padding: 0.15rem 0.45rem;
    letter-spacing: 0.08em;
}

.facet-mobile-toggle__chevron {
    transition: transform 0.25s ease;
}

.facet-mobile-toggle[aria-expanded="true"] .facet-mobile-toggle__chevron {
    transform: rotate(180deg);
}

.facet-mobile-panel {
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid #d1c5b4;
    background: #f4f3f1;
}

.collections-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .collections-search {
        flex-direction: row;
    }
}

.collections-search__input {
    flex: 1;
    border: 1px solid #d1c5b4;
    background: transparent;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
}

.collections-search__input:focus {
    border-color: #775a19;
    outline: none;
}

.collections-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #775a19;
    color: #fff;
    padding: 0.85rem 1.5rem;
    min-height: 2.75rem;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.25;
    text-transform: uppercase;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3e2e0;
}

.active-filters__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7f7667;
}

.active-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.active-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #775a19;
    background: rgba(119, 90, 25, 0.06);
    color: #775a19;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease;
}

.active-filters__chip:hover {
    background: rgba(119, 90, 25, 0.12);
}

.active-filters__remove {
    font-size: 14px !important;
    line-height: 1;
}

.active-filters__clear {
    margin-left: auto;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #775a19;
    border-bottom: 1px solid #775a19;
}

.collections-results__header {
    margin-bottom: 0.5rem;
}

.collections-results__title {
    font-family: "Playfair Display", serif;
    font-size: 1.75rem;
    color: #1a1c1a;
}

.collections-results__meta {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #4e4639;
}

.collections-results__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .collections-results__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .collections-results__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.collections-results__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    background: #f4f3f1;
    border: 1px solid #d1c5b4;
    color: #4e4639;
}

.collections-results__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.collections-results__page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #775a19;
    color: #775a19;
    padding: 0.5rem 1.5rem;
    min-height: 2.5rem;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.25;
    text-transform: uppercase;
}

.collections-results__page-info {
    font-size: 0.875rem;
    color: #4e4639;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.facet-panel.is-submitting {
    opacity: 0.65;
    pointer-events: none;
}

/* ── Site-wide button label centering ── */
.site-btn,
a.font-label-caps[class*="py-"],
button.font-label-caps[class*="py-"],
a.font-label-caps[class*="px-"][class*="py-"],
button.font-label-caps[class*="px-"][class*="py-"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.25;
    min-height: 2.75rem;
    text-align: center;
    box-sizing: border-box;
}

a.font-label-caps .material-symbols-outlined,
button.font-label-caps .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.product-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    min-height: 2.75rem;
}

/* ── Customer reviews marquee (about page) ── */
.customer-reviews {
    background: #faf9f6;
}

.reviews-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.reviews-marquee__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0.25rem 0 1rem;
    animation: reviews-scroll-rtl 45s linear infinite;
    will-change: transform;
}

.reviews-marquee:hover .reviews-marquee__track {
    animation-play-state: paused;
}

@keyframes reviews-scroll-rtl {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.review-card {
    flex: 0 0 auto;
    width: min(22rem, 85vw);
    min-height: 14rem;
    padding: 1.75rem 1.5rem;
    background: #fff;
    border: 1px solid #d1c5b4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(26, 28, 26, 0.04);
}

.review-card__stars {
    display: flex;
    gap: 0.15rem;
}

.review-card__star {
    font-size: 1.125rem;
    color: #d1c5b4;
    line-height: 1;
}

.review-card__star--filled {
    color: #775a19;
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.review-card__comment {
    flex: 1;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4e4639;
}

.review-card__footer {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.5rem;
    border-top: 1px solid #efeeeb;
}

.review-card__name {
    font-family: Manrope, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1c1a;
}

.review-card__location {
    font-size: 0.75rem;
    color: #7f7667;
}

.review-card__project {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #775a19;
}

@media (prefers-reduced-motion: reduce) {
    .reviews-marquee:not(.reviews-marquee--static) {
        display: none;
    }

    .reviews-marquee--static {
        display: block !important;
    }

    .reviews-marquee__track {
        animation: none;
    }
}
