/*
 * ChiCake App Styles v2.0
 * کارگاه شیرینی پزی چی کیک
 * Mobile-first + Proper Tablet & Desktop Responsive
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5A52E0;
    --secondary: #FF6B9D;
    --secondary-light: #FF8DB5;
    --accent: #FFB347;
    --success: #4CAF50;
    --danger: #FF5252;
    --warning: #FFC107;
    --bg: #F5F3FF;
    --bg-card: #FFFFFF;
    --bg-dark: #1A1A2E;
    --text: #2D2B42;
    --text-light: #7C7A92;
    --text-white: #FFFFFF;
    --border: #E8E6F0;
    --shadow-sm: 0 2px 8px rgba(108, 99, 255, 0.08);
    --shadow-md: 0 4px 20px rgba(108, 99, 255, 0.12);
    --shadow-lg: 0 8px 40px rgba(108, 99, 255, 0.16);
    --shadow-xl: 0 16px 60px rgba(108, 99, 255, 0.2);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --header-height: 64px;
    --bottom-nav-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    font-size: 14px;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; height: auto; }

/* ============================================================
   APP CONTAINER
   ============================================================ */
.app-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.app-main {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: var(--transition);
}

.app-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 28px;
    line-height: 1;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone-btn,
.header-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.header-phone-btn:hover,
.header-cart-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    padding: 24px 16px 32px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 107, 157, 0.1));
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    animation: fadeInDown 0.8s ease;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--text);
    animation: fadeInUp 0.6s ease;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 400px;
    padding: 25px 0;
    animation: fadeInUp 0.8s ease;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
    transition: var(--transition);
    animation: fadeInUp 1s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.45);
}

.hero-cta svg {
    transform: rotate(180deg);
}

.hero-visual {
    position: relative;
    width: 200px;
    height: 200px;
    animation: fadeIn 1s ease;
}

.hero-emoji-circle {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(255, 107, 157, 0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    animation: pulse 3s infinite;
}

.hero-big-emoji {
    font-size: 72px;
    line-height: 1;
}

.floating-emoji {
    position: absolute;
    font-size: 28px;
    animation: float 4s ease-in-out infinite;
}

.fe-1 { top: 0; right: 10px; animation-delay: 0s; }
.fe-2 { top: 20px; left: 0; animation-delay: 1s; }
.fe-3 { bottom: 10px; right: 0; animation-delay: 2s; }
.fe-4 { bottom: 20px; left: 10px; animation-delay: 3s; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
    padding: 0 16px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon { font-size: 22px; line-height: 1; }
.feature-label { font-size: 12px; font-weight: 600; color: var(--text); }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-header {
    text-align: center;
    padding: 0 16px 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
    padding: 32px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-visual {
    width: 120px;
    min-height: 120px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.06), rgba(255, 107, 157, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.product-emoji {
    font-size: 52px;
    line-height: 1;
    transition: var(--transition);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-emoji {
    transform: scale(1.15) rotate(-5deg);
}

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

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    background: var(--secondary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 2;
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

.product-media-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.product-discount-title {
    font-size: 11px;
    color: var(--danger);
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(255, 82, 82, 0.06);
    border-radius: 6px;
    margin-bottom: 6px;
    width: fit-content;
}

.product-info {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    display: inline-block;
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(108, 99, 255, 0.08);
    border-radius: 50px;
    margin-bottom: 4px;
    width: fit-content;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.price-original {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
    line-height: 1;
}

.price-unit {
    display: block;
    font-size: 10px;
    color: var(--text-light);
}

.add-to-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.add-to-cart-btn.added {
    background: var(--success);
    animation: popIn 0.3s ease;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-section {
    padding: 32px 0;
}

.reviews-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 16px 16px;
    scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar { display: none; }

.reviews-track {
    display: flex;
    gap: 14px;
    min-width: max-content;
}

.review-card {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
    min-width: 0;
}

.review-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.review-date {
    display: block;
    font-size: 11px;
    color: var(--text-light);
}

.review-stars {
    font-size: 14px;
    letter-spacing: 1px;
}

.review-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Review Media */
.review-media {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review-media-item {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg);
    transition: var(--transition);
}

.review-media-item:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-md);
}

.review-media-item img,
.review-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-media-item .media-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 16px;
}

/* Review Upload */
.review-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.review-upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.04);
}

.review-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.review-upload-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.review-upload-text {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.review-media-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.review-media-preview .preview-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--bg);
}

.review-media-preview .preview-item img,
.review-media-preview .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-media-preview .preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255,82,82,0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: none;
}

.reviews-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-light);
    font-size: 14px;
}

.review-submit-btn {
    display: block;
    margin: 16px auto 0;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent), #FF9800);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.3);
    transition: var(--transition);
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 179, 71, 0.4);
}

/* ============================================================
   REVIEW MODAL
   ============================================================ */
.review-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 16px 20px 32px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-modal.active {
    transform: translateY(0);
}

.rating-input {
    display: flex;
    gap: 6px;
    direction: ltr;
}

.rating-star {
    font-size: 24px;
    opacity: 0.3;
    transition: var(--transition);
    padding: 4px;
}

.rating-star.active {
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    padding: 32px 0 24px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.about-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.about-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 2;
}

.about-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(108, 99, 255, 0.08);
}

.contact-icon { font-size: 20px; flex-shrink: 0; }
.contact-text { font-size: 13px; color: var(--text); font-weight: 500; }

/* Bank Info Styles */
.bank-info-item {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.04), rgba(255, 107, 157, 0.04));
    border: 1px solid rgba(108, 99, 255, 0.08);
}

.contact-text-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.contact-label {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg);
    transition: var(--transition);
}

.social-link:hover {
    transform: scale(1.15);
}

.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366); }
.social-telegram:hover { background: #0088cc; }
.social-whatsapp:hover { background: #25d366; }

.about-map {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}

.about-map .leaflet-container {
    border-radius: var(--radius-sm);
}

.map-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.map-link:hover {
    background: rgba(108, 99, 255, 0.1);
}

/* ============================================================
   BOTTOM SHEET
   ============================================================ */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 12px 20px 32px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
    cursor: pointer;
}

.sheet-handle span {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.sheet-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.sheet-step {
    display: none;
}

.sheet-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.step-back:hover { opacity: 0.7; }

/* Cart Items */
.cart-items {
    max-height: 40vh;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 0.3s ease;
}

.cart-item-emoji {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 700; }
.cart-item-price { font-size: 12px; color: var(--text-light); }

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    background: var(--bg-card);
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qty-btn.remove {
    border-color: var(--danger);
    color: var(--danger);
}

.qty-count {
    font-size: 16px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
}

/* Cart Summary */
.cart-summary {
    padding-top: 16px;
    border-top: 2px dashed var(--border);
    margin-top: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.summary-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.free-badge {
    padding: 3px 10px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label small {
    color: var(--text-light);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.map-container {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108, 99, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-full { width: 100%; }

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ============================================================
   SUCCESS CONTENT
   ============================================================ */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.success-text { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }

/* ============================================================
   FLOATING CART
   ============================================================ */
.floating-cart {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    z-index: 9998;
    display: flex;
    align-items: center;
    padding: 0;
    background: #13111E;
    color: white;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(19, 17, 30, 0.45), 0 3px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cart:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 20px 52px rgba(19, 17, 30, 0.5), 0 6px 16px rgba(0, 0, 0, 0.15);
}

.floating-cart-icon {
    font-size: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2f2f2 0%, #f2f2f2 100%);
    flex-shrink: 0;
}

.floating-cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 14px;
    gap: 2px;
}

.floating-cart-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.55;
    letter-spacing: 0.3px;
}

.floating-cart-total {
    font-size: 15px;
    font-weight: 800;
}

.floating-cart-count {
    background: var(--secondary);
    color: white;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.5);
}

/* ============================================================
   BOTTOM NAV (Redesigned)
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    height: var(--bottom-nav-height);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.04);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 8px 4px;
    min-width: 0;
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.nav-cart-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -24px;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
    position: relative;
}

.nav-item.nav-cart {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.nav-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    opacity: 0;
    transition: var(--transition);
}

.nav-cart-badge.visible {
    opacity: 1;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    padding: 14px 18px;
    background: var(--bg-dark);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s;
    pointer-events: auto;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(30px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(8px) rotate(-3deg); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {
    body { font-size: 15px; }

    .header-inner { padding: 0 24px; }
    .brand-name { font-size: 20px; }
    .brand-tagline { font-size: 12px; }

    .hero-section { padding: 40px 24px 48px; }

    .hero-content {
        flex-direction: row-reverse;
        text-align: right;
        gap: 40px;
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-text { flex: 1; }
    .hero-title { font-size: 34px; }
    .hero-desc { font-size: 15px; max-width: none; }

    .hero-visual {
        width: 240px;
        height: 240px;
    }

    .hero-emoji-circle {
        width: 200px;
        height: 200px;
    }

    .hero-big-emoji { font-size: 88px; }

    .features-strip { padding: 0 24px 32px; }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .feature-item { padding: 16px 18px; }
    .feature-label { font-size: 13px; }

    .products-section { padding: 40px 0; }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 24px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-visual {
        width: 100%;
        min-height: 160px;
    }

    .product-emoji { font-size: 64px; }
    .product-info { padding: 18px; }
    .product-name { font-size: 17px; }

    .section-header { padding: 0 24px 24px; }
    .section-title { font-size: 26px; }

    .reviews-carousel { padding: 0 24px 20px; }
    .review-card { width: 320px; padding: 22px; }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 24px;
    }

    .about-text-card {
        grid-column: span 2;
    }

    .about-map { height: 250px; }

    .bottom-sheet {
        max-width: 520px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .bottom-sheet.active {
        transform: translateX(-50%) translateY(0);
    }

    .review-modal {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
    }

    .review-modal.active {
        transform: translateX(-50%) translateY(0);
    }

    .floating-cart {
        bottom: calc(var(--bottom-nav-height) + 20px);
    }
}

/* ============================================================
   DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    :root {
        --header-height: 72px;
        --bottom-nav-height: 0px;
    }

    body { font-size: 16px; }

    /* Hide bottom nav on desktop */
    .bottom-nav { display: none; }

    .app-main {
        padding-bottom: 40px;
    }

    .header-inner {
        padding: 0 32px;
    }

    .brand-name { font-size: 22px; }

    /* Desktop nav in header */
    .header-actions {
        gap: 12px;
    }

    .hero-section {
        padding: 60px 32px 72px;
    }

    .hero-content {
        max-width: 960px;
        gap: 60px;
    }

    .hero-title { font-size: 42px; }
    .hero-desc { font-size: 16px; }

    .hero-visual { width: 300px; height: 300px; }
    .hero-emoji-circle { width: 250px; height: 250px; }
    .hero-big-emoji { font-size: 110px; }

    .features-strip { padding: 0 32px 40px; }

    .features-grid {
        max-width: 800px;
        margin: 0 auto;
        gap: 16px;
    }

    .feature-item {
        padding: 18px 22px;
        border-radius: var(--radius-md);
    }

    .feature-icon { font-size: 24px; }
    .feature-label { font-size: 14px; }

    .products-section { padding: 48px 0; }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 0 32px;
    }

    .product-visual { min-height: 180px; }
    .product-emoji { font-size: 72px; }
    .product-info { padding: 20px; }
    .product-name { font-size: 18px; }
    .product-desc { font-size: 13px; }
    .price-amount { font-size: 18px; }

    .add-to-cart-btn {
        width: 44px;
        height: 44px;
    }

    .section-header { padding: 0 32px 28px; }
    .section-title { font-size: 28px; }

    .reviews-section { padding: 48px 0; }
    .reviews-carousel { padding: 0 32px 20px; }
    .review-card { width: 360px; }

    .about-section { padding: 48px 0 40px; }
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 0 32px;
    }

    .about-text-card { grid-column: span 1; }
    .about-map { height: 280px; }

    .bottom-sheet {
        max-width: 560px;
    }

    .review-modal {
        max-width: 500px;
    }

    .floating-cart {
        bottom: 28px;
        max-width: 520px;
    }

    .floating-cart-total { font-size: 16px; }
    .floating-cart-icon { width: 68px; height: 68px; font-size: 28px; }
}

/* ============================================================
   LARGE DESKTOP (1440px+)
   ============================================================ */
@media (min-width: 1440px) {
    .hero-content {
        max-width: 1100px;
        gap: 80px;
    }

    .hero-title { font-size: 48px; }
    .hero-desc { font-size: 17px; }

    .hero-visual { width: 350px; height: 350px; }
    .hero-emoji-circle { width: 280px; height: 280px; }
    .hero-big-emoji { font-size: 130px; }

    .floating-emoji { font-size: 36px; }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   PRODUCT LIGHTBOX / SLIDER
   ============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 2;
    transition: 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-content {
    max-width: 92vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slider img,
.lightbox-slider video {
    max-width: 92vw;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.lightbox-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-counter {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 700;
}

/* Media Viewer (review media full screen) */
.media-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.media-viewer-overlay.active {
    display: flex;
}

.media-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 2;
    transition: 0.2s;
}

.media-viewer-close:hover {
    background: rgba(255,255,255,0.3);
}

.media-viewer-content img,
.media-viewer-content video {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    object-fit: contain;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .bottom-nav,
    .floating-cart,
    .bottom-sheet,
    .sheet-overlay,
    .review-modal,
    .review-modal-overlay,
    .toast-container { display: none !important; }

    .app-header { position: static; }
    .app-main { padding: 0; }
}

/* ============================================================
   PWA INSTALL & UPDATE BANNERS
   ============================================================ */
.pwa-install-banner {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    z-index: 10001;
    background: var(--bg-card, #fff);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 12px 48px rgba(108, 99, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: pwa-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwa-install-content strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text, #2D2B42);
    margin-bottom: 2px;
}

.pwa-install-content small {
    font-size: 12px;
    color: var(--text-light, #7C7A92);
}

.pwa-install-actions {
    display: flex;
    gap: 10px;
}

.pwa-install-btn {
    flex: 1;
    padding: 12px 0;
    background: linear-gradient(135deg, var(--primary, #6C63FF), var(--primary-dark, #5A52E0));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
}

.pwa-install-btn:active {
    transform: scale(0.97);
}

.pwa-install-dismiss {
    padding: 12px 20px;
    background: transparent;
    color: var(--text-light, #7C7A92);
    border: 1px solid var(--border, #E8E6F0);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.pwa-update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    background: linear-gradient(135deg, var(--primary, #6C63FF), var(--primary-dark, #5A52E0));
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    animation: pwa-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

.pwa-update-banner button {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    background: #fff;
    color: var(--primary, #6C63FF);
    border: none;
    transition: transform 0.2s;
}

.pwa-update-banner button:active {
    transform: scale(0.95);
}

@keyframes pwa-slide-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pwa-slide-down {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* بنر نصب در دسکتاپ */
@media (min-width: 768px) {
    .pwa-install-banner {
        max-width: 400px;
        left: auto;
        right: 24px;
        bottom: 24px;
    }
}

/* مخفی کردن بنرها در حالت standalone (PWA نصب شده) */
@media (display-mode: standalone) {
    .pwa-install-banner { display: none !important; }
}

@media (display-mode: window-controls-overlay) {
    .pwa-install-banner { display: none !important; }
}
