/* ========== Shop Page ========== */
.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 960px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== Toolbar (mobile filter trigger) ========== */
.shop-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 960px) {
    .shop-toolbar {
        display: flex;
    }
}

.shop-toolbar__filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.shop-toolbar__filters:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-toolbar__badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-toolbar__meta {
    margin: 0;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.shop-sidebar-backdrop {
    display: none;
}

/* ========== Category Sidebar ========== */
.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow: auto;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(234, 242, 255, 0.75) 0%, rgba(255, 255, 255, 0.96) 140px),
        var(--color-bg);
    box-shadow: var(--shadow-card);
    scrollbar-width: thin;
}

.shop-sidebar__glow {
    pointer-events: none;
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 86, 210, 0.12), transparent 70%);
    transform: translate(-30%, -40%);
}

.shop-sidebar__head,
.shop-sidebar__chips,
.shop-filter-section {
    position: relative;
    z-index: 1;
}

.shop-sidebar__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--color-border);
}

.shop-sidebar__heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-text);
}

.shop-sidebar__heading svg {
    color: var(--color-primary);
}

.shop-sidebar__count {
    margin: 6px 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.shop-sidebar__head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-sidebar__clear {
    border: none;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition);
}

.shop-sidebar__clear:hover {
    background: #d9e8ff;
}

.shop-sidebar__close {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.shop-sidebar__mobile-footer {
    display: none;
}

.shop-sidebar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px 0;
}

.shop-sidebar__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #c9dcff;
    border-radius: 999px;
    background: #f3f8ff;
    color: var(--color-primary-dark);
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.shop-sidebar__chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-sidebar__chip:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
}

.shop-filter-section {
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
}

.shop-filter-section--last {
    border-bottom: none;
}

.shop-filter-section__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--color-text);
}

.shop-filter-section__title svg {
    color: var(--color-primary);
    opacity: 0.9;
}

.shop-filter-search {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.shop-filter-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.shop-filter-search__icon {
    color: var(--color-text-light);
}

.shop-filter-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 0;
}

.shop-filter-search__clear,
.shop-filter-search__submit {
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.shop-filter-search__clear {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--color-bg-gray);
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-filter-search__submit {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.shop-filter-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-filter-cats--nested {
    margin: 4px 14px 6px 0;
    padding-right: 10px;
    border-right: 2px solid var(--color-primary-soft);
}

.shop-filter-cats__btn {
    width: 100%;
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    transition: all var(--transition);
}

.shop-filter-cats__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background var(--transition), box-shadow var(--transition);
}

.shop-filter-cats__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-filter-cats__count {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--color-bg-gray);
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.shop-filter-cats__btn:hover {
    background: var(--color-bg-soft);
    color: var(--color-text);
}

.shop-filter-cats__btn.is-active {
    background: linear-gradient(90deg, var(--color-primary-soft), #f7fbff);
    border-color: #c9dcff;
    color: var(--color-primary-dark);
}

.shop-filter-cats__btn.is-active .shop-filter-cats__dot,
.shop-filter-cats__btn.has-active-child .shop-filter-cats__dot {
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.15);
}

.shop-filter-cats__btn.is-active .shop-filter-cats__count {
    background: var(--color-primary);
    color: #fff;
}

.shop-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
}

.shop-filter-pill:hover {
    border-color: #b8cff8;
    color: var(--color-primary);
}

.shop-filter-pill.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 86, 210, 0.22);
}

.shop-filter-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.shop-filter-preset {
    padding: 10px 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background:
        linear-gradient(180deg, #fff, var(--color-bg-soft));
    color: var(--color-text);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
}

.shop-filter-preset:hover {
    border-color: #b8cff8;
    color: var(--color-primary);
}

.shop-filter-preset.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(0, 86, 210, 0.12);
}

.shop-filter-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-filter-range__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.shop-filter-range__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.shop-filter-range__field label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-text-muted);
}

.shop-filter-range__field input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.shop-filter-range__field input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.shop-filter-range__apply {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 800;
    transition: background var(--transition), transform var(--transition);
}

.shop-filter-range__apply:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.shop-filter-sort {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-filter-sort__btn {
    width: 100%;
    text-align: right;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
}

.shop-filter-sort__btn:hover {
    border-color: #b8cff8;
    color: var(--color-primary);
}

.shop-filter-sort__btn.is-active {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 86, 210, 0.22);
}

@media (max-width: 960px) {
    .shop-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 80;
        border: none;
        background: rgba(16, 28, 48, 0.45);
        backdrop-filter: blur(2px);
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        width: min(360px, 92vw);
        max-height: none;
        border-radius: 16px 0 0 16px;
        transform: translateX(105%);
        transition: transform 0.28s ease;
        box-shadow: -12px 0 40px rgba(10, 30, 70, 0.18);
    }

    .shop-sidebar.is-open {
        transform: translateX(0);
    }

    .shop-sidebar__close {
        display: inline-flex;
    }

    .shop-sidebar__mobile-footer {
        display: block;
        position: sticky;
        bottom: 0;
        padding: 14px 18px 18px;
        background: linear-gradient(180deg, transparent, var(--color-bg) 30%);
        border-top: 1px solid var(--color-border);
    }

    .shop-sidebar__apply {
        width: 100%;
        padding: 12px 16px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
        color: #fff;
        font-family: var(--font);
        font-size: 0.95rem;
        font-weight: 900;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 10px 24px rgba(0, 86, 210, 0.28);
    }
}

.shop-sidebar__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-soft);
    color: var(--color-text);
}

.shop-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar__item {
    margin-bottom: 4px;
}

.shop-sidebar__link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    font-family: var(--font);
}

.shop-sidebar__link:hover,
.shop-sidebar__link.is-active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 600;
}

.shop-sidebar__children {
    list-style: none;
    padding: 0 16px 0 0;
    margin: 0;
}

.shop-sidebar__children .shop-sidebar__link {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* ========== Search ========== */
.shop-search {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.shop-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.shop-search__input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* ========== Product Grid ========== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* ========== Product Card ========== */
.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-bg-gray);
}

.product-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__category {
    font-size: 0.78rem;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.product-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-card__name a {
    color: inherit;
    text-decoration: none;
}

.product-card__name a:hover {
    color: var(--color-primary);
}

.product-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.product-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-card__price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-right: 2px;
}

.product-card__inquiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff8e1;
    color: #e65100;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ========== Product Detail ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.product-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail__main-image {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
}

.product-detail__thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.product-detail__thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

.product-detail__thumb.is-active,
.product-detail__thumb:hover {
    border-color: var(--color-primary);
}

.product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-detail__category {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.product-detail__name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.5;
}

.product-detail__desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.product-detail__price-box {
    background: var(--color-bg-soft);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.product-detail__price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
}

.product-detail__price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.product-detail__qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.product-detail__qty label {
    font-size: 0.9rem;
    font-weight: 600;
}

.product-detail__qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-detail__qty-controls button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-bg-soft);
    cursor: pointer;
    transition: background var(--transition);
}

.product-detail__qty-controls button:hover {
    background: var(--color-primary-soft);
}

.product-detail__qty-controls span {
    width: 44px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-detail__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.product-detail__meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ========== Cart ========== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 14px 12px;
    text-align: right;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.cart-table th {
    background: var(--color-bg-soft);
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.85rem;
}

.cart-table__product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-table__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.cart-summary {
    background: var(--color-bg-soft);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.92rem;
}

.cart-summary__row--total {
    border-top: 2px solid var(--color-primary);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-primary);
}

.cart-checkout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .cart-checkout {
        grid-template-columns: 1fr;
    }
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ========== Inquiry Modal ========== */
.inquiry-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.inquiry-modal {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.inquiry-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-bg-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition);
}

.inquiry-modal__close:hover {
    background: var(--color-border);
}

.inquiry-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.inquiry-modal__desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.inquiry-modal__waiting {
    text-align: center;
    padding: 20px 0;
}

.inquiry-modal__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.inquiry-modal__priced {
    text-align: center;
    padding: 20px 0;
}

.inquiry-modal__priced-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.inquiry-modal__priced-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.inquiry-modal__priced-value small {
    font-size: 0.85rem;
    font-weight: 400;
}

/* ========== Pagination ========== */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
}

.shop-pagination button {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.shop-pagination button:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-pagination button.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.shop-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========== Order Success ========== */
.order-success {
    text-align: center;
    padding: 40px 20px;
}

.order-success__icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #2e7d32;
}

.order-success__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.order-success__number {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ========== Status badges ========== */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-badge--pending { background: #fff8e1; color: #e65100; }
.status-badge--processing { background: #e3f2fd; color: #1565c0; }
.status-badge--shipped { background: #f3e5f5; color: #7b1fa2; }
.status-badge--delivered { background: #e8f5e9; color: #2e7d32; }
.status-badge--cancelled { background: #fce4ec; color: #c62828; }
.status-badge--priced { background: #e8f5e9; color: #2e7d32; }
.status-badge--expired { background: var(--color-bg-gray); color: var(--color-text-muted); }

/* ========== Admin order expand ========== */
.admin-order-items {
    background: var(--color-bg-soft);
    padding: 16px;
    margin: 0;
}

.admin-order-items table {
    width: 100%;
    font-size: 0.85rem;
}

.admin-order-items th,
.admin-order-items td {
    padding: 6px 10px;
    text-align: right;
}

.admin-order-items th {
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ========== Cart header icon ========== */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transition: all var(--transition);
    text-decoration: none;
}

.header-cart:hover {
    background: var(--color-primary);
    color: #fff;
}

.header-cart__badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ========== Shop JSX classes (ShopPage/ProductPage/CartPage) ========== */

.shop-content {
    min-height: 280px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.shop-loading,
.shop-error,
.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    text-align: center;
    color: var(--color-text-muted);
}

.shop-error p {
    margin: 0 0 16px;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1100px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .shop-products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.shop-products-header {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.shop-products-header__sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-products-header__label {
    font-weight: 900;
    color: var(--color-text);
    font-size: 0.95rem;
}

.shop-products-sort {
    position: relative;
    display: block;
    width: 100%;
}

.shop-products-sort__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font);
    font-weight: 900;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.shop-products-sort__trigger:hover,
.shop-products-sort.is-open .shop-products-sort__trigger {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-products-sort.is-open .shop-products-sort__trigger {
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.shop-products-sort__trigger svg {
    transition: transform var(--transition);
    flex-shrink: 0;
}

.shop-products-sort.is-open .shop-products-sort__trigger svg {
    transform: rotate(180deg);
}

.shop-products-sort__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 60;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    box-shadow: var(--shadow-card);
    padding: 14px;
}

.shop-products-sort.is-open .shop-products-sort__dropdown {
    display: block;
}

@media (max-width: 600px) {
    .shop-products-sort-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.shop-products-sort-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.shop-products-sort-grid__btn {
    width: 100%;
    text-align: center;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 8px 10px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.shop-products-sort-grid__btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-products-sort-grid__btn.is-active {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 86, 210, 0.22);
}

.shop-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.shop-product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.shop-product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.shop-product-card__image-link {
    display: block;
    position: relative;
}

.shop-product-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-bg-gray);
}

.shop-product-card__badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #fff8e1;
    color: #e65100;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
}

.shop-product-card__badge--today {
    top: auto;
    bottom: 12px;
    background: #e8f5e9;
    color: #2e7d32;
}

.shop-product-card__badge--dollar {
    top: auto;
    bottom: 12px;
    inset-inline-start: 12px;
    inset-inline-end: auto;
    background: #e3f2fd;
    color: #1565c0;
}

.shop-market-rates-wrap {
    margin-top: 16px;
    margin-bottom: -8px;
}

.shop-product-detail__dollar-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #1565c0;
}


.shop-product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.shop-product-card__category {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 700;
}

.shop-product-card__title {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 900;
    line-height: 1.6;
    font-size: 0.95rem;
}

.shop-product-card__title:hover {
    color: var(--color-primary);
}

.shop-product-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.shop-product-card__price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-primary);
}

.shop-pagination__btn {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.shop-pagination__btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-pagination__btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.shop-pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.shop-pagination__dots {
    color: var(--color-text-muted);
    font-weight: 800;
    padding: 0 6px;
}

.shop-product-detail {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.shop-product-detail__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

@media (max-width: 768px) {
    .shop-product-detail {
        gap: 24px;
    }

    .shop-product-detail__top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.shop-product-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-product-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-gray);
    padding: 0;
    cursor: zoom-in;
}

.shop-product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease-out;
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}

.shop-product-gallery__main.is-zooming img {
    transform: scale(2);
}

@media (hover: none) {
    .shop-product-gallery__main.is-zooming img {
        transform: none;
    }
}

.shop-product-gallery__zoom-hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.shop-product-gallery__main:hover .shop-product-gallery__zoom-hint {
    opacity: 1;
}

.shop-product-gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.shop-product-gallery__thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.shop-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-product-gallery__thumb.is-active,
.shop-product-gallery__thumb:hover {
    border-color: var(--color-primary);
}

.shop-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 15, 28, 0.88);
    cursor: zoom-out;
}

.shop-image-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1100px);
    height: min(90vh, 820px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-image-lightbox__close {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.shop-image-lightbox__toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.shop-image-lightbox__toolbar button {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    min-width: 38px;
    height: 38px;
    cursor: pointer;
    padding: 0 10px;
}

.shop-image-lightbox__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    touch-action: none;
}

.shop-image-lightbox__stage.is-draggable {
    cursor: grab;
}

.shop-image-lightbox__stage.is-draggable:active {
    cursor: grabbing;
}

.shop-image-lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.08s linear;
    user-select: none;
}

.shop-image-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.shop-image-lightbox__nav--prev {
    right: 12px;
}

.shop-image-lightbox__nav--next {
    left: 12px;
}

.shop-image-lightbox__counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.shop-product-detail__main-image {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
}

.shop-product-detail__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.shop-product-detail__thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.shop-product-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.shop-product-detail__thumb.is-active,
.shop-product-detail__thumb:hover {
    border-color: var(--color-primary);
}

.shop-product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shop-product-detail__category {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 800;
}

.shop-product-detail__title {
    font-size: 1.65rem;
    font-weight: 1000;
    color: var(--color-text);
    line-height: 1.5;
}

.shop-product-detail__summary {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-top: -6px;
}

.shop-product-detail__price-box {
    background: var(--color-bg-soft);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.shop-product-detail__inquiry-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-text-muted);
}

.shop-product-detail__price {
    font-size: 1.35rem;
    font-weight: 1000;
    color: var(--color-primary);
}

.shop-product-detail__daily-note {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #2e7d32;
    font-weight: 700;
}

.shop-inquiry-price-card {
    position: relative;
    margin-top: 18px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid #d7e6f8;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 52%, #f7faff 100%);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 86, 210, 0.08);
}

.shop-inquiry-price-card__glow {
    position: absolute;
    inset: auto auto -30px -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 86, 210, 0.16) 0%, rgba(0, 86, 210, 0) 72%);
    pointer-events: none;
}

.shop-inquiry-price-card.is-active {
    border-color: #b9d6ff;
    background: linear-gradient(135deg, #f3f8ff 0%, #e8f2ff 55%, #f8fbff 100%);
}

.shop-inquiry-price-card.is-expired {
    border-color: #e2e8f0;
    background: linear-gradient(135deg, #fafbfc 0%, #f3f5f7 100%);
    box-shadow: none;
}

.shop-inquiry-price-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.shop-inquiry-price-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-inquiry-price-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 86, 210, 0.1);
    color: var(--color-primary);
    flex-shrink: 0;
}

.shop-inquiry-price-card.is-expired .shop-inquiry-price-card__icon {
    background: #eceff3;
    color: #6b7c93;
}

.shop-inquiry-price-card__eyebrow {
    margin: 0 0 4px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #6d7f95;
}

.shop-inquiry-price-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-text);
}

.shop-inquiry-price-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.shop-inquiry-price-card__badge.is-active {
    background: #e8f7ee;
    color: #0f8a4b;
    border: 1px solid #bfe8d1;
}

.shop-inquiry-price-card__badge.is-expired {
    background: #f1f3f6;
    color: #6b7c93;
    border: 1px solid #dde3ea;
}

.shop-inquiry-price-card__price-block {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
}

.shop-inquiry-price-card__price-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6d7f95;
    margin-bottom: 6px;
}

.shop-inquiry-price-card__price {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 1000;
    line-height: 1.3;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.shop-inquiry-price-card.is-expired .shop-inquiry-price-card__price {
    color: #5a6a7a;
}

.shop-inquiry-price-card__validity {
    margin: 10px 0 0;
    font-size: 0.84rem;
    line-height: 1.8;
    color: #0f8a4b;
    font-weight: 700;
}

.shop-inquiry-price-card__validity--muted {
    color: #7b8a99;
}

.shop-inquiry-price-card__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-inquiry-price-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e3ebf5;
    color: #5a6a7a;
    font-size: 0.82rem;
    font-weight: 700;
}

.shop-inquiry-price-card__meta-sep {
    margin: 0 6px;
    opacity: 0.55;
}

.shop-quantity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-quantity__btn {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.shop-quantity__btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.shop-quantity__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.shop-quantity__value {
    min-width: 44px;
    text-align: center;
    font-weight: 1000;
    font-size: 1rem;
    color: var(--color-text);
}

.shop-product-detail__cart-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.shop-product-detail__added-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2e7d32;
    font-weight: 900;
    margin-top: 12px;
}

.shop-product-detail__description {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.shop-product-detail__description-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.88);
}

.shop-product-detail__description-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-primary) 12%, #fff);
    color: var(--color-primary);
    flex-shrink: 0;
}

.shop-product-detail__description-head h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 1000;
    color: var(--color-text);
}

.shop-product-detail__description-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.shop-product-detail__description-body {
    padding: 24px 28px 28px;
    direction: rtl;
    text-align: right;
    line-height: 1.95;
    font-size: 0.98rem;
    color: var(--color-text);
}

.shop-product-detail__description-body > :first-child {
    margin-top: 0;
}

.shop-product-detail__description-body > :last-child {
    margin-bottom: 0;
}

.shop-product-detail__description-body p {
    margin: 0 0 1em;
    color: var(--color-text-muted);
}

.shop-product-detail__description-body h2,
.shop-product-detail__description-body h3,
.shop-product-detail__description-body h4 {
    margin: 1.4em 0 0.65em;
    line-height: 1.45;
    color: var(--color-text);
    font-weight: 900;
}

.shop-product-detail__description-body h2 {
    font-size: 1.25rem;
}

.shop-product-detail__description-body h3 {
    font-size: 1.08rem;
}

.shop-product-detail__description-body h4 {
    font-size: 1rem;
}

.shop-product-detail__description-body ul,
.shop-product-detail__description-body ol {
    margin: 0 0 1.1em;
    padding-inline-start: 1.5em;
}

.shop-product-detail__description-body li + li {
    margin-top: 0.35em;
}

.shop-product-detail__description-body blockquote {
    margin: 0 0 1.1em;
    padding: 0.75em 1.1em;
    border-inline-start: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: color-mix(in srgb, var(--color-primary) 6%, #fff);
    color: var(--color-text-muted);
}

.shop-product-detail__description-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-product-detail__description-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.2em auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.shop-product-detail__description-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.92rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.shop-product-detail__description-body th,
.shop-product-detail__description-body td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: right;
}

.shop-product-detail__description-body th {
    background: var(--color-bg-soft);
    font-weight: 900;
    color: var(--color-text);
}

.shop-product-detail__description-body hr {
    margin: 1.4em 0;
    border: 0;
    border-top: 1px dashed var(--color-border);
}

@media (max-width: 768px) {
    .shop-product-detail__description-head {
        padding: 16px 18px;
    }

    .shop-product-detail__description-body {
        padding: 18px;
        font-size: 0.94rem;
    }
}

.shop-related-products {
    width: 100%;
    margin-top: 32px;
}

.shop-related-products__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.shop-related-products__head h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 1000;
    color: var(--color-text);
}

.shop-related-products__head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.shop-related-products__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.shop-related-products__loading {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.shop-related-products__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--color-primary) 35%, transparent) transparent;
}

.shop-related-products__track:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.shop-related-products__track::-webkit-scrollbar {
    height: 8px;
}

.shop-related-products__track::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-primary) 35%, #d8dee9);
    border-radius: 999px;
}

.shop-related-products__item {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
}

.shop-related-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-height: 132px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--color-primary) 4%, #fff) 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.shop-related-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.shop-related-card__media {
    position: relative;
    flex: 0 0 108px;
    width: 108px;
    height: 108px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-gray);
}

.shop-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-related-card__badge {
    position: absolute;
    right: 6px;
    top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #e65100;
    font-size: 0.68rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.shop-related-card__badge--today {
    color: #2e7d32;
}

.shop-related-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding-top: 2px;
}

.shop-related-card__category {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.9;
}

.shop-related-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.55;
    color: var(--color-text);
    text-decoration: none;
}

.shop-related-card__title:hover {
    color: var(--color-primary);
}

.shop-related-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-related-card__price {
    font-size: 0.9rem;
    font-weight: 1000;
    color: var(--color-text);
    white-space: nowrap;
}

.shop-related-card__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
    flex-shrink: 0;
}

.shop-related-card__cart:hover {
    transform: scale(1.05);
    background: color-mix(in srgb, var(--color-primary) 85%, #000);
}

.shop-related-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.shop-related-card__cta--outline {
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
    color: var(--color-primary);
    background: #fff;
}

.shop-related-card__cta--outline:hover {
    background: color-mix(in srgb, var(--color-primary) 8%, #fff);
}

@media (max-width: 768px) {
    .shop-related-products__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-related-products__item {
        flex-basis: 280px;
        width: 280px;
        max-width: 280px;
    }

    .shop-related-card__media {
        flex-basis: 96px;
        width: 96px;
        height: 96px;
    }
}

.shop-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 900px) {
    .shop-cart-layout {
        grid-template-columns: 1fr;
    }
}

.shop-cart-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
}

.shop-cart-table__header,
.shop-cart-table__row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(110px, 1.2fr) minmax(100px, 1fr) minmax(100px, 1fr) 44px;
    align-items: center;
    min-width: 640px;
}

.shop-cart-table__header {
    background: var(--color-bg-soft);
    font-weight: 900;
    color: var(--color-text);
    padding: 12px 14px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border);
}

.shop-cart-table__row {
    padding: 14px;
    border-bottom: 1px solid var(--color-border);
}

.shop-cart-table__row:last-child {
    border-bottom: none;
}

.shop-cart-table__product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-cart-table__image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.shop-cart-table__name {
    color: var(--color-text);
    font-weight: 900;
    text-decoration: none;
    line-height: 1.4;
}

.shop-cart-table__name:hover {
    color: var(--color-primary);
}

.shop-cart-table__price,
.shop-cart-table__total {
    font-weight: 1000;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-align: right;
}

.shop-cart-table__remove {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    transition: all var(--transition);
}

.shop-cart-table__remove:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-cart-summary {
    background: var(--color-bg-soft);
    padding: 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.shop-cart-summary__title {
    font-size: 1rem;
    font-weight: 1000;
    margin-bottom: 14px;
    color: var(--color-text);
}

.shop-cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-weight: 800;
    color: var(--color-text-muted);
}

.shop-cart-summary__row--total {
    border-top: 2px solid var(--color-primary);
    margin-top: 10px;
    padding-top: 12px;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 1000;
}

.shop-checkout-form__title {
    font-size: 1rem;
    font-weight: 1000;
    margin: 18px 0 14px;
    color: var(--color-text);
}

.shop-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.shop-form-group label {
    font-weight: 900;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.shop-form-group input,
.shop-form-group textarea {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    padding: 10px 12px;
    font-size: 0.92rem;
    transition: border-color var(--transition);
    background: var(--color-bg);
}

.shop-form-group input:focus,
.shop-form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.shop-form-error {
    color: #c62828;
    font-weight: 900;
    margin: 0 0 12px;
    text-align: right;
}

.shop-success {
    text-align: center;
    padding: 40px 20px;
}

.shop-success h2 {
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 1000;
    color: var(--color-text);
}

.shop-success p {
    color: var(--color-text-muted);
    font-weight: 800;
    margin: 0 0 12px;
}

/* ========== Order Success Card ========== */
.order-success-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 40, 70, 0.06);
    animation: order-success-in 0.45s ease both;
}

@keyframes order-success-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.order-success-card__hero {
    text-align: center;
    padding: 36px 24px 28px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(46, 125, 50, 0.1), transparent 70%),
        linear-gradient(180deg, var(--color-bg-soft, #f7f9fb) 0%, var(--color-bg) 100%);
}

.order-success-card__icon-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
}

.order-success-card__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(46, 125, 50, 0.25);
    animation: order-success-ring 1.2s ease-out both;
}

@keyframes order-success-ring {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1.15);
        opacity: 1;
    }
}

.order-success-card__icon {
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #43a047, #2e7d32);
    color: #fff;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.35);
    animation: order-success-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.1s both;
}

@keyframes order-success-pop {
    from {
        transform: scale(0.4);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.order-success-card__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-text);
}

.order-success-card__subtitle {
    margin: 0 auto 20px;
    max-width: 420px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 600;
}

.order-success-card__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 22px;
    background: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md, 12px);
}

.order-success-card__badge-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 700;
}

.order-success-card__badge-value {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    direction: ltr;
}

.order-success-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
    border-top: 1px solid var(--color-border);
}

@media (max-width: 560px) {
    .order-success-card__meta {
        grid-template-columns: 1fr;
    }
}

.order-success-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    background: var(--color-bg);
}

.order-success-card__meta-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 700;
}

.order-success-card__meta-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text);
}

.order-success-card__items {
    padding: 20px 20px 8px;
    border-top: 1px solid var(--color-border);
}

.order-success-card__items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.order-success-card__items-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-text);
}

.order-success-card__items-head span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.order-success-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-success-card__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.order-success-card__item:last-child {
    border-bottom: none;
}

.order-success-card__item-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--color-border);
    background: var(--color-bg-soft, #f7f9fb);
}

.order-success-card__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.order-success-card__item-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.order-success-card__item-name:hover {
    color: var(--color-primary);
}

.order-success-card__item-qty {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.order-success-card__item-total {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--color-text);
    white-space: nowrap;
}

.order-success-card__footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-soft, #f7f9fb);
}

.order-success-card__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 12px);
}

.order-success-card__total span {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text-muted);
}

.order-success-card__total strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-primary);
}

.order-success-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.order-success-card__actions .btn {
    min-width: 160px;
}

/* Inquiry modal structure */
.inquiry-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.inquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.inquiry-modal__dialog {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.inquiry-modal__header {
    text-align: center;
    margin-bottom: 18px;
}

.inquiry-modal__title {
    font-size: 1.1rem;
    font-weight: 1000;
    margin-bottom: 6px;
}

.inquiry-modal__product-name {
    color: var(--color-text-muted);
    font-weight: 900;
}

.inquiry-modal__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.inquiry-modal__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inquiry-modal__waiting-title,
.inquiry-modal__priced-label {
    font-weight: 1000;
}

.inquiry-modal__waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
    gap: 8px;
}

.inquiry-modal__waiting .shop-spinner {
    margin: 0 auto 8px;
}

.inquiry-modal__waiting-phone {
    margin-top: 10px;
    font-weight: 900;
    color: var(--color-text);
}

.inquiry-modal__priced {
    text-align: center;
}

.inquiry-modal__priced-icon {
    margin-bottom: 10px;
    color: #2e7d32;
}

.shop-cart-table__row .shop-quantity__btn {
    width: 34px;
    height: 34px;
}
