/* ═══════════════════════════════════════════════════
   shop-home.css  —  VMarket Landing Page Styles
   تم روشن فروشگاهی با رنگ‌های زنده و مدرن
   ═══════════════════════════════════════════════════ */

/* ── Override dark theme for shop-home body ── */
body.shop-home {
    background: #f5f5f7;
    color: #1a1a2e;
    --sh-primary:    #7b3aed;
    --sh-primary-d:  #5b21b6;
    --sh-accent:     #a855f7;
    --sh-text:       #1a1a2e;
    --sh-text-soft:  #555577;
    --sh-text-muted: #888899;
    --sh-bg:         #f5f5f7;
    --sh-bg-gray:    #eef0f5;
    --sh-white:      #ffffff;
    --sh-border:     rgba(123,58,237,0.15);
    --sh-shadow:     0 4px 24px rgba(0,0,0,0.08);
    --sh-shadow-lg:  0 12px 48px rgba(0,0,0,0.12);
    --sh-radius:     16px;
    --sh-radius-sm:  10px;
}

/* ── Remove dark orbs ── */
body.shop-home .orb { display: none; }

/* ═══════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════ */
.sh-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123,58,237,0.1);
    transition: box-shadow 0.3s;
}
.sh-navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.sh-nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sh-logo img {
    height: 38px;
    display: block;
    flex-shrink: 0;
}

.sh-nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}
.sh-nav-links a {
    text-decoration: none;
    color: var(--sh-text-soft);
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.sh-nav-links a:hover {
    color: var(--sh-primary);
    background: rgba(123,58,237,0.08);
}

.sh-nav-cta {
    background: var(--sh-primary);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(123,58,237,0.3);
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.sh-nav-cta:hover {
    background: var(--sh-primary-d);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(123,58,237,0.4);
}

.sh-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    order: -1; /* همبرگر سمت راست در RTL */
}
.sh-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sh-text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ═══════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════ */
.sh-hero {
    position: relative;
    height: 560px;
    margin-top: 68px;
    overflow: hidden;
}

.sh-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.sh-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 8%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.sh-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Slide backgrounds */
.sh-slide--1 { background: linear-gradient(135deg, #1a0533 0%, #3b0a82 50%, #6d28d9 100%); }
.sh-slide--2 { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%); }
.sh-slide--3 { background: linear-gradient(135deg, #0d1117 0%, #1a3a2a 50%, #065f46 100%); }

.sh-slide-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.sh-slide-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.sh-slide-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

.sh-slide-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.sh-slide-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Decorative elements */
.sh-slide-deco {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.sh-deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}
.sh-deco-c1 {
    width: 340px; height: 340px;
    background: rgba(255,255,255,0.2);
    top: -170px; left: -170px;
}
.sh-deco-c2 {
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.1);
    top: -60px; left: -20px;
}
.sh-deco-emoji {
    font-size: 8rem;
    opacity: 0.25;
    position: relative;
    z-index: 1;
    animation: sh-float 3s ease-in-out infinite;
}

@keyframes sh-float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* Slider dots */
.sh-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.sh-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.sh-dot.active {
    background: #fff;
    border-color: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Slider arrows */
.sh-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.sh-slider-arrow:hover {
    background: rgba(255,255,255,0.3);
}
.sh-arrow-prev { right: 20px; }
.sh-arrow-next { left: 20px; }

/* ═══════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════ */
.sh-statsbar {
    background: var(--sh-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sh-statsbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.sh-stat-pill {
    font-size: 0.9rem;
    color: var(--sh-text-soft);
}
.sh-stat-pill strong {
    color: var(--sh-primary);
}
.sh-stat-sep {
    width: 1px;
    height: 18px;
    background: rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════ */
.sh-section {
    padding: 80px 0;
}
.sh-section--gray {
    background: var(--sh-bg-gray);
}

.sh-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.sh-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
}
.sh-section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sh-section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sh-primary);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sh-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--sh-text);
    margin: 0;
}

.sh-section-sub {
    color: var(--sh-text-soft);
    margin-top: 10px;
    font-size: 1rem;
}

.sh-view-all {
    text-decoration: none;
    color: var(--sh-primary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.sh-view-all:hover { gap: 10px; }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sh-btn--primary {
    background: var(--sh-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(123,58,237,0.3);
}
.sh-btn--primary:hover {
    background: var(--sh-primary-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123,58,237,0.4);
}
.sh-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.sh-btn--outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}
.sh-btn--sm { padding: 9px 18px; font-size: 0.875rem; }
.sh-btn--lg { padding: 15px 40px; font-size: 1.05rem; }
.sh-btn--full { width: 100%; }

/* ═══════════════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════════════ */
.sh-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sh-cat-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--sh-text);
    transition: all 0.25s;
    box-shadow: var(--sh-shadow);
}
.sh-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-shadow-lg);
    border-color: var(--sh-border);
}
.sh-cat-card--all {
    background: linear-gradient(135deg, rgba(123,58,237,0.08), rgba(168,85,247,0.05));
    border-color: rgba(123,58,237,0.2);
}

.sh-cat-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.sh-cat-info {
    flex: 1;
}
.sh-cat-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--sh-text);
}
.sh-cat-info span {
    font-size: 0.8rem;
    color: var(--sh-text-muted);
}

.sh-cat-arrow {
    color: var(--sh-primary);
    font-size: 1.1rem;
    opacity: 0.5;
    transition: all 0.2s;
}
.sh-cat-card:hover .sh-cat-arrow {
    opacity: 1;
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════ */
.sh-products-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.sh-prod-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: var(--sh-shadow);
    display: flex;
    flex-direction: column;
}
.sh-prod-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-shadow-lg);
}

.sh-prod-img {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.sh-prod-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-prod-body {
    padding: 14px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sh-prod-cat {
    font-size: 0.72rem;
    color: var(--sh-primary);
    font-weight: 600;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.sh-prod-name {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--sh-text);
    line-height: 1.35;
    /* دو خط ثابت */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

/* ناحیه قیمت — ارتفاع ثابت برای align یکسان */
.sh-prod-price-area {
    min-height: 52px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sh-prod-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sh-primary);
}

.sh-prod-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sh-prod-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    background: rgba(123,58,237,0.06);
    border-radius: 6px;
    padding: 4px 8px;
}
.sh-price-lbl {
    font-size: 0.72rem;
    color: var(--sh-text-soft);
    white-space: nowrap;
}
.sh-price-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sh-primary);
    white-space: nowrap;
}
.sh-price-unit {
    font-size: 0.72rem;
    color: var(--sh-text-muted);
    font-weight: 400;
}

/* footer کارت: badge موجودی + دکمه */
.sh-prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
}

/* stock badge */
.sh-stock-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    white-space: nowrap;
    line-height: 1.4;
}
.sh-stock--both {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.25);
}
.sh-stock--one {
    background: rgba(234,179,8,0.1);
    color: #a16207;
    border: 1px solid rgba(234,179,8,0.25);
}
.sh-stock--none {
    background: rgba(239,68,68,0.08);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.2);
}

.sh-prod-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(123,58,237,0.1);
    color: var(--sh-primary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.sh-prod-btn:hover {
    background: var(--sh-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   SPIN WHEEL  — override dark vars for light bg
   ═══════════════════════════════════════════════════ */
body.shop-home .spin-wrapper {
    background: var(--sh-white);
    border: 1px solid rgba(123,58,237,0.15);
    box-shadow: var(--sh-shadow-lg);
}
body.shop-home .spin-header h2,
body.shop-home .spin-form-area h3 {
    color: var(--sh-text);
    -webkit-text-fill-color: var(--sh-text);
    background: none;
}
body.shop-home .step-desc,
body.shop-home .spin-header p {
    color: var(--sh-text-soft);
}
body.shop-home .form-control {
    background: #f8f8fb;
    border-color: rgba(123,58,237,0.2);
    color: var(--sh-text);
}
body.shop-home .form-control:focus {
    background: #fff;
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px rgba(123,58,237,0.1);
}
body.shop-home .form-control::placeholder {
    color: #aaa;
}
body.shop-home .phone-prefix {
    color: var(--sh-text-soft);
    border-color: rgba(123,58,237,0.2);
    background: #f0f0f6;
}
body.shop-home .form-hint {
    color: var(--sh-text-muted);
}
body.shop-home .step-badge {
    background: rgba(123,58,237,0.1);
    color: var(--sh-primary);
}
body.shop-home .otp-input {
    background: #f8f8fb;
    border-color: rgba(123,58,237,0.25);
    color: var(--sh-text);
}
body.shop-home .otp-timer {
    color: var(--sh-text-soft);
}
body.shop-home .prize-desc,
body.shop-home .prize-loading-state p {
    color: var(--sh-text-soft);
}

/* ═══════════════════════════════════════════════════
   BRANCHES
   ═══════════════════════════════════════════════════ */
.sh-branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sh-branch-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    border: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
    box-shadow: var(--sh-shadow);
    transition: all 0.3s;
}
.sh-branch-card:hover {
    box-shadow: var(--sh-shadow-lg);
    transform: translateY(-3px);
}

.sh-branch-map {
    position: relative;
    height: 220px;
    cursor: pointer;
    overflow: hidden;
}
.sh-branch-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}
.sh-branch-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.sh-branch-card:hover .sh-branch-map-overlay {
    background: rgba(0,0,0,0.05);
}
.sh-branch-map-label {
    position: absolute;
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.sh-branch-info {
    padding: 24px;
}
.sh-branch-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sh-text);
}
.sh-branch-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.sh-branch-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sh-branch-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.sh-branch-label {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    margin: 0 0 2px;
}
.sh-branch-val {
    font-size: 0.9rem;
    color: var(--sh-text);
    font-weight: 600;
    margin: 0;
}
.sh-branch-btns {
    display: flex;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.sh-about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sh-about-text .sh-section-title {
    margin-bottom: 20px;
}
.sh-about-desc {
    color: var(--sh-text-soft);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 32px;
}
.sh-about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sh-stat-box {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    border: 1px solid rgba(123,58,237,0.12);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--sh-shadow);
    transition: all 0.25s;
}
.sh-stat-box:hover {
    border-color: rgba(123,58,237,0.3);
    transform: translateY(-2px);
    box-shadow: var(--sh-shadow-lg);
}
.sh-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--sh-primary);
    margin-bottom: 6px;
}
.sh-stat-lbl {
    font-size: 0.85rem;
    color: var(--sh-text-soft);
}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.sh-contact-wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

.sh-contact-form {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 36px;
    box-shadow: var(--sh-shadow);
}
.sh-form-group {
    margin-bottom: 20px;
}
.sh-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sh-text-soft);
    margin-bottom: 8px;
}
.sh-form-group input,
.sh-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: #f8f8fb;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    color: var(--sh-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}
.sh-form-group input:focus,
.sh-form-group textarea:focus {
    border-color: var(--sh-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123,58,237,0.1);
}
.sh-form-group input::placeholder,
.sh-form-group textarea::placeholder {
    color: #bbb;
}
.sh-form-group textarea {
    resize: none;
    min-height: 130px;
}

.sh-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sh-ci-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius-sm);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--sh-shadow);
}
.sh-ci-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.sh-ci-card strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sh-text);
    display: block;
    margin-bottom: 4px;
}
.sh-ci-card p {
    font-size: 0.85rem;
    color: var(--sh-text-soft);
    margin: 0;
    line-height: 1.6;
}

.sh-ci-socials {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}
.sh-social {
    width: 46px; height: 46px;
    background: var(--sh-white);
    border: 1px solid rgba(123,58,237,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--sh-shadow);
}
.sh-social:hover {
    background: rgba(123,58,237,0.08);
    border-color: rgba(123,58,237,0.4);
    transform: translateY(-2px);
}

/* Form message (reuse original styles but adapt color) */
body.shop-home .form-message.success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #16a34a;
}
body.shop-home .form-message.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #dc2626;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.sh-footer {
    background: #1a0533;
    color: rgba(255,255,255,0.85);
    padding: 48px 0 32px;
}
.sh-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.sh-footer-brand img {
    height: 36px;
    opacity: 0.9;
    margin-bottom: 8px;
}
.sh-footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.sh-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.sh-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.sh-footer-links a:hover { color: #fff; }
.sh-footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   MAP MODAL
   ═══════════════════════════════════════════════════ */
.sh-map-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 20px;
}
.sh-map-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.sh-map-modal-inner {
    width: 100%;
    max-width: 700px;
    height: 500px;
    position: relative;
    border-radius: var(--sh-radius);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.sh-map-modal-inner iframe {
    width: 100%; height: 100%;
    border: none;
}
.sh-map-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════
   ANIMATE ON SCROLL
   ═══════════════════════════════════════════════════ */
body.shop-home .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(.4,0,.2,1);
}
body.shop-home .animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

/* ─── دکمه‌های OTP/Spin: هم‌رنگ sh-btn--primary ─── */
body.shop-home .btn-neon,
body.shop-home .btn-neon.btn-full {
    background: var(--sh-primary) !important;
    box-shadow: 0 4px 14px rgba(123,58,237,0.3) !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-family: inherit !important;
    transition: all 0.2s !important;
}
body.shop-home .btn-neon:hover:not(:disabled) {
    background: var(--sh-primary-d) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(123,58,237,0.4) !important;
}
body.shop-home .btn-neon::after { display: none; }

/* ─── دکمه مشاهده نقشه: border واضح ─── */
body.shop-home .sh-branch-map-label {
    background: rgba(255,255,255,0.92);
    color: var(--sh-primary);
    border: 2px solid var(--sh-primary);
    font-weight: 600;
    font-size: 0.82rem;
    backdrop-filter: blur(4px);
}
body.shop-home .sh-branch-card:hover .sh-branch-map-label {
    background: var(--sh-primary);
    color: #fff;
}
body.shop-home #leadPhone {
    border: 2px solid rgba(123,58,237,0.35) !important;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1.05rem;
    background: #f8f8fb;
    color: var(--sh-text);
    letter-spacing: 2px;
    direction: ltr;
    text-align: right;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}
body.shop-home #leadPhone:focus {
    border-color: var(--sh-primary) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123,58,237,0.12);
}
/* Mobile bar: پیش‌فرض مخفی، فقط موبایل نشون می‌ده */
.sh-hero-controls {
    display: none;
}

@media (max-width: 768px) {
    /* Desktop absolute controls: مخفی */
    .sh-dots-desktop,
    .sh-arrow-desktop { display: none !important; }

    /* Mobile bar: نمایش */
    .sh-hero-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 14px 20px;
        background: #1a0533;
    }

    /* فلش‌های موبایل */
    .sh-arrow-prev-m,
    .sh-arrow-next-m {
        width: 36px; height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.2s;
    }
    .sh-arrow-prev-m:hover,
    .sh-arrow-next-m:hover { background: rgba(255,255,255,0.3); }

    /* Dots موبایل */
    .sh-dots-mobile {
        display: flex;
        gap: 8px;
    }
    .sh-dots-mobile .sh-dot {
        border-color: rgba(255,255,255,0.5);
    }
    .sh-dots-mobile .sh-dot.active {
        background: #fff;
        border-color: #fff;
    }
}

/* ─── Slider arrows: زیر اسلاید در موبایل ─── */
@media (max-width: 768px) {
    .sh-slider-arrow {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        width: 36px; height: 36px;
        font-size: 0.9rem;
        background: rgba(255,255,255,0.2);
        flex-shrink: 0;
    }
    .sh-hero {
        display: flex;
        flex-direction: column;
    }
    .sh-slider {
        order: 1;
        flex: 1;
    }
    /* نوار کنترل پایین بنر */
    .sh-hero-controls {
        order: 2;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 12px 0 14px;
        background: var(--sh-slide-bg, #1a0533);
    }
    .sh-slider-dots {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 0;
        margin: 0;
        order: 0;
    }
}

/* On mobile the absolute-positioned slide approach breaks height.
   Switch to a visibility-based approach instead. */
@media (max-width: 768px) {
    .sh-hero {
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden;
        position: relative;
    }
    .sh-slider {
        height: auto;
        position: relative;
    }
    /* All slides: hidden by default, stacked */
    .sh-slide {
        position: relative !important;
        display: none !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }
    .sh-slide.active {
        display: flex !important;
        pointer-events: auto !important;
    }
    .sh-slider-dots {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        padding: 12px 0 16px;
        background: transparent;
        margin-top: -8px;
    }
    .sh-dot {
        border-color: rgba(255,255,255,0.6);
    }
    .sh-dot.active {
        background: #fff;
    }
}

/* ── Tablet landscape ── */
@media (max-width: 1100px) {
    .sh-products-row { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet portrait ── */
@media (max-width: 900px) {
    .sh-cats-grid        { grid-template-columns: repeat(2, 1fr); }
    .sh-about-wrap       { grid-template-columns: 1fr; gap: 40px; }
    .sh-contact-wrap     { grid-template-columns: 1fr; }
    .sh-branches-grid    { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}

/* ── Mobile ── */
@media (max-width: 768px) {

    /* — Navbar — */
    .sh-nav-links {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 8px 0 24px;
        gap: 0;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        z-index: 1001;
        overflow-y: auto;
        max-height: calc(100vh - 68px);
    }
    .sh-nav-links.active { display: flex; }
    .sh-nav-links li { width: 100%; }
    .sh-nav-links a {
        display: block;
        padding: 15px 24px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-radius: 0;
        color: #1a1a2e;
    }
    .sh-nav-links a:hover { background: rgba(123,58,237,0.06); }
    .sh-menu-toggle { display: flex; }
    /* لوگو وسط، همبرگر راست، دکمه‌ها چپ */
    .sh-nav-inner { gap: 12px; padding: 0 16px; }
    .sh-logo { flex: 1; display: flex; justify-content: center; }
    .sh-logo img { height: 32px; }

    /* — Hero — (height/position handled in hero-fix block above) — */
    .sh-slide {
        padding: 48px 20px 56px;
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
        min-height: 280px;
    }
    .sh-slide-content { max-width: 100%; }
    .sh-slide-content h1 { font-size: 1.7rem; line-height: 1.3; }
    .sh-slide-content p  { font-size: 0.92rem; margin-bottom: 20px; }
    .sh-slide-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .sh-slide-btns .sh-btn { width: 100%; justify-content: center; }
    .sh-slide-deco { display: none; }
    .sh-slider-arrow { width: 36px; height: 36px; font-size: 0.9rem; top: 40%; }
    .sh-arrow-prev { right: 10px; }
    .sh-arrow-next { left: 10px; }

    /* — Stats bar — */
    .sh-statsbar-inner {
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px;
        text-align: center;
        align-items: center;
    }
    .sh-stat-sep { display: none; }
    .sh-stat-pill { font-size: 0.875rem; }

    /* — Sections — */
    .sh-section { padding: 48px 0; }
    .sh-container { padding: 0 16px; }
    .sh-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
    }
    .sh-section-title { font-size: 1.45rem; }

    /* — Category cards — */
    .sh-cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sh-cat-card  { padding: 14px 12px; gap: 10px; }
    .sh-cat-icon  { width: 44px; height: 44px; font-size: 1.35rem; border-radius: 10px; }
    .sh-cat-info h3   { font-size: 0.88rem; }
    .sh-cat-info span { font-size: 0.72rem; }
    .sh-cat-arrow { font-size: 0.85rem; }

    /* — Product cards — */
    .sh-products-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sh-prod-img     { height: 88px; font-size: 2.3rem; }
    .sh-prod-body    { padding: 10px 12px 12px; }
    .sh-prod-name    { font-size: 0.82rem; min-height: 2.2em; }
    .sh-prod-price-area { min-height: 46px; }
    .sh-prod-price   { font-size: 0.8rem; }
    .sh-stock-badge  { font-size: 0.63rem; padding: 2px 6px; }
    .sh-prod-btn     { font-size: 0.74rem; padding: 5px 10px; }

    /* — Spin wheel — */
    body.shop-home .spin-wrapper { padding: 22px 14px 18px; }
    body.shop-home .spin-main    { flex-direction: column; gap: 20px; }
    #wheelCanvas { width: 270px !important; height: 270px !important; }
    body.shop-home .spin-form-area { max-width: 100%; width: 100%; }
    .otp-input { width: 52px !important; height: 58px !important; font-size: 1.4rem !important; }

    /* — Branches — */
    .sh-branch-map  { height: 180px; }
    .sh-branch-info { padding: 18px 16px; }
    .sh-branch-btns { flex-direction: column; gap: 8px; }
    .sh-branch-btns .sh-btn { width: 100%; justify-content: center; }

    /* — About — */
    .sh-about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .sh-stat-box    { padding: 20px 10px; }
    .sh-stat-num    { font-size: 1.6rem; }
    .sh-stat-lbl    { font-size: 0.8rem; }

    /* — Contact — */
    .sh-contact-form { padding: 20px 16px; }
    .sh-form-group input,
    .sh-form-group textarea { padding: 11px 14px; font-size: 0.9rem; }

    /* — Footer — */
    .sh-footer-inner { gap: 20px; }
    .sh-footer-links { gap: 14px; }

    /* — Map modal — */
    .sh-map-modal-inner { height: 360px; }
}

/* ── Small phones ── */
@media (max-width: 480px) {

    /* — Navbar — */
    .sh-nav-inner { padding: 0 14px; gap: 12px; }
    .sh-logo img  { height: 30px; }
    .sh-nav-cta   { display: none; }

    /* — Hero — */
    .sh-slide { padding: 36px 16px 48px; min-height: 250px; }
    .sh-slide-content h1 { font-size: 1.5rem; }
    .sh-slide-tag { font-size: 0.76rem; padding: 5px 12px; }

    /* — Stats — */
    .sh-stat-pill { font-size: 0.82rem; }

    /* — Categories: single column — */
    .sh-cats-grid { grid-template-columns: 1fr; gap: 8px; }
    .sh-cat-card  { padding: 13px 14px; }

    /* — Products: 2 columns, compact — */
    .sh-products-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sh-prod-img     { height: 80px; font-size: 2rem; }
    .sh-prod-body    { padding: 8px 10px 10px; }
    .sh-prod-name    { font-size: 0.78rem; min-height: 2.1em; }
    .sh-prod-price-area { min-height: 42px; }
    .sh-prod-cat     { font-size: 0.68rem; }
    .sh-prod-price   { font-size: 0.74rem; }
    .sh-price-lbl    { font-size: 0.66rem; }
    .sh-price-val    { font-size: 0.74rem; }
    .sh-stock-badge  { font-size: 0.6rem; padding: 2px 5px; }
    .sh-prod-btn     { font-size: 0.72rem; padding: 4px 8px; }

    /* — Sections — */
    .sh-section       { padding: 36px 0; }
    .sh-section-title { font-size: 1.3rem; }

    /* — About stats — */
    .sh-stat-num { font-size: 1.4rem; }
    .sh-stat-lbl { font-size: 0.75rem; }

    /* — Branch map — */
    .sh-branch-map { height: 150px; }

    /* — Buttons — */
    .sh-btn--lg { padding: 12px 24px; font-size: 0.92rem; }

    /* — Map modal — */
    .sh-map-modal-inner { height: 300px; }
    .sh-map-modal { padding: 12px; }
}