/* ============================================================
   GEMINI SMART CART - MODERN STYLE (PART A: CORE & LAYOUT)
   ============================================================ */

:root {
    /* --- پالت رنگی (لوکس و مدرن) --- */
    --gc-primary: #dfa936;       /* طلایی اصلی */
    --gc-primary-hover: #c49228; /* طلایی تیره‌تر برای هاور */
    --gc-primary-light: #fff8e1; /* طلایی خیلی روشن برای پس‌زمینه */
    
    --gc-bg-body: #f8f9fa;       /* پس زمینه کل صفحه */
    --gc-bg-card: #ffffff;       /* پس زمینه کارت‌ها */
    
    --gc-text-main: #2d3436;     /* متن اصلی (مشکی نرم) */
    --gc-text-light: #636e72;    /* متن فرعی (طوسی) */
    --gc-border-color: #dfe6e9;  /* رنگ حاشیه */
    
    --gc-danger: #ff4757;        /* قرمز برای حذف/خطا */
    --gc-success: #2ed573;       /* سبز برای موفقیت */
    --gc-info: #1e90ff;          /* آبی برای اطلاعات */

    /* --- ابعاد و اندازه‌ها --- */
    --gc-radius-sm: 8px;
    --gc-radius-md: 12px;
    --gc-radius-lg: 16px;
    --gc-radius-full: 50px;

    /* --- سایه‌ها (Soft Shadows) --- */
    --gc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --gc-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --gc-shadow-float: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* --- انیمیشن --- */
    --gc-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. ریست و کانتینر اصلی */
.gc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit; /* ارث‌بری فونت قالب */
    direction: rtl;
    text-align: right;
    padding: 20px 15px;
    color: var(--gc-text-main);
    line-height: 1.6;
}

.gc-wrapper *, .gc-wrapper *::before, .gc-wrapper *::after {
    box-sizing: border-box;
    outline: none;
}

/* 2. سیستم گرید (Grid System) */
/* موبایل (پیش‌فرض): همه چیز زیر هم */
.gc-wrapper-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 80px; /* فضای خالی برای نوار چسبان موبایل */
}

/* دسکتاپ: دو ستون کنار هم */
@media (min-width: 992px) {
    .gc-wrapper-grid {
        display: grid;
        grid-template-columns: 1.9fr 1.1fr; /* محتوا پهن‌تر، سایدبار باریک‌تر */
        gap: 30px;
        align-items: start;
        padding-bottom: 30px;
    }
}

/* 3. هدر و ناوبری (Tabs) */
.gc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.gc-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gc-text-main);
}

/* استایل تب‌ها (کپسولی مدرن) */
.gc-tabs {
    display: inline-flex;
    background: #e9ecef;
    border-radius: var(--gc-radius-full);
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.gc-tab {
    padding: 8px 24px;
    border-radius: var(--gc-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gc-text-light);
    cursor: pointer;
    transition: var(--gc-transition);
    user-select: none;
}

.gc-tab:hover {
    color: var(--gc-text-main);
}

.gc-tab.active {
    background: var(--gc-bg-card);
    color: var(--gc-text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: scale(1.02);
}

.gc-tab.inactive {
    opacity: 0.6;
    cursor: default;
}

/* 4. کارت‌های محتوا (Cards) */
.gc-card {
    background: var(--gc-bg-card);
    border-radius: var(--gc-radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--gc-border-color);
    box-shadow: var(--gc-shadow-sm);
    transition: var(--gc-transition);
    position: relative;
    overflow: hidden; /* برای جلوگیری از بیرون زدن فرزندان */
}

.gc-card:hover {
    box-shadow: var(--gc-shadow-md);
    border-color: #d1ccc0;
}

/* هدر کارت (خط جداکننده و عنوان) */
.gc-card-header, .gc-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--gc-border-color);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gc-text-main);
}

/* لینک بازگشت */
.gc-back-link {
    font-size: 0.9rem;
    color: var(--gc-text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--gc-transition);
}
.gc-back-link:hover {
    color: var(--gc-primary);
    transform: translateX(3px);
}

/* دکمه‌های متنی کوچک (مثل حذف همه) */
.gc-link-btn, .gc-empty-btn {
    background: transparent;
    border: none;
    color: var(--gc-danger);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--gc-radius-sm);
    transition: var(--gc-transition);
}

.gc-link-btn:hover, .gc-empty-btn:hover {
    background: #fff0f0;
    transform: translateY(-1px);
}

/* --- پایان بخش A --- */
/* ============================================================
   GEMINI SMART CART - PART B: PRODUCTS & CONTROLS
   ============================================================ */

/* 5. آیتم محصول (Product Item) */
.gc-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--gc-border-color);
    position: relative;
    transition: var(--gc-transition);
}

.gc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gc-item:first-child {
    padding-top: 0;
}

/* هاور روی محصول */
.gc-item:hover {
    background: rgba(255, 255, 255, 0.5); /* افکت شیشه‌ای خفیف */
}

/* تصویر محصول */
.gc-thumb img {
    width: 90px;
    height: 90px;
    border-radius: var(--gc-radius-md);
    object-fit: cover;
    box-shadow: var(--gc-shadow-sm);
    transition: var(--gc-transition);
}

.gc-item:hover .gc-thumb img {
    transform: scale(1.05);
}

/* ستون اطلاعات */
.gc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 10px; /* فاصله از چپ */
}

/* عنوان و متا */
.gc-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gc-text-main);
    margin-bottom: 5px;
    line-height: 1.4;
    display: block;
    text-decoration: none;
    padding-left: 25px; /* فضا برای دکمه حذف */
}

.gc-meta {
    font-size: 0.85rem;
    color: var(--gc-text-light);
    margin-bottom: 8px;
    display: block;
}

/* بج‌های وضعیت (زمان آماده‌سازی و...) */
.gc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.gc-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f2f6;
    color: var(--gc-text-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gc-badge.prep {
    background: var(--gc-primary-light);
    color: #b7791f; /* طلایی تیره برای خوانایی */
    border: 1px solid rgba(223, 169, 54, 0.2);
}

/* آیکون داخل بج */
.gc-custom-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

/* 6. ردیف اکشن (قیمت و تعداد) */
.gc-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.gc-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gc-text-main);
    letter-spacing: -0.5px;
}

/* 7. باکس تعداد کپسولی (Capsule Quantity) - استایل حیاتی */
.gc-qty.capsule {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gc-border-color);
    border-radius: 50px !important; /* اجبار برای جلوگیری از تداخل قالب */
    padding: 2px;
    height: 40px;
    width: 110px;
    box-shadow: var(--gc-shadow-sm);
    transition: var(--gc-transition);
}

.gc-qty.capsule:hover {
    border-color: var(--gc-primary);
    box-shadow: 0 4px 10px rgba(223, 169, 54, 0.15);
}

/* دکمه‌های + و - */
.gc-qty.capsule button {
    width: 32px;
    height: 32px;
    border: none !important;
    background: transparent !important;
    color: var(--gc-primary);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gc-transition);
    padding: 0;
    margin: 0 2px;
}

.gc-qty.capsule button:hover {
    background: var(--gc-primary-light) !important;
    color: var(--gc-primary-hover);
}

/* ورودی عدد */
.gc-qty.capsule input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gc-text-main);
    padding: 0;
    margin: 0;
    -moz-appearance: textfield; /* حذف دکمه‌های پیش‌فرض مرورگر */
}

.gc-qty.capsule input:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* حذف اسپینر در کروم/سافاری */
.gc-qty.capsule input::-webkit-outer-spin-button,
.gc-qty.capsule input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 8. دکمه حذف تکی (سطل آشغال/ضربدر) */
.gc-remove-icon {
    position: absolute;
    top: 20px;
    left: 0;
    color: #b2bec3;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--gc-transition);
    padding: 5px;
    z-index: 2;
}

.gc-remove-icon:hover {
    color: var(--gc-danger);
    transform: rotate(90deg);
}

/* --- پایان بخش B --- */
/* ============================================================
   GEMINI SMART CART - PART C: FORMS, CALENDAR & MODALS
   ============================================================ */

/* 9. فرم‌ها و ورودی‌ها (Forms) */
.gc-form-grid {
    display: grid;
    grid-template-columns: 1fr; /* موبایل: تک ستون */
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 576px) {
    .gc-form-grid {
        grid-template-columns: 1fr 1fr; /* تبلت و دسکتاپ: دو ستون */
    }
}

.gc-input-group {
    margin-bottom: 15px;
    position: relative;
}

.gc-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gc-text-main);
}

.gc-input, .gc-select, .gc-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gc-border-color);
    border-radius: var(--gc-radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fdfdfd;
    transition: var(--gc-transition);
    color: var(--gc-text-main);
}

.gc-input:focus, .gc-select:focus, .gc-textarea:focus {
    border-color: var(--gc-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(223, 169, 54, 0.1); /* حلقه طلایی */
}

/* 10. انتخابگرهای ارسال و پرداخت (Radio Cards) */
.gc-payment-opt {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--gc-border-color);
    border-radius: var(--gc-radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    transition: var(--gc-transition);
    position: relative;
}

.gc-payment-opt:hover {
    border-color: #b2bec3;
}

.gc-payment-opt.active {
    border-color: var(--gc-primary);
    background: var(--gc-primary-light);
    box-shadow: inset 0 0 0 1px var(--gc-primary);
}

/* استایل سفارشی رادیو باتن */
.gc-payment-opt input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gc-primary); /* رنگ بومی مرورگر */
    margin: 0;
}

/* 11. تقویم اسکرول افقی (Date Scroller) */
.gc-date-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 2px 20px 2px; /* فضای پایین برای سایه */
    margin-bottom: 10px;
    scrollbar-width: none; /* مخفی کردن اسکرول بار فایرفاکس */
}
.gc-date-scroller::-webkit-scrollbar { display: none; } /* کروم */

.gc-date-card {
    min-width: 95px;
    border: 1px solid var(--gc-border-color);
    border-radius: var(--gc-radius-md);
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: var(--gc-transition);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gc-date-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gc-shadow-sm);
    border-color: var(--gc-primary);
}

.gc-date-card.active {
    background: var(--gc-primary);
    border-color: var(--gc-primary);
    color: #fff;
    box-shadow: 0 8px 15px rgba(223, 169, 54, 0.3);
    transform: scale(1.05);
}

.gc-date-card.active .gc-day-date {
    color: rgba(255, 255, 255, 0.8);
}

.gc-day-name {
    font-weight: 800;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.gc-day-date {
    font-size: 0.85rem;
    color: var(--gc-text-light);
}

/* 12. نوار چسبان (Sticky Bar - Mobile & Desktop) */
.gc-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gc-white);
    padding: 15px 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* انیمیشن ورود نوار */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.gc-sticky-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gc-total-label {
    font-size: 0.8rem;
    color: var(--gc-text-light);
    margin-bottom: 2px;
}

.gc-total-amount {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gc-text-main);
    font-family: inherit; /* استفاده از فونت اعداد فارسی اگر در قالب باشد */
}

/* دکمه پرداخت نهایی */
.gc-checkout-btn {
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-primary-hover)) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 35px;
    height: 50px;
    border-radius: var(--gc-radius-md);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(223, 169, 54, 0.35);
    transition: var(--gc-transition);
    text-decoration: none !important;
    white-space: nowrap;
}

.gc-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(223, 169, 54, 0.45);
}

.gc-checkout-btn:active {
    transform: translateY(1px);
}

/* دکمه ذخیره (آیکون) */
.gc-save-icon-btn {
    background: #f1f2f6;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--gc-radius-md);
    font-size: 1.4rem;
    color: var(--gc-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gc-transition);
}

.gc-save-icon-btn:hover {
    background: #e1e2e6;
    color: var(--gc-primary);
}

/* 13. مودال و ناتیفیکیشن شیشه‌ای (Glassmorphism ULTIMATE) */

/* لایه تاریک پشت */
.gsc-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* تاری قوی */
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

/* خود مودال */
.gsc-glass-modal {
    background: rgba(255, 255, 255, 0.85); /* شیشه‌ای */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 35px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gsc-modal-icon { font-size: 3.5rem; display: block; margin-bottom: 15px; }
.gsc-modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; color: var(--gc-text-main); }
.gsc-modal-desc { font-size: 1rem; color: #555; margin-bottom: 30px; line-height: 1.6; }

.gsc-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.gsc-btn {
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--gc-transition);
}

.gsc-btn.confirm {
    background: var(--gc-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(223, 169, 54, 0.3);
}
.gsc-btn.confirm:hover { background: var(--gc-primary-hover); transform: translateY(-2px); }

.gsc-btn.cancel {
    background: rgba(0,0,0,0.05);
    color: var(--gc-text-main);
}
.gsc-btn.cancel:hover { background: rgba(0,0,0,0.1); }

/* ناتیفیکیشن (Toast) */
#gsc-toast-container {
    position: fixed;
    top: 30px; /* فاصله از بالا */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* کلیک پشتش کار کند */
}

.gsc-glass-toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gc-text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: slideDownToast 0.4s forwards;
    min-width: 300px;
    justify-content: center;
}

.gsc-glass-toast.success { border-right: 6px solid var(--gc-success); }
.gsc-glass-toast.error { border-right: 6px solid var(--gc-danger); }
.gsc-glass-toast.info { border-right: 6px solid var(--gc-info); }

@keyframes slideDownToast {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }

/* 14. استایل‌های مخصوص دسکتاپ (Grid Override) */
@media (min-width: 992px) {
    /* سایدبار چسبان (نه نوار پایین) */
    .gc-sticky-bar {
        position: sticky;
        top: 30px;
        bottom: auto; left: auto; right: auto;
        
        flex-direction: column;
        align-items: stretch;
        
        border-radius: var(--gc-radius-lg);
        box-shadow: var(--gc-shadow-md);
        padding: 30px;
        border: 1px solid var(--gc-border-color);
        animation: none;
    }

    .gc-sticky-details {
        margin-bottom: 25px;
        border-bottom: 1px dashed var(--gc-border-color);
        padding-bottom: 25px;
        gap: 15px;
    }

    /* شبیه سازی ردیف‌های فاکتور */
    .gc-sticky-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.95rem;
        color: var(--gc-text-light);
    }

    .gc-total-label { font-size: 1.1rem; color: var(--gc-text-main); }
    .gc-total-amount { font-size: 1.6rem; align-self: flex-end; color: var(--gc-primary-hover); }

    .gc-checkout-btn { width: 100%; }
    
    .gc-save-icon-btn {
        width: 100%;
        margin-top: 15px;
        gap: 10px;
        height: 48px;
        border-radius: 12px;
        font-size: 1rem;
        background: transparent;
        border: 1px solid var(--gc-border-color);
    }
    .gc-save-icon-btn::after { content: 'ذخیره سبد برای بعد'; font-weight: 600; }
}

/* --- پایان بخش C --- */
/* gemini-smart-cart/assets/css/style.css */

:root {
    --gc-gold: #dfa936;
    --gc-gold-dark: #c49228;
    --gc-bg: #f5f5f5;
    --gc-white: #ffffff;
    --gc-text: #333;
    --gc-text-light: #777;
    --gc-border: #e6e6e6;
    --gc-danger: #ff4d4d;
    --gc-success: #2e7d32;
    --gc-info: #1976d2;
    --gc-radius: 12px;
    --gc-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.gc-wrapper, .gc-wrapper * { box-sizing: border-box; outline: none; }

.gc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    padding: 15px;
    color: var(--gc-text);
}

/* --- هدر و تب‌ها --- */
.gc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.gc-tabs { display: flex; background: #e0e0e0; border-radius: 25px; padding: 4px; }
.gc-tab { padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; cursor: pointer; color: #666; transition: 0.3s; white-space: nowrap; }
.gc-tab.active { background: var(--gc-white); color: var(--gc-text); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* --- کارت‌ها --- */
.gc-card {
    background: var(--gc-white);
    border-radius: var(--gc-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--gc-shadow);
    border: 1px solid #fff;
}

.gc-card-header, .gc-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gc-border);
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 1rem;
}

.gc-empty-btn { font-size: 0.8rem; color: var(--gc-danger); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }

/* --- آیتم محصول --- */
.gc-item { display: flex; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--gc-border); position: relative; }
.gc-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.gc-thumb img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.gc-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.gc-name { font-weight: bold; font-size: 0.95rem; margin-bottom: 5px; display: block; padding-left: 20px; }
.gc-meta { font-size: 0.8rem; color: var(--gc-text-light); }
.gc-badges { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.gc-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 6px; background: #f0f0f0; color: #555; }
.gc-badge.prep { background: #fff8e1; color: #856404; border: 1px solid #ffeeba; }
.gc-actions-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.gc-price { font-weight: bold; font-size: 1rem; }
.gc-remove-icon { position: absolute; left: 0; top: 0; cursor: pointer; color: #ccc; padding: 5px; z-index: 5; }
.gc-remove-icon:hover { color: var(--gc-danger); }

/* --- فرم‌ها --- */
.gc-form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
@media (min-width: 600px) { .gc-form-grid { grid-template-columns: 1fr 1fr; } }

.gc-input-group { margin-bottom: 15px; }
.gc-label { display: block; font-weight: bold; font-size: 0.85rem; margin-bottom: 5px; }
.gc-input, .gc-select, .gc-textarea { width: 100%; padding: 12px; border: 1px solid var(--gc-border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: #f9f9f9; transition: 0.2s; }
.gc-input:focus { border-color: var(--gc-gold); background: #fff; }

/* --- رادیو باکس‌ها --- */
.gc-payment-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--gc-border); padding: 12px; border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: 0.2s; position: relative; }
.gc-payment-opt.active { border-color: var(--gc-gold); background: #fffdf5; box-shadow: inset 0 0 0 1px var(--gc-gold); }
.gc-payment-opt input { accent-color: var(--gc-gold); width: 18px; height: 18px; }

/* --- تقویم --- */
.gc-date-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 5px 2px 15px 2px; margin-bottom: 10px; scrollbar-width: none; }
.gc-date-scroller::-webkit-scrollbar { display: none; }
.gc-date-card { min-width: 90px; border: 1px solid var(--gc-border); border-radius: 12px; padding: 12px 10px; text-align: center; cursor: pointer; background: #fff; transition: 0.2s; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; }
.gc-date-card.active { border-color: var(--gc-gold); background: #fffdf5; color: #c49228; box-shadow: 0 4px 10px rgba(223, 169, 54, 0.2); transform: scale(1.03); }
.gc-day-name { font-weight: bold; display: block; margin-bottom: 4px; }
.gc-day-date { font-size: 0.8rem; opacity: 0.8; }

/* --- آیکون و تعداد --- */
.gc-custom-icon { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.gc-qty.capsule { display: flex; align-items: center; background: #fff; border: 1px solid #ddd; border-radius: 50px; padding: 0 5px; height: 35px; width: fit-content; }
.gc-qty.capsule button { width: 28px; height: 100%; border: none; background: transparent; font-size: 1.2rem; color: var(--gc-gold); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gc-qty.capsule input { width: 35px; height: 100%; border: none; background: transparent; text-align: center; font-weight: bold; font-size: 0.95rem; margin: 0; }

/* ============================================================
   12. نوار ابزار پایین (Mobile: Static / Desktop: Sticky)
   ============================================================ */

/* حالت موبایل: معمولی و زیر فرم (بدون چسبندگی) */
.gc-sticky-bar {
    position: relative; /* دیگر فیکس نیست */
    margin-top: 30px;
    background: var(--gc-white);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 20px;
    box-shadow: var(--gc-shadow);
    
    display: flex;
    flex-direction: column; /* چیدمان ستونی */
    gap: 15px;
    z-index: 10;
}

.gc-sticky-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--gc-border);
}

.gc-total-label { font-size: 1rem; color: var(--gc-text); font-weight: bold; }
.gc-total-amount { font-size: 1.4rem; font-weight: 800; color: var(--gc-gold-dark); }

/* دکمه پرداخت (بزرگ و تمام عرض) */
.gc-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gc-gold), var(--gc-gold-dark));
    color: #fff;
    border: none;
    padding: 15px;
    height: auto;
    min-height: 50px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(223, 169, 54, 0.3);
    transition: 0.2s;
    text-decoration: none;
}
.gc-checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(223, 169, 54, 0.4); }
.gc-checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(1); }

/* دکمه ذخیره (ثانویه) */
.gc-save-icon-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed #ccc;
    height: 45px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gc-save-icon-btn::after { content: 'ذخیره سبد برای بعد'; font-weight: 600; }
.gc-save-icon-btn:hover { background: #f9f9f9; border-color: var(--gc-gold); color: var(--gc-gold); }

/* ردیف‌های اضافی فاکتور (برای نمایش کامل) */
.gc-sticky-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    width: 100%;
}

/* ============================================================
   13. مودال و ناتیفیکیشن (Glassmorphism)
   ============================================================ */
/* مودال */
.gsc-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px);
    z-index: 9999999; display: flex; align-items: center; justify-content: center;
    opacity: 0; animation: fadeIn 0.3s forwards;
}
.gsc-glass-modal {
    background: #fff; border-radius: 20px; padding: 30px; width: 90%; max-width: 400px;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9); animation: popIn 0.3s forwards;
}
.gsc-modal-icon { font-size: 3rem; display: block; margin-bottom: 15px; }
.gsc-modal-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; display: block; }
.gsc-modal-desc { font-size: 0.95rem; color: #666; margin-bottom: 25px; display: block; }
.gsc-modal-actions { display: flex; gap: 10px; justify-content: center; }
.gsc-btn { padding: 12px 25px; border-radius: 10px; border: none; font-weight: bold; cursor: pointer; }
.gsc-btn.confirm { background: var(--gc-gold); color: #fff; }
.gsc-btn.cancel { background: #f0f0f0; color: #555; }

/* ناتیفیکیشن */
#gsc-toast-container { position: fixed; top: 30px; left: 50%; transform: translateX(-50%); z-index: 9999999; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 350px; pointer-events: none; }
.gsc-glass-toast { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 1px solid #fff; padding: 15px; border-radius: 15px; font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; animation: fadeIn 0.3s forwards; pointer-events: auto; }
.gsc-glass-toast.success { border-right: 5px solid var(--gc-success); color: var(--gc-success); }
.gsc-glass-toast.error { border-right: 5px solid var(--gc-danger); color: var(--gc-danger); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }

/* ============================================================
   14. حالت دسکتاپ (Grid System)
   ============================================================ */
@media (min-width: 900px) {
    .gc-wrapper-grid {
        display: grid;
        grid-template-columns: 1.9fr 1.1fr;
        gap: 30px;
        align-items: start;
        padding-bottom: 50px;
    }

    .gc-sticky-bar {
        position: sticky;
        top: 30px; /* چسبان فقط در دسکتاپ */
        margin-top: 0;
        box-shadow: var(--gc-shadow);
        border: 1px solid var(--gc-border);
    }
}

/* اصلاح لیست روش‌های ارسال */
.gsc-shipping-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: none !important; /* حذف محدودیت ارتفاع */
    overflow: visible !important;
}

/* برای اطمینان از اینکه در موبایل و دسکتاپ خوب دیده شود */
.gc-payment-opt {
    width: 100%;
    box-sizing: border-box;
}


.gc-coupon-btn {
    border-radius: 20px !important;
    margin-top: 10px !important;

}


.gc-empty-btn {
    border-radius: 20px !important;
}

.gc-save-icon-btn {
        border-radius: 20px !important;

}
.gc-checkout-btn {
    border-radius: 20px !important; 
}