/* ============================================
   7Bank Shop — Cart, Checkout, Orders, Favorites, Compare
   Dark theme: #060912 / Jura + JetBrains Mono
   ============================================ */

/* --- Base / Shared --- */
.cart-page,
.checkout-form,
.checkout-result,
.orders-list,
.order-detail,
.favorites-page,
.compare-table-wrap {
    font-family: 'Jura', 'JetBrains Mono', sans-serif;
    color: #e2e8f0;
    background: #060912;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================
   1. Cart Page Layout
   ============================================ */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.cart-page__title {
    grid-column: 1 / -1;
    font-family: 'Jura', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.5rem;
}

.cart-page__count {
    grid-column: 1 / -1;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.cart-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.cart-empty__text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.cart-empty__link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #6366f1;
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.cart-empty__link:hover {
    background: #818cf8;
}

/* ============================================
   2. Cart Item
   ============================================ */
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto auto;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-item:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.04);
}

.cart-item__image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info {
    min-width: 0;
}

.cart-item__name {
    font-family: 'Jura', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-item__name a:hover {
    color: #6366f1;
}

.cart-item__meta {
    font-size: 0.8rem;
    color: #64748b;
}

.cart-item__price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #94a3b8;
    white-space: nowrap;
}

.cart-item__subtotal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.cart-item__remove {
    background: none;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    color: #64748b;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cart-item__remove:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
}

/* ============================================
   3. Cart Summary — Sticky Sidebar
   ============================================ */
.cart-summary {
    position: sticky;
    top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
}

.cart-summary__title {
    font-family: 'Jura', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.cart-summary__label {
    color: #94a3b8;
}

.cart-summary__value {
    font-family: 'JetBrains Mono', monospace;
    color: #e2e8f0;
    font-weight: 500;
}

.cart-summary__row--total {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    margin-top: 0.75rem;
    padding-top: 1rem;
}

.cart-summary__row--total .cart-summary__label {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.cart-summary__row--total .cart-summary__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6366f1;
}

.cart-summary__discount {
    color: #22c55e;
}

.cart-summary__checkout {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Jura', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
}

.cart-summary__checkout:hover {
    background: #818cf8;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
}

.cart-summary__checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-summary__continue {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-summary__continue:hover {
    color: #818cf8;
}

/* ============================================
   4. Quantity Selector
   ============================================ */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.qty-selector__btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.qty-selector__btn:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.qty-selector__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-selector__input {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid rgba(148, 163, 184, 0.06);
    border-right: 1px solid rgba(148, 163, 184, 0.06);
    background: transparent;
    color: #f1f5f9;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.qty-selector__input::-webkit-outer-spin-button,
.qty-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   5. Checkout Form — Two Columns
   ============================================ */
.checkout-form {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
}

.checkout-form__title {
    grid-column: 1 / -1;
    font-family: 'Jura', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem;
}

.checkout-form__section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-form__section-title {
    font-family: 'Jura', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.checkout-form__group {
    margin-bottom: 1rem;
}

.checkout-form__group:last-child {
    margin-bottom: 0;
}

.checkout-form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.checkout-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-form__order-summary {
    position: sticky;
    top: 2rem;
}

.checkout-form__submit {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Jura', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.checkout-form__submit:hover {
    background: #818cf8;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
}

.checkout-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   6. Checkout Result (Success / Failed)
   ============================================ */
.checkout-result {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.checkout-result__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.checkout-result__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.checkout-result--success .checkout-result__icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.2);
}

.checkout-result--failed .checkout-result__icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.checkout-result__title {
    font-family: 'Jura', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.5rem;
}

.checkout-result__text {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.checkout-result__details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.checkout-result__detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.checkout-result__detail-label {
    color: #64748b;
}

.checkout-result__detail-value {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.checkout-result__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.checkout-result__btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    font-family: 'Jura', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
}

.checkout-result__btn--primary {
    background: #6366f1;
    color: #fff;
}

.checkout-result__btn--primary:hover {
    background: #818cf8;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
}

.checkout-result__btn--secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.checkout-result__btn--secondary:hover {
    border-color: rgba(99, 102, 241, 0.2);
    color: #e2e8f0;
}

/* ============================================
   7. Orders List
   ============================================ */
.orders-list__title {
    font-family: 'Jura', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem;
}

.orders-list__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.order-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.04);
}

.order-card__number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.order-card__date {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.order-card__items-count {
    font-size: 0.85rem;
    color: #94a3b8;
}

.order-card__total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
}

.order-card__arrow {
    color: #475569;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}

.order-card:hover .order-card__arrow {
    color: #6366f1;
    transform: translateX(3px);
}

.orders-list__empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

/* ============================================
   8. Order Detail
   ============================================ */
.order-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-detail__title {
    font-family: 'Jura', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.order-detail__title span {
    font-family: 'JetBrains Mono', monospace;
    color: #6366f1;
}

.order-detail__grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* Items table */
.order-detail__section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-detail__section-title {
    font-family: 'Jura', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1rem;
}

.order-detail__table {
    width: 100%;
    border-collapse: collapse;
}

.order-detail__table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.order-detail__table td {
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.04);
    vertical-align: middle;
}

.order-detail__table tr:last-child td {
    border-bottom: none;
}

.order-detail__table .td-price,
.order-detail__table .td-qty,
.order-detail__table .td-subtotal {
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.order-detail__table .td-subtotal {
    font-weight: 700;
    text-align: right;
}

.order-detail__item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* Status timeline */
.status-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(148, 163, 184, 0.1);
}

.status-timeline__item {
    position: relative;
    padding-bottom: 1.5rem;
}

.status-timeline__item:last-child {
    padding-bottom: 0;
}

.status-timeline__dot {
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #475569;
    background: #060912;
}

.status-timeline__item--active .status-timeline__dot {
    border-color: #6366f1;
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.status-timeline__item--completed .status-timeline__dot {
    border-color: #22c55e;
    background: #22c55e;
}

.status-timeline__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.15rem;
}

.status-timeline__date {
    font-size: 0.78rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

/* Customer info */
.customer-info__row {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.customer-info__row:last-child {
    border-bottom: none;
}

.customer-info__label {
    color: #64748b;
}

.customer-info__value {
    color: #e2e8f0;
    text-align: right;
}

/* ============================================
   9. Favorites Page
   ============================================ */
.favorites-page__title {
    font-family: 'Jura', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem;
}

.favorites-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.fav-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fav-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.05);
}

.fav-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.fav-card__body {
    padding: 1rem 1.25rem 1.25rem;
}

.fav-card__name {
    font-family: 'Jura', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.fav-card__name a:hover {
    color: #6366f1;
}

.fav-card__price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.fav-card__actions {
    display: flex;
    gap: 0.5rem;
}

.fav-card__add-cart {
    flex: 1;
    padding: 0.55rem 0.75rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Jura', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.fav-card__add-cart:hover {
    background: #818cf8;
}

.fav-card__remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    background: rgba(6, 9, 18, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 50%;
    color: #94a3b8;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.fav-card__remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.favorites-page__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

/* ============================================
   10. Compare Page
   ============================================ */
.compare-table-wrap__title {
    font-family: 'Jura', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem;
}

.compare-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem 1rem;
}

.compare-table {
    min-width: 640px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.compare-table th,
.compare-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    vertical-align: top;
    min-width: 180px;
}

.compare-table th:first-child,
.compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #060912;
    min-width: 140px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.compare-table thead th {
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.compare-table__product-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.compare-table__product-name {
    font-family: 'Jura', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.3rem;
}

.compare-table__product-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
}

.compare-table__remove {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.compare-table__remove:hover {
    color: #ef4444;
}

.compare-table tbody td {
    font-size: 0.88rem;
    color: #e2e8f0;
}

.compare-table__highlight {
    color: #22c55e;
    font-weight: 600;
}

.compare-table-wrap__empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

/* ============================================
   11. Status Badges
   ============================================ */
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.order-status--pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.order-status--processing {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.order-status--paid,
.order-status--completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.order-status--shipped {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.order-status--delivered {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.order-status--cancelled,
.order-status--failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.order-status--refunded {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.order-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================
   12. Form Inputs — Dark Theme
   ============================================ */
.shop-input,
.shop-textarea,
.shop-select {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: 'Jura', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.shop-input::placeholder,
.shop-textarea::placeholder {
    color: #475569;
}

.shop-input:focus,
.shop-textarea:focus,
.shop-select:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.shop-input:hover,
.shop-textarea:hover,
.shop-select:hover {
    border-color: rgba(148, 163, 184, 0.18);
}

.shop-input--error,
.shop-textarea--error,
.shop-select--error {
    border-color: rgba(239, 68, 68, 0.5);
}

.shop-input--error:focus,
.shop-textarea--error:focus,
.shop-select--error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.shop-textarea {
    min-height: 100px;
    resize: vertical;
}

.shop-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.shop-select option {
    background: #0f172a;
    color: #e2e8f0;
}

.shop-input-error {
    display: block;
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 0.3rem;
}

.shop-input-hint {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.3rem;
}

/* Checkbox / Radio */
.shop-checkbox,
.shop-radio {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: #e2e8f0;
}

.shop-checkbox input,
.shop-radio input {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

/* ============================================
   13. Responsive Design
   ============================================ */

/* Tablet — 1024 */
@media (max-width: 1024px) {
    .cart-page {
        grid-template-columns: 1fr 320px;
    }

    .checkout-form {
        grid-template-columns: 1fr 340px;
    }

    .order-detail__grid {
        grid-template-columns: 1fr 300px;
    }
}

/* Tablet small — 768 */
@media (max-width: 768px) {
    .cart-page,
    .checkout-form,
    .checkout-result,
    .orders-list,
    .order-detail,
    .favorites-page,
    .compare-table-wrap {
        padding: 1.5rem 1rem;
    }

    .cart-page {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 72px 1fr;
        gap: 0.75rem;
        position: relative;
    }

    .cart-item__price {
        grid-column: 2;
        grid-row: 2;
    }

    .qty-selector {
        grid-column: 2;
        grid-row: 3;
    }

    .cart-item__subtotal {
        grid-column: 2;
        grid-row: 3;
        text-align: right;
    }

    .cart-item__remove {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }

    .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-form__order-summary {
        position: static;
        order: -1;
    }

    .order-detail__grid {
        grid-template-columns: 1fr;
    }

    .order-card {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
    }

    .order-card__items-count {
        grid-column: 1;
        grid-row: 2;
    }

    .order-card__total {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }

    .order-card__arrow {
        display: none;
    }

    .favorites-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Mobile — 480 */
@media (max-width: 480px) {
    .cart-page,
    .checkout-form,
    .checkout-result,
    .orders-list,
    .order-detail,
    .favorites-page,
    .compare-table-wrap {
        padding: 1rem 0.75rem;
    }

    .cart-page__title,
    .checkout-form__title,
    .orders-list__title,
    .order-detail__title,
    .favorites-page__title,
    .compare-table-wrap__title {
        font-size: 1.35rem;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        padding: 0.85rem;
    }

    .cart-item__image {
        width: 60px;
        height: 60px;
    }

    .cart-item__name {
        font-size: 0.88rem;
    }

    .checkout-form__row {
        grid-template-columns: 1fr;
    }

    .checkout-result__card {
        padding: 2rem 1.5rem;
    }

    .checkout-result__icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .checkout-result__title {
        font-size: 1.2rem;
    }

    .checkout-result__actions {
        flex-direction: column;
    }

    .checkout-result__btn {
        width: 100%;
        text-align: center;
    }

    .order-detail__table {
        font-size: 0.82rem;
    }

    .order-detail__table th,
    .order-detail__table td {
        padding: 0.5rem;
    }

    .order-detail__item-img {
        width: 36px;
        height: 36px;
    }

    .favorites-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .fav-card__body {
        padding: 0.75rem 0.85rem 1rem;
    }

    .fav-card__name {
        font-size: 0.85rem;
    }

    .fav-card__price {
        font-size: 0.9rem;
    }

    .fav-card__add-cart {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
    }

    .compare-table th,
    .compare-table td {
        min-width: 150px;
        padding: 0.7rem 0.85rem;
    }

    .compare-table__product-img {
        width: 60px;
        height: 60px;
    }
}

/* Scrollbar styling for compare table */
.compare-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.compare-table-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.compare-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 3px;
}

.compare-table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.25);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-item,
.order-card,
.fav-card {
    animation: fadeIn 0.3s ease both;
}

.cart-item:nth-child(2) { animation-delay: 0.04s; }
.cart-item:nth-child(3) { animation-delay: 0.08s; }
.cart-item:nth-child(4) { animation-delay: 0.12s; }
.cart-item:nth-child(5) { animation-delay: 0.16s; }

/* ========== CART PAGE OVERRIDES (match HTML classes) ========== */
.cart-page { margin-top: 0; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
}

.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(148,163,184,0.06);
    border-radius: 14px;
    transition: all 0.25s ease;
}
.cart-item:hover {
    border-color: rgba(99,102,241,0.15);
    background: rgba(255,255,255,0.03);
}
.cart-item-img {
    width: 80px; height: 80px; object-fit: cover;
    border-radius: 10px; background: rgba(255,255,255,0.03);
}
.cart-item-info { min-width: 0; }
.cart-item-name {
    display: block; font-size: 15px; font-weight: 600;
    color: #e2e8f0; text-decoration: none; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item-name:hover { color: #6366f1; }
.cart-item-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; color: #94a3b8; margin-top: 4px;
}
.cart-item-subtotal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px; font-weight: 700; color: #e2e8f0;
    white-space: nowrap;
}
.cart-item-remove {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15);
    color: #f87171; border-radius: 8px; cursor: pointer;
    font-size: 16px; transition: all 0.2s;
}
.cart-item-remove:hover {
    background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.3);
}

/* Quantity selector */
.qty-selector {
    display: inline-flex; align-items: center;
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 10px; overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.qty-btn {
    width: 36px; height: 36px;
    background: none; border: none; color: #94a3b8;
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.qty-btn:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); }
.qty-input {
    width: 44px; height: 36px; text-align: center;
    background: none; border: none;
    border-left: 1px solid rgba(148,163,184,0.08);
    border-right: 1px solid rgba(148,163,184,0.08);
    color: #e2e8f0; font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 600; outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Cart summary */
.cart-summary {
    position: sticky; top: 88px;
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(148,163,184,0.06);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}
.cart-summary h3 {
    font-size: 18px; font-weight: 700; color: #e2e8f0;
    margin: 0 0 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(148,163,184,0.06);
}
.cart-summary-row {
    display: flex; justify-content: space-between;
    font-size: 14px; color: #94a3b8; margin-bottom: 8px;
}
.cart-summary-total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 16px; margin-top: 16px; padding-top: 16px;
    border-top: 1px solid rgba(148,163,184,0.06);
}
.cart-summary-total strong { color: #e2e8f0; }
.cart-summary-total .shop-price { font-size: 22px; }

/* Checkout */
.checkout-layout {
    display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start;
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-fields .form-card,
.checkout-summary .form-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(148,163,184,0.06);
    border-radius: 14px; padding: 24px; margin-bottom: 16px;
}
.checkout-fields .form-card h3,
.checkout-summary .form-card h3 {
    font-size: 16px; font-weight: 700; color: #e2e8f0;
    margin: 0 0 16px;
}
.checkout-fields .form-group { margin-bottom: 14px; }
.checkout-fields .form-group label {
    display: block; font-size: 13px; color: #94a3b8;
    margin-bottom: 6px; font-weight: 500;
}
.shop-input, .checkout-fields input, .checkout-fields textarea {
    width: 100%; padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(148,163,184,0.08);
    border-radius: 10px; color: #e2e8f0;
    font-family: 'Jura', sans-serif; font-size: 14px;
    outline: none; transition: all 0.2s;
}
.shop-input:focus, .checkout-fields input:focus, .checkout-fields textarea:focus {
    border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-error { color: #f87171; font-size: 12px; margin-top: 4px; display: block; }

.checkout-item {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 14px; color: #94a3b8;
    border-bottom: 1px solid rgba(148,163,184,0.04);
}
.checkout-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 12px; margin-top: 8px;
    border-top: 1px solid rgba(148,163,184,0.08);
    font-size: 16px;
}
.checkout-total strong { color: #e2e8f0; }

/* Checkout result */
.checkout-result {
    text-align: center; padding: 60px 20px; max-width: 500px; margin: 40px auto;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(148,163,184,0.06);
    border-radius: 14px;
}
.checkout-result-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; margin-bottom: 16px;
    background: rgba(16,185,129,0.15); color: #6ee7b7;
}
.checkout-result-icon.error {
    background: rgba(239,68,68,0.15); color: #f87171;
}
.checkout-result h1 { font-size: 24px; color: #e2e8f0; margin: 0 0 12px; }
.checkout-result p { color: #94a3b8; margin: 6px 0; }

/* Orders */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(148,163,184,0.06);
    border-radius: 14px; transition: all 0.25s;
}
.order-card:hover { border-color: rgba(99,102,241,0.15); }
.order-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.order-card-header strong { color: #e2e8f0; font-family: 'JetBrains Mono', monospace; }
.order-card-body {
    display: flex; justify-content: space-between; align-items: center;
    color: #94a3b8; font-size: 14px; margin-bottom: 12px;
}
.order-status { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.order-status-success { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.order-status-warning { background: rgba(245,158,11,0.12); color: #fcd34d; }
.order-status-info { background: rgba(99,102,241,0.12); color: #a5b4fc; }
.order-status-danger { background: rgba(239,68,68,0.12); color: #f87171; }
.order-status-secondary { background: rgba(148,163,184,0.08); color: #94a3b8; }

/* Compare table */
.compare-table-wrapper { overflow-x: auto; }
.compare-table {
    width: 100%; border-collapse: collapse; min-width: 600px;
}
.compare-table th, .compare-table td {
    padding: 12px 16px; text-align: left;
    border-bottom: 1px solid rgba(148,163,184,0.06);
    font-size: 14px; color: #94a3b8;
}
.compare-table th { color: #e2e8f0; font-weight: 600; background: rgba(255,255,255,0.02); }
.compare-table td:first-child { color: #64748b; font-weight: 500; width: 160px; }
.compare-product-head {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; text-align: center;
}
.compare-product-img {
    width: 80px; height: 80px; border-radius: 10px; object-fit: cover;
    background: rgba(255,255,255,0.03);
}
.compare-product-head a { color: #e2e8f0; text-decoration: none; font-weight: 600; font-size: 13px; }

@media (max-width: 768px) {
    .cart-item { grid-template-columns: 60px 1fr; gap: 10px; }
    .cart-item-subtotal, .qty-selector { grid-column: 2; }
    .cart-item-remove { position: absolute; top: 8px; right: 8px; }
    .cart-item { position: relative; }
}
/* ========== FINAL CART FIXES ========== */
.cart-item {
    display: grid !important;
    grid-template-columns: 80px 1fr auto auto auto !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 16px !important;
}
.cart-item-img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.03) !important;
}
.cart-item-info {
    min-width: 0 !important;
    overflow: hidden !important;
}
.cart-item-name {
    display: block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.cart-item-price {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin-top: 4px !important;
}
.cart-item-subtotal {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    white-space: nowrap !important;
}
.cart-item-remove {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(239,68,68,0.08) !important;
    border: 1px solid rgba(239,68,68,0.15) !important;
    color: #f87171 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.cart-layout {
    display: grid !important;
    grid-template-columns: 1fr 360px !important;
    gap: 24px !important;
    align-items: start !important;
}
.cart-summary {
    position: sticky !important;
    top: 88px !important;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
    }
    .cart-item {
        grid-template-columns: 64px 1fr !important;
    }
    .cart-item-subtotal,
    .qty-selector {
        grid-column: 1 / -1 !important;
    }
}
/* Fix buttons overflow in cart summary */
.cart-summary .btn,
.cart-summary a.btn {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}
.cart-summary {
    overflow: hidden !important;
    padding: 24px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(148,163,184,0.06) !important;
    border-radius: 14px !important;
}
*, *::before, *::after {
    box-sizing: border-box;
}
/* ========== CHECKOUT RESULT FINAL FIX ========== */
.checkout-result.checkout-success,
.checkout-result.checkout-failed {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 60px 24px !important;
    max-width: 520px !important;
    margin: 40px auto !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(148,163,184,0.06) !important;
    border-radius: 14px !important;
    min-height: auto !important;
}
.checkout-result.checkout-success h1,
.checkout-result.checkout-failed h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    margin: 0 0 16px !important;
}
.checkout-result.checkout-success p,
.checkout-result.checkout-failed p {
    color: #94a3b8 !important;
    margin: 6px 0 !important;
    font-size: 15px !important;
}
.checkout-result-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    margin-bottom: 20px !important;
    background: rgba(16,185,129,0.15) !important;
    color: #6ee7b7 !important;
    flex-shrink: 0 !important;
}
.checkout-result-icon.error {
    background: rgba(239,68,68,0.15) !important;
    color: #f87171 !important;
}

/* Also fix checkout form page */
.checkout-form {
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
}
.checkout-layout {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 24px !important;
    align-items: start !important;
}
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr !important; }
}

/* Fix orders and favorites pages too */
.orders-list,
.order-detail,
.favorites-page,
.compare-table-wrap {
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    max-width: none !important;
}
/* ========== ORDERS PAGE FIX ========== */
.order-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 20px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(148,163,184,0.06) !important;
    border-radius: 14px !important;
}
.order-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}
.order-card-id {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.order-card-id strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #e2e8f0;
}
.order-card-body {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 12px 0 !important;
    border-top: 1px solid rgba(148,163,184,0.04) !important;
    border-bottom: 1px solid rgba(148,163,184,0.04) !important;
}
.order-card-items {
    font-size: 14px;
    color: #94a3b8;
}
.order-card-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
}
.order-card-footer {
    display: flex;
    justify-content: flex-end;
}