:root {
    --ck-bg: #f4eee2;
    --ck-surface: #fffdf8;
    --ck-ink: #3b2a1e;
    --ck-ink-soft: #6b5847;
    --ck-muted: #8a7864;
    --ck-accent: #b06a3f;
    --ck-accent-dark: #8f4f2d;
    --ck-gold: #c9a66b;
    --ck-border: #e6dcc8;
    --ck-radius: 16px;
    --ck-radius-sm: 10px;
    /*--ck-font: "Vazirmatn", "Iranian Sans", Tahoma, "Segoe UI", sans-serif;*/
    
}

/*@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}*/
@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/amiri-regular.ttf") format("truetype");
    /*font-weight: 600;*/
    font-display: swap;
}
    * {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ck-bg);
    color: var(--ck-ink);
    font-family: Vazirmatn ;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.empty-state {
    color: var(--ck-muted);
    text-align: center;
    padding: 24px 12px;
}

/* ============================================================
   Top gold accent line — replaces the old plain header bar
   ============================================================ */
.top-gold-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ck-gold) 50%, transparent);
}

/* ============================================================
   Hero
   ============================================================ */
.site-hero {
    text-align: center;
    padding: 28px 16px 18px;
    max-width: 640px;
    margin: 0 auto;
}

.site-hero__title {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.site-hero__slogan {
    margin: 0;
    color: var(--ck-muted);
    font-size: 0.9rem;
    line-height: 1.9;
}

.site-hero__divider {
    margin: 14px auto 0;
    color: var(--ck-gold);
    letter-spacing: 10px;
    font-size: 0.8rem;
}

/* Consistent focus ring across all interactive public-site elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(176, 106, 63, 0.35);
    outline-offset: 2px;
}

/* ============================================================
   Category tabs — horizontal scroll on mobile, wraps on desktop
   ============================================================ */
.category-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 16px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

.category-tab {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 18px;
    border-radius: var(--ck-radius-sm);
    background: var(--ck-surface);
    border: 1px solid var(--ck-border);
    text-decoration: none;
    color: var(--ck-ink-soft);
    min-width: 92px;
    text-align: center;
}

.category-tab__name {
    font-weight: 700;
    font-size: 0.92rem;
}

.category-tab__tagline {
    font-size: 0.72rem;
    color: var(--ck-muted);
}

.category-tab--active {
    background: var(--ck-ink);
    border-color: var(--ck-ink);
    color: #fff;
}

    .category-tab--active .category-tab__tagline {
        color: var(--ck-gold);
    }

@media (min-width: 720px) {
    .category-tabs {
        justify-content: center;
        overflow: visible;
    }
}

/* ============================================================
   Category section + product grid
   ============================================================ */
.category-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px 40px;
    text-align: center;
}

.category-section__title {
    margin: 12px 0 2px;
    font-size: 1.3rem;
}

.category-section__tagline {
    margin: 0 0 20px;
    color: var(--ck-muted);
    font-size: 0.85rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: right;
}

@media (min-width: 560px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   Product card — image with hover-reveal text, matches the
   reference screenshots. Hover only (desktop/pointer devices);
   on touch, tapping goes straight to the product page, where the
   same quote is shown again under the title.
   ============================================================ */
.product-card {
    display: block;
    background: var(--ck-surface);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--ck-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .product-card:hover,
    .product-card:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(59, 42, 30, 0.12);
        outline: none;
    }

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9e0cf;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.product-card:hover .product-card__image,
.product-card:focus-visible .product-card__image {
    transform: scale(1.08);
    opacity: 0.72;
}

.product-card__image--placeholder {
    background: linear-gradient(135deg, #e9e0cf, #d8cbb1);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--ck-surface);
    color: var(--ck-accent-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.product-card__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(180deg, rgba(20, 14, 8, 0.15), rgba(20, 14, 8, 0.65));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover .product-card__hover,
.product-card:focus-visible .product-card__hover {
    opacity: 1;
}

.product-card__hover-text {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.9;
}

.product-card__body {
    padding: 14px 16px 16px;
}

.product-card__name {
    margin: 0 0 4px;
    font-size: 1rem;
}

.product-card__desc {
    margin: 0 0 10px;
    color: var(--ck-muted);
    font-size: 0.8rem;
}

.product-card__price {
    display: block;
    font-weight: 700;
    color: var(--ck-accent-dark);
    font-size: 0.9rem;
}

/* ============================================================
   Product detail page
   ============================================================ */
.product-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--ck-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.product-detail {
    background: var(--ck-surface);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.product-detail__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    display: block;
}

/* ============================================================
   Image slider (product detail page)
   ============================================================ */
.slider {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e9e0cf;
    overflow: hidden;
}

.slider__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider__slide--active {
    opacity: 1;
}

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

.slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 14, 8, 0.45);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider__nav:hover {
        background: rgba(20, 14, 8, 0.7);
    }

.slider__nav--prev {
    left: 10px;
}

.slider__nav--next {
    right: 10px;
}

.slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}

.slider__dot--active {
    background: #fff;
    transform: scale(1.2);
}

.product-detail__info {
    padding: 20px;
}

.product-detail__name {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.product-detail__quote {
    color: var(--ck-accent-dark);
    font-size: 0.9rem;
    line-height: 1.9;
    margin: 0 0 12px;
}

.product-detail__desc {
    color: var(--ck-ink-soft);
    line-height: 1.9;
    margin: 0 0 16px;
}

.product-detail__price {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ck-accent-dark);
}

/* ============================================================
   Comments
   ============================================================ */
.comments-section__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.comment-notice {
    padding: 10px 14px;
    border-radius: var(--ck-radius-sm);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.comment-notice--success {
    background: #eaf3ea;
    color: #2f5d34;
}

.comment-notice--error {
    background: #fbeceb;
    color: #b3261e;
}

.comment {
    background: var(--ck-surface);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.comment__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--ck-muted);
    margin-bottom: 6px;
}

.comment__text {
    margin: 0;
    line-height: 1.8;
    font-size: 0.92rem;
}

.comment__reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--ck-bg);
    border-radius: var(--ck-radius-sm);
    font-size: 0.85rem;
}

    .comment__reply p {
        margin: 4px 0 0;
    }

/* ============================================================
   Comment form
   ============================================================ */
.comment-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--ck-surface);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius);
    padding: 18px;
}

.comment-form__honeypot {
    /*    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;

}*/
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
}

    .comment-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .comment-form__row label {
        font-size: 0.85rem;
        color: var(--ck-ink-soft);
        font-weight: 600;
    }

    .comment-form__row input,
    .comment-form__row select,
    .comment-form__row textarea {
        border: 1px solid var(--ck-border);
        border-radius: var(--ck-radius-sm);
        padding: 10px 12px;
        font-family: inherit;
        font-size: 16px;
        background: #fff;
        color: var(--ck-ink);
    }

    .comment-form__row textarea {
        min-height: 90px;
        resize: vertical;
    }

.btn-submit {
    height: 46px;
    border: none;
    border-radius: var(--ck-radius-sm);
    background: var(--ck-accent);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

    .btn-submit:hover {
        background: var(--ck-accent-dark);
    }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    text-align: center;
    padding: 24px 20px 32px;
    margin-top: 12px;
    border-top: 1px solid var(--ck-border);
    color: var(--ck-muted);
    font-size: 0.8rem;
}
.site-divider {
    margin: 0;
    border: 0;
    border-top: 1px solid #ead9c7;
}