.product-hero {
    max-width: 1180px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #dbe4f8;
    border-radius: 24px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #111827;
}

.product-hero p {
    color: #475569;
}

.product-search-bar {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
    gap: 12px;
}

.product-search-bar input,
.product-search-bar select {
    border: 1px solid #dbe4f8;
    border-radius: 999px;
    padding: 14px 16px;
    background: #fff;
    color: #111827;
}

.product-search-bar button {
    border-radius: 999px;
    padding: 14px 22px;
}

.category-bar {
    max-width: 1180px;
    margin: 0 auto 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-chip {
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    white-space: nowrap;
}

.category-chip.active {
    border-color: #2874f0;
    color: #2874f0;
    background: #eff6ff;
}

.cards {
    max-width: 1180px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: var(--shadow-soft);
}

.card img,
.product-detail-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 700;
}

.badge-pill {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-tag {
    background: #eff6ff;
    color: #1d4ed8;
}

.low-stock {
    background: #fef2f2;
    color: #991b1b;
}

.product-pricing {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    color: #2874f0;
    font-weight: 800;
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
}

.stock,
.description {
    color: #475569;
}

.card-actions,
.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb {
    max-width: 1180px;
    margin: 0 auto 20px;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: #1f2937;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #c7d2fe;
}

.product-detail-page {
    max-width: 1180px;
    margin: 0 auto 28px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.product-detail-image {
    min-height: 520px;
    background: #f8fbff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-info {
    padding: 36px 34px;
    display: grid;
    gap: 16px;
}

.detail-head {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-head h1 {
    font-size: clamp(2rem, 2.4vw, 2.8rem);
}

.detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 14px;
    background: #eff6ff;
    color: #1f2937;
    font-size: 0.95rem;
}

.product-pricing {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    color: #2874f0;
    font-size: 2rem;
    font-weight: 800;
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
}

.savings {
    color: #047857;
    font-weight: 700;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 6px 12px;
}

.product-description {
    color: #334155;
    line-height: 1.75;
    margin-top: 8px;
}

.product-extras {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-extras div {
    background: #eff6ff;
    border: 1px solid #dbe4f8;
    border-radius: 16px;
    padding: 18px 16px;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.product-actions .btn-secondary {
    min-width: 152px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
}

.related-products {
    margin-top: 32px;
}

.related-products h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
}

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

.small-card {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.small-card img {
    height: 190px;
    object-fit: cover;
}

.small-card .card-content {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.small-card h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.small-card .price {
    margin-top: 4px;
}

.product-image-placeholder {
    min-height: 190px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f8fbff;
}

.empty-state {
    max-width: 1180px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
}

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

@media (max-width: 820px) {
    .product-detail-card { grid-template-columns: 1fr; }
    .product-detail-image { min-height: 320px; }
}

.cart-page { max-width: 1180px; margin: 0 auto 24px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.cart-card { background: #fff; border: 1px solid #dbe4f8; border-radius: 16px; padding: 16px; display: flex; justify-content: space-between; gap: 12px; }
.cart-product { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cart-product-avatar { width: 64px; height: 64px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: #f8fbff; border: 1px solid #e2e8f0; }
.cart-product-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { color: #475569; font-weight: 700; font-size: 1rem; }
.cart-meta { color: #475569; margin: 8px 0; }
.cart-qty-form { display: grid; gap: 8px; max-width: 220px; }
.cart-qty-form input { border: 1px solid #dbe4f8; border-radius: 10px; padding: 9px 11px; }
.cart-card-right { text-align: right; display: grid; align-content: start; gap: 10px; }
.summary-box { background: #fff; border: 1px solid #dbe4f8; border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; }
.total-row { font-size: 1.1rem; font-weight: 800; }
.order-card-items { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.order-thumb { width: 52px; height: 52px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: #f8fbff; border: 1px solid #e2e8f0; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-thumb.more { display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; color: #475569; font-weight: 700; }
.order-item-row { display: flex; justify-content: space-between; gap: 10px; border: 1px solid #edf2f7; border-radius: 12px; padding: 12px; background: #fbfdff; }
.order-item-left { display: flex; align-items: center; gap: 12px; }
.order-item-avatar { width: 52px; height: 52px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: #f8fbff; border: 1px solid #e2e8f0; }
.order-item-avatar img { width: 100%; height: 100%; object-fit: cover; }

.payment-page,
.order-detail-page { max-width: 1180px; margin: 0 auto 28px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.payment-panel,
.order-detail-box,
.order-card { background: #fff; border: 1px solid #dbe4f8; border-radius: 16px; padding: 18px; }
.payment-total { color: #475569; margin: 8px 0 12px; }
.payment-form { display: grid; gap: 10px; margin-top: 12px; }
.payment-option { border: 1px solid #dbe4f8; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; background: #f8fbff; }
.order-summary-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.order-summary-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eef2f7; padding-bottom: 8px; }
.orders-list { max-width: 1180px; margin: 0 auto 28px; display: grid; gap: 14px; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #64748b; }
.order-items { display: grid; gap: 10px; margin-top: 12px; }
.order-item-row { display: flex; justify-content: space-between; gap: 10px; border: 1px solid #edf2f7; border-radius: 12px; padding: 12px; background: #fbfdff; }
.status-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; border: 1px solid transparent; }
.status-pending { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.status-paid { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.status-shipped { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.status-delivered { color: #14532d; background: #f0fdf4; border-color: #bbf7d0; }

@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .product-detail-card, .cart-page, .payment-page, .order-detail-page { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .cards { grid-template-columns: 1fr; }
    .product-search-bar { grid-template-columns: 1fr; }
    .order-card-header { align-items: flex-start; flex-direction: column; }
}

.shop-feature-strip { max-width: 1180px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-feature-strip div { background: #fff; border: 1px solid #dbe4f8; border-radius: 12px; padding: 10px 12px; font-weight: 700; color: #1f2937; text-align: center; }
.field-input { width: 100%; border: 1px solid #dbe4f8; border-radius: 10px; padding: 10px 12px; background: #fff; }
.field-textarea { min-height: 90px; resize: vertical; }
@media (max-width: 768px) { .shop-feature-strip { grid-template-columns: 1fr; } }


.coupon-form { display: grid; gap: 8px; margin-bottom: 10px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 16px; }
.timeline-step { text-align: center; padding: 10px 8px; border-radius: 10px; border: 1px solid #ead9c8; background: #fff; }
.timeline-dot { width: 10px; height: 10px; border-radius: 999px; margin: 0 auto 6px; background: #d1d5db; }
.timeline-step.done { background: #ecfdf5; border-color: #bbf7d0; }
.timeline-step.done .timeline-dot { background: #16a34a; }
.timeline-step.current { background: #fff7ed; border-color: #fed7aa; }
.timeline-step.current .timeline-dot { background: #ea580c; }
.timeline-step.upcoming { background: #f8fafc; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; } }



.page-eyebrow {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.payment-panel--main {
    display: grid;
    gap: 18px;
}

.payment-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.payment-step {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2563eb;
}

.payment-caption {
    margin: 6px 0 0;
    color: var(--muted);
}

.payment-method-card {
    border: 1px solid #dbe4f8;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fbff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.payment-method-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.payment-method-card input[type="radio"] {
    margin-top: 4px;
}

.payment-method-card.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.payment-method-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.payment-method-body {
    display: grid;
    gap: 6px;
    width: 100%;
}

.payment-method-heading {
    display: grid;
    gap: 2px;
}

.payment-method-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
}

.payment-badge--muted {
    background: #e2e8f0;
    color: #475569;
}

.payment-choice-form {
    display: grid;
    gap: 14px;
}

.payment-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.payment-trust-item {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 14px;
    padding: 12px 14px;
    color: #334155;
    font-size: 0.95rem;
}

.gateway-status-banner {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid transparent;
    display: grid;
    gap: 4px;
}

.gateway-status-banner p,
.alert-card p,
.payment-mini-card p,
.success-summary-item span {
    margin: 0;
    color: var(--muted);
}

.gateway-status-banner.info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.gateway-status-banner.warning,
.alert-card.warning {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.gateway-status-banner.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alert-card.neutral {
    border-color: #dbe4f8;
    background: #f8fbff;
    color: #334155;
}

.alert-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.payment-summary {
    position: sticky;
    top: 96px;
    align-self: start;
}

.payment-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.payment-mini-card {
    gap: 6px;
    background: #f8fbff;
}

.checkout-form {
    gap: 14px;
}

.field-stack {
    display: grid;
    gap: 8px;
}

.field-stack label {
    font-weight: 700;
    color: #1e293b;
}

.inline-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
}

.inline-status-row--spaced {
    margin-top: 10px;
}

.order-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-payment-unpaid {
    color: #92400e;
    background: #fff7ed;
    border-color: #fed7aa;
}

.status-payment-pending {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.status-payment-failed {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.success-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

.success-summary-item {
    background: #f8fbff;
    border: 1px solid #dbe4f8;
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    gap: 8px;
}

.success-summary-item strong {
    color: #0f172a;
}

@media (max-width: 1024px) {
    .payment-summary {
        position: static;
    }

    .payment-trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .payment-method-card,
    .alert-card,
    .order-item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .success-summary {
        grid-template-columns: 1fr;
    }
}

.redirect-gateway-form {
    gap: 12px;
}

.redirect-gateway-form .btn {
    width: fit-content;
}

.payment-method-card.is-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #dbe4f8;
}

.product-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.product-hero-stat {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 4px;
    box-shadow: var(--shadow-soft);
}

.product-hero-stat strong {
    font-size: 1.35rem;
    color: #0f172a;
}

.product-hero-stat span {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
}

.search-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-summary-bar {
    max-width: 1180px;
    margin: 0 auto 18px;
    padding: 16px 18px;
    border: 1px solid #dbe4f8;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 800;
}

.shop-feature-strip {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.shop-stat-card,
.cart-insight-card,
.checkout-side-card,
.orders-summary-card,
.payment-overview-card {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 8px;
}

.shop-stat-label {
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shop-stat-value {
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 800;
}

.shop-stat-note {
    color: #64748b;
    line-height: 1.6;
}

.product-rating-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rating-chip,
.availability-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 800;
}

.rating-chip {
    background: #fffbeb;
    color: #92400e;
}

.availability-chip {
    background: #ecfdf5;
    color: #166534;
}

.availability-chip.out {
    background: #fef2f2;
    color: #991b1b;
}

.savings-tag {
    background: #ecfdf5;
    color: #047857;
}

.product-card-caption {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.7;
}

.product-detail-page {
    max-width: 1180px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.product-detail-page > .related-products {
    grid-column: 1 / -1;
}

.product-extras div {
    display: grid;
    gap: 6px;
    text-align: left;
}

.product-extras div strong {
    font-size: 1rem;
}

.product-extras div span {
    color: #475569;
    font-weight: 600;
    line-height: 1.5;
}

.detail-usp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.detail-usp-card,
.detail-support-card,
.order-support-card {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
}

.detail-usp-card strong,
.detail-support-card h3,
.order-support-card h4 {
    color: #0f172a;
}

.detail-usp-card p,
.detail-support-card p,
.order-support-card p {
    color: #64748b;
    line-height: 1.7;
}

.cart-insight-strip,
.orders-summary-grid,
.payment-overview-grid {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.orders-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cart-card-left {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex: 1;
}

.cart-product-copy {
    display: grid;
    gap: 8px;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-summary-note {
    border-radius: 16px;
    padding: 14px 16px;
    background: #f8fbff;
    border: 1px solid #dbe4f8;
    display: grid;
    gap: 6px;
}

.cart-summary-note strong {
    color: #0f172a;
}

.cart-summary-note p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.cart-summary-note--success {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.checkout-progress {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.checkout-progress-step {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.checkout-progress-step strong {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
}

.checkout-progress-step span {
    font-weight: 800;
    color: #1f2937;
}

.checkout-progress-step.is-active {
    border-color: #93c5fd;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.1);
}

.checkout-progress-step.is-done strong {
    background: #dcfce7;
    color: #166534;
}

.checkout-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.checkout-form-actions,
.orders-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.orders-filter-bar {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    align-items: end;
}

.payment-overview-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.success-wrap {
    max-width: 1180px;
    margin: 0 auto 28px;
}

.success-card {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.success-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.success-next-card {
    background: #f8fbff;
    border: 1px solid #dbe4f8;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 8px;
}

.success-next-card strong {
    color: #0f172a;
}

.success-next-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.success-actions {
    justify-content: flex-start;
}

.order-side-panel {
    position: sticky;
    top: 96px;
}

.order-support-card {
    margin-top: 6px;
}

body.theme-dark .product-hero,
body.theme-dark .product-hero-stat,
body.theme-dark .filter-summary-bar,
body.theme-dark .shop-stat-card,
body.theme-dark .card,
body.theme-dark .product-detail-card,
body.theme-dark .detail-usp-card,
body.theme-dark .detail-support-card,
body.theme-dark .cart-card,
body.theme-dark .summary-box,
body.theme-dark .payment-panel,
body.theme-dark .order-detail-box,
body.theme-dark .order-card,
body.theme-dark .cart-insight-card,
body.theme-dark .checkout-side-card,
body.theme-dark .orders-summary-card,
body.theme-dark .orders-filter-bar,
body.theme-dark .payment-overview-card,
body.theme-dark .success-card,
body.theme-dark .success-next-card,
body.theme-dark .order-support-card,
body.theme-dark .checkout-progress-step,
body.theme-dark .payment-method-card,
body.theme-dark .payment-trust-item,
body.theme-dark .payment-mini-card,
body.theme-dark .order-item-row,
body.theme-dark .timeline-step,
body.theme-dark .category-chip,
body.theme-dark .product-image-placeholder,
body.theme-dark .cart-summary-note {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

body.theme-dark .product-search-bar input,
body.theme-dark .product-search-bar select,
body.theme-dark .field-input,
body.theme-dark .cart-qty-form input,
body.theme-dark .orders-filter-bar select {
    background: var(--surface-soft);
    border-color: var(--border);
    color: var(--text);
}

body.theme-dark .product-hero h1,
body.theme-dark .product-hero-stat strong,
body.theme-dark .shop-stat-value,
body.theme-dark .success-summary-item strong,
body.theme-dark .success-next-card strong,
body.theme-dark .detail-usp-card strong,
body.theme-dark .cart-summary-note strong {
    color: var(--text);
}

body.theme-dark .product-hero p,
body.theme-dark .product-hero-stat span,
body.theme-dark .description,
body.theme-dark .stock,
body.theme-dark .product-card-caption,
body.theme-dark .shop-stat-note,
body.theme-dark .payment-caption,
body.theme-dark .payment-overview-card p,
body.theme-dark .success-next-card p,
body.theme-dark .detail-usp-card p,
body.theme-dark .product-extras div span,
body.theme-dark .cart-summary-note p,
body.theme-dark .order-meta,
body.theme-dark .field-stack label,
body.theme-dark .order-summary-list li span {
    color: var(--muted);
}

body.theme-dark .payment-badge,
body.theme-dark .filter-chip,
body.theme-dark .category-chip.active,
body.theme-dark .rating-chip,
body.theme-dark .checkout-progress-step strong {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

body.theme-dark .payment-badge--muted {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

body.theme-dark .availability-chip {
    background: rgba(22, 163, 74, 0.14);
    color: #86efac;
}

body.theme-dark .availability-chip.out,
body.theme-dark .status-payment-failed {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

body.theme-dark .gateway-status-banner.info,
body.theme-dark .alert-card.neutral {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.24);
    color: #bfdbfe;
}

body.theme-dark .gateway-status-banner.warning,
body.theme-dark .alert-card.warning {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(250, 204, 21, 0.28);
    color: #fde68a;
}

body.theme-dark .gateway-status-banner.danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.28);
    color: #fecaca;
}

@media (max-width: 1180px) {
    .product-hero-stats,
    .shop-feature-strip,
    .orders-summary-grid,
    .checkout-overview-grid,
    .payment-overview-grid,
    .success-next-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .product-detail-page,
    .cart-insight-strip,
    .orders-summary-grid,
    .payment-overview-grid,
    .success-next-grid,
    .checkout-progress {
        grid-template-columns: 1fr;
    }

    .product-detail-page > .related-products {
        grid-column: auto;
    }

    .detail-usp-grid,
    .orders-filter-bar {
        grid-template-columns: 1fr;
    }

    .order-side-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-hero-stats,
    .shop-feature-strip,
    .cart-insight-strip,
    .checkout-overview-grid,
    .payment-overview-grid,
    .success-next-grid,
    .orders-summary-grid {
        grid-template-columns: 1fr;
    }

    .search-form-actions,
    .checkout-form-actions,
    .orders-filter-actions,
    .cart-actions,
    .success-actions {
        width: 100%;
    }

    .search-form-actions .btn,
    .checkout-form-actions .btn,
    .orders-filter-actions .btn,
    .success-actions .btn {
        width: 100%;
    }

    .filter-summary-bar,
    .orders-filter-bar {
        grid-template-columns: 1fr;
    }

    .cart-card-left {
        flex-direction: column;
    }
}

.checkout-form-grid {
    margin-top: 4px;
}

.field-stack--full {
    grid-column: 1 / -1;
}

.field-textarea--compact {
    min-height: 74px;
}

.checkout-location-card {
    margin-top: 4px;
}

.checkout-shortcuts {
    display: grid;
    gap: 12px;
    margin: 16px 0 6px;
}

.checkout-shortcuts-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-shortcuts-head p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.checkout-shortcuts-grid {
    display: grid;
    gap: 10px;
}

.checkout-shortcut-card {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.checkout-shortcut-card:hover {
    border-color: var(--accent-soft);
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.checkout-shortcut-card.is-selected {
    border-color: var(--accent);
    background: rgba(40, 116, 240, 0.08);
    box-shadow: 0 0 0 1px rgba(40, 116, 240, 0.12);
}

.checkout-shortcut-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-shortcut-top strong {
    color: var(--text);
}

.checkout-shortcut-top span,
.checkout-shortcut-card small,
.checkout-shortcut-meta {
    color: var(--muted);
}

.checkout-shortcut-top span {
    font-size: 0.82rem;
    font-weight: 700;
}

.checkout-shortcut-card p {
    margin: 0;
    line-height: 1.6;
}

.checkout-shortcut-meta {
    display: flex;
    gap: 8px 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-card-header h2,
.payment-panel-heading h2 {
    overflow-wrap: anywhere;
}

.summary-row {
    gap: 12px;
}

.summary-row strong {
    text-align: right;
}

.payment-mini-card p {
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .payment-page,
    .order-detail-page,
    .cart-page {
        gap: 14px;
    }

    .payment-panel,
    .order-detail-box,
    .summary-box,
    .order-card,
    .cart-card {
        padding: 16px;
    }

    .order-item-row,
    .order-summary-list li,
    .summary-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-row strong,
    .order-item-row strong {
        text-align: left;
    }

    .order-item-left {
        align-items: flex-start;
    }

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

    .checkbox-inline--solid {
        align-items: flex-start;
    }

    .checkout-shortcuts-head,
    .checkout-shortcut-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .payment-panel-heading,
    .payment-summary-header,
    .order-card-header,
    .order-actions,
    .inline-status-row,
    .inline-status-row--spaced {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-badge,
    .status-tag {
        max-width: 100%;
    }

    .order-card-items {
        gap: 8px;
    }

    .order-thumb,
    .order-item-avatar {
        width: 46px;
        height: 46px;
    }
}
