.product-card-image {
    aspect-ratio: 4 / 5;
    transition: transform 180ms ease;
}

.product-card-body {
    min-height: 9.25rem;
}

.product-card-title {
    font-size: 0.94rem;
    line-height: 1.35;
    min-height: 2.55rem;
}

.product-card-price {
    color: #ea580c;
}

.product-card-stars {
    color: #f59e0b;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.product-card-shop-icon {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(212, 212, 216, 0.9);
    border-radius: 999px;
    bottom: 0.75rem;
    box-shadow: 0 10px 24px rgba(24, 24, 27, 0.12);
    color: #18181b;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: 0.75rem;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
    width: 2.25rem;
}

[dir="rtl"] .product-card-shop-icon {
    left: 0.75rem;
    right: auto;
}

.product-card-shop-icon svg {
    height: 1.15rem;
    width: 1.15rem;
}

.product-card:hover .product-card-shop-icon {
    background: #18181b;
    color: #fff;
    transform: translateY(-2px);
}

.group:hover .product-card-image {
    transform: scale(1.03);
}

.product-main-image {
    aspect-ratio: 4 / 5;
}

.brand-text {
    color: #18181b;
    display: inline-block;
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.05;
    text-transform: uppercase;
}

.brand-text-footer {
    color: #f4f4f5;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.brand-rule {
    background: linear-gradient(90deg, transparent, #b08a3c, transparent);
    height: 1px;
    width: min(260px, 70vw);
}

.brand-rule-footer {
    background: linear-gradient(90deg, transparent, #d6b76a, transparent);
}

input,
textarea,
select {
    outline: none;
}

.admin-modal-open {
    overflow: hidden;
}

.admin-form .admin-field {
    color: #18181b;
    display: grid;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.35rem;
    min-width: 0;
}

.admin-form .admin-field input,
.admin-form .admin-field select,
.admin-form .admin-field textarea {
    background: #fff;
    border: 1px solid #d4d4d8;
    border-radius: 0.5rem;
    color: #18181b;
    font-weight: 400;
    max-width: 100%;
    min-height: 2.65rem;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
}

.admin-form .admin-field input:focus,
.admin-form .admin-field select:focus,
.admin-form .admin-field textarea:focus {
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.12);
}

.admin-form .admin-field input[type="file"] {
    padding: 0.5rem;
}

.admin-form .admin-help {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
}

.admin-form .admin-error {
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 500;
    min-height: 1rem;
}

.admin-input-invalid {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
}

.admin-modal {
    animation: admin-modal-fade 160ms ease both;
}

.admin-modal > div {
    animation: admin-modal-rise 220ms ease both;
}

main input:not([type="checkbox"]):not([type="radio"]),
main select,
main textarea {
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

main input:not([type="checkbox"]):not([type="radio"]):focus,
main select:focus,
main textarea:focus {
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
}

@keyframes admin-modal-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes admin-modal-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-long-description h2,
.product-long-description h3,
.product-long-description h4 {
    color: #18181b;
    font-weight: 700;
    margin: 1.25rem 0 0.65rem;
}

.product-long-description p {
    margin: 0.75rem 0;
}

.product-long-description ul,
.product-long-description ol {
    margin: 0.75rem 1.25rem;
}

.product-long-description li {
    margin: 0.35rem 0;
}

.product-long-description img {
    border-radius: 0.75rem;
    margin: 1rem 0;
    max-width: 100%;
}

.category-hero {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,248,243,0.96)),
        radial-gradient(circle at 50% 0%, rgba(176,138,60,0.18), transparent 42%);
}

.home-welcome-hero {
    background:
        linear-gradient(135deg, #ffffff 0%, #faf8f3 48%, #f2eee4 100%);
}

.home-welcome-copy {
    align-content: center;
    min-height: 21rem;
}

.home-hero-collection-grid {
    display: grid;
    align-content: center;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 21rem;
}

.home-hero-tile {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(212, 212, 216, 0.9);
    border-radius: 0.75rem;
    display: flex;
    gap: 0.85rem;
    min-height: 6.4rem;
    overflow: hidden;
    padding: 0.9rem;
    position: relative;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-hero-tile:hover {
    border-color: rgba(24, 24, 27, 0.28);
    box-shadow: 0 14px 35px rgba(24, 24, 27, 0.08);
    transform: translateY(-2px);
}

.home-hero-icon {
    align-items: center;
    background: #18181b;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.85rem;
    justify-content: center;
    width: 2.85rem;
}

.home-hero-icon svg {
    height: 1.55rem;
    width: 1.55rem;
}

.home-hero-tile div {
    color: #18181b;
    min-width: 0;
}

.home-hero-tile h2 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-hero-tile p {
    color: #71717a;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.home-hero-tile:last-child {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .home-welcome-copy {
        min-height: auto;
    }

    .home-hero-collection-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero-tile,
    .home-hero-tile:last-child {
        grid-column: auto;
        min-height: 5.8rem;
    }
}

.home-category-section {
    position: relative;
}

.home-products > a,
.home-products > div > a {
    height: 100%;
}

.home-products-compact .product-card-image {
    aspect-ratio: 1 / 1.12;
}

.home-products-compact a {
    border-radius: 0.5rem;
}

.home-products-compact a > div:last-child {
    padding: 0.65rem;
}

.home-products-compact h3 {
    font-size: 0.84rem;
    line-height: 1.3;
    min-height: 2.15rem;
}

.home-products-compact .product-card-body {
    min-height: 8.3rem;
}

.home-style-marketplace .product-card,
.category-style-marketplace .product-card {
    border-color: #eeeeee;
    border-radius: 0.45rem;
    box-shadow: none;
}

.home-style-marketplace .product-card:hover,
.category-style-marketplace .product-card:hover {
    box-shadow: 0 10px 24px rgba(24, 24, 27, 0.08);
}

.home-style-marketplace .product-card-image,
.category-style-marketplace .product-card-image {
    aspect-ratio: 1 / 1.08;
}

.home-style-marketplace .product-card-body,
.category-style-marketplace .product-card-body {
    min-height: 7.65rem;
    padding: 0.55rem 0.6rem 0.65rem;
}

.home-style-marketplace .product-card-title,
.category-style-marketplace .product-card-title {
    font-size: 0.78rem;
    line-height: 1.25;
    min-height: 1.95rem;
}

.home-style-marketplace .product-card-price,
.category-style-marketplace .product-card-price {
    color: #f97316;
    font-size: 1.08rem;
    font-weight: 800;
}

.home-style-marketplace .product-card-stars,
.category-style-marketplace .product-card-stars {
    color: #fb923c;
    font-size: 0.62rem;
}

.home-style-marketplace .product-card-available,
.category-style-marketplace .product-card-available {
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
}

.home-style-marketplace .product-card-note,
.category-style-marketplace .product-card-note {
    color: #78716c;
    font-size: 0.66rem;
    margin-top: 0.35rem;
}

.home-style-marketplace .product-card-promo-badge,
.category-style-marketplace .product-card-promo-badge {
    background: #f97316;
    border-radius: 0.35rem;
    font-size: 0.62rem;
    padding: 0.25rem 0.45rem;
}

.home-style-marketplace .product-card-shop-icon,
.category-style-marketplace .product-card-shop-icon {
    background: #f97316;
    border-color: #f97316;
    bottom: 0.5rem;
    color: #fff;
    height: 1.9rem;
    right: 0.5rem;
    width: 1.9rem;
}

[dir="rtl"] .home-style-marketplace .product-card-shop-icon,
[dir="rtl"] .category-style-marketplace .product-card-shop-icon {
    left: 0.5rem;
    right: auto;
}

.home-style-marketplace .product-card-shop-icon svg,
.category-style-marketplace .product-card-shop-icon svg {
    height: 1rem;
    width: 1rem;
}

@media (max-width: 640px) {
    .product-card-body {
        min-height: 8.55rem;
    }

    .product-card-title {
        font-size: 0.86rem;
        min-height: 2.35rem;
    }

    .product-card-stars {
        font-size: 0.68rem;
    }

    .home-style-marketplace .product-card-body,
    .category-style-marketplace .product-card-body {
        min-height: 7.2rem;
        padding: 0.5rem;
    }

    .home-style-marketplace .product-card-title,
    .category-style-marketplace .product-card-title {
        font-size: 0.74rem;
    }
}

.home-products-scroll {
    scroll-snap-type: x mandatory;
    scrollbar-color: #d4d4d8 transparent;
}

.home-products-scroll::-webkit-scrollbar {
    height: 8px;
}

.home-products-scroll::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 999px;
}

.home-product-scroll-item {
    flex: 0 0 min(76vw, 270px);
    scroll-snap-align: start;
}

.home-products-spotlight .home-product-featured .product-card-image {
    aspect-ratio: 4 / 5.25;
}

.home-products-spotlight .home-product-featured h3 {
    font-size: 1.08rem;
}

.home-products-showcase .product-card-image {
    aspect-ratio: 16 / 13;
}

@media (min-width: 1024px) {
    .home-products-spotlight {
        grid-auto-flow: dense;
    }

    .home-products-spotlight > a .product-card-image {
        aspect-ratio: 1 / 1.05;
    }

    .home-products-showcase > a:nth-child(4n + 1) {
        grid-column: span 2;
    }

    .home-products-showcase > a:nth-child(4n + 1) .product-card-image {
        aspect-ratio: 16 / 8.8;
    }
}

.filter-backdrop {
    background: rgba(24, 24, 27, 0.48);
    inset: 0;
    animation: filter-fade 180ms ease both;
    position: fixed;
    touch-action: none;
    z-index: 2147482990;
}

.filter-backdrop.hidden {
    display: none !important;
}

@media (max-width: 1023px) {
    body.filter-open {
        overflow: hidden;
    }

    .category-filters {
        background: #fff !important;
        border-radius: 18px 18px 0 0 !important;
        bottom: 0;
        box-shadow: 0 24px 70px rgba(24, 24, 27, 0.28);
        height: min(84dvh, 720px);
        left: 0 !important;
        max-width: none;
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        right: 0 !important;
        top: auto;
        transform: translateY(calc(100% + 32px));
        transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 180ms ease, visibility 260ms ease;
        touch-action: pan-y;
        visibility: hidden;
        width: 100%;
        z-index: 2147483000;
    }

    .category-filters *,
    .category-filters input,
    .category-filters button,
    .category-filters a,
    .category-filters label {
        pointer-events: auto;
    }

    .category-filters.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .category-filter-option {
        align-items: center;
        min-height: 46px;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }

    .category-filter-option input {
        accent-color: #18181b;
        flex: 0 0 auto;
        height: 1.25rem;
        opacity: 1;
        position: relative;
        touch-action: manipulation;
        width: 1.25rem;
        z-index: 1;
    }
}

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

.page-skeleton {
    background: #faf8f3;
    inset: 0;
    opacity: 1;
    pointer-events: none;
    position: fixed;
    transition: opacity 260ms ease, visibility 260ms ease;
    visibility: visible;
    z-index: 9999;
}

body:not(.is-loading) .page-skeleton {
    opacity: 0;
    visibility: hidden;
}

.skeleton-line,
.skeleton-card {
    background: linear-gradient(90deg, #eee8df 25%, #f8f4ed 37%, #eee8df 63%);
    background-size: 400% 100%;
    border-radius: 12px;
    animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

.skeleton-card {
    aspect-ratio: 4 / 5;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.page-content,
header,
footer {
    transition: opacity 280ms ease, transform 280ms ease;
}

body.is-loading .page-content,
body.is-loading header,
body.is-loading footer {
    opacity: 0;
    transform: translateY(8px);
}

.theme-motion-none *,
.theme-motion-none *::before,
.theme-motion-none *::after {
    animation: none !important;
    transition: none !important;
}

.theme-motion-subtle .group,
.theme-motion-smooth .group,
.theme-motion-lively .group {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.theme-motion-smooth .page-content > section > *,
.theme-motion-lively .page-content > section > * {
    animation: content-rise 420ms ease both;
}

.theme-motion-lively .page-content > section > *:nth-child(2) {
    animation-delay: 70ms;
}

.theme-motion-lively .page-content > section > *:nth-child(3) {
    animation-delay: 120ms;
}

@keyframes content-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-loading {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    justify-content: center;
    opacity: 0.86;
    pointer-events: none;
}

.btn-loading::before {
    animation: button-spin 700ms linear infinite;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    content: "";
    height: 1rem;
    width: 1rem;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
