/* Store inner pages: cart, orders, account */
.store-page {
    padding: 16px 16px 24px;
    max-width: 100%;
}

.page-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 22px;
    border-radius: 14px;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: var(--shadow-md);
}

.page-hero--cart {
    background: linear-gradient(135deg, #0f2847 0%, #1565a8 55%, #0ca5e4 100%);
}

.page-hero--orders {
    background: linear-gradient(135deg, #1a1a2e 0%, #232f3e 45%, #37475a 100%);
}

.page-hero--account {
    background: linear-gradient(135deg, #131921 0%, #232f3e 50%, #485769 100%);
    flex-direction: column;
    align-items: stretch;
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.page-hero h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.page-hero-content p,
.page-hero p {
    font-size: 14px;
    opacity: 0.92;
    max-width: 480px;
}

.page-hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 14px 22px;
    min-width: 88px;
}

.page-hero-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.page-hero-stat span {
    font-size: 12px;
    opacity: 0.85;
}

.page-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 360px;
}

.page-metric {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.page-metric span {
    display: block;
    font-size: 11px;
    opacity: 0.85;
}

.page-metric strong {
    display: block;
    font-size: 20px;
    margin-top: 4px;
}

.page-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.page-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f0f2f2;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: var(--muted);
}

.page-empty h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.page-empty p {
    color: var(--muted);
    margin-bottom: 20px;
}

.page-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.page-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-card-muted {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.page-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

.page-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.page-panel-head h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7ca00 0%, var(--amazon-orange) 100%);
    color: #0f1111;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.35);
    text-decoration: none;
}

.btn-primary-lg:hover {
    filter: brightness(1.05);
}

.btn-primary-lg:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-block,
.btn-primary-lg.btn-block {
    width: 100%;
}

.btn-ghost-block,
.btn-secondary-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary-block {
    background: var(--header-mid);
    color: #fff;
    border: none;
}

.btn-ghost-block {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-primary-sm,
.btn-secondary-sm,
.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary-sm {
    background: var(--amazon-orange);
    color: #0f1111;
}

.btn-secondary-sm {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost-sm {
    background: transparent;
    color: var(--muted);
}

.btn-text-danger {
    font-size: 13px;
    font-weight: 600;
    color: #c45500;
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.btn-text-danger:hover {
    text-decoration: underline;
}

/* Cart */
.cart-layout {
    display: grid;
    gap: 20px;
}

.cart-line-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.cart-line-thumb {
    flex: 0 0 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7fafa;
    border: 1px solid var(--border);
}

.cart-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cart-line-body {
    flex: 1;
    min-width: 0;
}

.cart-line-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cart-line-body h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.cart-line-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.cart-line-price {
    text-align: right;
}

.cart-line-price strong {
    display: block;
    font-size: 17px;
    color: #b12704;
}

.cart-line-was {
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
}

.cart-line-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.qty-stepper-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f2f2;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.qty-stepper-btn:hover {
    background: #e3e6e6;
}

.qty-stepper-val {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.page-card--sticky {
    position: sticky;
    top: 80px;
}

.page-card--summary {
    background: linear-gradient(180deg, #fff 0%, #f7fafa 100%);
}

.summary-rows {
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
}

.summary-row strong {
    color: var(--text);
}

.summary-row--total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 16px;
    font-weight: 700;
}

.summary-row--total strong {
    font-size: 20px;
    color: #b12704;
}

.summary-note {
    margin-bottom: 16px;
}

.address-pick-list {
    display: grid;
    gap: 10px;
}

.address-pick {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.address-pick:has(input:checked),
.address-pick.is-selected {
    border-color: var(--primary-dark);
    background: #f0f9ff;
}

.address-pick input {
    margin-top: 4px;
    accent-color: var(--primary-dark);
}

.address-pick-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.address-pick-body strong {
    font-size: 14px;
}

.address-pick-line {
    color: var(--muted);
}

.address-pick-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    background: #e7f2ff;
    color: #0059a8;
    padding: 2px 8px;
    border-radius: 99px;
    margin-top: 4px;
    width: fit-content;
}

/* Orders */
.orders-list {
    display: grid;
    gap: 18px;
}

.order-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.order-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.order-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.order-card-id h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0;
}

.order-card-date {
    font-size: 13px;
    color: var(--muted);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge--delivered {
    background: #d4edda;
    color: #155724;
}

.status-badge--in-transit,
.status-badge--processing,
.status-badge--packed {
    background: #fff3cd;
    color: #856404;
}

.status-badge--cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.order-card-stats div {
    background: #f7fafa;
    border-radius: 8px;
    padding: 10px 12px;
}

.order-card-stats span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.order-card-stats strong {
    font-size: 15px;
    margin-top: 4px;
}

.order-card-product {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #f7fafa;
    border-radius: 10px;
    margin-bottom: 14px;
}

.order-card-product-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.order-card-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.order-card-product h3 {
    font-size: 14px;
    font-weight: 700;
}

.order-card-product p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.order-card-address {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
}

.order-card-address i {
    color: var(--amazon-orange);
    font-size: 18px;
    flex-shrink: 0;
}

.order-card-address strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.order-card-address em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
}

.order-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 16px 8px;
    background: #f7fafa;
    border-radius: 10px;
}

.order-track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    flex: 0 0 auto;
}

.order-track-step.done {
    color: #067d62;
}

.order-track-step.is-current {
    color: var(--primary-dark);
}

.order-track-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d5d9d9;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #d5d9d9;
}

.order-track-step.done .order-track-dot {
    background: #067d62;
    box-shadow: 0 0 0 1px #067d62;
}

.order-track-step.is-current .order-track-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.35);
}

.order-track-line {
    flex: 1;
    height: 3px;
    background: #d5d9d9;
    margin: 0 4px;
    margin-bottom: 22px;
    min-width: 12px;
}

.order-track-line.is-done {
    background: #067d62;
}

.order-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-card-cancelled {
    font-size: 13px;
    color: #c45500;
    padding: 12px;
    background: #fff8ee;
    border-radius: 8px;
}

/* Account */
.account-hero-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--amazon-orange), #ff6f00);
    color: #0f1111;
    font-size: 22px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.account-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
}

.account-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.account-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.account-kpi > i {
    font-size: 24px;
    color: var(--amazon-orange);
}

.account-kpi strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.account-kpi span {
    font-size: 12px;
    color: var(--muted);
}

.account-layout {
    display: grid;
    gap: 20px;
}

.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.account-detail label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 4px;
}

.account-detail strong {
    font-size: 14px;
}

.account-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.perf-bars {
    display: grid;
    gap: 16px;
}

.perf-bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.perf-bar-track {
    height: 8px;
    background: #e3e6e6;
    border-radius: 99px;
    overflow: hidden;
}

.perf-bar-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--amazon-orange));
    border-radius: 99px;
}

.address-stack-compact {
    display: grid;
    gap: 10px;
}

.address-compact-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f7fafa;
    border-radius: 8px;
    font-size: 13px;
}

.address-compact-item i {
    color: var(--primary-dark);
    font-size: 18px;
}

.address-compact-item strong {
    display: block;
    margin-bottom: 2px;
}

.address-compact-item span {
    color: var(--muted);
}

.account-quick-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.account-quick-nav:last-child {
    border-bottom: none;
}

.account-quick-nav i:first-child {
    font-size: 18px;
    color: var(--primary-dark);
    width: 24px;
}

.account-quick-nav span {
    flex: 1;
}

.account-quick-nav em {
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.account-quick-nav .bi-chevron-right {
    color: var(--muted);
    font-size: 14px;
}

.account-quick-nav:hover {
    background: #f7fafa;
}

.account-support-card .page-card-muted {
    margin-bottom: 14px;
}

@media (min-width: 992px) {
    .store-page {
        padding: 20px 24px 32px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .page-hero-metrics {
        max-width: none;
        flex: 0 0 auto;
    }

    .page-hero--orders,
    .page-hero--cart {
        flex-direction: row;
        align-items: flex-end;
    }

    .cart-layout {
        grid-template-columns: 1fr 360px;
        align-items: start;
    }

    .account-kpi-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .account-layout {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }

    .account-aside .page-card {
        position: sticky;
        top: 80px;
    }
}

@media (min-width: 1400px) {
    .store-page {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Product detail page */
.product-detail-page {
    padding-bottom: 32px;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.product-breadcrumb a {
    color: var(--primary-dark);
    font-weight: 600;
    transition: color 0.15s ease;
}

.product-breadcrumb a:hover {
    color: var(--primary);
}

.product-breadcrumb i {
    font-size: 10px;
    opacity: 0.5;
}

.product-breadcrumb span[aria-current] {
    color: var(--text);
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    animation: productDetailIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes productDetailIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product gallery — Flipkart-style main + thumbnails */
.product-detail-gallery {
    position: relative;
    min-width: 0;
}

.product-gallery-shell {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 76px;
    max-height: min(520px, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 4px 2px 0;
    scrollbar-width: thin;
}

.product-gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.product-gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    padding: 0;
    margin: 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    display: block;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.product-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #fafafa;
    pointer-events: none;
}

.product-gallery-thumb:hover {
    border-color: #99f6e4;
    transform: translateY(-1px);
}

.product-gallery-thumb.is-active {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.product-gallery-stage {
    position: relative;
    flex: 1;
    min-width: 0;
}

.product-gallery-main {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-height: min(520px, 70vh);
    background: linear-gradient(165deg, #fafafa 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-gallery-main img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1d21;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.product-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.product-gallery-nav--prev {
    left: 12px;
}

.product-gallery-nav--next {
    right: 12px;
}

.product-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.product-detail-gallery .product-deal-tag--lg {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
}

.product-detail-gallery--multi .product-gallery-stage {
    min-height: 280px;
}

@media (max-width: 767px) {
    .product-gallery-shell {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .product-gallery-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 4px;
        gap: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .product-gallery-thumb {
        scroll-snap-align: start;
    }

    .product-gallery-main {
        max-height: min(380px, 55vh);
    }

    .product-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.product-deal-tag--lg {
    top: 12px;
    left: 12px;
    font-size: 12px;
    padding: 5px 12px;
}

.product-badge--lg {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 4px;
}

.product-detail-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.product-detail-origin {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 12px;
}

.product-rating--lg {
    margin-bottom: 14px;
}

.product-rating--lg .rating-text {
    font-size: 14px;
    font-weight: 700;
}

.product-detail-reviews {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.product-detail-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.product-price--xl {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.product-detail-save {
    font-size: 13px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 99px;
}

.product-detail-cart--wide .product-cart-action {
    height: 52px;
    padding-top: 0;
}

.product-detail-cart--wide .product-add-btn,
.product-detail-cart--wide .product-qty-stepper {
    height: 52px;
}

.product-detail-cart--wide .product-add-btn {
    font-size: 15px;
    border-radius: 14px;
}

.product-detail-cart--wide .product-qty-stepper {
    border-radius: 14px;
}

.product-detail-cart--wide .product-qty-btn {
    flex: 0 0 52px;
}

.product-detail-highlights {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}

.product-detail-highlights i {
    color: #2d9d6b;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.product-detail-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-detail-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.product-detail-trust i {
    color: var(--primary-dark);
}

.product-detail-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 18px;
    animation: productDetailIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s backwards;
}

.product-detail-section h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.product-detail-description p {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    margin: 0 0 12px;
}

.product-detail-description p:last-child {
    margin-bottom: 0;
}

.product-spec-table {
    margin: 0;
    display: grid;
    gap: 0;
}

.product-spec-table > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.product-spec-table > div:last-child {
    border-bottom: none;
}

.product-spec-table dt {
    font-weight: 600;
    color: var(--muted);
}

.product-spec-table dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.product-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.product-related-head h2 {
    margin: 0;
}

.product-related-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-related-all:hover {
    color: var(--primary);
}

.products-grid--related {
    margin-bottom: 0;
}

.product-not-found {
    margin-top: 40px;
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        padding: 24px;
        gap: 36px;
        align-items: start;
    }

    .product-detail-title {
        font-size: 28px;
    }

    .products-grid--related {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .product-detail-page {
        max-width: 1200px;
        margin: 0 auto;
    }

    .product-detail {
        grid-template-columns: minmax(420px, 1.2fr) minmax(320px, 1fr);
    }

    .product-gallery-main {
        max-height: 480px;
    }
}

/* Checkout & payment */
.page-hero--checkout {
    background: linear-gradient(135deg, #0d3d2e 0%, #1a7a4c 45%, #2d9d6b 100%);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.checkout-section {
    margin-bottom: 0;
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.payment-method-option {
    display: block;
    cursor: pointer;
}

.payment-method-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.payment-method-option input:checked + .payment-method-card {
    border-color: #2d9d6b;
    background: #f0faf4;
    box-shadow: 0 0 0 3px rgba(45, 157, 107, 0.15);
}

.payment-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #1a7a4c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.payment-method-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-text strong {
    font-size: 14px;
}

.payment-method-text span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.upi-pay-panel {
    background: linear-gradient(165deg, #f8faf9 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    animation: productDetailIn 0.4s ease;
}

.upi-pay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.upi-pay-header i {
    font-size: 28px;
    color: #1a7a4c;
}

.upi-pay-header strong {
    display: block;
    font-size: 15px;
}

.upi-pay-header span {
    font-size: 12px;
    color: var(--muted);
}

.upi-pay-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.upi-pay-amount strong {
    font-size: 20px;
    color: #0f1111;
}

.upi-pay-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.upi-pay-id code {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed #2d9d6b;
    word-break: break-all;
}

.upi-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #2d9d6b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.upi-pay-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.upi-confirm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.upi-confirm-check input {
    margin-top: 3px;
    accent-color: #2d9d6b;
}

.checkout-place-btn {
    margin-top: 4px;
}

.checkout-place-btn--upi {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.checkout-items-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.checkout-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f4ef;
    padding: 4px;
}

.checkout-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item-name {
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-item-meta {
    font-size: 11px;
    color: var(--muted);
}

.order-success-payment-status {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr 340px;
    }
}
