﻿
/* خلاصه Dropdown */
.dropdown-btn {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

/* دکمه + و - */
.qtyBtn button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* input عدد */
.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

/* زیرمنو */
.dropdown-menu-wrap {
    min-width: 100%;
    background: #f8fafc;
    border-radius: 10px;
}

/* موبایل */
@media (max-width: 576px) {
    .dropdown-menu-wrap

{
    width: 100%;
}

}



.lazy-load {
    min-height: 150px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    .lazy-load.loaded {
        opacity: 1;
    }
/* ── Autocomplete Dropdown ── */
#dropdown {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    padding: 4px !important;
    margin-top: 0 !important;
}

    #dropdown .list-group-item {
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background 0.15s;
        cursor: pointer;
    }

        #dropdown .list-group-item:hover {
            background: #eff6ff;
            color: #3b82f6;
        }

        #dropdown .list-group-item small {
            color: #94a3b8;
            font-size: 11px;
            margin-right: auto;
        }


.gs-wrapper {
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

/* ── Trigger Button ── */
.gs-trigger {
    width: 100%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

    .gs-trigger:hover {
        border-color: #94a3b8;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .gs-trigger.open {
        border-color: #3b82f6;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 2px 8px rgba(59,130,246,0.12);
    }

.gs-trigger-icon {
    font-size: 20px;
}

.gs-trigger-text {
    margin-bottom: 1px;
    flex: 1;
    text-align: right;
}

.gs-trigger-label {
    margin-bottom: 1px;
    display: block;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

.gs-trigger-summary {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.gs-trigger-arrow {
    color: #94a3b8;
    transition: transform 0.3s;
    font-size: 11px;
}

.gs-trigger.open .gs-trigger-arrow {
    transform: rotate(180deg);
    color: #3b82f6;
}

/* ── Dropdown Panel ── */
.gs-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border: 1.5px solid #3b82f6;
    border-top: none;
    border-radius: 0 0 14px 14px;
    z-index: 1000;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    box-shadow: 0 8px 24px rgba(59,130,246,0.1);
}

    .gs-panel.open {
        max-height: 600px;
        opacity: 1;
    }

.gs-panel-inner {
    padding: 8px 12px; /* از 14px 16px */
}

/* ── Section Title ── */
.gs-section-title {
    padding: 2px 0 1px; /* از 6px 0 2px */
    font-size: 9px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.5px;
}

/* ── Divider ── */
.gs-divider {
    margin: 2px 0; /* از 6px 0 */
    height: 1px;
    background: #f1f5f9;
}

/* ── Row ── */
.gs-row {
    padding: 6px 0; /* از 10px 0 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f8fafc;
}

    .gs-row:last-child {
        border-bottom: none;
    }

.gs-row-info {
    flex: 1;
}

.gs-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .gs-row-label .icon {
        font-size: 12px;
    }

.gs-row-sub {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
}

/* ── Counter ── */
.gs-counter {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.gs-btn {
    width: 28px; /* از 32px */
    height: 28px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1;
}

    .gs-btn:hover:not(:disabled) {
        background: #eff6ff;
        color: #3b82f6;
    }

    .gs-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.gs-val {
    min-width: 28px; /* از 32px */
    font-size: 13px;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

/* ── Children Ages ── */
.gs-children-ages {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

    .gs-children-ages.visible {
        max-height: 400px;
        opacity: 1;
    }

.gs-wrapper .label-text,
.input-box .label-text {
    margin-bottom: 5px !important;
    display: block;
    line-height: 1;
}

.gs-ages-hint {
    padding: 4px 8px; /* از 6px 10px */
    margin: 3px 0 2px; /* از 6px 0 4px */

    font-size: 9px; /* از 10px یا 11px */
    padding: 3px 7px;
    margin: 2px 0 2px;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.gs-ages-grid {
    gap: 6px; /* از 8px */
    padding: 2px 0 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gs-age-item {
    padding: 5px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s;
}

    .gs-age-item:focus-within {
        border-color: #3b82f6;
    }

.gs-age-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 4px;
}

.gs-age-select {
    width: 100%;
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    outline: none;
}

    .gs-age-select option {
        background: #fff;
    }

/* ── Pet Toggle ── */
.gs-pet-row {
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.gs-pet-info {
    flex: 1;
}

.gs-pet-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gs-pet-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
    transition: color 0.3s;
}

    .gs-pet-sub.active {
        color: #16a34a;
    }

.gs-toggle-track {
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
    border: 1.5px solid #cbd5e1;
}

    .gs-toggle-track.on {
        background: #3b82f6;
        border-color: #3b82f6;
    }

.gs-toggle-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    right: 2px;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.gs-toggle-track.on .gs-toggle-thumb {
    right: calc(100% - 20px);
}

/* ── Pet active badge ── */
.gs-pet-active-badge {
    display: none;
    font-size: 10px;
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 4px;
}

/* ── Confirm Button ── */
.gs-confirm {
    margin-top: 8px; /* از 12px */
    padding: 9px;
    width: 100%;
    background: #3b82f6;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

    .gs-confirm:hover {
        background: #2563eb;
        box-shadow: 0 4px 12px rgba(59,130,246,0.4);
        transform: translateY(-1px);
    }

.gs-trigger {
    height: 46px; /* ← همان ارتفاع form-control */
    padding: 0 14px;
    width: 100%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px; /* ← از 14px به 8px */

    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: none; /* ← حذف shadow */
}

    .gs-trigger.open {
        border-color: #3b82f6;
        border-radius: 8px 8px 0 0; /* ← هماهنگ */
    }

/* panel هم border-radius هماهنگ */
.gs-panel {
    border-radius: 0 0 8px 8px; /* ← از 14px به 8px */
}