* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #0f172a;
    background: #f8fafc;
}

.storefront-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.storefront-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
    padding: 84px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: bold;
}

.storefront-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
}

.hero-text {
    max-width: 620px;
    margin: 20px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
}

.button-primary {
    background: #ffffff;
    color: #0f172a;
}

.button-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.storefront-section {
    padding: 46px 0;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h2 {
    margin: 0;
    font-size: 30px;
}

.section-header p {
    margin: 8px 0 0;
    color: #64748b;
}

.category-grid,
.product-grid {
    display: grid;
    gap: 18px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.category-card,
.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.category-card {
    padding: 22px;
}

.category-card h3 {
    margin: 0 0 8px;
}

.category-card p {
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.5;
}

.category-card span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: bold;
}

.product-image-wrap {
    position: relative;
    height: 230px;
    background: #e2e8f0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: bold;
}

.featured-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
}

.product-card-body {
    padding: 20px;
}

.product-category {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: bold;
}

.product-card h3 {
    margin: 0;
    font-size: 20px;
}

.product-description {
    min-height: 54px;
    margin: 12px 0 18px;
    color: #64748b;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-meta strong {
    font-size: 22px;
}

.stock-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.stock-in {
    background: #dcfce7;
    color: #166534;
}

.stock-low {
    background: #fef3c7;
    color: #92400e;
}

.stock-out {
    background: #fee2e2;
    color: #991b1b;
}

.storefront-footer {
    padding: 28px 0;
    background: #0f172a;
    color: #cbd5e1;
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.product-card-link:hover h3 {
    text-decoration: underline;
}

.storefront-product-header {
    background: #0f172a;
    padding: 18px 0;
}

.back-link {
    color: #dbeafe;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 520px) 1fr;
    gap: 42px;
    padding: 48px 0;
    align-items: start;
}

.product-detail-media {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.product-detail-photo {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-placeholder {
    min-height: 420px;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: bold;
    background: #e2e8f0;
}

.product-detail-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.product-detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.product-sku {
    margin: 14px 0 0;
    color: #64748b;
}

.product-detail-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 26px 0;
}

.product-detail-price-row strong {
    font-size: 34px;
}

.product-detail-description {
    color: #334155;
    line-height: 1.7;
    font-size: 16px;
}

.product-detail-actions {
    margin-top: 28px;
}

.storefront-cart-button {
    min-height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.storefront-cart-button.disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 820px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

.category-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.category-card-link:hover h3 {
    text-decoration: underline;
}

.category-page-hero {
    padding: 48px 0 12px;
}

.category-page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
}

.category-page-hero p {
    max-width: 680px;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 18px;
    line-height: 1.6;
}

.dark-eyebrow {
    color: #2563eb;
}

.storefront-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cart-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.cart-link:hover {
    text-decoration: underline;
}

.add-to-cart-form {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.add-to-cart-form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-weight: bold;
}

.add-to-cart-form input {
    width: 110px;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 12px;
}

.storefront-alert {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: bold;
}

.storefront-alert.success {
    background: #dcfce7;
    color: #166534;
}

.storefront-alert.danger {
    background: #fee2e2;
    color: #991b1b;
}

.cart-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    margin-bottom: 48px;
}

.dark-button {
    background: #0f172a;
    color: #ffffff;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
    padding-bottom: 48px;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: bold;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h2 {
    margin: 0;
    font-size: 20px;
}

.cart-item-info h2 a {
    color: #0f172a;
    text-decoration: none;
}

.cart-item-info h2 a:hover {
    text-decoration: underline;
}

.cart-inventory-note {
    color: #64748b;
    font-size: 14px;
}

.cart-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cart-item-actions form {
    display: flex;
    gap: 8px;
    align-items: end;
}

.cart-item-actions label {
    display: grid;
    gap: 4px;
    color: #475569;
    font-size: 13px;
    font-weight: bold;
}

.cart-item-actions input {
    width: 86px;
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 10px;
}

.cart-small-button,
.cart-remove-button {
    min-height: 38px;
    border: none;
    border-radius: 999px;
    padding: 0 14px;
    font-weight: bold;
    cursor: pointer;
}

.cart-small-button {
    background: #0f172a;
    color: #ffffff;
}

.cart-remove-button {
    background: #fee2e2;
    color: #991b1b;
}

.cart-line-total {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.cart-summary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    margin-top: 0;
}

.cart-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-summary th,
.cart-summary td {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.cart-summary td {
    text-align: right;
}

.summary-total th,
.summary-total td {
    font-size: 18px;
    color: #0f172a;
}

.full-width-button {
    width: 100%;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;
    }

    .cart-line-total {
        grid-column: 1 / -1;
    }

    .cart-item-image {
        width: 90px;
        height: 90px;
    }
}

.checkout-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 28px;
    align-items: start;
    padding-bottom: 56px;
}

.checkout-form-panel,
.checkout-success-panel {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.checkout-form-panel h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.checkout-form-panel h2:not(:first-child) {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkout-form-panel .form-group {
    display: grid;
    min-width: 0;
    gap: 7px;
    margin-bottom: 16px;
}

.checkout-form-panel .form-group > label {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.checkout-form-panel input[type="text"],
.checkout-form-panel input[type="email"],
.checkout-form-panel input[type="tel"],
.checkout-form-panel input[type="number"],
.checkout-form-panel input[type="password"],
.checkout-form-panel select,
.checkout-form-panel textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 13px;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-form-panel select {
    cursor: pointer;
}

.checkout-form-panel textarea {
    min-height: 110px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.checkout-form-panel input[type="text"]:focus,
.checkout-form-panel input[type="email"]:focus,
.checkout-form-panel input[type="tel"]:focus,
.checkout-form-panel input[type="number"]:focus,
.checkout-form-panel input[type="password"]:focus,
.checkout-form-panel select:focus,
.checkout-form-panel textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.shipping-method-list {
    display: grid;
    gap: 12px;
}

.shipping-method-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-weight: 400;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.shipping-method-option:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.shipping-method-option:has(input[type="radio"]:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shipping-method-option input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.shipping-method-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    width: 100%;
}

.shipping-method-details {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.shipping-method-details strong {
    color: #0f172a;
    font-size: 16px;
}

.shipping-method-content small {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.shipping-method-price {
    flex: 0 0 auto;
    color: #0f172a;
    font-size: 16px;
    white-space: nowrap;
}

.checkout-items {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    color: #334155;
    line-height: 1.45;
}

.checkout-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.checkout-item strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

.checkout-note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.checkout-success-panel {
    max-width: 760px;
    margin: 48px auto;
    text-align: center;
}

.checkout-success-panel h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 58px);
}

.checkout-layout .cart-summary {
    width: 100%;
    min-width: 0;
}

.storefront-cart-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout .cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .checkout-form-panel,
    .checkout-success-panel,
    .cart-summary {
        border-radius: 16px;
        padding: 20px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .shipping-method-content {
        gap: 12px;
    }

    .shipping-method-option {
        padding: 14px;
    }
}

.order-confirmation-panel {
    margin-bottom: 24px;
}

.order-confirmation-number {
    display: inline-grid;
    gap: 6px;
    margin-top: 20px;
    padding: 16px 22px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1e3a8a;
}

.order-confirmation-number span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: bold;
}

.order-confirmation-number strong {
    font-size: 24px;
}

.order-confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.confirmation-table {
    width: 100%;
    border-collapse: collapse;
}

.confirmation-table th,
.confirmation-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: left;
}

.confirmation-table th {
    width: 140px;
    color: #475569;
}

.order-items-panel {
    margin-bottom: 48px;
}

.confirmation-items {
    display: grid;
    gap: 16px;
}

.confirmation-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.confirmation-item-image {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: bold;
}

.confirmation-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirmation-item h3 {
    margin: 0 0 6px;
}

.confirmation-item p {
    margin: 4px 0;
    color: #64748b;
}

.confirmation-item-pricing {
    text-align: right;
}

.confirmation-item-pricing strong {
    font-size: 20px;
    color: #0f172a;
}

.confirmation-actions {
    margin-top: 24px;
}

@media (max-width: 820px) {
    .order-confirmation-grid,
    .confirmation-item {
        grid-template-columns: 1fr;
    }

    .confirmation-item-pricing {
        text-align: left;
    }
}

.tracking-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}

.tracking-help-panel {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 22px;
    padding: 24px;
    color: #1e3a8a;
}

.tracking-help-panel h2 {
    margin-top: 0;
}

.tracking-help-panel p {
    line-height: 1.6;
}

.tracking-result-panel {
    margin-top: 24px;
}

.tracking-status-wrap {
    margin-top: 18px;
}

.tracking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: bold;
    text-transform: capitalize;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-paid,
.status-shipped {
    background: #dcfce7;
    color: #166534;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.dark-outline-button {
    background: transparent;
    color: #0f172a;
    border: 1px solid #0f172a;
}

@media (max-width: 900px) {
    .tracking-layout {
        grid-template-columns: 1fr;
    }
}

.storefront-timeline {
    display: grid;
    gap: 18px;
}

.storefront-timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: start;
}

.storefront-timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px #dbeafe;
}

.storefront-timeline-item p {
    margin: 6px 0;
    color: #475569;
}

.storefront-timeline-item span {
    color: #64748b;
    font-size: 13px;
}

.storefront-timeline {
    display: grid;
    gap: 18px;
}

.storefront-timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: start;
}

.storefront-timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px #dbeafe;
}

.storefront-timeline-item p {
    margin: 6px 0;
    color: #475569;
}

.storefront-timeline-item span {
    color: #64748b;
    font-size: 13px;
}

.storefront-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 18px 0;
}

.storefront-button {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}
/* ==================================================================
   Alasne Public Storefront Experience — Phase 1
   Shared shell + catalog polish
   ------------------------------------------------------------------
   This section intentionally OVERRIDES the historical storefront
   styles above rather than deleting them. Existing cart, checkout,
   tracking, account, and return views therefore keep their class
   contracts while inheriting the new visual system.
   ================================================================== */

:root {
    --sf-bg: #f6f8fb;
    --sf-surface: #ffffff;
    --sf-surface-subtle: #f9fafb;
    --sf-ink: #101828;
    --sf-text: #344054;
    --sf-muted: #667085;
    --sf-border: #e4e7ec;
    --sf-border-strong: #d0d5dd;
    --sf-accent: #2563eb;
    --sf-accent-strong: #1d4ed8;
    --sf-accent-soft: #eff6ff;
    --sf-success: #067647;
    --sf-success-soft: #ecfdf3;
    --sf-warning: #b54708;
    --sf-warning-soft: #fffaeb;
    --sf-danger: #b42318;
    --sf-danger-soft: #fef3f2;
    --sf-radius-sm: 12px;
    --sf-radius-md: 18px;
    --sf-radius-lg: 28px;
    --sf-shadow-sm:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 2px 8px rgba(16, 24, 40, 0.05);
    --sf-shadow-md:
        0 8px 24px rgba(16, 24, 40, 0.08),
        0 2px 8px rgba(16, 24, 40, 0.04);
    --sf-shadow-lg:
        0 24px 60px rgba(16, 24, 40, 0.13);
    --sf-content: 1240px;
    --sf-transition: 160ms ease;
}

html {
    scroll-behavior: smooth;
}

body.storefront-site,
body {
    margin: 0;
    min-height: 100vh;
    color: var(--sf-ink);
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.045),
            transparent 34rem
        ),
        var(--sf-bg);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
    font: inherit;
}

.storefront-container {
    width: min(
        var(--sf-content),
        calc(100% - 40px)
    );
    margin-inline: auto;
}

/* Accessibility */
.sf-skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--sf-ink);
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.sf-skip-link:focus {
    transform: translateY(0);
}

:where(
    a,
    button,
    input,
    select,
    textarea,
    summary
):focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.34);
    outline-offset: 3px;
}

/* Shared public shell */
.sf-site-header {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid var(--sf-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--sf-shadow-sm);
}

.sf-utility-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #101828;
    color: #d0d5dd;
    font-size: 12px;
}

.sf-utility-inner {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sf-utility-nav {
    display: flex;
    gap: 18px;
}

.sf-utility-nav a {
    color: #f2f4f7;
    text-decoration: none;
}

.sf-utility-nav a:hover {
    text-decoration: underline;
}

.sf-main-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.sf-header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--sf-ink);
    text-decoration: none;
}

.sf-brand-mark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            var(--sf-accent),
            #4f46e5
        );
    color: #ffffff;
    box-shadow:
        0 9px 20px rgba(37, 99, 235, 0.22);
    font-size: 18px;
    font-weight: 850;
}

.sf-brand-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.sf-brand-copy strong {
    overflow: hidden;
    color: var(--sf-ink);
    font-size: 17px;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-brand-copy small {
    color: var(--sf-muted);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.sf-primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sf-primary-nav > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 14px;
    border-radius: 12px;
    color: var(--sf-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background var(--sf-transition),
        color var(--sf-transition);
}

.sf-primary-nav > a:hover {
    background: var(--sf-accent-soft);
    color: var(--sf-accent-strong);
}

.sf-cart-link {
    margin-left: 6px;
    background: var(--sf-ink);
    color: #ffffff !important;
}

.sf-cart-link:hover {
    background: #1d2939 !important;
    color: #ffffff !important;
}

.sf-cart-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding-inline: 5px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--sf-ink);
    font-size: 11px;
    font-weight: 850;
}

.sf-mobile-nav {
    display: none;
    position: relative;
}

.sf-mobile-nav summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--sf-border-strong);
    border-radius: 12px;
    background: var(--sf-surface);
    color: var(--sf-ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    list-style: none;
}

.sf-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.sf-mobile-nav nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--sf-shadow-lg);
}

.sf-mobile-nav nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sf-border);
    color: var(--sf-text);
    font-weight: 700;
    text-decoration: none;
}

.sf-mobile-nav nav a:last-child {
    border-bottom: 0;
}

.sf-mobile-nav nav a:hover {
    background: var(--sf-accent-soft);
    color: var(--sf-accent-strong);
}

/* Footer */
.sf-site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #101828;
    color: #98a2b3;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    gap: 42px;
    align-items: start;
    padding-block: 46px;
}

.sf-footer-brand {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 18px;
}

.sf-footer-grid p {
    margin: 0;
    max-width: 420px;
    line-height: 1.65;
}

.sf-footer-links {
    display: grid;
    gap: 10px;
}

.sf-footer-links a {
    color: #eaecf0;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.sf-footer-links a:hover {
    text-decoration: underline;
}

.sf-footer-meta {
    color: #667085;
    font-size: 13px;
}

/* Catalog hero */
.storefront-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 86px;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(96, 165, 250, 0.30),
            transparent 22rem
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(129, 140, 248, 0.20),
            transparent 25rem
        ),
        linear-gradient(
            135deg,
            #101828 0%,
            #172554 58%,
            #1e3a8a 100%
        );
    color: #ffffff;
}

.storefront-hero::after {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 36px 36px;
    content: "";
    pointer-events: none;
}

.storefront-hero > .storefront-container {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 14px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dark-eyebrow {
    color: var(--sf-accent);
}

.storefront-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(44px, 7vw, 78px);
    font-weight: 820;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero-text {
    max-width: 660px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button-primary,
.button-secondary,
.storefront-cart-button,
.dark-button,
.checkout-link-button {
    transition:
        transform var(--sf-transition),
        box-shadow var(--sf-transition),
        background var(--sf-transition),
        color var(--sf-transition),
        border-color var(--sf-transition);
}

.button-primary,
.button-secondary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 750;
    text-decoration: none;
}

.storefront-hero .button-primary {
    background: #ffffff;
    color: #101828;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.16);
}

.storefront-hero .button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.button-primary:hover,
.button-secondary:hover,
.storefront-cart-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* Page sections */
.storefront-section {
    padding: 58px 0;
}

.section-header {
    margin-bottom: 26px;
}

.section-header h1,
.section-header h2 {
    margin: 0;
    color: var(--sf-ink);
    letter-spacing: -0.025em;
}

.section-header h1 {
    font-size: clamp(34px, 5vw, 52px);
}

.section-header h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.section-header p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--sf-muted);
    line-height: 1.65;
}

.category-page-hero {
    padding: 54px 0 16px;
}

.category-page-hero h1 {
    margin: 0;
    color: var(--sf-ink);
    font-size: clamp(38px, 6vw, 62px);
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.category-page-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--sf-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* Cards */
.category-grid,
.product-grid {
    display: grid;
    gap: 22px;
}

.category-grid {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(230px, 1fr)
        );
}

.product-grid {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(255px, 1fr)
        );
}

.category-card,
.product-card {
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
    transition:
        transform var(--sf-transition),
        box-shadow var(--sf-transition),
        border-color var(--sf-transition);
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: var(--sf-shadow-md);
}

/* Keyboard focus for product cards.
   The actual focusable link sits inside an overflow-hidden article,
   so draw the visible focus ring on the parent card instead. */
.product-card:focus-within {
    border-color: var(--sf-accent);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.28),
        var(--sf-shadow-md);
}

.product-card-link:focus-visible {
    outline: none;
}

.category-card {
    padding: 24px;
}

.category-card h3 {
    margin: 0 0 8px;
    color: var(--sf-ink);
    font-size: 20px;
    letter-spacing: -0.02em;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--sf-muted);
    line-height: 1.6;
}

.category-card span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--sf-accent-soft);
    color: var(--sf-accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.category-card-link,
.product-card-link {
    color: inherit;
    text-decoration: none;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #eef2f6,
            #e4e7ec
        );
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 260ms ease;
}

.product-card:hover .product-image {
    transform: scale(1.025);
}

.product-image-placeholder {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--sf-muted);
    font-weight: 750;
}

.featured-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--sf-warning);
    box-shadow: var(--sf-shadow-sm);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.product-card-body {
    padding: 20px;
}

.product-category {
    margin: 0 0 7px;
    color: var(--sf-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.product-card h3 {
    margin: 0;
    color: var(--sf-ink);
    font-size: 19px;
    letter-spacing: -0.018em;
}

.product-description {
    min-height: 48px;
    margin: 10px 0 18px;
    color: var(--sf-muted);
    line-height: 1.55;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-meta strong {
    color: var(--sf-ink);
    font-size: 21px;
    letter-spacing: -0.02em;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.stock-in {
    background: var(--sf-success-soft);
    color: var(--sf-success);
}

.stock-low {
    background: var(--sf-warning-soft);
    color: var(--sf-warning);
}

.stock-out {
    background: var(--sf-danger-soft);
    color: var(--sf-danger);
}

/* Product detail */
.storefront-product-header {
    border-bottom: 1px solid var(--sf-border);
    background: #ffffff;
    padding: 13px 0;
}

.storefront-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.back-link,
.cart-link {
    color: var(--sf-text);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.back-link:hover,
.cart-link:hover {
    color: var(--sf-accent-strong);
    text-decoration: underline;
}

.product-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 520px)
        minmax(0, 1fr);
    gap: 42px;
    padding: 58px 0;
    align-items: start;
}

.product-detail-media,
.product-detail-info,
.cart-empty,
.cart-item,
.cart-summary,
.checkout-form-panel,
.checkout-success-panel,
.tracking-card,
.tracking-panel {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.product-detail-media {
    overflow: hidden;
}

.product-detail-info {
    padding: 32px;
}

.product-detail-info h1 {
    margin: 0;
    color: var(--sf-ink);
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.product-sku {
    margin: 13px 0 0;
    color: var(--sf-muted);
    font-size: 13px;
}

.product-detail-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.product-detail-price-row strong {
    color: var(--sf-ink);
    font-size: 34px;
    letter-spacing: -0.03em;
}

.product-detail-description {
    color: var(--sf-text);
    font-size: 16px;
    line-height: 1.75;
}

.add-to-cart-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.add-to-cart-form label {
    display: grid;
    gap: 7px;
    color: var(--sf-text);
    font-size: 13px;
    font-weight: 750;
}

.add-to-cart-form input,
.checkout-form-panel input,
.checkout-form-panel select,
.checkout-form-panel textarea {
    border: 1px solid var(--sf-border-strong);
    border-radius: var(--sf-radius-sm);
    background: #ffffff;
    color: var(--sf-ink);
}

.add-to-cart-form input {
    min-height: 46px;
}

.storefront-cart-button {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--sf-accent);
    color: #ffffff;
    box-shadow:
        0 6px 14px rgba(37, 99, 235, 0.18);
    font-weight: 800;
    cursor: pointer;
}

.storefront-cart-button:hover:not(:disabled) {
    background: var(--sf-accent-strong);
}

.storefront-cart-button:disabled,
.storefront-cart-button.disabled {
    background: #98a2b3;
    box-shadow: none;
    cursor: not-allowed;
}

/* Alerts */
.storefront-alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.storefront-alert.success {
    border-color: #abefc6;
    background: var(--sf-success-soft);
    color: var(--sf-success);
}

.storefront-alert.danger {
    border-color: #fecdca;
    background: var(--sf-danger-soft);
    color: var(--sf-danger);
}

/* Cart / checkout compatibility polish */
.cart-layout,
.checkout-layout {
    gap: 28px;
}

.cart-item {
    padding: 18px;
    box-shadow: var(--sf-shadow-sm);
}

.cart-summary {
    padding: 24px;
    box-shadow: var(--sf-shadow-md);
}

.cart-summary h2,
.checkout-form-panel h2 {
    color: var(--sf-ink);
    letter-spacing: -0.02em;
}

.checkout-form-panel,
.checkout-success-panel {
    padding: 30px;
}

.checkout-form-panel input,
.checkout-form-panel select,
.checkout-form-panel textarea {
    min-height: 47px;
    transition:
        border-color var(--sf-transition),
        box-shadow var(--sf-transition);
}

.checkout-form-panel input:focus,
.checkout-form-panel select:focus,
.checkout-form-panel textarea:focus {
    border-color: var(--sf-accent);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}

.shipping-method-option,
.payment-method-option {
    border-color: var(--sf-border);
    border-radius: 14px;
}

.shipping-method-option:hover,
.payment-method-option:hover {
    border-color: #b8c0cc;
    background: var(--sf-surface-subtle);
}

.checkout-security-note {
    border: 1px solid var(--sf-border);
    background: var(--sf-surface-subtle);
}

/* Friendly empty states */
.cart-empty {
    padding: 38px;
    text-align: center;
}

.cart-empty h1,
.cart-empty h2 {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 920px) {
    .sf-primary-nav {
        display: none;
    }

    .sf-mobile-nav {
        display: block;
    }

    .sf-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sf-footer-meta {
        grid-column: 1 / -1;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .storefront-container {
        width: min(
            100% - 28px,
            var(--sf-content)
        );
    }

    .sf-utility-bar {
        display: none;
    }

    .sf-header-inner {
        min-height: 68px;
    }

    .sf-brand-mark {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .sf-brand-copy small {
        display: none;
    }

    .storefront-hero {
        padding: 66px 0 62px;
    }

    .storefront-section {
        padding: 42px 0;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-layout {
        gap: 22px;
        padding: 36px 0;
    }

    .product-detail-info {
        padding: 22px;
    }

    .sf-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 38px;
    }

    .sf-footer-meta {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==================================================================
   Alasne Public Storefront Experience — Phase 2
   Cart + Checkout Experience
   ================================================================== */

/* Checkout progress */
.checkout-progress-wrap {
    border-bottom: 1px solid var(--sf-border);
    background: #ffffff;
}

.checkout-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 620px;
    margin: 0 auto;
    padding: 18px 0;
    list-style: none;
}

.checkout-progress li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--sf-muted);
    font-size: 13px;
    font-weight: 750;
}

.checkout-progress li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: calc(50% + 46px);
    width: calc(100% - 92px);
    height: 1px;
    background: var(--sf-border-strong);
    content: "";
}

.checkout-progress li span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--sf-border-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--sf-muted);
    font-size: 12px;
    font-weight: 850;
}

.checkout-progress li.is-complete {
    color: var(--sf-success);
}

.checkout-progress li.is-complete span {
    border-color: #abefc6;
    background: var(--sf-success-soft);
    color: var(--sf-success);
}

.checkout-progress li.is-current {
    color: var(--sf-accent-strong);
}

.checkout-progress li.is-current span {
    border-color: var(--sf-accent);
    background: var(--sf-accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.checkout-page-header {
    margin-bottom: 30px;
}

.checkout-page-header h1 {
    max-width: 760px;
}

/* Cart refinement using the existing cart view class contract */
.cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    gap: 30px;
}

.cart-items {
    gap: 18px;
}

.cart-item {
    grid-template-columns: 124px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--sf-shadow-sm);
}

.cart-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--sf-shadow-md);
}

.cart-item-image {
    width: 124px;
    height: 124px;
    border-radius: 16px;
}

.cart-item-info h2 {
    margin-bottom: 6px;
    color: var(--sf-ink);
    font-size: 20px;
    letter-spacing: -0.02em;
}

.cart-inventory-note {
    margin: 7px 0 0;
    color: var(--sf-muted);
    line-height: 1.5;
}

.cart-item-actions {
    margin-top: 16px;
}

.cart-item-actions form {
    align-items: end;
}

.cart-item-actions input {
    min-height: 42px;
    border-color: var(--sf-border-strong);
    border-radius: 10px;
    background: #ffffff;
}

.cart-item-actions input:focus {
    border-color: var(--sf-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    outline: none;
}

.cart-small-button,
.cart-remove-button {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 780;
    transition:
        transform var(--sf-transition),
        background var(--sf-transition),
        box-shadow var(--sf-transition);
}

.cart-small-button {
    background: var(--sf-ink);
}

.cart-small-button:hover {
    transform: translateY(-1px);
    background: #1d2939;
    box-shadow: var(--sf-shadow-sm);
}

.cart-remove-button {
    border: 1px solid #fecdca;
    background: #ffffff;
    color: var(--sf-danger);
}

.cart-remove-button:hover {
    background: var(--sf-danger-soft);
}

.cart-line-total {
    color: var(--sf-ink);
    font-size: 21px;
    letter-spacing: -0.02em;
}

.cart-summary {
    top: 24px;
    padding: 26px;
    border-radius: 20px;
    box-shadow: var(--sf-shadow-md);
}

.cart-summary h2 {
    color: var(--sf-ink);
    font-size: 22px;
    letter-spacing: -0.025em;
}

.cart-summary table {
    margin-bottom: 18px;
}

.cart-summary th {
    color: var(--sf-text);
    font-weight: 650;
}

.cart-summary td {
    color: var(--sf-ink);
    font-weight: 700;
}

.cart-summary .summary-total th,
.cart-summary .summary-total td {
    padding-top: 16px;
    color: var(--sf-ink);
    font-size: 19px;
    font-weight: 850;
}

.cart-summary .storefront-cart-button,
.cart-summary .checkout-link-button,
.cart-summary .full-width-button {
    width: 100%;
}

/* Checkout structure */
.checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 405px);
    gap: 34px;
}

.checkout-form-panel {
    padding: 32px;
    border-radius: 22px;
}

.checkout-section-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 20px;
}

.checkout-section-title:not(:first-child) {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--sf-border);
}

.checkout-section-number {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: var(--sf-accent-soft);
    color: var(--sf-accent-strong);
    font-size: 12px;
    font-weight: 850;
}

.checkout-section-title h2,
.checkout-form-panel .checkout-section-title h2,
.checkout-form-panel .checkout-section-title h2:not(:first-child) {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--sf-ink);
    font-size: 22px;
    line-height: 1.25;
}

.checkout-section-title p {
    margin: 5px 0 0;
    max-width: 620px;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.55;
}

.checkout-grid {
    gap: 16px 18px;
}

.checkout-form-panel .form-group > label {
    color: var(--sf-text);
    font-size: 13px;
    font-weight: 750;
}

.checkout-form-panel input[type="text"],
.checkout-form-panel input[type="email"],
.checkout-form-panel input[type="tel"],
.checkout-form-panel input[type="number"],
.checkout-form-panel input[type="password"],
.checkout-form-panel select,
.checkout-form-panel textarea {
    min-height: 48px;
    border-color: var(--sf-border-strong);
    border-radius: 11px;
    background: #ffffff;
}

.checkout-validation-summary {
    margin: 0 0 26px;
    padding: 18px 20px;
    border: 2px solid #f04438;
    border-radius: 14px;
    background: var(--sf-danger-soft);
    color: var(--sf-danger);
}

.checkout-validation-summary[hidden] {
    display: none;
}

.checkout-validation-summary h2 {
    margin: 0;
    color: #912018;
    font-size: 18px;
    line-height: 1.35;
}

.checkout-validation-summary p {
    margin: 7px 0 10px;
    color: #b42318;
    line-height: 1.5;
}

.checkout-validation-summary ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 20px;
}

.checkout-validation-summary a {
    color: #912018;
    font-weight: 750;
}

.checkout-field-error {
    margin: 7px 0 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.checkout-form-panel .form-group.has-error > label {
    color: #912018;
}

.checkout-form-panel input[aria-invalid="true"],
.checkout-form-panel select[aria-invalid="true"],
.checkout-form-panel textarea[aria-invalid="true"] {
    border-color: #f04438;
    background: #fffafa;
}

.shipping-method-list.has-error .shipping-method-option,
.payment-method-list.has-error .payment-method-option {
    border-color: #f04438;
}

.shipping-method-list,
.payment-method-list {
    display: grid;
    gap: 12px;
}

.shipping-method-option,
.payment-method-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 17px;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--sf-ink);
    cursor: pointer;
    font-weight: 400;
    transition:
        border-color var(--sf-transition),
        box-shadow var(--sf-transition),
        background var(--sf-transition),
        transform var(--sf-transition);
}

.shipping-method-option:hover,
.payment-method-option:hover {
    transform: translateY(-1px);
    border-color: #b8c0cc;
    background: var(--sf-surface-subtle);
}

.shipping-method-option:has(input[type="radio"]:checked),
.payment-method-option:has(input[type="radio"]:checked) {
    border-color: var(--sf-accent);
    background: var(--sf-accent-soft);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.shipping-method-option input[type="radio"],
.payment-method-option input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--sf-accent);
}

.payment-method-content {
    display: grid;
    gap: 5px;
}

.payment-method-content strong,
.shipping-method-details strong {
    color: var(--sf-ink);
    font-size: 15px;
}

.payment-method-content small,
.shipping-method-content small {
    color: var(--sf-muted);
    line-height: 1.5;
}

.shipping-method-price {
    color: var(--sf-ink);
    font-size: 15px;
}

.test-payment-panel {
    margin-top: 14px;
    padding: 17px;
    border: 1px solid #fedf89;
    border-radius: 14px;
    background: var(--sf-warning-soft);
}

.test-payment-panel h3 {
    margin: 0 0 7px;
    color: var(--sf-warning);
    font-size: 16px;
}

.test-payment-panel p {
    margin: 0 0 13px;
    color: #7a2e0e;
    font-size: 13px;
    line-height: 1.55;
}

.checkout-security-note {
    display: grid;
    gap: 5px;
    margin-top: 24px;
    padding: 15px 16px;
    border: 1px solid #b2ddff;
    border-radius: 13px;
    background: #eff8ff;
    color: #175cd3;
    font-size: 13px;
    line-height: 1.55;
}

.checkout-security-note strong {
    color: #1849a9;
}

.checkout-submit-note {
    margin: 14px 0 0;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.55;
}

.checkout-form-panel > form > .storefront-cart-button {
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    font-size: 15px;
}

.checkout-summary-panel {
    padding: 26px;
}

.checkout-summary-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.checkout-summary-heading span {
    display: block;
    margin-bottom: 4px;
    color: var(--sf-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.checkout-summary-heading h2 {
    margin: 0;
}

.checkout-summary-heading a {
    color: var(--sf-accent-strong);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.checkout-items {
    gap: 0;
    margin-bottom: 8px;
    border-top: 1px solid var(--sf-border);
}

.checkout-item {
    padding: 13px 0;
    border-bottom: 1px solid var(--sf-border);
}

.checkout-item span {
    padding-right: 12px;
    color: var(--sf-text);
}

.checkout-item strong {
    color: var(--sf-ink);
}

.checkout-summary-status {
    color: var(--sf-muted);
    font-size: 12px;
}

.checkout-note {
    margin-top: 12px;
    color: var(--sf-muted);
}

.checkout-trust-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--sf-border);
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.5;
    list-style: none;
}

.checkout-trust-list li {
    position: relative;
    padding-left: 20px;
}

.checkout-trust-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--sf-success);
    content: "✓";
    font-weight: 900;
}

/* Confirmation refinement */
.order-confirmation-panel {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    padding: 38px;
}

.order-confirmation-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--sf-success);
    content: "";
}

.checkout-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: var(--sf-success-soft);
    color: var(--sf-success);
    font-size: 28px;
    font-weight: 900;
}

.payment-confirmation-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--sf-success-soft);
    color: var(--sf-success);
    font-weight: 800;
    text-transform: capitalize;
}

.confirmation-payment-note {
    margin-top: 18px;
    padding: 15px 16px;
    border: 1px solid #abefc6;
    border-radius: 13px;
    background: var(--sf-success-soft);
    color: var(--sf-success);
    line-height: 1.55;
}

.confirmation-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-secondary-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--sf-border-strong);
    border-radius: 12px;
    background: #ffffff;
    color: var(--sf-text);
    font-weight: 750;
    text-decoration: none;
}

.checkout-secondary-action:hover {
    border-color: #98a2b3;
    background: var(--sf-surface-subtle);
}

/* Phase 2 responsive */
@media (max-width: 980px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 680px) {
    .checkout-progress {
        padding: 14px 0;
    }

    .checkout-progress li {
        gap: 5px;
        font-size: 11px;
    }

    .checkout-progress li:not(:last-child)::after {
        left: calc(50% + 36px);
        width: calc(100% - 72px);
    }

    .checkout-progress li span {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }

    .checkout-form-panel {
        padding: 22px;
    }

    .checkout-section-title {
        gap: 10px;
    }

    .checkout-section-number {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .cart-item-image {
        width: 84px;
        height: 84px;
    }

    .cart-line-total {
        grid-column: 1 / -1;
        padding-top: 4px;
    }

    .cart-item-actions,
    .cart-item-actions form {
        align-items: stretch;
    }

    .cart-item-actions form {
        flex-wrap: wrap;
    }

    .checkout-summary-heading {
        align-items: center;
    }

    .order-confirmation-panel {
        padding: 28px 22px;
    }

    .confirmation-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .confirmation-actions > a {
        width: 100%;
    }
}

/* ==================================================================
   Alasne Public Storefront Experience — Phase 3
   Customer Account + Order Tracking
   ================================================================== */

/* Customer account authentication */
.account-auth-page {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 64px 0;
}

.account-auth-card {
    padding: 34px;
    border: 1px solid var(--sf-border);
    border-radius: 24px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-md);
}

.account-auth-card-centered {
    text-align: center;
}

.account-auth-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--sf-accent-soft);
    color: var(--sf-accent-strong);
    font-size: 22px;
    font-weight: 900;
}

.account-auth-card-centered .account-auth-icon {
    margin-inline: auto;
}

.account-auth-icon.success {
    background: var(--sf-success-soft);
    color: var(--sf-success);
}

.account-auth-card h1 {
    margin: 0;
    color: var(--sf-ink);
    font-size: clamp(34px, 6vw, 52px);
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.account-auth-intro {
    margin: 14px 0 0;
    color: var(--sf-muted);
    font-size: 16px;
    line-height: 1.7;
}

.account-auth-form {
    display: grid;
    gap: 17px;
    margin-top: 28px;
}

.account-auth-form label,
.account-profile-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--sf-text);
    font-size: 13px;
    font-weight: 760;
}

.account-auth-form input,
.account-profile-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--sf-border-strong);
    border-radius: 11px;
    background: #ffffff;
    color: var(--sf-ink);
    box-sizing: border-box;
    transition:
        border-color var(--sf-transition),
        box-shadow var(--sf-transition);
}

.account-auth-form input:focus,
.account-profile-form input:focus {
    border-color: var(--sf-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    outline: none;
}

.account-primary-button,
.account-secondary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--sf-transition),
        background var(--sf-transition),
        border-color var(--sf-transition),
        box-shadow var(--sf-transition);
}

.account-primary-button {
    border: 1px solid var(--sf-ink);
    background: var(--sf-ink);
    color: #ffffff;
}

.account-primary-button:hover {
    transform: translateY(-1px);
    background: #1d2939;
    box-shadow: var(--sf-shadow-sm);
}

.account-secondary-button {
    border: 1px solid var(--sf-border-strong);
    background: #ffffff;
    color: var(--sf-text);
}

.account-secondary-button:hover {
    transform: translateY(-1px);
    border-color: #98a2b3;
    background: var(--sf-surface-subtle);
}

.account-auth-form .account-primary-button {
    width: 100%;
    min-height: 50px;
}

.account-privacy-note {
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: var(--sf-surface-subtle);
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.6;
}

.account-privacy-note strong {
    color: var(--sf-text);
}

.account-auth-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.account-auth-links a {
    color: var(--sf-accent-strong);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.account-auth-links a:hover {
    text-decoration: underline;
}

.account-auth-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* Customer account shell */
.account-page {
    display: grid;
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 46px 0 18px;
    gap: 22px;
}

.account-hero,
.account-panel {
    border: 1px solid var(--sf-border);
    border-radius: 22px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.account-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

.account-hero h1 {
    margin: 0;
    color: var(--sf-ink);
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.account-hero p:not(.eyebrow) {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--sf-muted);
    line-height: 1.65;
}

.account-hero small {
    display: block;
    margin-top: 12px;
    color: var(--sf-muted);
}

.account-order-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
}

.account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.account-actions form {
    margin: 0;
}

.account-alert {
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.account-alert.success {
    border-color: #abefc6;
    background: var(--sf-success-soft);
    color: var(--sf-success);
}

.account-alert.error {
    border-color: #fecdca;
    background: var(--sf-danger-soft);
    color: var(--sf-danger);
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.account-summary article {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--sf-border);
    border-radius: 17px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.account-summary span {
    display: block;
    margin-bottom: 6px;
    color: var(--sf-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-summary strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--sf-ink);
    font-size: 24px;
    letter-spacing: -0.025em;
}

.account-summary small {
    display: block;
    margin-top: 6px;
    color: var(--sf-muted);
    font-size: 11px;
    line-height: 1.45;
}

.account-panel {
    padding: 26px;
}

.account-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.account-panel-heading h2 {
    margin: 0;
    color: var(--sf-ink);
    font-size: 23px;
    letter-spacing: -0.025em;
}

.account-panel-heading .eyebrow {
    margin-bottom: 5px;
}

.account-panel-heading > small {
    max-width: 360px;
    color: var(--sf-muted);
    line-height: 1.5;
    text-align: right;
}

.account-text-link {
    color: var(--sf-accent-strong);
    font-size: 13px;
    font-weight: 750;
}

.account-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
    gap: 22px;
    align-items: start;
}

/* Order history cards */
.account-order-list {
    display: grid;
    gap: 13px;
}

.account-order-card {
    position: relative;
    display: grid;
    gap: 15px;
    padding: 19px;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    background: var(--sf-surface-subtle);
    transition:
        border-color var(--sf-transition),
        box-shadow var(--sf-transition),
        transform var(--sf-transition);
}

.account-order-card:hover {
    transform: translateY(-1px);
    border-color: #b8c0cc;
    box-shadow: var(--sf-shadow-sm);
}

.account-order-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.account-order-main > div {
    display: grid;
    gap: 3px;
}

.account-order-kicker {
    color: var(--sf-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.account-order-main strong {
    color: var(--sf-ink);
    font-size: 17px;
}

.account-order-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.account-order-meta > span {
    display: grid;
    gap: 3px;
    color: var(--sf-muted);
    font-size: 11px;
}

.account-order-meta strong {
    overflow-wrap: anywhere;
    color: var(--sf-text);
    font-size: 12px;
}

.account-order-open {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 7px;
    color: var(--sf-accent-strong);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.account-order-open:hover {
    text-decoration: underline;
}

/* Statuses */
.account-status-badge,
.account-badge {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.account-status-badge.status-paid,
.account-status-badge.status-completed,
.account-status-badge.status-delivered {
    background: var(--sf-success-soft);
    color: var(--sf-success);
}

.account-status-badge.status-shipped,
.account-status-badge.status-processing {
    background: var(--sf-accent-soft);
    color: var(--sf-accent-strong);
}

.account-status-badge.status-cancelled {
    background: var(--sf-danger-soft);
    color: var(--sf-danger);
}

/* Tables */
.account-mobile-scroll {
    overflow-x: auto;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
}

.account-table th,
.account-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--sf-border);
    text-align: left;
    vertical-align: middle;
}

.account-table th {
    color: var(--sf-muted);
    background: var(--sf-surface-subtle);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.account-table td {
    color: var(--sf-text);
    font-size: 13px;
}

.account-table tbody tr:last-child td {
    border-bottom: 0;
}

.account-table a {
    color: var(--sf-accent-strong);
    font-weight: 750;
}

/* Profile */
.account-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.account-form-wide {
    grid-column: 1 / -1;
}

/* Order detail */
.account-detail-list,
.account-money-list,
.account-shipment-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.account-detail-list > div,
.account-money-list > div,
.account-shipment-card dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--sf-border);
}

.account-detail-list > div:last-child,
.account-money-list > div:last-child,
.account-shipment-card dl > div:last-child {
    border-bottom: 0;
}

.account-detail-list dt,
.account-money-list dt,
.account-shipment-card dt {
    color: var(--sf-muted);
    font-size: 12px;
}

.account-detail-list dd,
.account-money-list dd,
.account-shipment-card dd {
    margin: 0;
    color: var(--sf-ink);
    font-size: 13px;
    font-weight: 750;
    text-align: right;
    overflow-wrap: anywhere;
}

.account-money-list .total {
    margin-top: 4px;
    padding-top: 15px;
    border-top: 2px solid var(--sf-ink);
    border-bottom: 0;
}

.account-money-list .total dt,
.account-money-list .total dd {
    color: var(--sf-ink);
    font-size: 16px;
    font-weight: 850;
}

.account-shipment-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );
    gap: 14px;
}

.account-shipment-card {
    padding: 18px;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    background: var(--sf-surface-subtle);
}

.account-shipment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.account-shipment-heading > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.account-shipment-heading span:first-child {
    color: var(--sf-muted);
    font-size: 11px;
    font-weight: 750;
}

.account-shipment-heading strong {
    color: var(--sf-ink);
    font-size: 18px;
}

/* Timeline */
.account-timeline {
    display: grid;
    gap: 0;
}

.account-timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 22px;
}

.account-timeline-event:not(:last-child)::before {
    position: absolute;
    top: 17px;
    bottom: 0;
    left: 6px;
    width: 2px;
    background: var(--sf-border);
    content: "";
}

.account-timeline-dot {
    position: relative;
    z-index: 1;
    display: block;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: var(--sf-accent);
    box-shadow: 0 0 0 1px #bfdbfe;
}

.account-timeline-event strong {
    color: var(--sf-ink);
}

.account-timeline-event p {
    margin: 5px 0;
    color: var(--sf-muted);
    line-height: 1.55;
}

.account-timeline-event small {
    color: var(--sf-muted);
}

/* Store credit */
.account-credit-page {
    max-width: 980px;
}

.account-credit-balance {
    display: grid;
    justify-items: center;
    padding: 38px;
    border: 1px solid #abefc6;
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            var(--sf-success-soft),
            #ffffff
        );
    box-shadow: var(--sf-shadow-sm);
}

.account-credit-balance span {
    color: var(--sf-success);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-credit-balance strong {
    margin-top: 8px;
    color: #05603a;
    font-size: clamp(42px, 8vw, 64px);
    letter-spacing: -0.05em;
}

.account-credit-balance small {
    color: var(--sf-muted);
}

/* Empty states */
.account-empty-state {
    padding: 28px;
    border: 1px dashed var(--sf-border-strong);
    border-radius: 15px;
    background: var(--sf-surface-subtle);
    color: var(--sf-muted);
    text-align: center;
}

.account-empty-state strong {
    color: var(--sf-ink);
}

.account-empty-state p {
    margin: 7px auto 16px;
    max-width: 520px;
    line-height: 1.55;
}

/* Public tracking refinements */
.tracking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 26px;
}

.tracking-help-panel {
    padding: 26px;
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            var(--sf-accent-soft),
            #ffffff
        );
    box-shadow: var(--sf-shadow-sm);
}

.tracking-help-panel h2 {
    margin: 0 0 10px;
    color: var(--sf-ink);
    font-size: 21px;
}

.tracking-help-panel p {
    color: var(--sf-muted);
    line-height: 1.6;
}

.tracking-result-panel {
    margin-bottom: 22px;
}

.tracking-status-wrap {
    margin-top: 12px;
}

.tracking-status {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--sf-accent-soft);
    color: var(--sf-accent-strong);
    font-size: 12px;
    font-weight: 850;
    text-transform: capitalize;
}

.storefront-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.storefront-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--sf-ink);
    border-radius: 11px;
    background: var(--sf-ink);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.storefront-button-secondary {
    border-color: var(--sf-border-strong);
    background: #ffffff;
    color: var(--sf-text);
}

.storefront-timeline {
    display: grid;
    gap: 0;
}

.storefront-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 20px;
}

.storefront-timeline-item:not(:last-child)::before {
    position: absolute;
    top: 16px;
    bottom: 0;
    left: 6px;
    width: 2px;
    background: var(--sf-border);
    content: "";
}

.storefront-timeline-dot {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: var(--sf-accent);
    box-shadow: 0 0 0 1px #bfdbfe;
}

.storefront-timeline-item p {
    margin: 5px 0;
    color: var(--sf-muted);
    line-height: 1.55;
}

.storefront-timeline-item span {
    color: var(--sf-muted);
    font-size: 12px;
}

/* Phase 3 responsive */
@media (max-width: 960px) {
    .account-hero {
        display: grid;
    }

    .account-actions {
        justify-content: flex-start;
    }

    .account-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-content-grid,
    .tracking-layout {
        grid-template-columns: 1fr;
    }

    .account-order-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .account-page {
        width: min(100% - 28px, 1180px);
        padding-top: 32px;
    }

    .account-auth-page {
        width: min(100% - 28px, 760px);
        padding: 42px 0;
    }

    .account-auth-card,
    .account-hero,
    .account-panel {
        padding: 22px;
    }

    .account-summary,
    .account-profile-form,
    .account-order-meta {
        grid-template-columns: 1fr;
    }

    .account-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-actions > a,
    .account-actions form,
    .account-actions button {
        width: 100%;
    }

    .account-panel-heading {
        display: grid;
    }

    .account-panel-heading > small {
        text-align: left;
    }

    .account-auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-auth-actions > a {
        width: 100%;
    }
}
