/* ======================================================
   Gimsh Modern Shop Page (Desktop + Mobile)
   ====================================================== */
.gimsh-shop-app {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 16px 48px;
    color: #252d20;
    font-family: inherit;
    box-sizing: border-box;
}

.gimsh-shop-app.is-rtl {
    direction: rtl !important;
    text-align: right !important;
}

.gimsh-shop-app.is-ltr {
    direction: ltr !important;
    text-align: left !important;
}

.gimsh-shop-app.is-rtl .gimsh-shop-title,
.gimsh-shop-app.is-rtl .gimsh-shop-desc,
.gimsh-shop-app.is-rtl .gimsh-card-body,
.gimsh-shop-app.is-rtl .gimsh-card-title {
    text-align: right !important;
}

.gimsh-shop-app.is-ltr .gimsh-shop-title,
.gimsh-shop-app.is-ltr .gimsh-shop-desc,
.gimsh-shop-app.is-ltr .gimsh-card-body,
.gimsh-shop-app.is-ltr .gimsh-card-title {
    text-align: left !important;
}

/* 1. Season Segmented Toggle */
.gimsh-shop-seasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #eae4da;
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.gimsh-season-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #3a4234;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gimsh-season-btn.is-active {
    background: #2b3425;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(43, 52, 37, 0.22);
}

.gimsh-season-icon {
    display: inline-flex;
    align-items: center;
}

.gimsh-season-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.gimsh-season-btn.is-active .gimsh-season-count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* 2. Occasion Pills */
.gimsh-shop-pills-wrap {
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gimsh-shop-pills-wrap::-webkit-scrollbar {
    display: none;
}

.gimsh-shop-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 2px 0;
}

.gimsh-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d5cec2;
    background: #fdfbf7;
    color: #2c3426;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.gimsh-pill-btn.is-active {
    border: 1.8px solid #2b3425;
    background: #f5f1e8;
    font-weight: 700;
}

.gimsh-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e6dfd3;
    color: #3a4234;
    font-size: 11.5px;
    font-weight: 700;
}

.gimsh-shop-divider {
    height: 1px;
    background: #dfd8cc;
    margin: 6px 0 16px;
}

/* 3. Header Title & Desc */
.gimsh-shop-header {
    margin-bottom: 14px;
}

.gimsh-shop-title {
    margin: 0 0 6px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #252d20 !important;
    line-height: 1.3 !important;
}

.gimsh-shop-desc {
    margin: 0 !important;
    font-size: 14px;
    color: #5e6658;
    line-height: 1.55;
}

/* 4. Toolbar */
.gimsh-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.gimsh-toolbar-right,
.gimsh-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gimsh-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid #2b3425;
    background: #ffffff;
    color: #252d20;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gimsh-results-count {
    font-size: 13.5px;
    color: #5e6658;
    font-weight: 600;
}

.gimsh-sort-label {
    font-size: 13.5px;
    color: #5e6658;
    font-weight: 600;
}

.gimsh-sort-select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d5cec2;
    background: #ffffff;
    color: #252d20;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

/* 5. Active Filter Chips */
.gimsh-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gimsh-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #d5cec2;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #252d20;
    cursor: pointer;
}

.gimsh-clear-all-btn {
    background: none;
    border: none;
    color: #8a6335;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
}

/* 6. Product Grid */
.gimsh-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    transition: opacity 0.2s ease;
}

.gimsh-shop-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.gimsh-shop-card {
    background: #fffdf9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ede7dc;
    display: flex;
    flex-direction: column;
}

.gimsh-card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3efe7;
}

.gimsh-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gimsh-shop-card:hover .gimsh-card-img-wrap img {
    transform: scale(1.03);
}

.gimsh-card-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #8a6335;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.gimsh-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gimsh-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #252d20;
    text-decoration: none;
    line-height: 1.35;
}

.gimsh-card-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #3b432c;
}

.gimsh-card-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.gimsh-card-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.14);
    display: inline-block;
}

.gimsh-card-more {
    font-size: 12px;
    font-weight: 700;
    color: #5e6658;
    direction: ltr;
}

.gimsh-shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: #5e6658;
    font-size: 15px;
    font-weight: 600;
}

/* 7. Filter Drawer */
.gimsh-filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100010;
    display: none;
}

.gimsh-filter-drawer-backdrop.is-open {
    display: block;
}

.gimsh-filter-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(360px, 90vw);
    background: #fdfbf7;
    z-index: 100011;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
}

.gimsh-shop-app.is-ltr .gimsh-filter-drawer {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

.gimsh-filter-drawer.is-open {
    transform: translateX(0) !important;
}

.gimsh-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e5dfd3;
}

.gimsh-drawer-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.gimsh-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #252d20;
    line-height: 1;
}

.gimsh-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gimsh-drawer-group h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #252d20;
}

.gimsh-drawer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gimsh-drawer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d5cec2;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gimsh-drawer-chip input {
    accent-color: #2b3425;
}

.gimsh-chip-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.gimsh-drawer-footer {
    padding: 14px 18px;
    border-top: 1px solid #e5dfd3;
    display: flex;
    gap: 10px;
}

.gimsh-drawer-apply {
    flex: 1;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    background: #2b3425;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gimsh-drawer-reset {
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #d5cec2;
    background: #ffffff;
    color: #252d20;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .gimsh-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gimsh-shop-app {
        padding: 12px 12px 36px;
    }

    .gimsh-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gimsh-shop-title {
        font-size: 20px !important;
    }

    .gimsh-season-btn {
        padding: 10px 10px;
        font-size: 15px;
    }
}

