/* ============================================================
   MiniSite_v42 — صنایع‌دستی و هنر (Handicrafts / artisan studio)
   Architecture: SWIPE CARD-DECK NAV. Earthy terracotta/clay + cream palette.
   Prefix: cw-  (craft works)
   ============================================================ */

.cw-root {
    --clay: #b85c38;
    --clay-dark: #8a4226;
    --terra: #c97b50;
    --cream: #f3e9dc;
    --cream-soft: #faf4ec;
    --sand: #e8d8c3;
    --ink: #3b2a20;
    --ink-soft: #6b5546;
    --olive: #7a7250;
    --gold: #c79a4b;
    --shadow: 0 24px 60px rgba(74, 44, 26, .22);
    --radius: 26px;
    font-family: Vazir, Vazirmatn, Tahoma, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 20% 10%, #f6ede0 0%, #efe2d1 45%, #e7d6c0 100%);
    direction: rtl;
    line-height: 1.85;
    overflow-x: hidden;
}

.cw-root * { box-sizing: border-box; }
.cw-root img { max-width: 100%; display: block; }
.cw-root h1, .cw-root h2, .cw-root h3, .cw-root h4 { margin: 0; font-weight: 800; line-height: 1.45; color: var(--ink); }
.cw-root p { margin: 0; }

.cw-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ── Buttons ── */
.cw-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 26px; border-radius: 50px; font-weight: 800; font-size: .98rem;
    text-decoration: none; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}
.cw-btn-primary { background: linear-gradient(135deg, var(--clay), var(--clay-dark)); color: #fff; box-shadow: 0 12px 26px rgba(138, 66, 38, .35); }
.cw-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(138, 66, 38, .45); color: #fff; }
.cw-btn-ghost { background: rgba(184, 92, 56, .1); color: var(--clay-dark); border: 1.5px solid rgba(184, 92, 56, .35); }
.cw-btn-ghost:hover { background: rgba(184, 92, 56, .18); color: var(--clay-dark); }
.cw-btn-outline { background: transparent; color: var(--clay-dark); border: 1.5px solid var(--clay); }
.cw-btn-outline:hover { background: var(--clay); color: #fff; }

/* ── Topbar ── */
.cw-topbar {
    position: sticky; top: 0; z-index: 500;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 26px; backdrop-filter: blur(10px);
    background: rgba(250, 244, 236, .82); border-bottom: 1px solid rgba(138, 66, 38, .12);
}
.cw-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.cw-brand-mark {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--clay), var(--terra)); box-shadow: 0 8px 18px rgba(184, 92, 56, .35);
}
.cw-brand-name { font-weight: 800; font-size: 1.18rem; }
.cw-topbar-meta { font-size: .9rem; color: var(--ink-soft); display: inline-flex; gap: 7px; align-items: center; }
.cw-topbar-meta i { color: var(--clay); }
.cw-topbar-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-weight: 800; font-size: .92rem; text-decoration: none; background: var(--ink); color: var(--cream); transition: background .2s, transform .2s; }
.cw-topbar-cta:hover { background: var(--clay-dark); color: #fff; transform: translateY(-2px); }

/* ============================================================
   CARD DECK STAGE
   ============================================================ */
.cw-deck-stage { padding: 46px 18px 30px; }
.cw-deck-frame {
    position: relative; max-width: 940px; margin: 0 auto;
    perspective: 1600px;
}
.cw-deck {
    position: relative;
    min-height: 640px;
    user-select: none;
}

.cw-card {
    position: absolute; inset: 0;
    background: linear-gradient(170deg, var(--cream-soft), #fff 60%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(138, 66, 38, .1);
    overflow: hidden;
    transition: transform .55s cubic-bezier(.34, 1.2, .4, 1), opacity .45s ease, box-shadow .4s;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
}
.cw-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
    background: linear-gradient(90deg, var(--clay), var(--gold), var(--terra));
}
.cw-card.is-active { box-shadow: 0 34px 80px rgba(74, 44, 26, .3); }

.cw-card-inner {
    height: 100%; overflow-y: auto; overflow-x: hidden;
    padding: 38px 40px 40px;
    scrollbar-width: thin; scrollbar-color: var(--sand) transparent;
}
.cw-card-inner::-webkit-scrollbar { width: 7px; }
.cw-card-inner::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 4px; }

.cw-card-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 800;
    background: rgba(184, 92, 56, .12); color: var(--clay-dark); margin-bottom: 16px;
}
.cw-card-inner h2 { font-size: 1.7rem; margin-bottom: 22px; }

/* ── Intro card ── */
.cw-card--intro .cw-card-inner { display: flex; flex-direction: column; }
.cw-intro-img { border-radius: 20px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 14px 30px rgba(74, 44, 26, .2); }
.cw-intro-img img { width: 100%; height: 260px; object-fit: cover; }
.cw-card--intro h1 { font-size: 2.1rem; margin-bottom: 14px; }
.cw-intro-body p { color: var(--ink-soft); font-size: 1.05rem; }
.cw-intro-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cw-swipe-hint { margin-top: 22px; font-size: .85rem; color: var(--olive); display: inline-flex; align-items: center; gap: 8px; }

/* ── Craft list card ── */
.cw-craft-list { display: grid; gap: 16px; }
.cw-craft { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(232, 216, 195, .35); }
.cw-craft-icon { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--clay), var(--terra)); }
.cw-craft h4 { font-size: 1.12rem; margin-bottom: 5px; }
.cw-craft p { color: var(--ink-soft); font-size: .95rem; }

/* ── Collection card ── */
.cw-pieces { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cw-piece { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 22px rgba(74, 44, 26, .1); border: 1px solid rgba(138, 66, 38, .08); }
.cw-piece-img { height: 160px; overflow: hidden; }
.cw-piece-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cw-piece:hover .cw-piece-img img { transform: scale(1.07); }
.cw-piece-body { padding: 14px 16px; }
.cw-piece-body h4 { font-size: 1.02rem; margin-bottom: 7px; }
.cw-piece-mat { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--olive); }
.cw-piece-price { display: block; margin-top: 8px; font-weight: 800; color: var(--clay-dark); }

/* ── About card ── */
.cw-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.cw-about-img { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px rgba(74, 44, 26, .2); }
.cw-about-img img { width: 100%; height: 320px; object-fit: cover; }
.cw-about-badge { position: absolute; bottom: 16px; right: 16px; background: var(--clay); color: #fff; border-radius: 16px; padding: 12px 18px; text-align: center; box-shadow: 0 10px 24px rgba(138, 66, 38, .4); }
.cw-about-badge .years { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.cw-about-badge .text { font-size: .8rem; opacity: .92; }
.cw-about-text h2 { margin-bottom: 14px; }
.cw-about-text p { color: var(--ink-soft); }
.cw-about-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.cw-about-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cw-about-list i { color: var(--clay); }

/* ── Process card ── */
.cw-process { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cw-step { padding: 20px; border-radius: 18px; background: rgba(232, 216, 195, .35); position: relative; }
.cw-step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--clay), var(--clay-dark)); margin-bottom: 12px; }
.cw-step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.cw-step p { color: var(--ink-soft); font-size: .92rem; }

/* ── Stats card ── */
.cw-card--stats .cw-card-inner { display: flex; flex-direction: column; justify-content: center; }
.cw-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cw-stat { text-align: center; padding: 24px 14px; border-radius: 18px; background: rgba(232, 216, 195, .4); }
.cw-stat-icon { font-size: 1.7rem; color: var(--clay); margin-bottom: 10px; }
.cw-stat-num { font-size: 2rem; font-weight: 800; color: var(--clay-dark); }
.cw-stat-lbl { color: var(--ink-soft); font-size: .92rem; margin-top: 4px; }

/* ── Values card ── */
.cw-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cw-value { padding: 22px; border-radius: 18px; background: rgba(232, 216, 195, .35); text-align: center; }
.cw-value-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: var(--clay-dark); background: rgba(199, 154, 75, .18); }
.cw-value h4 { font-size: 1.05rem; margin-bottom: 7px; }
.cw-value p { color: var(--ink-soft); font-size: .92rem; }

/* ── Gallery card ── */
.cw-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cw-gal-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; }
.cw-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cw-gal-item:hover img { transform: scale(1.08); }
.cw-gal-cap { position: absolute; inset: auto 0 0 0; padding: 18px 12px 10px; font-size: .85rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(59, 42, 32, .82)); }

/* ── Pricing card ── */
.cw-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.cw-plan { position: relative; padding: 26px 22px; border-radius: 20px; background: #fff; border: 1.5px solid rgba(138, 66, 38, .12); text-align: center; }
.cw-plan--featured { border-color: var(--clay); background: linear-gradient(170deg, #fff, var(--cream-soft)); box-shadow: 0 14px 30px rgba(184, 92, 56, .2); }
.cw-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--clay); color: #fff; padding: 4px 16px; border-radius: 50px; font-size: .76rem; font-weight: 800; }
.cw-plan h3 { font-size: 1.2rem; margin-bottom: 12px; }
.cw-plan-amount { font-size: 1.6rem; font-weight: 800; color: var(--clay-dark); }
.cw-plan-period { font-size: .85rem; color: var(--ink-soft); }
.cw-plan-features { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; text-align: right; }
.cw-plan-features li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.cw-plan-features i { color: var(--clay); }
.cw-plan-note { font-size: .82rem; color: var(--olive); margin-bottom: 14px; }
.cw-plan .cw-btn { width: 100%; justify-content: center; }

/* ── Testimonials card ── */
.cw-tests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cw-test { padding: 22px; border-radius: 18px; background: rgba(232, 216, 195, .35); }
.cw-test-stars { color: var(--gold); margin-bottom: 10px; font-size: .9rem; }
.cw-test-text { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }
.cw-test-foot { display: flex; align-items: center; gap: 12px; }
.cw-test-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.cw-test-avatar--ph { display: grid; place-items: center; background: var(--sand); color: var(--clay-dark); }
.cw-test-author { font-weight: 800; }
.cw-test-role { font-size: .82rem; color: var(--olive); }

/* ── Team card ── */
.cw-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cw-member { text-align: center; }
.cw-member-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid var(--cream); box-shadow: 0 8px 18px rgba(74, 44, 26, .18); }
.cw-member h4 { font-size: 1.02rem; }
.cw-member p { color: var(--olive); font-size: .88rem; }

/* ── FAQ card ── */
.cw-faq { display: grid; gap: 12px; }
.cw-faq-item { border-radius: 16px; background: rgba(232, 216, 195, .35); overflow: hidden; }
.cw-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: .98rem; color: var(--ink); text-align: right; }
.cw-faq-q i { transition: transform .3s; color: var(--clay); }
.cw-faq-item.is-open .cw-faq-q i { transform: rotate(180deg); }
.cw-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 20px; color: var(--ink-soft); font-size: .92rem; }
.cw-faq-item.is-open .cw-faq-a { max-height: 320px; padding: 0 20px 18px; }

/* ── Contact card ── */
.cw-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cw-ct-row { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; }
.cw-ct-row > i { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--clay-dark); background: rgba(199, 154, 75, .18); }
.cw-ct-lbl { font-size: .78rem; color: var(--olive); }
.cw-ct-val { font-weight: 700; }
.cw-ct-val a { color: var(--clay-dark); text-decoration: none; }
.cw-hours { margin: 8px 0 16px; border-radius: 14px; background: rgba(232, 216, 195, .35); padding: 6px 14px; }
.cw-h-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(138, 66, 38, .15); font-size: .9rem; }
.cw-h-row:last-child { border-bottom: none; }
.cw-h-row .h-time { color: var(--clay-dark); font-weight: 700; }
.cw-ct-socials { display: flex; gap: 10px; margin-top: 10px; }
.cw-soc { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--clay-dark); background: rgba(184, 92, 56, .12); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.cw-soc:hover { background: var(--clay); color: #fff; transform: translateY(-3px); }
.cw-map { border-radius: 16px; overflow: hidden; min-height: 240px; box-shadow: 0 10px 22px rgba(74, 44, 26, .12); }
.cw-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; }

/* ── Deck nav buttons + dots ── */
.cw-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 200;
    width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--ink); color: var(--cream); font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(59, 42, 32, .35); transition: background .2s, transform .2s, opacity .2s;
}
.cw-nav:hover:not(:disabled) { background: var(--clay-dark); transform: translateY(-50%) scale(1.08); }
.cw-nav:disabled { opacity: .35; cursor: default; }
.cw-nav-prev { right: -14px; }
.cw-nav-next { left: -14px; }

.cw-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; flex-wrap: wrap; }
.cw-dot { width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer; background: rgba(138, 66, 38, .25); transition: all .25s; padding: 0; }
.cw-dot.is-active { background: var(--clay); width: 30px; border-radius: 6px; }

.cw-deck-counter { text-align: center; margin-top: 12px; font-weight: 800; color: var(--clay-dark); letter-spacing: 1px; }

/* ============================================================
   BOOKING
   ============================================================ */
.cw-booking { padding: 64px 0; }
.cw-booking-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.cw-booking-icon { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: linear-gradient(135deg, var(--clay), var(--clay-dark)); box-shadow: 0 12px 26px rgba(138, 66, 38, .35); }
.cw-booking-head h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cw-booking-head p { color: var(--ink-soft); margin-bottom: 22px; }
.cw-widget-shell { max-width: 880px; margin: 0 auto; background: var(--cream-soft); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid rgba(138, 66, 38, .1); }

/* ============================================================
   POSTS GRID
   ============================================================ */
.cw-posts { padding: 56px 0; }
.cw-posts--blog { background: rgba(232, 216, 195, .35); }
.cw-posts-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.cw-eyebrow { display: inline-block; font-weight: 800; color: var(--clay); letter-spacing: 1px; font-size: .85rem; margin-bottom: 8px; }
.cw-posts-head h2 { font-size: 1.9rem; }
.cw-posts-head p { color: var(--ink-soft); margin-top: 8px; }
.cw-rule { width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--clay), var(--gold)); margin: 16px auto 0; }

/* ============================================================
   FOOTER + FAB
   ============================================================ */
.cw-footer { background: var(--ink); color: var(--cream); padding: 48px 0 26px; }
.cw-footer-inner { text-align: center; }
.cw-footer-brand .cw-brand-mark { margin: 0 auto 14px; }
.cw-footer-brand h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.cw-footer-brand p { color: rgba(243, 233, 220, .7); max-width: 520px; margin: 0 auto 18px; font-size: .95rem; }
.cw-footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.cw-footer-social .cw-soc { background: rgba(243, 233, 220, .1); color: var(--cream); }
.cw-footer-social .cw-soc:hover { background: var(--clay); color: #fff; }
.cw-footer-bottom { border-top: 1px solid rgba(243, 233, 220, .12); padding-top: 20px; font-size: .85rem; color: rgba(243, 233, 220, .6); }

.cw-fab-stack { position: fixed; bottom: 22px; left: 22px; z-index: 600; display: flex; flex-direction: column; gap: 12px; }
.cw-fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.cw-fab:hover { transform: scale(1.1); color: #fff; }
.cw-fab-wa { background: #25d366; }
.cw-fab-call { background: var(--clay); }
.cw-fab-book { background: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .cw-about-grid, .cw-contact-grid { grid-template-columns: 1fr; }
    .cw-team, .cw-gal { grid-template-columns: repeat(2, 1fr); }
    .cw-topbar-meta { display: none; }
}

@media (max-width: 640px) {
    .cw-deck { min-height: 720px; }
    .cw-card-inner { padding: 28px 22px 32px; }
    .cw-card--intro h1 { font-size: 1.65rem; }
    .cw-card-inner h2 { font-size: 1.4rem; }
    .cw-pieces, .cw-process, .cw-stats, .cw-values, .cw-tests { grid-template-columns: 1fr; }
    .cw-team { grid-template-columns: repeat(2, 1fr); }
    .cw-gal { grid-template-columns: repeat(2, 1fr); }
    .cw-nav-prev { right: 4px; }
    .cw-nav-next { left: 4px; }
    .cw-nav { width: 44px; height: 44px; }
    .cw-intro-img img { height: 190px; }
    .cw-topbar-cta span { display: none; }
}


/* ===== Appointment widget — modal/calendar z-index over template layers ===== */
#bookingModal { z-index: 10050 !important; }
.modal-backdrop { z-index: 10040 !important; }
body .popover { z-index: 10060 !important; }
