/* =====================================================================
 *  group_new.css
 *  استایل قابلیت «خرید گروهی / سفارش مستمر» و «افزودن سریع به سبد»
 *  از متغیرهای رنگ style_new.css استفاده می‌کند (var(--basecolor) و ...)
 *  کلاس‌ها با پیشوند gp- (گروهی) و qa- (افزودن سریع) تا با چیزی تداخل نکند
 * ===================================================================== */

.gp-page {
    direction: rtl;
    text-align: right;
    background: #fafafa;
    min-height: 100vh;
}

.gp-body {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

i {
    line-height: 0px;
}

/* ---------------------------------------------------------------------
 *  استپر مراحل
 * ------------------------------------------------------------------- */

.gp-stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 10px 0 10px;
    margin-bottom: 2px;
}

.gp-stepper-line {
    position: absolute;
    top: 20px;
    right: 32px;
    left: 32px;
    height: 2px;
    background: #ebebeb;
    border-radius: 2px;
    overflow: hidden;
}

.gp-stepper-line-fill {
    display: block;
    height: 100%;
    background: var(--basecolor);
    transition: width 0.4s ease;
}

.gp-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.gp-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ebebeb;
    color: #bbb;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gp-step.active .gp-step-dot {
    border-color: var(--basecolor);
    color: var(--basecolor);
    box-shadow: 0 0 0 4px var(--basecolorshadowback);
}

.gp-step.done .gp-step-dot {
    background: var(--basecolor);
    border-color: var(--basecolor);
    color: #fff;
}

.gp-step-title {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
}

.gp-step.active .gp-step-title {
    color: #333;
    font-weight: 600;
}

.gp-step.done .gp-step-title {
    color: #666;
}

/* ---------------------------------------------------------------------
 *  هدر معرفی + یادداشت
 * ------------------------------------------------------------------- */

.gp-hero {
    padding: 4px 2px;
}

.gp-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.gp-hero-subtitle {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    line-height: 1.7;
}

.gp-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--basecolorshadowback);
    border: 1px solid var(--basecolorshadow);
    color: #3c6d5f;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.9;
}

.gp-note i {
    color: var(--basecolor);
    font-size: 15px;
    margin-top: 2px;
}

.gp-note b {
    font-weight: 700;
}

.gp-note.warn {
    background: #fff6f6;
    border-color: #ffdcdc;
    color: #a33;
}

.gp-note.warn i {
    color: var(--button-red);
}

.gp-hint {
    font-size: 11.5px;
    color: #aaa;
    margin-top: 8px;
    line-height: 1.8;
}

/* ---------------------------------------------------------------------
 *  بخش‌ها
 * ------------------------------------------------------------------- */

.gp-section {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
}

.gp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gp-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.gp-section-title i {
    color: var(--basecolor);
    font-size: 15px;
}

/* ---------------------------------------------------------------------
 *  دکمه‌ها
 * ------------------------------------------------------------------- */

.gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--basecolor);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    border: 0;
}

.gp-btn:hover {
    background: var(--button-active-hover);
}

.gp-btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--basecolor);
    color: #fff !important;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}

.gp-btn-mini:hover {
    background: var(--button-active-hover);
}

.gp-btn-mini.ghost {
    background: #f4f4f4;
    color: #666 !important;
}

.gp-btn-mini.ghost:hover {
    background: #ebebeb;
}

/* ---------------------------------------------------------------------
 *  کارت پکیج
 * ------------------------------------------------------------------- */

.gp-packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gp-package {
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s;
    overflow: hidden;
    --gp-accent: var(--basecolor);
}

.gp-package:hover {
    border-color: #e2e2e2;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.gp-package.selected {
    border-color: var(--gp-accent);
    background: var(--basecolorshadowback);
    box-shadow: 0 0 0 3px var(--basecolorshadow);
}

.gp-package-badge {
    position: absolute;
    top: 0;
    left: 16px;
    background: var(--button-red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 0 8px 8px;
}

.gp-package-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gp-package-days {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--basecolorshadowback);
    color: var(--gp-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 11px;
    gap: 2px;
}

.gp-package-days span {
    font-size: 22px;
    font-weight: 800;
}

.gp-package.selected .gp-package-days {
    background: var(--gp-accent);
    color: #fff;
}

.gp-package-titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.gp-package-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.gp-package-discount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--button-red);
}

.gp-package-desc {
    font-size: 12.5px;
    color: #777;
    line-height: 2;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.gp-package-desc p {
    margin: 0 0 6px 0;
}

.gp-package-desc ul {
    margin: 0;
    padding-right: 18px;
}

.gp-package-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f4f4f4;
    color: var(--gp-accent);
    font-size: 13px;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
 *  ادامه سفارش نیمه‌تمام
 * ------------------------------------------------------------------- */

.gp-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fffaf0;
    border: 1px solid #ffe6b8;
    border-radius: 12px;
    padding: 12px 14px;
}

.gp-resume-title {
    font-size: 13px;
    font-weight: 700;
    color: #8a6100;
}

.gp-resume-text {
    font-size: 12px;
    color: #a98033;
    margin-top: 3px;
}

.gp-resume-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------
 *  انتخاب (آدرس و ...)
 * ------------------------------------------------------------------- */

.gp-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gp-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.25s;
    background: #fff;
}

.gp-choice:hover {
    border-color: #ddd;
}

.gp-choice.on {
    border-color: var(--basecolor);
    background: var(--basecolorshadowback);
    box-shadow: 0 0 0 2px var(--basecolorshadow);
}

.gp-choice-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all 0.25s;
}

.gp-choice-check i {
    font-size: 9px;
    color: #fff;
    opacity: 0;
    transition: 0.2s;
}

.gp-choice.on .gp-choice-check {
    background: var(--basecolor);
    border-color: var(--basecolor);
}

.gp-choice.on .gp-choice-check i {
    opacity: 1;
}

.gp-choice-body {
    overflow: hidden;
}

.gp-choice-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.gp-choice-text {
    font-size: 12px;
    color: #888;
    line-height: 1.9;
    margin-top: 3px;
}

/* ---------------------------------------------------------------------
 *  چیپ‌ها (اسلات زمانی / آپشن‌ها)
 * ------------------------------------------------------------------- */

.gp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #eaeaea;
    background: #fff;
    color: #555 !important;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.gp-chip:hover {
    border-color: #d5d5d5;
}

.gp-chip.on {
    border-color: var(--basecolor);
    background: var(--basecolor);
    color: #fff !important;
    font-weight: 600;
}

.gp-chip.off {
    background: #f7f7f7;
    color: #c4c4c4 !important;
    border-color: #f0f0f0;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ---------------------------------------------------------------------
 *  شمارنده روزها
 * ------------------------------------------------------------------- */

.gp-counter {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.gp-counter-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.gp-counter-text b {
    color: #222;
    font-weight: 700;
}

.gp-counter.done .gp-counter-text {
    color: var(--basecolor);
    font-weight: 600;
}

.gp-counter-bar {
    height: 5px;
    background: #f0f0f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.gp-counter-bar span {
    display: block;
    height: 100%;
    background: var(--basecolor);
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------------
 *  تقویم
 * ------------------------------------------------------------------- */

.gp-cal-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gp-cal-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gp-calendar {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 14px;
    transition: opacity 0.2s;
}

.gp-calendar.loading {
    opacity: 0.45;
    pointer-events: none;
}

.gp-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gp-cal-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.gp-cal-title span {
    color: #aaa;
    font-weight: 500;
    font-size: 13px;
    margin-right: 2px;
}

.gp-cal-nav {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
}

.gp-cal-nav:hover {
    background: #ededed;
    color: #222;
}

.gp-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.gp-cal-wd {
    text-align: center;
    font-size: 11px;
    color: #b5b5b5;
    font-weight: 600;
    padding-bottom: 4px;
}

.gp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.gp-cal-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    background: #fbfbfb;
    border: 1px solid transparent;
    transition: all 0.18s;
    user-select: none;
}

.gp-cal-cell.empty {
    background: transparent;
    cursor: default;
}

.gp-cal-cell:not(.empty):not(.off):not(.selected):hover {
    background: var(--basecolorshadowback);
    border-color: var(--basecolorshadow);
}

.gp-cal-cell.today {
    border-color: #d9d9d9;
    font-weight: 700;
}

.gp-cal-cell.selected {
    background: var(--basecolor);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px var(--basecolorshadow);
}

.gp-cal-cell.off {
    background: #f7f7f7;
    color: #cfcfcf;
    cursor: not-allowed;
}

.gp-cal-cell.full {
    color: #c9c9c9;
    background: #fbfbfb;
    cursor: not-allowed;
}

.gp-cal-num {
    line-height: 1;
}

.gp-cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.gp-cal-dot.ok {
    background: #fff;
}

.gp-cal-legend {
    display: flex;
    gap: 14px;
    padding: 0 4px;
    font-size: 11px;
    color: #999;
}

.gp-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gp-cal-legend .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.gp-cal-legend .dot.selected {
    background: var(--basecolor);
}

.gp-cal-legend .dot.today {
    background: #fff;
    border: 2px solid #d9d9d9;
}

.gp-cal-legend .dot.off {
    background: #e6e6e6;
}

/* ---------------------------------------------------------------------
 *  پنل روز
 * ------------------------------------------------------------------- */

.gp-daypanel {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 14px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.gp-daypanel.pop {
    box-shadow: 0 0 0 3px var(--basecolorshadow);
}

.gp-daypanel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 12px;
    color: #bdbdbd;
    font-size: 13px;
}

.gp-daypanel-empty i {
    font-size: 26px;
}

.gp-daypanel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f4f4f4;
}

.gp-daypanel-date {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gp-daypanel-dayname {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.gp-daypanel-full {
    font-size: 12px;
    color: #999;
}

.gp-daypanel-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--button-red) !important;
    background: #fff2f3;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.gp-daypanel-remove:hover {
    background: #ffe5e7;
}

.gp-daypanel-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
}

.gp-daypanel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.gp-daypanel-row:hover {
    background: #f3f3f3;
}

.gp-daypanel-row > i:first-child {
    color: var(--basecolor);
    font-size: 14px;
}

.gp-daypanel-row > i:last-child {
    color: #c4c4c4;
    font-size: 13px;
    margin-right: auto;
}

.gp-daypanel-row-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.gp-daypanel-row-label {
    font-size: 10.5px;
    color: #aaa;
}

.gp-daypanel-row-value {
    font-size: 12.5px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-daypanel-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
    animation: gpFadeIn 0.3s ease;
}

.gp-item-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
}

.gp-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.gp-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-item-opts {
    font-size: 11px;
    color: #999;
}

.gp-item-price {
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.gp-item-price .currency {
    font-size: 10px;
    font-weight: 400;
    color: #999;
    margin-right: 3px;
}

.gp-item-count {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f7f7f7;
    border-radius: 999px;
    padding: 3px;
    flex-shrink: 0;
}

.gp-count-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--basecolor);
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.gp-count-btn:hover {
    background: var(--basecolor);
    color: #fff !important;
}

.gp-count-btn.danger {
    color: var(--button-red);
}

.gp-count-btn.danger:hover {
    background: var(--button-red);
    color: #fff !important;
}

.gp-count-num {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-item-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 12px;
    color: #c0c0c0;
    font-size: 12.5px;
    background: #fbfbfb;
    border-radius: 10px;
    border: 1px dashed #ececec;
}

.gp-item-empty i {
    font-size: 22px;
}

.gp-daypanel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f4f4f4;
}

.gp-daypanel-total {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gp-daypanel-total span {
    font-size: 11px;
    color: #aaa;
}

.gp-daypanel-total b {
    font-size: 14px;
    color: #222;
    font-weight: 700;
}

.gp-daypanel-total .currency {
    font-size: 10px;
    font-weight: 400;
    color: #999;
    margin-right: 3px;
}

/* ---------------------------------------------------------------------
 *  لیست محصولات
 * ------------------------------------------------------------------- */

.gp-dayhint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #666;
}

.gp-dayhint i {
    color: var(--basecolor);
}

.gp-dayhint b {
    color: #222;
    font-weight: 700;
}

.gp-dayhint-back {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--basecolor) !important;
    background: var(--basecolorshadowback);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.gp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 6px 12px;
}

.gp-search i {
    color: #bbb;
    font-size: 14px;
}

.gp-search input {
    flex: 1;
    border: 0;
    outline: none;
    height: 36px;
    font-size: 13px;
    color: #333;
    background: transparent;
    font-family: inherit;
}

.gp-search-btn {
    background: var(--basecolorshadowback);
    color: var(--basecolor) !important;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.gp-cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 2px 2px 2px;
}

.gp-cat-line {
    width: 4px;
    height: 16px;
    background: var(--basecolor);
    border-radius: 2px;
}

.gp-cat-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
}

.gp-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}

.gp-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 10px;
    transition: 0.25s;
}

.gp-product:hover {
    border-color: #e4e4e4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.gp-product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f7;
    cursor: pointer;
}

.gp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gp-product-img:hover img {
    transform: scale(1.04);
}

.gp-product-img.added {
    animation: gpPulse 0.5s ease;
}

.gp-product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--basecolor);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--basecolorshadow);
}

.gp-product-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 2px 8px 2px;
    flex: 1;
}

.gp-product-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.7;
}

.gp-product-desc {
    font-size: 11px;
    color: #a5a5a5;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-top: auto;
}

.gp-product-price .currency {
    font-size: 10px;
    font-weight: 400;
    color: #999;
    margin-right: 3px;
}

.gp-product-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.gp-product-price-col {
    display: flex;
    flex-direction: column;
}

.gp-product-price-old {
    font-size: 10.5px;
    color: #bbb;
    text-decoration: line-through;
}

.gp-percent {
    background: var(--button-red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.gp-product-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    border-radius: 9px;
    background: var(--basecolorshadowback);
    color: var(--basecolor) !important;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.22s;
}

.gp-product-add:hover {
    background: var(--basecolor);
    color: #fff !important;
}

/* ---------------------------------------------------------------------
 *  مودال شخصی‌سازی (خرید گروهی)
 * ------------------------------------------------------------------- */

.gp-modal-product {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 2px;
}

.gp-modal-img {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
    display: none;
}

.gp-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.gp-modal-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.9;
    margin-top: 5px;
}

.gp-modal-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gp-optgroup-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.gp-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f2f2f2;
}

.gp-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f7f7f7;
    border-radius: 999px;
    padding: 4px;
}

.gp-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--basecolor);
    cursor: pointer;
    transition: 0.2s;
}

.gp-qty-btn:hover {
    background: var(--basecolor);
    color: #fff !important;
}

.gp-qty-num {
    min-width: 26px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.gp-modal-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.gp-modal-price-label {
    font-size: 10.5px;
    color: #aaa;
}

.gp-modal-price-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--basecolor);
    transition: 0.2s;
}

.gp-modal-price-value .currency {
    font-size: 10px;
    font-weight: 400;
    color: #999;
    margin-right: 3px;
}

/* ---------------------------------------------------------------------
 *  جمع روز در فوتر صفحه محصولات
 * ------------------------------------------------------------------- */

.gp-daysum {
    width: 50%;
    margin: 0 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 43px;
    border-radius: 8px;
    background: #f7f7f7;
    font-size: 13px;
    color: #444;
}

.gp-daysum-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--basecolor);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.gp-daysum-total {
    font-weight: 700;
    color: #222;
}

.gp-daysum .currency {
    font-size: 10px;
    color: #999;
}

/* ---------------------------------------------------------------------
 *  خلاصه سفارش
 * ------------------------------------------------------------------- */

.gp-acc {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: 0.25s;
}

.gp-acc.open {
    border-color: var(--basecolorshadow);
}

.gp-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
}

.gp-acc-head:hover {
    background: #fbfbfb;
}

.gp-acc-date {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gp-acc-dayname {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.gp-acc-full {
    font-size: 11.5px;
    color: #a0a0a0;
}

.gp-acc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-acc-total {
    font-size: 12.5px;
    font-weight: 700;
    color: #444;
}

.gp-acc-meta i {
    color: #c0c0c0;
    font-size: 14px;
    transition: transform 0.25s;
}

.gp-acc.open .gp-acc-meta i {
    transform: rotate(180deg);
}

.gp-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 12px;
    background: #fcfcfc;
}

.gp-acc.open .gp-acc-body {
    max-height: 900px;
    padding: 12px;
    border-top: 1px solid #f2f2f2;
}

.gp-acc-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ececec;
}

.gp-acc-info div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #888;
}

.gp-acc-info i {
    color: var(--basecolor);
    font-size: 12px;
}

.gp-sum-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
}

.gp-sum-item + .gp-sum-item {
    border-top: 1px solid #f5f5f5;
}

.gp-sum-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.gp-sum-item-title {
    font-size: 12.5px;
    color: #333;
    font-weight: 500;
}

.gp-sum-item-opts {
    font-size: 10.5px;
    color: #aaa;
}

.gp-sum-item-count {
    font-size: 12px;
    color: #888;
}

.gp-sum-item-price {
    font-size: 12.5px;
    font-weight: 700;
    color: #333;
    min-width: 62px;
    text-align: left;
}

/* ---------------------------------------------------------------------
 *  جمع کل و کیف پول
 * ------------------------------------------------------------------- */

.gp-total-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gp-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
}

.gp-total-row b {
    color: #333;
    font-weight: 600;
}

.gp-total-row.discount {
    color: var(--button-red);
}

.gp-total-row.discount b {
    color: var(--button-red);
}

.gp-total-divider {
    height: 1px;
    background: repeating-linear-gradient(to left, #e8e8e8 0 6px, transparent 6px 12px);
}

.gp-total-row.final {
    font-size: 14px;
    color: #222;
    font-weight: 600;
}

.gp-total-row.final b {
    font-size: 16px;
    font-weight: 800;
    color: var(--basecolor);
}

.gp-wallet {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
}

.gp-wallet.ok {
    border-color: var(--basecolorshadow);
    background: var(--basecolorshadowback);
}

.gp-wallet.low {
    border-color: #ffdcdc;
    background: #fff9f9;
}

.gp-wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-wallet-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.gp-wallet-label i {
    color: var(--basecolor);
}

.gp-wallet.low .gp-wallet-label i {
    color: var(--button-red);
}

.gp-wallet-value {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.gp-wallet-short {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #f0dede;
    font-size: 12.5px;
    color: #a33;
}

.gp-wallet-short b {
    font-weight: 700;
}

/* ---------------------------------------------------------------------
 *  رسید
 * ------------------------------------------------------------------- */

.gp-receipt {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.gp-receipt-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--basecolorshadowback);
    color: var(--basecolor);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 4px;
    animation: gpPop 0.45s cubic-bezier(.2, 1.4, .4, 1);
}

.gp-receipt-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.gp-receipt-code {
    font-size: 12.5px;
    color: #888;
}

.gp-receipt-code b {
    color: #333;
}

.gp-receipt-sub {
    font-size: 12px;
    color: #a0a0a0;
}

.gp-receipt-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed #eee;
    font-size: 13px;
    color: #777;
}

.gp-receipt-amount b {
    font-size: 15px;
    color: var(--basecolor);
    font-weight: 800;
}

.gp-receipt-day {
    padding: 10px 0;
}

.gp-receipt-day + .gp-receipt-day {
    border-top: 1px solid #f5f5f5;
}

.gp-receipt-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-receipt-day-date {
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
}

.gp-receipt-day-slot {
    font-size: 11.5px;
    color: var(--basecolor);
    background: var(--basecolorshadowback);
    padding: 3px 8px;
    border-radius: 6px;
}

.gp-receipt-day-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.gp-receipt-day-items span {
    font-size: 11px;
    color: #888;
    background: #f7f7f7;
    padding: 4px 8px;
    border-radius: 6px;
}

/* ---------------------------------------------------------------------
 *  حالت خالی
 * ------------------------------------------------------------------- */

.gp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 16px;
    text-align: center;
}

.gp-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f6f6f6;
    color: #c8c8c8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
}

.gp-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.gp-empty-message {
    font-size: 12px;
    color: #a5a5a5;
    line-height: 1.9;
}

/* ---------------------------------------------------------------------
 *  انیمیشن‌ها
 * ------------------------------------------------------------------- */

@keyframes gpFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes gpPop {
    0% {
        transform: scale(.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gpPulse {
    0% {
        box-shadow: 0 0 0 0 var(--basecolorshadow);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 205, 150, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 205, 150, 0);
    }
}

/* =====================================================================
 *  افزودن سریع به سبد خرید  (صفحه فروشگاه)
 * ===================================================================== */

.qa-box {
    margin-top: 8px;
    position: relative;
    z-index: 3;
}

.qa-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    border-radius: 8px;
    background: var(--basecolorshadowback);
    color: var(--basecolor) !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.22s;
    line-height: 0;
}

.qa-add:hover {
    background: var(--basecolor);
    color: #fff !important;
}

.qa-add i {
    font-size: 10px;
}

.qa-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    border-radius: 8px;
    background: var(--basecolor);
    padding: 0 4px;
    animation: gpFadeIn 0.25s ease;
}

.qa-step-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: 0.18s;
}

.qa-step-btn i {
    width: 12px;
    height: 12px;
}

.qa-step-btn:hover {
    background: rgba(255, 255, 255, .18);
    color: white !important;
}

.qa-step-btn.danger:hover {
    background: var(--button-red);
}

.qa-step-num {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.qa-modal-head {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    padding: 2px 4px 12px 4px;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 12px;
    direction: rtl;
    text-align: right;
}

.qa-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
}

/* دکمه ورود به خرید گروهی در صفحه فروشگاه */
.gp-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--basecolor), var(--button-active-hover));
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    color: #fff;
    transition: 0.25s;
    width: 100%;
}

.gp-entry:hover {
    transform: translateY(-1px);
}

.gp-entry-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.gp-entry-icon i {
    width: 20px;
    height: 20px;
}

.gp-entry-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gp-entry-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.gp-entry-text {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .85);
}

.gp-entry > i:last-child {
    margin-right: auto;
    font-size: 16px;
    color: rgba(255, 255, 255, .9);
    height: 16px;
}

/* ---------------------------------------------------------------------
 *  ریسپانسیو
 * ------------------------------------------------------------------- */

@media screen and (min-width: 900px) {
    .gp-cal-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .gp-daypanel {
        position: sticky;
        top: 12px;
    }

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

    .gp-packages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .gp-body {
        max-width: 1040px;
    }

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

@media screen and (max-width: 380px) {
    .gp-cal-cell {
        font-size: 12px;
        border-radius: 8px;
    }

    .gp-step-title {
        font-size: 10px;
    }

    .gp-products {
        gap: 8px;
    }
}

/* =====================================================================
 *  افزوده‌های نسخه ۲
 *  (شیت‌ها، لودینگ، روش ارسال، کنترل تعداد به تفکیک شخصی‌سازی، موجودی)
 * ===================================================================== */

/* ---------------------------------------------------------------------
 *  شیت پایین صفحه  (راست‌چین و مرتب)
 * ------------------------------------------------------------------- */

.gp-sheet {
    direction: rtl;
    text-align: right;
    padding: 12;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.gp-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px 12px 2px;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.gp-sheet-head label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
    direction: rtl;
}

.gp-sheet-body {
    direction: rtl;
    text-align: right;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px;
}

.gp-sheet .button-bottom {
    position: relative !important;
    margin: 12px 0 0 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    flex-shrink: 0;
    background: transparent;
    direction: ltr;
}

.gp-sheet .button-bottom .button-row {
    width: 100%;
}

/* ---------------------------------------------------------------------
 *  لودینگ روی خودِ باکسی که در حال به‌روزرسانی است
 * ------------------------------------------------------------------- */

.gp-loadbox,
.gp-calendar,
.gp-daypanel,
.qa-box,
.gp-sheet-body {
    position: relative;
}

.gp-loading > *:not(.gp-loading-spinner) {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s;
}

.gp-loading-spinner {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .45);
    border-radius: inherit;
    z-index: 5;
    backdrop-filter: blur(1px);
}

.gp-loading-spinner .spinner {
    width: 22px;
    height: 22px;
    border-width: 2px;
}

.qa-box.gp-loading .gp-loading-spinner {
    background: rgba(255, 255, 255, .6);
}

.qa-box.gp-loading .gp-loading-spinner .spinner {
    width: 16px;
    height: 16px;
}

/* ---------------------------------------------------------------------
 *  روش ارسال
 * ------------------------------------------------------------------- */

.gp-choice-price {
    margin-right: auto;
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #444;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.gp-choice-price .currency {
    font-size: 10px;
    font-weight: 400;
    color: #999;
}

.gp-choice-price.ok {
    color: var(--basecolor);
}

.gp-choice-price.error {
    color: var(--button-red);
    font-weight: 500;
    font-size: 11.5px;
    white-space: normal;
    text-align: left;
    max-width: 120px;
}

.gp-choice.off {
    opacity: 0.55;
    cursor: not-allowed;
    background: #fbfbfb;
}

.gp-choice.off:hover {
    border-color: #eee;
}

.gp-ship-sum {
    margin-top: 12px;
    background: #fafafa;
    border: 1px dashed #ececec;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gp-ship-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #888;
}

.gp-ship-sum-row b {
    color: #444;
    font-weight: 600;
}

.gp-ship-sum-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #333;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.gp-ship-sum-total b {
    font-size: 14px;
    font-weight: 800;
    color: var(--basecolor);
}

.gp-ship-sum.free {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: var(--basecolorshadowback);
    border: 1px solid var(--basecolorshadow);
    color: #3c6d5f;
    font-size: 12.5px;
}

.gp-ship-sum.free i {
    color: var(--basecolor);
}

.gp-daypanel-row-price {
    color: var(--basecolor);
    font-weight: 700;
    margin-right: 4px;
}

/* ---------------------------------------------------------------------
 *  کنترل تعداد به تفکیک شخصی‌سازی  (زیر کارت محصول)
 * ------------------------------------------------------------------- */

.qa-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qa-rows:not(:empty) {
    margin-bottom: 6px;
}

.qa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: var(--basecolorshadowback);
    border: 1px solid var(--basecolorshadow);
    border-radius: 8px;
    padding: 3px 4px 3px 3px;
    animation: gpFadeIn 0.25s ease;
}

.qa-row-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--basecolor);
    padding-right: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.qa-row .qa-step {
    flex-shrink: 0;
    height: 26px;
    border-radius: 6px;
}

.qa-row .qa-step-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px;
}

.qa-row .qa-step-num {
    font-size: 12px;
    min-width: 18px;
}

.qa-add.off {
    background: #f5f5f5;
    color: #bbb !important;
    cursor: not-allowed;
}

.qa-add.off:hover {
    background: #f5f5f5;
    color: #bbb !important;
}

/* ---------------------------------------------------------------------
 *  ۱۷ : دکمه افزودن هم‌اندازه‌ی عکس محصول
 * ------------------------------------------------------------------- */

.qa-box {
    direction: rtl;
}

/* نمای گرید (دوستونه) : عکس تمام عرض کارت است، پس جعبه هم تمام عرض */
.instagram-view .product-item-container .qa-box {
    width: 100%;
}

/* نمای لیستی : عکس در سمت راست با عرض ثابت است، جعبه هم همان عرض */
.productlist .product-item-container .qa-box {
    /*width: calc(var(--widthdashboard) / 3.5);
    max-width: calc(450px / 4);*/
    margin-right: 0;
    margin-left: auto;
}

.productlist .instagram-view .product-item-container .qa-box {
    width: 100%;
    max-width: none;
}

/* ---------------------------------------------------------------------
 *  موجودی
 * ------------------------------------------------------------------- */

.gp-stock-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
}

.gp-stock-tag.ok {
    background: var(--basecolorshadowback);
    color: var(--basecolor);
}

.gp-stock-tag.warn {
    background: #fff6e8;
    color: #b57200;
}

.gp-stock-tag.error {
    background: #fff2f3;
    color: var(--button-red);
}

.gp-soldout-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.gp-product.soldout .gp-product-img img {
    filter: grayscale(1);
    opacity: 0.6;
}

.gp-product.soldout .gp-product-title {
    color: #999;
}

/* ---------------------------------------------------------------------
 *  کارت محصول داخل شبکه‌ی صفحه فروشگاه (انتخاب محصول گروهی)
 * ------------------------------------------------------------------- */

.productlist .instagram-view .product-item-container.gp-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 8px;
    overflow: hidden;
}

.gp-product .gp-product-img {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f7;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gp-product .gp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-product .calories-row {
    margin: 6px 0 4px 0;
}

.gp-section-note {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--basecolor);
}

/* ---------------------------------------------------------------------
 *  مودال‌ها
 * ------------------------------------------------------------------- */

.gp-modal-calories:empty {
    display: none;
}

.gp-modal-calories {
    margin: 2px 0;
}

.gp-modal-stock {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.qa-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    direction: rtl;
    padding: 12px 2px 0 2px;
    border-top: 1px solid #f2f2f2;
    margin-top: 10px;
}

.qa-modal-foot:empty {
    display: none;
}

.qa-modal-foot-label {
    font-size: 12px;
    color: #888;
}

#gp-modal-box .gp-modal-foot {
    flex-shrink: 0;
}

/* اطمینان از راست‌چین بودن محتوای تزریق‌شده‌ی صفحه محصول داخل مودال */
.qa-modal-body,
.qa-modal-body * {
    direction: rtl;
}

.qa-modal-body .customize-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    direction: rtl;
    margin-right: 8px;
}

.qa-modal-body .list-row {
    direction: rtl;
    text-align: right;
}

.gp-receipt-day-ship {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #999;
    margin-top: 5px;
}

.gp-receipt-day-ship i {
    color: var(--basecolor);
    font-size: 12px;
}

/* =====================================================================
 *  اصلاحات نسخه ۳
 * ===================================================================== */

/* ---------------------------------------------------------------------
 *  ۱ و ۶ و ۷ : کنترل تعداد داخل باکس product-cart-info
 * ------------------------------------------------------------------- */

.qa-box {
    direction: rtl;
    text-align: right;
}

.qa-box .product-cart-box.qa-cart-box {
    gap: 8px;
    margin-top: 10px;
}

.qa-box .product-cart-box.qa-cart-box .product-cart-info {
    border: 1px solid var(--basecolorshadow);
    background: var(--basecolorshadowback);
    border-radius: 10px;
    padding: 10px;
    gap: 6px;
    animation: gpFadeIn 0.25s ease;
}

.qa-box .product-cart-box.qa-cart-box .product-cart-info-title {
    font-weight: 600;
    color: #333;
    line-height: 1.7;
}

.qa-box .product-cart-box.qa-cart-box .product-cart-info-bottom {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--basecolorshadow);
}

.qa-box .product-cart-box.qa-cart-box .product-cart-info-price {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.qa-box .product-cart-box.qa-cart-box .product-cart-info-price .currency {
    font-size: 10px;
    font-weight: 400;
    color: #999;
    margin-right: 3px;
}

/* کنترل تعداد داخل باکس */
.qa-box .product-cart-info .qa-step {
    height: 30px;
    border-radius: 8px;
    padding: 0 3px;
    flex-shrink: 0;
    gap: 2px;
}

.qa-box .product-cart-info .qa-step-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.qa-box .product-cart-info .qa-step-num {
    font-size: 13px;
    min-width: 22px;
    height: 22px;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* دکمه افزودن */
.qa-box .qa-add {
    margin-top: 10px;
    height: 34px;
    border-radius: 9px;
    font-weight: 600;
    gap: 6px;
}

.qa-box .product-cart-box + .qa-add {
    background: #fff;
    border: 1px dashed var(--basecolorshadow);
    color: var(--basecolor) !important;
    font-size: 12px;
}

.qa-box .product-cart-box + .qa-add:hover {
    background: var(--basecolorshadowback);
    border-style: solid;
}

/* ---------------------------------------------------------------------
 *  ۲ : فاصله‌های بخش کالری
 * ------------------------------------------------------------------- */

.qa-modal-body #calories-column:empty,
.gp-modal-calories:empty {
    display: none;
}

.qa-modal-body #calories-column {
    margin: 0 0 14px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    gap: 6px;
    flex-direction: column;
}

.gp-modal-calories {
    margin: 10px 0 4px 0;
    padding: 10px 0;
    border-top: 1px solid #f4f4f4;
    border-bottom: 1px solid #f4f4f4;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.qa-modal-body .calories-row,
.gp-modal-calories .calories-row,
.gp-product .calories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.qa-modal-body .calories-container,
.gp-modal-calories .calories-container {
    margin: 0;
}

.gp-product .calories-row {
    gap: 6px;
    margin: 8px 0 6px 0;
}

/* ---------------------------------------------------------------------
 *  ۳ : «تعداد این گزینه در سبد»
 * ------------------------------------------------------------------- */

.qa-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    direction: rtl;
    margin: 0px 0px 12px 0px ;
    padding: 12px;
    background: var(--basecolorshadowback);
    border: 1px solid var(--basecolorshadow);
    border-radius: 10px;
}

.qa-modal-foot:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.qa-modal-foot-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--basecolor);
}

.qa-modal-foot .gp-qty {
    background: #fff;
    border-radius: 999px;
    padding: 3px;
    gap: 4px;
    flex-shrink: 0;
}

.qa-modal-foot .gp-qty-btn {
    width: 28px;
    height: 28px;
    background: var(--basecolorshadowback);
}

.qa-modal-foot .gp-qty-num {
    font-size: 14px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------------------
 *  ۸ : حالت انتخاب‌شده‌ی کارت پکیج
 * ------------------------------------------------------------------- */

.gp-package .gp-package-select {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.gp-package .gp-package-select .gp-choice-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    background: #fff;
}

.gp-package .gp-package-select .gp-choice-check i {
    font-size: 9px;
    color: #fff;
    opacity: 0;
    transition: 0.2s;
    line-height: 0;
}

.gp-package.selected .gp-package-select .gp-choice-check {
    background: var(--basecolor);
    border-color: var(--basecolor);
    box-shadow: 0 0 0 3px var(--basecolorshadow);
}

.gp-package.selected .gp-package-select .gp-choice-check i {
    opacity: 1;
}

.gp-package.selected .gp-package-select-text {
    color: var(--basecolor);
    font-weight: 700;
}

.gp-package.selected {
    border-color: var(--basecolor);
    background: var(--basecolorshadowback);
    box-shadow: 0 0 0 3px var(--basecolorshadow);
}

/* ---------------------------------------------------------------------
 *  ۵ : محصول ناموجود
 * ------------------------------------------------------------------- */

.qa-add.off,
.qa-add.soldout {
    background: #f5f5f5;
    color: #bbb !important;
    cursor: not-allowed;
    border: 0;
}

.qa-add.off:hover,
.qa-add.soldout:hover {
    background: #f5f5f5;
    color: #bbb !important;
}

/* =====================================================================
 *  اصلاحات نسخه ۴
 * ===================================================================== */

/* ---------------------------------------------------------------------
 *  شبکه‌ی محصولات در انتخاب گروهی
 *  موبایل : تک‌ستونه   |   دسکتاپ : دوستونه (هر کارت ۵۰٪)
 *  با grid، اگر تعداد فرد باشد کارت آخر ۵۰٪ می‌ماند و کنارش خالی است.
 * ------------------------------------------------------------------- */

.gp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 8px 0 14px 0;
    align-items: start;
}

@media screen and (min-width: 768px) {
    .gp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.gp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gp-card:hover {
    border-color: #e4e4e4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

/* کارت افقی : تصویر سمت راست، اطلاعات سمت چپ */
.gp-card-top {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.gp-card-img {
    position: relative;
    flex-shrink: 0;
    width: calc(var(--widthdashboard) / 3.5);
    max-width: 112px;
    height: calc(var(--widthdashboard) / 3.5);
    max-height: 112px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f7;
    cursor: pointer;
}

@media screen and (min-width: 768px) {
    .gp-card-img {
        width: 96px;
        height: 96px;
    }
}

.gp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gp-card-img:hover img {
    transform: scale(1.04);
}

.gp-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 2px;
}

.gp-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.7;
}

.gp-card-desc {
    font-size: 11px;
    color: #a5a5a5;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-card-price {
    margin-top: auto;
}

.gp-card.soldout .gp-card-img img {
    filter: grayscale(1);
    opacity: 0.55;
}

.gp-card.soldout .gp-card-title {
    color: #a0a0a0;
}

.gp-card .qa-box {
    width: 100%;
    max-width: none;
    margin: 0;
}

.gp-card .qa-add {
    margin-top: 10px;
}

/* ---------------------------------------------------------------------
 *  زمان تحویل در مودال افزودن سریع
 * ------------------------------------------------------------------- */

.qa-timebox {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f2f2f2;
}

.qa-timebox:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.qa-timebox-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.qa-timebox-title i {
    color: var(--basecolor);
    font-size: 14px;
}

.qa-time-chips {
    gap: 8px;
}

/* ---------------------------------------------------------------------
 *  دکمه‌های غیرفعال
 * ------------------------------------------------------------------- */

.qa-add.off {
    background: #f5f5f5;
    color: #b0b0b0 !important;
    cursor: not-allowed;
    border: 0;
    font-weight: 500;
}

.qa-add.off:hover {
    background: #f5f5f5;
    color: #b0b0b0 !important;
}

.qa-add.off i {
    font-size: 12px;
    opacity: 0.8;
}

.c50right.deactive,
.c100.deactive {
    opacity: 0.5;
    pointer-events: auto;
    cursor: not-allowed;
}

/* =====================================================================
 *  اصلاحات نسخه ۵
 *  محصول غیرفعال (ناموجود / بدون زمان تحویل فعال)
 * ===================================================================== */

/* برچسب دلیل غیرفعال بودن — جایگزین دکمه‌ی افزودن */
.qa-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    height: 34px;
    border-radius: 9px;
    background: #f5f5f5;
    color: #a8a8a8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: default;
    user-select: none;
}

.qa-disabled i {
    font-size: 12px;
    opacity: 0.85;
    line-height: 0;
}

/* کل کارت محصول کم‌رنگ و تصویر خاکستری می‌شود */
.product-item-container.qa-soldout .product-item .product-image img,
.product-item-container:has(.qa-box.disabled) .product-item .product-image img {
    filter: grayscale(1);
    opacity: 0.55;
}

.product-item-container.qa-soldout .product-item .product-title,
.product-item-container:has(.qa-box.disabled) .product-item .product-title {
    color: #a0a0a0;
}

.product-item-container.qa-soldout .product-item .product-price,
.product-item-container:has(.qa-box.disabled) .product-item .product-price {
    opacity: 0.6;
}

.product-item-container.qa-soldout .product-item .product-description,
.product-item-container:has(.qa-box.disabled) .product-item .product-description {
    opacity: 0.7;
}

/* کارت انتخاب محصول گروهی */
.gp-card.soldout {
    background: #fcfcfc;
}

.gp-card.soldout .gp-card-img {
    cursor: default;
}

.gp-card.soldout .gp-card-img:hover img {
    transform: none;
}

.gp-card.soldout .gp-card-price,
.gp-card.soldout .gp-card-desc {
    opacity: 0.6;
}


/* =====================================================================
 *  اصلاحات نسخه ۶
 * ===================================================================== */

/* ---------------------------------------------------------------------
 *  ۳ : رنگ‌بندی وضعیت موجودی داخل مودال — دقیقاً مثل صفحه محصول
 *  (خروجی checkShop داخل .product-info است ولی چون داخل مودال
 *   فروشگاه رندر می‌شود، سلکتورهای .shop .product-info آن را
 *   بازنویسی می‌کردند.)
 * ------------------------------------------------------------------- */

.qa-modal-body .product-info .count-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 10px;
    margin: 0;
}

.qa-modal-body .product-info .label.main.count {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.qa-modal-body .product-info .label.main.count.ok {
    color: var(--basecolor) !important;
}

.qa-modal-body .product-info .label.main.count.error {
    color: var(--button-red) !important;
}

.qa-modal-body .product-info .boxdesign {
    padding: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    background: transparent;
    margin: 12px 0 12px 0;
}

/* بلوک زمان تحویلِ خودِ checkShop */
.qa-modal-body #addressbar-product {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f2f2f2;
}

.qa-modal-body #addressbar-product .customize-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* ---------------------------------------------------------------------
 *  ۴ : وقتی جعبه غیرفعال است، ردیف‌های سبد هم خنثی می‌شوند
 * ------------------------------------------------------------------- */

.qa-box.disabled .product-cart-box.qa-cart-box .product-cart-info {
    background: #f7f7f7;
    border-color: #ececec;
}

.qa-box.disabled .product-cart-box.qa-cart-box .product-cart-info-title,
.qa-box.disabled .product-cart-box.qa-cart-box .product-cart-info-price {
    color: #9a9a9a;
}

.qa-box.disabled .product-cart-info .qa-step {
    background: #e6e6e6;
}

.qa-box.disabled .product-cart-info .qa-step-btn {
    color: #8f8f8f;
    background: #fff;
}

.qa-box.disabled .product-cart-info .qa-step-btn:hover {
    background: #fff;
    color: #8f8f8f;
}

.qa-box.disabled .product-cart-info-customize-title,
.qa-box.disabled .product-cart-info-customize-value {
    color: #a5a5a5;
}

/* =====================================================================
 *  نسخه ۷ — انیمیشن نرمِ جعبه‌ی زیر محصول
 * ===================================================================== */

/* هنگام تغییر ارتفاع، ارتفاع توسط jQuery انیمیت می‌شود؛
   این ترنزیشن‌ها ظاهر داخلی را هم نرم می‌کنند. */
.qa-box .product-cart-box.qa-cart-box .product-cart-info {
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.qa-box .qa-add,
.qa-box .qa-disabled {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.qa-step-num {
    transition: color 0.15s ease;
}

/* وقتی ارتفاع عوض نشده ولی مقدار تغییر کرده، یک تأکید کوتاه */
.qa-box.qa-flash .qa-step-num {
    animation: qaNumPop 0.32s ease;
}

@keyframes qaNumPop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.28);
    }
    100% {
        transform: scale(1);
    }
}

/* ردیف تازه‌اضافه‌شده با محو نرم می‌آید */
.qa-box .product-cart-box.qa-cart-box .product-cart-info {
    animation: qaRowIn 0.28s ease;
}

@keyframes qaRowIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
