/* Easy CMS Ecommerce — storefront */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-market-bar {
    background: #f3f3f5;
    color: #1a1a1a;
    font-size: 0.85rem;
    line-height: 1.3;
    border-bottom: 1px solid #e2e2e6;
}

.shop-market-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.shop-market-badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.shop-market-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.shop-market-switch-link {
    color: inherit;
    text-decoration: none;
    padding: 0.2rem 0.65rem;
    border: 1px solid #cfcfd4;
    border-radius: 999px;
}

.shop-market-switch-link:hover,
.shop-market-switch-link:focus-visible {
    border-color: #1a1a1a;
}

.shop-market-switch-link.is-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}


.button-sm {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

/* ── Shop hero ── */

.shop-hero .page-hero-lead {
    max-width: 36rem;
}

/* ── Shop layout ── */

.shop-page {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.shop-sidebar-panel {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    padding: 1.25rem;
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.shop-sidebar-title {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted, #6b6b7b);
}

.shop-sidebar-copy {
    margin: 0 0 1rem;
    color: var(--muted, #6b6b7b);
    font-size: 0.92rem;
}

.shop-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.shop-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius, 12px);
    color: var(--text, #1a1a22);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.shop-category-link:hover {
    background: var(--accent-light, #ededfe);
    color: var(--accent, #5b5cf6);
}

.shop-category-link.is-active {
    background: var(--accent, #5b5cf6);
    color: #fff;
}

.shop-category-count {
    font-size: 0.78rem;
    opacity: 0.75;
}

.shop-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.shop-brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius, 12px);
    color: var(--text, #1a1a22);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.shop-brand-link .shop-category-count {
    margin-left: auto;
}

.shop-brand-link:hover {
    background: var(--accent-light, #ededfe);
    color: var(--accent, #5b5cf6);
}

.shop-brand-link.is-active {
    background: var(--accent, #5b5cf6);
    color: #fff;
}

.shop-brand-logo {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
}

.shop-brand-hero-logo {
    display: block;
    max-width: 10rem;
    max-height: 3.5rem;
    width: auto;
    height: auto;
    margin: 0 0 0.75rem;
    object-fit: contain;
}

.product-brand-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.product-brand-link:hover {
    text-decoration: underline;
}

.product-eyebrow-sep {
    margin: 0 0.35rem;
    opacity: 0.55;
}

.ecommerce-brand-logo-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1rem;
    align-items: center;
}

.ecommerce-brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--surface, #fff);
    text-decoration: none;
    color: var(--text, #1a1a22);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ecommerce-brand-logo-link:hover {
    border-color: var(--accent, #5b5cf6);
    box-shadow: 0 4px 16px rgba(17, 17, 24, 0.06);
}

.ecommerce-brand-logo-link img {
    max-width: 100%;
    max-height: 3rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ecommerce-brand-logo-fallback {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* ── Toolbar ── */

.shop-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.shop-search {
    display: block;
    margin: 0;
    min-width: 0;
}

.shop-search input[type="search"] {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 2.5rem 0.7rem 2.75rem;
    border: 1px solid rgba(91, 92, 246, 0.22);
    border-radius: 999px;
    background-color: var(--bg, #f7f6f3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b5cf6' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.05rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text, #1a1a22);
    box-shadow: inset 0 1px 2px rgba(17, 17, 24, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.shop-search input[type="search"]::placeholder {
    color: rgba(107, 107, 123, 0.85);
    font-weight: 400;
}

.shop-search input[type="search"]:hover {
    border-color: rgba(91, 92, 246, 0.38);
    background-color: #fff;
}

.shop-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent, #5b5cf6);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(91, 92, 246, 0.16), inset 0 1px 2px rgba(17, 17, 24, 0.03);
}

.shop-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.15rem;
    border-radius: 50%;
    background: rgba(91, 92, 246, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235b5cf6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 0.55rem no-repeat;
    cursor: pointer;
}

.shop-sort select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--bg, #f7f6f3);
    font: inherit;
    color: var(--text, #1a1a22);
}

.shop-results-meta {
    margin: 0 0 1.5rem;
    color: var(--muted, #6b6b7b);
    font-size: 0.92rem;
}

.shop-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.shop-section-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.shop-section-head p {
    margin: 0;
    color: var(--muted, #6b6b7b);
}

.shop-featured {
    margin-bottom: 2.5rem;
}

.shop-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* ── Product grid ── */

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

.shop-card {
    display: flex;
    flex-direction: column;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 20px 60px rgba(17, 17, 24, 0.12));
}

.shop-card-featured {
    border-color: rgba(91, 92, 246, 0.25);
}

.shop-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--accent-light, #ededfe);
    aspect-ratio: 4 / 5;
}

.shop-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-card:hover .shop-card-image {
    transform: scale(1.04);
}

.shop-card-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 1;
}

.shop-badge {
    display: inline-block;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.shop-badge-featured {
    background: var(--dark, #111118);
    color: #fff;
}

.shop-badge-sale {
    background: #166534;
    color: #fff;
}

.shop-badge-stock {
    background: rgba(17, 17, 24, 0.72);
    color: #fff;
}

.shop-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.35rem 1.35rem;
}

.shop-card-category {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent, #5b5cf6);
}

.shop-card-title {
    margin: 0 0 0.55rem;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
}

.shop-card-title a {
    color: var(--text, #1a1a22);
    text-decoration: none;
}

.shop-card-title a:hover {
    color: var(--accent, #5b5cf6);
}

.shop-card-excerpt {
    margin: 0 0 1rem;
    color: var(--muted, #6b6b7b);
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-footer {
    margin-top: auto;
    display: grid;
    gap: 0.85rem;
}

.shop-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.shop-card-actions .ecommerce-add-to-cart {
    margin: 0;
}

.shop-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.shop-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text, #1a1a22);
}

.shop-price-lg {
    font-size: 1.65rem;
}

.shop-price-sale {
    color: #166534;
}

.shop-price-regular {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted, #6b6b7b);
    text-decoration: line-through;
}

.shop-out-of-stock {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
}

.shop-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

/* ── Single product page ── */

.product-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.product-page-top {
    margin-bottom: 1.25rem;
}

.product-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.product-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.45;
}

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

.product-breadcrumb a:hover {
    color: var(--accent, #5b5cf6);
}

.product-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.product-gallery {
    position: sticky;
    top: 1.25rem;
}

.product-gallery-stage {
    position: relative;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    background: var(--accent-light, #ededfe);
    border: 1px solid var(--border, #e8e6e1);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.product-gallery-slide {
    display: none;
    margin: 0;
}

.product-gallery-slide.is-active {
    display: block;
}

.product-gallery-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.product-gallery-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.product-gallery-badges .shop-card-badges {
    position: static;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.product-gallery-thumb {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface, #fff);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.product-gallery-thumb.is-active {
    border-color: var(--accent, #5b5cf6);
}

.product-gallery-thumb:hover {
    transform: translateY(-1px);
}

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

.product-gallery-slide--video .product-gallery-video-wrap,
.product-gallery-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #111118;
}

.product-gallery-video-wrap video,
.product-gallery-video-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: contain;
    background: #111118;
}

.product-gallery-thumb--video {
    position: relative;
}

.product-gallery-thumb--video .product-gallery-thumb-media {
    opacity: 0.82;
}

.product-gallery-thumb-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.product-gallery-thumb-play::before {
    content: "";
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(17, 17, 24, 0.72);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.product-gallery-thumb-play::after {
    content: "";
    position: absolute;
    margin-left: 0.15rem;
    border-top: 0.35rem solid transparent;
    border-bottom: 0.35rem solid transparent;
    border-left: 0.55rem solid #fff;
}

.product-tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent, #5b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.product-tab:not(.is-active) .product-tab-badge {
    background: var(--muted, #6b6b7b);
}

.product-downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    max-width: 36rem;
}

.product-download-item {
    margin: 0;
}

.product-download-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: 14px;
    background: var(--surface, #fff);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.product-download-link:hover {
    border-color: var(--accent, #5b5cf6);
    transform: translateY(-1px);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.product-download-ext {
    flex: 0 0 auto;
    min-width: 3rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: var(--accent-light, #ededfe);
    color: var(--accent, #5b5cf6);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

.product-download-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.product-download-title {
    font-size: 0.98rem;
}

.product-download-meta {
    font-size: 0.82rem;
    color: var(--muted, #6b6b7b);
    word-break: break-all;
}

.product-summary {
    padding: 0.5rem 0;
}

.product-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #5b5cf6);
}

.product-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.product-summary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--muted, #6b6b7b);
    font-size: 0.92rem;
}

.product-star {
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1;
}

.product-star.is-filled,
.product-star.is-half {
    color: #f59e0b;
}

.product-rating-value {
    margin-left: 0.35rem;
    font-weight: 600;
    color: var(--text, #111118);
}

.product-rating-count {
    opacity: 0.75;
}

.product-rating-link,
.product-review-prompt-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.product-rating-link:hover .product-rating-value,
.product-rating-link:hover .product-rating-count,
.product-review-prompt-link:hover {
    color: var(--accent, #5b5cf6);
}

.product-review-prompt {
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.product-price-block {
    margin: 0 0 1rem;
}

.product-price-block .shop-price-lg {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-price-block .shop-price-from {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
    margin-right: 0.25rem;
}

.product-lead {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--muted, #6b6b7b);
}

.product-purchase-form {
    margin-bottom: 1.25rem;
}

.product-option {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
}

.product-option legend {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text, #111118);
}

.product-option-selected {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted, #6b6b7b);
}

.product-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-option-value {
    position: relative;
    margin: 0;
}

.product-option-value input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-pill,
.product-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.9rem;
    border: 1.5px solid var(--border, #e8e6e1);
    border-radius: 999px;
    background: var(--surface, #fff);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.product-swatch {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
    border-radius: 999px;
}

.swatch-black { background: #111118; }
.swatch-heather { background: linear-gradient(135deg, #b8b8c0 0%, #8e8e98 100%); }
.swatch-navy { background: #1e2a4a; }
.swatch-white { background: #fff; border-color: #d4d4d8; }
.swatch-default { background: var(--accent-light, #ededfe); }

.product-option-values--color {
    gap: 0.65rem 1rem;
}

.product-swatch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 3.75rem;
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
}

.product-swatch-wrap .product-swatch {
    margin: 0;
}

.product-swatch-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
    text-align: center;
    line-height: 1.2;
}

.product-option-value input:checked + .product-pill,
.product-option-value input:checked + .product-swatch,
.product-option-value input:checked + .product-swatch-wrap .product-swatch {
    border-color: var(--accent, #5b5cf6);
    box-shadow: 0 0 0 2px rgba(91, 92, 246, 0.18);
}

.product-option-value input:checked + .product-swatch-wrap .product-swatch-label {
    color: var(--accent, #5b5cf6);
}

.product-option-value input:focus-visible + .product-pill,
.product-option-value input:focus-visible + .product-swatch,
.product-option-value input:focus-visible + .product-swatch-wrap .product-swatch {
    outline: 2px solid var(--accent, #5b5cf6);
    outline-offset: 2px;
}

.product-purchase-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.product-purchase-row--simple .product-purchase-form,
.product-purchase-row--simple form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

.product-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border, #e8e6e1);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface, #fff);
}

.product-qty input {
    width: 3rem;
    border: 0;
    text-align: center;
    font-weight: 600;
    background: transparent;
    -moz-appearance: textfield;
}

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

.product-qty-btn {
    width: 2.5rem;
    height: 2.75rem;
    border: 0;
    background: transparent;
    color: var(--text, #111118);
    font-size: 1.1rem;
    cursor: pointer;
}

.product-qty-btn:hover {
    background: var(--accent-light, #ededfe);
}

.product-add-btn {
    flex: 1 1 12rem;
    min-height: 2.75rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 1rem;
}

.product-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.product-stock-note,
.product-variant-hint {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: #b45309;
}

.product-variant-hint {
    color: var(--muted, #6b6b7b);
}

.product-facts {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border, #e8e6e1);
}

.product-facts > div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    font-size: 0.92rem;
}

.product-facts dt {
    margin: 0;
    color: var(--muted, #6b6b7b);
    font-weight: 500;
}

.product-facts dd {
    margin: 0;
    font-weight: 600;
}

.product-facts-tags dd {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-tag {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-light, #ededfe);
    color: var(--accent, #5b5cf6);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.product-trust {
    list-style: none;
    margin: 0;
    padding: 1rem 0 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.product-trust li {
    position: relative;
    padding-left: 1.35rem;
}

.product-trust li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent, #5b5cf6);
    font-weight: 700;
}

.product-tabs-shell {
    margin-bottom: 3rem;
}

.product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.45rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent-light, #ededfe) 72%, var(--surface, #fff));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.product-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    background: transparent;
    padding: 0.72rem 1.15rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted, #6b6b7b);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.product-tab:hover {
    background: rgba(255, 255, 255, 0.82);
    border-color: color-mix(in srgb, var(--border, #e8e6e1) 80%, var(--accent, #5b5cf6));
    color: var(--accent, #5b5cf6);
    transform: translateY(-1px);
}

.product-tab.is-active {
    background: var(--surface, #fff);
    border-color: var(--border, #e8e6e1);
    color: var(--accent, #5b5cf6);
    box-shadow: 0 4px 14px rgba(17, 17, 24, 0.08);
}

.product-tab:focus-visible {
    outline: 2px solid var(--accent, #5b5cf6);
    outline-offset: 2px;
}

.product-tab-panel {
    display: none;
    margin-top: 0.85rem;
    padding: 1.35rem 1.25rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: 14px;
    background: var(--surface, #fff);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.product-tab-panel.is-active {
    display: block;
}

.product-description {
    max-width: 48rem;
    font-size: 1.02rem;
    line-height: 1.75;
}

.product-empty-copy {
    color: var(--muted, #6b6b7b);
}

.product-details-table {
    width: 100%;
    max-width: 36rem;
    border-collapse: collapse;
}

.product-details-table th,
.product-details-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border, #e8e6e1);
    text-align: left;
    vertical-align: top;
}

.product-details-table th {
    width: 8rem;
    color: var(--muted, #6b6b7b);
    font-weight: 600;
}

.product-reviews-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-review {
    padding: 1rem 1.15rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--surface, #fff);
}

.product-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.product-review-author {
    display: grid;
    gap: 0.15rem;
}

.product-review-date {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted, #6b6b7b);
}

.product-notice {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius, 12px);
    font-size: 0.92rem;
}

.product-notice--success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.product-notice--error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.product-review-captcha {
    margin: 0.75rem 0 1rem;
}

.product-review-captcha .captcha-local {
    margin: 0;
}

.product-review p {
    margin: 0;
    color: var(--muted, #6b6b7b);
    line-height: 1.65;
}

.product-review-form {
    max-width: 36rem;
    padding: 1.25rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    background: var(--surface, #fff);
}

.product-review-form h3 {
    margin-top: 0;
}

.product-review-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-related {
    padding-top: 1rem;
    border-top: 1px solid var(--border, #e8e6e1);
}

.product-related-grid {
    margin-top: 1rem;
}

/* ── Cart page ── */

.cart-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.cart-header {
    margin-bottom: 2rem;
}

.cart-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.cart-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.45;
}

.cart-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.cart-breadcrumb a:hover {
    color: var(--accent, #5b5cf6);
}

.cart-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-header h1 {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    letter-spacing: -0.02em;
}

.cart-header-meta {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.75fr);
    gap: 2rem;
    align-items: start;
}

.cart-main {
    display: grid;
    gap: 1.25rem;
}

.cart-line-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-line:hover {
    border-color: rgba(91, 92, 246, 0.22);
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(17, 17, 24, 0.08));
}

.cart-line.is-updating {
    opacity: 0.65;
    pointer-events: none;
}

.cart-line-media {
    display: block;
    border-radius: var(--radius, 12px);
    overflow: hidden;
    background: var(--accent-light, #ededfe);
    aspect-ratio: 1;
    align-self: start;
}

.cart-line-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-line-body {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.cart-line-details {
    display: grid;
    gap: 0.3rem;
}

.cart-line-category {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent, #5b5cf6);
}

.cart-line-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
}

.cart-line-title a {
    color: var(--text, #1a1a22);
    text-decoration: none;
}

.cart-line-title a:hover {
    color: var(--accent, #5b5cf6);
}

.cart-line-variant,
.cart-line-unit {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted, #6b6b7b);
}

.cart-line-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: 999px;
    background: var(--bg, #f7f6f3);
    overflow: hidden;
}

.cart-qty-fixed {
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: 999px;
    background: var(--bg, #f7f6f3);
}

.cart-qty-btn {
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    background: transparent;
    color: var(--text, #1a1a22);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cart-qty-btn:hover {
    background: var(--accent-light, #ededfe);
    color: var(--accent, #5b5cf6);
}

.cart-qty-input {
    width: 2.5rem;
    border: 0;
    background: transparent;
    text-align: center;
    font: inherit;
    font-weight: 600;
    color: var(--text, #1a1a22);
    -moz-appearance: textfield;
}

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

.cart-line-subtotal {
    margin: 0;
    margin-left: auto;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text, #1a1a22);
}

.cart-line-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    background: transparent;
    color: var(--muted, #6b6b7b);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.cart-line-remove:hover {
    color: #b91c1c;
}

.cart-line-remove-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.cart-continue {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent, #5b5cf6);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.cart-continue:hover {
    text-decoration: underline;
}

.cart-summary {
    position: sticky;
    top: 1.25rem;
    padding: 1.5rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.cart-summary-title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.cart-summary-meta {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.cart-summary-items {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--border, #e8e6e1);
    display: grid;
    gap: 0.65rem;
}

.cart-summary-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cart-summary-item-qty {
    font-weight: 600;
    color: var(--muted, #6b6b7b);
}

.cart-summary-item-name {
    color: var(--text, #1a1a22);
}

.cart-summary-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.cart-coupon {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border, #e8e6e1);
}

.cart-coupon-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted, #6b6b7b);
}

.cart-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.cart-coupon-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--bg, #f7f6f3);
    font: inherit;
    color: var(--text, #1a1a22);
}

.cart-coupon-input:focus {
    outline: 2px solid rgba(91, 92, 246, 0.35);
    outline-offset: 1px;
}

.cart-coupon-btn {
    white-space: nowrap;
}

.cart-coupon-remove {
    margin-top: 0.5rem;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    color: var(--muted, #6b6b7b);
    text-decoration: underline;
    cursor: pointer;
}

.cart-coupon-remove:hover {
    color: var(--text, #1a1a22);
}

.cart-coupon-message {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.cart-coupon-message.is-error {
    color: #b91c1c;
}

.cart-coupon-message.is-success {
    color: #166534;
}

.cart-totals {
    max-width: none;
    margin: 0 0 0.75rem;
}

.cart-totals dt,
.cart-totals dd {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 0.35rem 0;
    font-size: 0.95rem;
}

.cart-totals .cart-total-row {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border, #e8e6e1);
    font-size: 1.05rem;
}

.cart-total-discount {
    color: #166534;
}

.cart-tax-hint {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.5;
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
}

.cart-secure-note {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted, #6b6b7b);
}

.cart-empty {
    max-width: 28rem;
    margin: 2rem auto 0;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.cart-empty-icon {
    display: inline-flex;
    margin-bottom: 1.25rem;
    color: var(--accent, #5b5cf6);
}

.cart-empty-title {
    margin: 0 0 0.65rem;
    font-size: 1.45rem;
}

.cart-empty-copy {
    margin: 0 0 1.5rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.6;
}

.cart-empty-btn {
    min-width: 12rem;
}

/* ── Account page ── */

.account-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.account-header {
    margin-bottom: 1.75rem;
}

.account-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.account-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.45;
}

.account-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.account-breadcrumb a:hover {
    color: var(--accent, #5b5cf6);
}

.account-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.account-header h1 {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    letter-spacing: -0.02em;
}

.account-logout-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
    text-decoration: none;
}

.account-logout-link:hover {
    color: var(--accent, #5b5cf6);
}

.account-notice {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius, 12px);
    font-size: 0.95rem;
    line-height: 1.5;
}

.account-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.account-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.account-login-hero {
    padding: 2rem 2.1rem;
    border-radius: calc(var(--radius, 12px) + 4px);
    background: linear-gradient(135deg, #5b5cf6 0%, #7c6cf0 52%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(91, 92, 246, 0.28);
}

.account-login-hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-login-hero-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.account-login-hero-copy {
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    max-width: 34rem;
}

.account-login-benefits {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.account-login-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.account-login-benefit-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
}

.account-login-alt {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
}

.account-login-alt a {
    color: #fff;
    font-weight: 600;
}

.account-login-panel {
    position: sticky;
    top: 1.25rem;
}

.account-panel-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.account-panel-copy {
    margin: 0 0 1.25rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.55;
    font-size: 0.95rem;
}

.account-login-form {
    display: grid;
    gap: 1rem;
}

.account-field {
    display: grid;
    gap: 0.45rem;
}

.account-login-btn {
    width: 100%;
    margin-top: 0.25rem;
}

.account-login-foot {
    margin: 1.1rem 0 0;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.55;
}

.account-dashboard-hero {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: calc(var(--radius, 12px) + 4px);
    background: linear-gradient(180deg, rgba(237, 237, 254, 0.65) 0%, var(--surface, #fff) 100%);
}

.account-dashboard-profile {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.account-avatar {
    width: 4.25rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b5cf6, #7c6cf0);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 24px rgba(91, 92, 246, 0.25);
}

.account-dashboard-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent, #5b5cf6);
}

.account-dashboard-name {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
}

.account-dashboard-email,
.account-dashboard-since {
    margin: 0.25rem 0 0;
    color: var(--muted, #6b6b7b);
    font-size: 0.95rem;
}

.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.account-stat-card {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius, 12px);
    border: 1px solid var(--border, #e8e6e1);
    background: var(--surface, #fff);
}

.account-stat-card--orders {
    border-color: rgba(91, 92, 246, 0.25);
    background: rgba(237, 237, 254, 0.55);
}

.account-stat-card--spent {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(240, 253, 244, 0.75);
}

.account-stat-card--active {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(239, 246, 255, 0.85);
}

.account-stat-value {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text, #1a1a22);
}

.account-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    gap: 1.75rem;
    align-items: start;
}

.account-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.account-section-title {
    margin: 0;
    font-size: 1.25rem;
}

.account-section-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted, #6b6b7b);
}

.account-order-list {
    display: grid;
    gap: 1rem;
}

.account-order-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--surface, #fff);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.account-order-card:hover {
    border-color: rgba(91, 92, 246, 0.35);
    box-shadow: 0 8px 24px rgba(26, 26, 34, 0.06);
}

.account-order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.account-order-number {
    display: block;
    font-weight: 700;
    color: var(--text, #1a1a22);
    text-decoration: none;
}

.account-order-number:hover {
    color: var(--accent, #5b5cf6);
}

.account-order-date {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.ecommerce-order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.3;
}

.ecommerce-order-status--pending {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.ecommerce-order-status--processing,
.ecommerce-order-status--on-hold {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.ecommerce-order-status--completed {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.ecommerce-order-status--cancelled,
.ecommerce-order-status--failed {
    background: rgba(15, 23, 42, 0.08);
    color: var(--muted, #6b6b7b);
}

.ecommerce-order-status--refunded {
    background: rgba(124, 108, 240, 0.14);
    color: #5b4fd1;
}

.account-order-items {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: var(--text, #1a1a22);
}

.account-order-items-more {
    color: var(--muted, #6b6b7b);
    font-size: 0.88rem;
}

.account-order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border, #e8e6e1);
}

.account-order-summary {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.account-order-item-count {
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.account-order-total {
    font-weight: 700;
    font-size: 1.05rem;
}

.account-order-view {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent, #5b5cf6);
    text-decoration: none;
}

.account-order-view:hover {
    text-decoration: underline;
}

.account-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px dashed var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--bg, #f7f6f3);
}

.account-empty-icon {
    margin: 0 auto 1rem;
    color: var(--accent, #5b5cf6);
    opacity: 0.75;
}

.account-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.account-empty-copy {
    margin: 0 auto 1.35rem;
    max-width: 28rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.6;
}

.account-empty-btn {
    min-width: 11rem;
}

.account-sidebar-panel {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--surface, #fff);
}

.account-sidebar-panel + .account-sidebar-panel {
    margin-top: 1rem;
}

.account-sidebar-panel--help {
    background: var(--bg, #f7f6f3);
}

.account-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.account-quick-links a {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: calc(var(--radius, 12px) - 2px);
    color: var(--text, #1a1a22);
    text-decoration: none;
    font-weight: 500;
    background: var(--bg, #f7f6f3);
    transition: background 0.15s, color 0.15s;
}

.account-quick-links a:hover {
    background: var(--accent-light, #ededfe);
    color: var(--accent, #5b5cf6);
}

.account-address {
    display: grid;
    gap: 0.2rem;
    font-style: normal;
    line-height: 1.55;
    color: var(--text, #1a1a22);
    font-size: 0.95rem;
}

.account-help-copy {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.55;
}

/* ── Order lookup page ── */

.order-lookup-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.order-lookup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.order-lookup-hero .account-login-benefit-icon {
    font-size: 0.82rem;
    font-weight: 700;
}

.order-lookup-result {
    display: grid;
    gap: 1.5rem;
}

.order-lookup-result-hero {
    padding: 1.5rem 1.65rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: calc(var(--radius, 12px) + 4px);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.75) 0%, var(--surface, #fff) 100%);
}

.order-lookup-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-lookup-result-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.order-lookup-result-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
}

.order-lookup-result-date,
.order-lookup-result-payment {
    margin: 0.35rem 0 0;
    color: var(--muted, #6b6b7b);
    font-size: 0.95rem;
}

.ecommerce-order-status--large {
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
}

.order-lookup-result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    gap: 1.75rem;
    align-items: start;
}

.order-lookup-result-main,
.order-lookup-result-sidebar {
    display: grid;
    gap: 1rem;
}

.order-lookup-panel-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.order-lookup-line-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--border, #e8e6e1);
    display: grid;
    gap: 0.85rem;
}

.order-lookup-line {
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
}

.order-lookup-line-media {
    position: relative;
    display: block;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: var(--radius, 12px);
    overflow: hidden;
    background: var(--accent-light, #ededfe);
    flex-shrink: 0;
}

.order-lookup-line-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-lookup-line-qty-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--dark, #111118);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2rem;
    text-align: center;
}

.order-lookup-line-qty {
    font-weight: 700;
    color: var(--muted, #6b6b7b);
    font-size: 0.92rem;
}

.order-lookup-line-body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.order-lookup-line-name {
    font-weight: 600;
    color: var(--text, #1a1a22);
    line-height: 1.4;
    text-decoration: none;
}

a.order-lookup-line-name:hover {
    color: var(--accent, #5b5cf6);
}

.order-lookup-line-variant {
    font-size: 0.82rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.35;
}

.order-lookup-line-sku {
    font-size: 0.82rem;
    color: var(--muted, #6b6b7b);
}

.order-lookup-line-price {
    font-weight: 700;
    white-space: nowrap;
}

.order-lookup-totals {
    max-width: none;
    margin: 0;
}

.order-lookup-note {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border, #e8e6e1);
}

.order-lookup-note-title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted, #6b6b7b);
}

.order-lookup-note p {
    margin: 0;
    color: var(--text, #1a1a22);
    line-height: 1.6;
}

.order-lookup-sidebar-panel .account-panel-title {
    margin-bottom: 0.65rem;
}

.order-lookup-actions-panel .account-quick-links {
    margin-top: 0.15rem;
}

.order-detail-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.order-detail-hero--thank-you {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.9) 0%, var(--surface, #fff) 100%);
    border-color: rgba(34, 197, 94, 0.25);
}

.order-detail-hero--account {
    background: linear-gradient(180deg, rgba(237, 237, 254, 0.65) 0%, var(--surface, #fff) 100%);
}

.order-detail-thank-you-icon {
    margin-bottom: 0.85rem;
    color: #15803d;
}

.order-detail-lead {
    margin: 0.65rem 0 0;
    color: var(--muted, #6b6b7b);
    line-height: 1.55;
}

.order-detail-pending-note {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius, 12px);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
    font-size: 0.92rem;
    line-height: 1.5;
}

.order-status-timeline {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.order-status-step {
    position: relative;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    text-align: center;
    padding-top: 0.15rem;
}

.order-status-step:not(.order-status-step--last)::after {
    content: '';
    position: absolute;
    top: 0.55rem;
    left: calc(50% + 0.65rem);
    width: calc(100% - 1.3rem);
    height: 2px;
    background: var(--border, #e8e6e1);
}

.order-status-step--complete:not(.order-status-step--last)::after {
    background: #22c55e;
}

.order-status-step-marker {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 2px solid var(--border, #e8e6e1);
    background: var(--surface, #fff);
    position: relative;
    z-index: 1;
}

.order-status-step--complete .order-status-step-marker {
    border-color: #22c55e;
    background: #22c55e;
    box-shadow: inset 0 0 0 3px var(--surface, #fff);
}

.order-status-step--active .order-status-step-marker {
    border-color: var(--accent, #5b5cf6);
    background: var(--accent, #5b5cf6);
    box-shadow: inset 0 0 0 3px var(--surface, #fff);
}

.order-status-step--cancelled .order-status-step-marker {
    border-color: #dc2626;
    background: #dc2626;
    box-shadow: inset 0 0 0 3px var(--surface, #fff);
}

.order-status-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
    line-height: 1.35;
}

.order-status-step--complete .order-status-step-label,
.order-status-step--active .order-status-step-label {
    color: var(--text, #1a1a22);
}

.order-status-step--cancelled .order-status-step-label {
    color: #b91c1c;
}

.order-detail-help-panel {
    background: var(--bg, #f7f6f3);
}

.ecommerce-manual-instructions h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.ecommerce-manual-instructions p {
    margin: 0;
    line-height: 1.6;
    color: var(--text, #1a1a22);
}

/* ── Checkout page ── */

.checkout-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.checkout-header {
    margin-bottom: 1.75rem;
}

.checkout-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.checkout-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.45;
}

.checkout-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.checkout-breadcrumb a:hover {
    color: var(--accent, #5b5cf6);
}

.checkout-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkout-header h1 {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    letter-spacing: -0.02em;
}

.checkout-header-meta {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted, #6b6b7b);
}

.checkout-notice {
    margin: 0 0 1.5rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius, 12px);
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkout-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.checkout-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: 2rem;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 1.25rem;
}

.checkout-form {
    display: grid;
    gap: 1.25rem;
}

.checkout-panel {
    padding: 1.5rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.checkout-panel-title {
    margin: 0 0 1.15rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-panel-copy {
    margin: 0;
    color: var(--muted, #6b6b7b);
    line-height: 1.55;
}

.checkout-optional {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted, #6b6b7b);
}

.checkout-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}

.checkout-field {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

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

.checkout-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted, #6b6b7b);
}

.checkout-required {
    color: #b91c1c;
}

.checkout-input,
.checkout-select,
.checkout-textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--bg, #f7f6f3);
    font: inherit;
    color: var(--text, #1a1a22);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.checkout-input:focus,
.checkout-select:focus,
.checkout-textarea:focus {
    outline: none;
    border-color: rgba(91, 92, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(91, 92, 246, 0.15);
    background: var(--surface, #fff);
}

.checkout-textarea {
    resize: vertical;
    min-height: 5.5rem;
}

.checkout-field--province .checkout-input.ecommerce-state-text {
    margin-top: 0.5rem;
}

.checkout-payment-methods {
    display: grid;
    gap: 0.75rem;
}

.checkout-payment-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--bg, #f7f6f3);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.checkout-payment-card:hover {
    border-color: rgba(91, 92, 246, 0.35);
}

.checkout-payment-card.is-selected {
    border-color: var(--accent, #5b5cf6);
    background: var(--accent-light, #ededfe);
    box-shadow: 0 0 0 1px rgba(91, 92, 246, 0.2);
}

.checkout-payment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-payment-card-body {
    display: grid;
    gap: 0.2rem;
}

.checkout-payment-card-title {
    font-weight: 600;
    color: var(--text, #1a1a22);
}

.checkout-payment-card-desc {
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.45;
}

.checkout-payment-card-indicator {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--border, #e8e6e1);
    border-radius: 50%;
    background: var(--surface, #fff);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.checkout-payment-card.is-selected .checkout-payment-card-indicator {
    border-color: var(--accent, #5b5cf6);
    background: var(--accent, #5b5cf6);
    box-shadow: inset 0 0 0 3px var(--surface, #fff);
}

.checkout-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    cursor: pointer;
    margin: 0;
}

.checkout-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-toggle-ui {
    width: 2.6rem;
    height: 1.45rem;
    border-radius: 999px;
    background: var(--border, #e8e6e1);
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.checkout-toggle-ui::after {
    content: '';
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(17, 17, 24, 0.18);
    transition: transform 0.2s;
}

.checkout-toggle input:checked + .checkout-toggle-ui {
    background: var(--accent, #5b5cf6);
}

.checkout-toggle input:checked + .checkout-toggle-ui::after {
    transform: translateX(1.15rem);
}

.checkout-toggle-label {
    display: grid;
    gap: 0.2rem;
}

.checkout-toggle-label strong {
    font-size: 0.98rem;
}

.checkout-toggle-label span {
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.45;
}

.checkout-account-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #e8e6e1);
}

.checkout-submit-wrap {
    padding: 0.25rem 0 0;
}

.checkout-submit-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
}

.checkout-secure-note {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.5;
}

.checkout-captcha {
    display: grid;
    gap: 0.75rem;
}

.checkout-panel--captcha .captcha-local {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

.checkout-panel--captcha .captcha-local label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted, #6b6b7b);
}

.checkout-panel--captcha .captcha-local input {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius, 12px);
    background: var(--bg, #f7f6f3);
    font: inherit;
    color: var(--text, #1a1a22);
}

.checkout-panel--captcha .captcha-local input:focus {
    outline: none;
    border-color: rgba(91, 92, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(91, 92, 246, 0.15);
    background: var(--surface, #fff);
}

.checkout-summary {
    position: sticky;
    top: 1.25rem;
    padding: 1.5rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e6e1);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow, 0 4px 24px rgba(17, 17, 24, 0.06));
}

.checkout-summary-title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.checkout-summary-meta {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--muted, #6b6b7b);
}

.checkout-summary-items {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--border, #e8e6e1);
    display: grid;
    gap: 0.85rem;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.checkout-summary-thumb {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius, 12px);
    overflow: hidden;
    background: var(--accent-light, #ededfe);
}

.checkout-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-summary-qty {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--dark, #111118);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2rem;
    text-align: center;
}

.checkout-summary-item-body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.checkout-summary-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text, #1a1a22);
    line-height: 1.35;
}

.checkout-summary-item-meta {
    font-size: 0.78rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.35;
}

.checkout-summary-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-totals {
    max-width: none;
    margin: 0 0 0.75rem;
}

.checkout-tax-hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--muted, #6b6b7b);
    line-height: 1.5;
}

.checkout-edit-cart {
    display: inline-flex;
    margin-bottom: 1.25rem;
    color: var(--accent, #5b5cf6);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.checkout-edit-cart:hover {
    text-decoration: underline;
}

.checkout-trust-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border, #e8e6e1);
    display: grid;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--muted, #6b6b7b);
}

.checkout-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-trust-list li::before {
    content: '✓';
    color: var(--accent, #5b5cf6);
    font-weight: 700;
}

/* Legacy aliases */
.shop-product-gallery,
.ecommerce-product-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
}

.shop-product-summary h1,
.shop-product-price {
    margin-top: 0;
}

.shop-rating {
    color: var(--muted, #6b6b7b);
}

/* ── Legacy + shared ── */

.ecommerce-grid {
    display: grid;
    grid-template-columns: repeat(var(--ecommerce-columns, 3), minmax(0, 1fr));
    gap: 1.5rem;
}

.ecommerce-product-card {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1rem;
    background: var(--surface, #fff);
}

.ecommerce-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.ecommerce-table th,
.ecommerce-table td {
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 0.75rem;
    text-align: left;
}

.ecommerce-totals {
    max-width: 320px;
    margin-left: auto;
}

.ecommerce-totals dt,
.ecommerce-totals dd {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0;
}

.ecommerce-checkout-form label:not(.checkout-field):not(.checkout-toggle):not(.checkout-payment-card),
.ecommerce-review-form label,
.ecommerce-order-lookup label {
    display: block;
    margin-bottom: 0.75rem;
}

.checkout-form .checkout-field,
.checkout-form .checkout-toggle,
.checkout-form .checkout-payment-card {
    margin-bottom: 0;
}

.ecommerce-checkout-form input:not(.checkout-input),
.ecommerce-checkout-form textarea:not(.checkout-textarea),
.ecommerce-checkout-form select:not(.checkout-select),
.ecommerce-review-form input,
.ecommerce-review-form textarea,
.ecommerce-order-lookup input {
    width: 100%;
    max-width: 100%;
}

.ecommerce-product-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
}

.ecommerce-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.ecommerce-checkout-summary {
    position: sticky;
    top: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: var(--surface, #fff);
}

.ecommerce-checkout-summary h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.ecommerce-checkout-summary .ecommerce-totals {
    max-width: none;
    margin-left: 0;
}

.ecommerce-state-text[hidden] {
    display: none !important;
}

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

    .shop-featured-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .shop-sidebar {
        position: static;
    }

    .shop-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .shop-grid,
    .shop-featured-grid,
    .ecommerce-grid {
        grid-template-columns: 1fr;
    }

    .ecommerce-product-layout,
    .product-page-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

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

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

    .cart-summary {
        position: static;
    }

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

    .account-login-layout,
    .account-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .order-lookup-layout,
    .order-lookup-result-layout {
        grid-template-columns: 1fr;
    }

    .account-login-panel {
        position: static;
    }

    .account-stat-grid {
        grid-template-columns: 1fr;
    }

    .order-status-timeline {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .order-status-step {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: 'marker label';
        justify-items: start;
        text-align: left;
        gap: 0.65rem;
    }

    .order-status-step:not(.order-status-step--last)::after {
        display: none;
    }

    .order-status-step-marker {
        grid-area: marker;
    }

    .order-status-step-label {
        grid-area: label;
        align-self: center;
    }

    .account-dashboard-sidebar {
        order: -1;
    }

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

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

    .checkout-field--half {
        grid-column: auto;
    }

    .cart-line {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .cart-line-subtotal {
        margin-left: 0;
        width: 100%;
    }

    .shop-category-list {
        grid-template-columns: 1fr;
    }
}
