/* ==========================================================================
   TOP1SUB DIGITAL SHOP STYLES - KHÓA HỌC, TOOL & DỊCH VỤ SỐ
   Clean SaaS layout aligned with light & dark mode
   ========================================================================== */

/* 1. Page Header (#view-shop) & Utilities Banner (#view-utilities fallback) */
.shop-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.shop-page-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin: 0 0 3px;
    line-height: 1.3;
}

.shop-page-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.shop-header-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.shop-banner-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.shop-banner-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
}

/* 2. Filter Navigation Bar */
.shop-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.shop-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shop-filter-tabs::-webkit-scrollbar {
    display: none;
}

.shop-filter-btn {
    height: 35px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shop-filter-btn i {
    font-size: 12px;
    color: #64748b;
    transition: color 0.15s ease;
}

.shop-filter-btn:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.shop-filter-btn:hover i {
    color: #334155;
}

.shop-filter-btn.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

.shop-filter-btn.active i {
    color: #ffffff !important;
}

.shop-filter-btn.tab-purchased.active {
    background: #1e293b !important;
    border-color: #1e293b !important;
}

.shop-refresh-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.shop-refresh-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Search Box */
.shop-search-wrapper {
    position: relative;
    min-width: 240px;
    flex-grow: 1;
    max-width: 320px;
}

.shop-search-input {
    width: 100%;
    height: 35px;
    padding: 0 32px 0 34px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-search-input::placeholder {
    color: #94a3b8;
}

.shop-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.shop-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12.5px;
    pointer-events: none;
}

.shop-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 12px;
    padding: 2px;
}

.shop-search-clear:hover {
    color: #475569;
}

/* 3. Product Cards Grid */
.shop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    position: relative;
}

.shop-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08);
}

/* Thumbnail: Clean 16:9 cover with no floating stickers */
.shop-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 140px;
    background: #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    display: block;
}

.shop-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.shop-card:hover .shop-card-thumb {
    transform: scale(1.02);
}

/* Card Body */
.shop-card-body {
    padding: 14px 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.shop-card-cat-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    line-height: 1.4;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-sales-meta {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.shop-card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.shop-card-desc {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.shop-card-footer {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
}

.shop-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 11px;
}

.shop-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
}

.shop-card-price.is-free {
    color: #15803d;
}

.shop-card-stock {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.shop-card-stock.out {
    color: #dc2626;
    font-weight: 600;
}

.shop-card-actions {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 8px;
}

.btn-shop-detail {
    height: 34px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 10px;
    border-radius: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-shop-detail:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-shop-buy {
    height: 34px;
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 12px;
    border-radius: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-shop-buy:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-shop-buy:disabled {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* 4. Kho Đã Mua (My Purchases View) */
.shop-purchased-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.15s ease;
}

.shop-purchased-card:hover {
    border-color: #cbd5e1;
}

.shop-purchased-thumb {
    width: 80px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.shop-purchased-info {
    flex-grow: 1;
    min-width: 0;
}

.shop-purchased-cat {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.shop-purchased-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

.shop-purchased-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.shop-purchased-meta {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-variant-numeric: tabular-nums;
}

.delivery-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 280px;
    overflow-y: auto;
    line-height: 1.55;
}

/* Empty State */
.shop-empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #64748b;
}

.shop-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: #94a3b8;
}

/* ==========================================================================
   5. MODALS (Chi Tiết Sản Phẩm, Xác Nhận Thanh Toán, Bàn Giao)
   ========================================================================== */
.shop-detail-modal-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    overflow: hidden;
}

.shop-modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff;
}

.shop-modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    background: #f8fafc;
}

.shop-modal-title {
    color: #0f172a;
}

.shop-modal-cat-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
}

.shop-detail-section-heading {
    font-size: 13.5px;
    color: #0f172a;
}

.shop-modal-thumb-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.shop-modal-thumb {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
}

.shop-modal-price-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 16px;
}

.shop-modal-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.shop-modal-price-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.shop-modal-sales-badge {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
}

.shop-modal-price-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.shop-modal-commitments {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 11px;
    border-top: 1px solid #e2e8f0;
}

.shop-modal-commit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.shop-modal-commit-icon {
    font-size: 12px;
    color: #2563eb;
    width: 15px;
    text-align: center;
    flex-shrink: 0;
}

.shop-modal-commit-text {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

/* Mô tả chi tiết */
.shop-detail-desc-box {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-feature-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.shop-feature-icon-wrap {
    flex-shrink: 0;
    margin-top: 2px;
}

.shop-feature-icon {
    width: 16px;
    height: 16px;
    color: #16a34a;
    display: block;
}

.shop-feature-content {
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.5;
}

.shop-feature-title {
    font-weight: 700;
    color: #0f172a;
    margin-right: 4px;
}

.shop-feature-desc {
    color: #334155;
}

.btn-shop-modal-buy {
    height: 34px;
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0 18px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.btn-shop-modal-buy:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* ==========================================================================
   6. CHECKOUT MODAL & DELIVERY MODAL
   ========================================================================== */
.shop-checkout-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 16px;
    flex-shrink: 0;
}

.shop-checkout-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.shop-checkout-thumb {
    width: 68px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.shop-checkout-product-info {
    flex-grow: 1;
    min-width: 0;
}

.shop-checkout-cat-badge {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 2px;
}

.shop-checkout-product-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-checkout-invoice {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    color: #0f172a;
    margin-bottom: 12px;
}

.shop-checkout-invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 13px;
}

.shop-checkout-invoice-row:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.shop-checkout-invoice-label {
    color: #64748b;
    font-weight: 500;
}

.shop-checkout-price-val {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.shop-checkout-balance-val {
    font-weight: 600;
    color: #334155;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}

.shop-checkout-remaining-val {
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.shop-qty-input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.shop-checkout-commit-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-checkout-commit-badge i {
    color: #2563eb;
}

.btn-shop-checkout-confirm {
    height: 35px;
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0 18px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.btn-shop-checkout-confirm:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-shop-checkout-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.shop-delivery-success-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #dcfce7;
    border: 1px solid #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    font-size: 16px;
    flex-shrink: 0;
}

.btn-shop-open-link {
    height: 34px;
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-shop-open-link:hover {
    background: #1d4ed8;
}

#modalShopProductDetail,
#modalShopConfirmBuy,
#modalShopDelivery {
    z-index: 10550 !important;
}

body.modal-open .modal-backdrop {
    z-index: 10540 !important;
}

/* ==========================================================================
   7. DARK MODE SUPPORT (body.dark-mode & [data-theme="dark"])
   ========================================================================== */
body.dark-mode .shop-page-header,
[data-theme="dark"] .shop-page-header {
    border-bottom-color: #1f2937;
}

body.dark-mode .shop-page-title,
[data-theme="dark"] .shop-page-title,
body.dark-mode .shop-banner-title,
[data-theme="dark"] .shop-banner-title {
    color: #f8fafc;
}

body.dark-mode .shop-page-desc,
[data-theme="dark"] .shop-page-desc,
body.dark-mode .shop-banner-desc,
[data-theme="dark"] .shop-banner-desc {
    color: #94a3b8;
}

body.dark-mode .shop-header-banner,
[data-theme="dark"] .shop-header-banner {
    background: #111827;
    border-color: #1f2937;
}

body.dark-mode .shop-filter-btn,
[data-theme="dark"] .shop-filter-btn,
body.dark-mode .shop-refresh-btn,
[data-theme="dark"] .shop-refresh-btn {
    background: #111827;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .shop-filter-btn i,
[data-theme="dark"] .shop-filter-btn i {
    color: #94a3b8;
}

body.dark-mode .shop-filter-btn:hover,
[data-theme="dark"] .shop-filter-btn:hover,
body.dark-mode .shop-refresh-btn:hover,
[data-theme="dark"] .shop-refresh-btn:hover {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

body.dark-mode .shop-filter-btn.active,
[data-theme="dark"] .shop-filter-btn.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

body.dark-mode .shop-search-input,
[data-theme="dark"] .shop-search-input {
    background: #111827;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .shop-card,
[data-theme="dark"] .shop-card,
body.dark-mode .shop-purchased-card,
[data-theme="dark"] .shop-purchased-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: none;
}

body.dark-mode .shop-card:hover,
[data-theme="dark"] .shop-card:hover,
body.dark-mode .shop-purchased-card:hover,
[data-theme="dark"] .shop-purchased-card:hover {
    border-color: #334155;
}

body.dark-mode .shop-card-thumb-wrap,
[data-theme="dark"] .shop-card-thumb-wrap,
body.dark-mode .shop-purchased-thumb,
[data-theme="dark"] .shop-purchased-thumb {
    background: #0f172a;
    border-color: #1f2937;
}

body.dark-mode .shop-card-cat-tag,
[data-theme="dark"] .shop-card-cat-tag,
body.dark-mode .shop-purchased-cat,
[data-theme="dark"] .shop-purchased-cat {
    background: #1e293b;
    color: #cbd5e1;
}

body.dark-mode .shop-card-title,
[data-theme="dark"] .shop-card-title,
body.dark-mode .shop-card-price,
[data-theme="dark"] .shop-card-price,
body.dark-mode .shop-purchased-title,
[data-theme="dark"] .shop-purchased-title {
    color: #f8fafc;
}

body.dark-mode .shop-card-price.is-free,
[data-theme="dark"] .shop-card-price.is-free {
    color: #4ade80;
}

body.dark-mode .shop-card-desc,
[data-theme="dark"] .shop-card-desc,
body.dark-mode .shop-card-sales-meta,
[data-theme="dark"] .shop-card-sales-meta,
body.dark-mode .shop-card-stock,
[data-theme="dark"] .shop-card-stock,
body.dark-mode .shop-purchased-meta,
[data-theme="dark"] .shop-purchased-meta {
    color: #94a3b8;
}

body.dark-mode .shop-card-footer,
[data-theme="dark"] .shop-card-footer {
    border-top-color: #1f2937;
}

body.dark-mode .btn-shop-detail,
[data-theme="dark"] .btn-shop-detail {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .btn-shop-detail:hover,
[data-theme="dark"] .btn-shop-detail:hover {
    background: #334155;
    color: #ffffff;
}

body.dark-mode .shop-detail-modal-content,
[data-theme="dark"] .shop-detail-modal-content,
body.dark-mode .shop-modal-header,
[data-theme="dark"] .shop-modal-header {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #f8fafc !important;
}

body.dark-mode .shop-modal-footer,
[data-theme="dark"] .shop-modal-footer {
    background: #0f172a !important;
    border-top-color: #1f2937 !important;
}

body.dark-mode .shop-modal-close,
[data-theme="dark"] .shop-modal-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode .shop-modal-title,
[data-theme="dark"] .shop-modal-title,
body.dark-mode .shop-detail-section-heading,
[data-theme="dark"] .shop-detail-section-heading,
body.dark-mode .shop-modal-price-val,
[data-theme="dark"] .shop-modal-price-val,
body.dark-mode .shop-feature-title,
[data-theme="dark"] .shop-feature-title,
body.dark-mode .shop-checkout-product-title,
[data-theme="dark"] .shop-checkout-product-title,
body.dark-mode .shop-checkout-price-val,
[data-theme="dark"] .shop-checkout-price-val {
    color: #f8fafc;
}

body.dark-mode .shop-modal-price-card,
[data-theme="dark"] .shop-modal-price-card,
body.dark-mode .shop-feature-item,
[data-theme="dark"] .shop-feature-item,
body.dark-mode .shop-checkout-product-card,
[data-theme="dark"] .shop-checkout-product-card,
body.dark-mode .shop-checkout-invoice,
[data-theme="dark"] .shop-checkout-invoice,
body.dark-mode .shop-checkout-commit-badge,
[data-theme="dark"] .shop-checkout-commit-badge,
body.dark-mode .delivery-box,
[data-theme="dark"] .delivery-box {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .shop-modal-commitments,
[data-theme="dark"] .shop-modal-commitments,
body.dark-mode .shop-checkout-invoice-row:not(:last-child),
[data-theme="dark"] .shop-checkout-invoice-row:not(:last-child) {
    border-color: #334155;
}

body.dark-mode .shop-modal-commit-item,
[data-theme="dark"] .shop-modal-commit-item,
body.dark-mode .shop-feature-desc,
[data-theme="dark"] .shop-feature-desc,
body.dark-mode .shop-checkout-balance-val,
[data-theme="dark"] .shop-checkout-balance-val {
    color: #cbd5e1;
}

body.dark-mode .shop-qty-input,
[data-theme="dark"] .shop-qty-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .shop-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-search-wrapper {
        max-width: 100%;
    }
    .shop-card-title {
        font-size: 13.5px;
        min-height: 38px;
    }
    .shop-card-desc {
        font-size: 12px;
        min-height: 34px;
    }
    .shop-purchased-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .shop-purchased-thumb {
        width: 100%;
        height: 130px;
    }
}
