/* =========================================================
   Vitrin - Modern, jewel-tone design system
   Palette: Deep teal + warm amber (premium retail vibe)
   ========================================================= */
:root {
    --primary: #0f766e;             /* teal-700 - dərin zümrüd */
    --primary-dark: #115e59;        /* teal-800 */
    --primary-light: #14b8a6;       /* teal-500 */
    --primary-soft: #ccfbf1;        /* teal-100 - light bg */
    --primary-softer: #f0fdfa;      /* teal-50 - lightest bg */
    --accent: #f59e0b;              /* amber-500 - isti qızıl */
    --accent-dark: #d97706;         /* amber-600 */
    --accent-soft: #fef3c7;         /* amber-100 */
    --bg: #fffbf5;                  /* warm cream */
    --surface: #ffffff;
    --surface-soft: #faf6ee;        /* darker cream */
    --text: #1c1917;                /* stone-900 - warm dark */
    --text-muted: #78716c;          /* stone-500 - warm gray */
    --text-light: #a8a29e;          /* stone-400 */
    --border: #e7e5e4;              /* stone-200 */
    --border-soft: #f5f5f4;         /* stone-100 */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #0891b2;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(28,25,23,0.04);
    --shadow: 0 4px 16px rgba(28,25,23,0.06), 0 1px 3px rgba(28,25,23,0.04);
    --shadow-lg: 0 12px 36px rgba(28,25,23,0.12);
    --gradient: linear-gradient(135deg, #0f766e 0%, #f59e0b 100%);
    --gradient-soft: linear-gradient(135deg, #ccfbf1 0%, #fef3c7 100%);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container { max-width: 1240px; margin: 0 auto; padding: 24px 20px; }

/* Navbar */
.navbar {
    background: rgba(255,251,245,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .logo {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.navbar .logo svg { display: block; }
.navbar .actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
button, .btn {
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    font-family: inherit;
}
button:hover, .btn:hover { background: var(--surface-soft); transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(15,118,110,0.25);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 6px 20px rgba(15,118,110,0.35); }
.btn-accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(245,158,11,0.25);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover { background: #15803d; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; min-width: 36px; min-height: 36px; justify-content: center; }

/* Inputs */
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    font-size: 15px;
    background: var(--surface);
    font-family: inherit;
    transition: var(--transition);
    color: var(--text);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15,118,110,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-row { margin-bottom: 16px; }

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }

/* Hero */
.hero {
    background: var(--gradient-soft);
    border-radius: var(--radius-xl);
    padding: 56px 32px;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero::before { width: 300px; height: 300px; background: var(--primary-light); top: -120px; left: -80px; }
.hero::after  { width: 280px; height: 280px; background: var(--accent);       bottom: -100px; right: -60px; }
.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}
.hero p {
    color: var(--text-muted);
    font-size: clamp(15px, 2vw, 18px);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero .search-bar {
    margin-top: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.hero .search-bar input {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-color: transparent;
}

/* Section title */
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.3px; }
.section-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
}

/* Grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr; gap: 14px; }
    .container { padding: 16px; }
}

/* Store / product card */
.store-card, .product-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;     /* grid row stretching - cards eyni hündürlüyə çatır */
}
/* Sonuncu button/action grupu kartın altına itələnir */
.product-card > button:last-of-type,
.product-card > .btn-block:last-of-type,
.product-card > .card-actions:last-child {
    margin-top: auto;
}
.store-card .store-cover, .product-card .product-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--surface-soft);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.product-card .product-cover { aspect-ratio: 1; }
.store-card h3, .product-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}
.product-card .price {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 18px;
    margin: 8px 0;
}
.product-card .product-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

/* Tags / chips */
.tag, .chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface-soft);
    color: var(--text-muted);
    gap: 4px;
}
.tag.active, .chip.active { background: var(--primary-soft); color: var(--primary-dark); }
.tag.disabled, .chip.disabled { background: #fee2e2; color: var(--danger); }
.tag.pending, .chip.pending { background: var(--accent-soft); color: var(--accent-dark); }
.tag.new { background: var(--primary-soft); color: var(--primary-dark); }
.tag.contacted { background: var(--accent-soft); color: var(--accent-dark); }
.tag.closed { background: var(--surface-soft); color: var(--text-muted); }

.muted { color: var(--text-muted); font-size: 13px; }

/* Flash messages */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}
.flash.error { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.flash.success { background: #f0fdf4; color: var(--success); border-color: #bbf7d0; }
.flash.info { background: var(--primary-softer); color: var(--primary-dark); border-color: var(--primary-soft); }

/* Image grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.image-gallery img {
    width: 100%; height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
}

/* Language switch */
.lang-switch {
    display: inline-flex;
    background: var(--surface-soft);
    padding: 4px;
    border-radius: 999px;
    gap: 0;
}
.lang-switch button {
    padding: 6px 12px;
    font-size: 12px;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
}
.lang-switch button:hover { transform: none; background: rgba(0,0,0,0.04); }
.lang-switch button.active {
    background: var(--surface);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(28,25,23,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s;
}
.modal-backdrop.show { display: flex; }
.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-header h2 { font-size: 22px; letter-spacing: -0.3px; }
.modal-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface-soft);
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpFull { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Bottom sheet */
.bottom-sheet {
    display: none;
    position: fixed; inset: 0;
    background: rgba(28,25,23,0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s;
}
.bottom-sheet.show { display: flex; }
.bottom-sheet .sheet {
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 560px;
    padding: 16px 24px 32px;
    animation: slideUpFull 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
.bottom-sheet .sheet-handle {
    width: 44px; height: 5px;
    background: var(--border);
    border-radius: 999px;
    margin: 0 auto 16px;
}

/* Attribute row */
.attr-row {
    display: grid;
    grid-template-columns: 1fr 1fr 36px;
    gap: 8px;
    margin-bottom: 8px;
}
.attr-row input { padding: 10px; }

/* Stat / badge */
.stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.stat-badge {
    background: var(--accent);
    color: white;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon {
    width: 64px; height: 64px;
    background: var(--surface-soft);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}

/* Drag handle */
.product-card[draggable=true] { transition: transform 0.15s; }
.product-card.dragging { opacity: 0.4; transform: scale(0.98); }
.product-card.drag-over { box-shadow: 0 0 0 3px var(--primary); }
.drag-handle {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: grab;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    user-select: none;
}
.drag-handle:active { cursor: grabbing; }

/* Storefront header */
.storefront-header {
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.storefront-header h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: white;
}
.storefront-header .contacts {
    display: flex; flex-wrap: wrap;
    gap: 8px; margin-top: 16px;
}
.storefront-header .contacts a, .storefront-header .contacts span {
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.storefront-header .contacts a:hover { background: rgba(255,255,255,0.3); }

/* Lead card */
.lead-card {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    margin-bottom: 12px;
}
.lead-card.new { background: linear-gradient(180deg, #fff 0%, var(--primary-softer) 100%); border-color: var(--primary-soft); }

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
}
.tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 0;
}
.tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    background: transparent;
}
.tab:hover { transform: none; background: var(--surface-soft); }

/* =========================================================
   Filter toolbar - pill chip dizayn (marketplace tipli)
   ========================================================= */
.filter-bar { margin-bottom: 20px; }

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.filter-chips::-webkit-scrollbar { display: none; }

.filter-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}
.filter-chip:hover { border-color: var(--primary); transform: translateY(-2px); }
.filter-chip:active { transform: scale(0.96); }
.filter-chip.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(15,118,110,0.3);
}
.filter-chip.clear-chip {
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
}
.filter-chip.clear-chip:hover { color: var(--danger); transform: none; }

/* Sort - select chip kimi */
.filter-chip-select {
    position: relative;
    flex-shrink: 0;
}
.filter-chip-select select {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 38px 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    width: auto;
    transition: border-color 0.2s ease;
}
.filter-chip-select select:focus { box-shadow: var(--shadow-sm); }
.filter-chip-select::after {
    content: '▾';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 10px;
    color: var(--text-muted);
}

/* Qiymət range paneli - açılan */
.price-panel {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.price-panel.open { display: block; animation: fadeInUp 0.25s ease; }
.price-panel .price-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.price-panel .price-row input { flex: 1; min-width: 0; }

@media (max-width: 640px) {
    .navbar { padding: 12px 16px; }
    .navbar .actions { gap: 6px; }
    .navbar .logo { font-size: 18px; }
    .lang-switch button { padding: 5px 9px; font-size: 11px; }
    .hero { padding: 36px 20px; border-radius: var(--radius-lg); }
    /* Mobil: modal tam ekran sheet kimi - daxili scroll, düymələr tam görünür */
    .modal-backdrop { padding: 0; align-items: stretch; }
    .modal {
        padding: 18px 16px calc(40px + env(safe-area-inset-bottom));
        border-radius: 0;
        max-width: 100%;
        max-height: none;
    }
    .card { padding: 18px; }
    .storefront-header { padding: 24px; border-radius: var(--radius-lg); }
    .section-header { align-items: stretch; }
    .section-header .btn { width: 100%; justify-content: center; }
    .stat { font-size: 12px; }
    .filter-bar { padding: 10px; }
    .filter-bar select, .filter-bar input { font-size: 13px; }
}

.mobile-only { display: none; }
@media (max-width: 640px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
}

/* =========================================================
   ANIMASİYALAR — saytı canlandırır (mobil + desktop)
   Yalnız transform/opacity → 60fps, GPU-accelerated
   ========================================================= */

html { scroll-behavior: smooth; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn2 {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(28px, -28px) scale(1.12); }
}
@keyframes shimmer {
    0%   { background-position: -480px 0; }
    100% { background-position: 480px 0; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(15,118,110,0.25); }
    50%      { box-shadow: 0 6px 26px rgba(15,118,110,0.5); }
}
@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.7); }
    70%  { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---- Səhifə ilk yüklənmə ---- */
body { animation: fadeIn2 0.4s ease; }

/* ---- Hero - üzən blob-lar + başlıq ---- */
.hero::before { animation: floatBlob 9s ease-in-out infinite; }
.hero::after  { animation: floatBlob 11s ease-in-out infinite reverse; }
.hero h1 { animation: fadeInUp 0.6s ease backwards; }
.hero p  { animation: fadeInUp 0.6s ease 0.1s backwards; }
.hero .search-bar { animation: fadeInUp 0.6s ease 0.2s backwards; }

/* ---- Storefront header slide-in ---- */
.storefront-header { animation: scaleIn 0.5s cubic-bezier(0.34,1.3,0.64,1) backwards; }
.store-logo-big { animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.15s backwards; }

/* ---- Grid kartları stagger (bir-bir görünür) ---- */
.grid > *,
#businesses > .store-row {
    animation: fadeInUp 0.5s ease backwards;
}
.grid > *:nth-child(1),  #businesses > .store-row:nth-child(1)  { animation-delay: 0.04s; }
.grid > *:nth-child(2),  #businesses > .store-row:nth-child(2)  { animation-delay: 0.09s; }
.grid > *:nth-child(3),  #businesses > .store-row:nth-child(3)  { animation-delay: 0.14s; }
.grid > *:nth-child(4),  #businesses > .store-row:nth-child(4)  { animation-delay: 0.19s; }
.grid > *:nth-child(5),  #businesses > .store-row:nth-child(5)  { animation-delay: 0.24s; }
.grid > *:nth-child(6),  #businesses > .store-row:nth-child(6)  { animation-delay: 0.29s; }
.grid > *:nth-child(7)  { animation-delay: 0.34s; }
.grid > *:nth-child(8)  { animation-delay: 0.39s; }
.grid > *:nth-child(9)  { animation-delay: 0.44s; }
.grid > *:nth-child(10) { animation-delay: 0.49s; }
.grid > *:nth-child(n+11) { animation-delay: 0.54s; }

/* ---- Kart hover - lift ---- */
.card { overflow: hidden; }
.product-card, .store-card {
    transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1),
                box-shadow 0.25s ease;
    position: relative;
}
.product-card:hover, .store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15,118,110,0.16);
}

/* ---- Məhsul şəkli - DAİMİ Ken Burns (sinematik, hər zaman hərəkətdə) ---- */
@keyframes kenBurns {
    0%   { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.11) translate(-1.5%, -1.5%); }
}
.product-card .product-cover {
    animation: kenBurns 14s ease-in-out infinite alternate;
    will-change: transform;
}
/* Hər kart fərqli ritm/fazada - eyni vaxtda zoom etməsinlər */
.product-card:nth-child(3n)   .product-cover { animation-duration: 17s; animation-delay: -4s; }
.product-card:nth-child(3n+1) .product-cover { animation-duration: 13s; animation-delay: -9s; }
.product-card:nth-child(3n+2) .product-cover { animation-duration: 19s; animation-delay: -2s; }

/* ---- Mağaza kartı şəkli - hover zoom ---- */
.store-card .store-cover { transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1); }
.store-card:hover .store-cover { transform: scale(1.07); }

/* ---- Kart üzərindən periodik işıq zolağı (premium shimmer sweep) ---- */
.product-card::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 55%; height: 100%;
    background: linear-gradient(110deg,
        transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 3;
    animation: cardSweep 7s ease-in-out infinite;
}
@keyframes cardSweep {
    0%, 62%  { left: -120%; }
    78%      { left: 170%; }
    100%     { left: 170%; }
}
.product-card:nth-child(2n)::after { animation-duration: 9s; animation-delay: -3s; }
.product-card:nth-child(3n)::after { animation-duration: 8s; animation-delay: -5s; }

/* ---- Endirim rozeti - daimi nəbz + glow ---- */
@keyframes salePulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50%      { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(239,68,68,0); }
}
.sale-badge {
    display: inline-block;
    animation: salePulse 1.8s ease-in-out infinite;
}

/* ---- "İstəyirəm" düyməsi məhsul kartında - yüngül diqqət nəbzi ---- */
@keyframes wantNudge {
    0%, 92%, 100% { transform: translateY(0); }
    96%           { transform: translateY(-3px); }
}
.product-card .btn-primary {
    animation: wantNudge 5s ease-in-out infinite;
}

/* ---- Button mikro-interaksiya ---- */
button, .btn {
    transition: transform 0.12s cubic-bezier(0.2,0.8,0.2,1),
                background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
button:active, .btn:active { transform: scale(0.95); }
.btn-primary:hover { animation: pulseGlow 1.6s ease-in-out infinite; }

/* ---- Navbar loqo hover ---- */
.navbar .logo svg { transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.navbar .logo:hover svg { transform: rotate(-10deg) scale(1.12); }

/* ---- Stat tile / store-stat hover ---- */
.stat-tile, .store-stat {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-tile:hover, .store-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ---- Tag hover ---- */
.tag, .chip { transition: transform 0.15s ease, background 0.2s ease; }
.product-card:hover .tag { transform: translateY(-1px); }

/* ---- Modal / bottom sheet (giriş animasiyası gücləndirilib) ---- */
.modal { animation: scaleIn 0.28s cubic-bezier(0.34,1.3,0.64,1); }
.bottom-sheet .sheet { animation: slideUpFull 0.34s cubic-bezier(0.32,0.72,0,1); }

/* ---- Modal-close fırlanma ---- */
.modal-close { transition: transform 0.2s ease, background 0.2s ease; }
.modal-close:hover { transform: rotate(90deg); background: var(--border); }

/* ---- Lead kart hover ---- */
.lead-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lead-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }

/* ---- Empty state ikonu nəbz ---- */
.empty-icon { animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }

/* ---- Flash mesajları ---- */
.flash { animation: fadeInUp 0.35s ease; }

/* ---- Skeleton loading (shimmer) ---- */
.skeleton {
    background: linear-gradient(90deg, #ece9e3 25%, #f7f4ee 50%, #ece9e3 75%);
    background-size: 480px 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: var(--radius);
}
.skeleton-card { height: 320px; }

/* ---- Storefront header logo ---- */
.storefront-header h1 { animation: fadeInUp 0.5s ease 0.1s backwards; }

/* ---- Lang switch / tab keçid ---- */
.lang-switch button, .tab { transition: all 0.2s ease; }

/* ---- Filter bar ---- */
.filter-bar { animation: fadeInUp 0.4s ease 0.1s backwards; }

/* =========================================================
   Accessibility — hərəkəti azalt seçimi olanlar üçün
   ========================================================= */
@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;
    }
}
