@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");

/*
 * Pyranext Commerce R2
 * Editorial marketing, conversion-led storefronts, operational merchant UI.
 */

:root {
    color-scheme: light;
    --commerce-ink: #211917;
    --commerce-copy: #5f5551;
    --commerce-muted: #827772;
    --commerce-paper: #fffdfa;
    --commerce-canvas: #f4f1ed;
    --commerce-warm: #ede7df;
    --commerce-line: #ddd5ce;
    --commerce-line-strong: #c8beb5;
    --commerce-red: #a63525;
    --commerce-red-2: #7d281d;
    --commerce-gold: #dca65d;
    --commerce-dark: #241d1a;
    --commerce-dark-2: #171210;
    --commerce-success: #2a7656;
    --commerce-danger: #b54444;
    --commerce-shadow: 0 18px 48px rgba(55, 38, 31, .10);
    --commerce-shadow-soft: 0 6px 20px rgba(55, 38, 31, .055);
    --commerce-radius: 14px;
    --commerce-radius-sm: 8px;
    --commerce-font: "DM Sans", sans-serif;
    --commerce-font-ar: "Alexandria", sans-serif;
}

html[dir="rtl"] {
    --commerce-font: var(--commerce-font-ar);
}

body {
    font-family: var(--commerce-font);
    color: var(--commerce-ink);
    background: var(--commerce-canvas);
}

body::before,
.landing-noise,
.storefront-ambience,
.app-shell::before,
.auth-shell::before,
.admin-shell::before {
    display: none !important;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title,
.product-detail__title,
.listing-title,
.panel-head h1 {
    letter-spacing: -.03em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.button,
.button-primary,
.button-secondary,
.button-muted,
.icon-button,
.chip-button,
.language-switch__link,
.cart-button,
.mobile-cart-button,
.action-link,
.button-ghost,
.button-danger {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    box-shadow: none;
    font-size: .72rem;
    font-weight: 700;
}

.button-primary,
.button.button-primary,
.button,
.mobile-cart-button {
    border: 1px solid var(--commerce-red);
    background: var(--commerce-red);
    color: #fff;
    box-shadow: none;
}

.button-primary:hover,
.button.button-primary:hover,
.button:hover {
    border-color: var(--commerce-red-2);
    background: var(--commerce-red-2);
    transform: translateY(-1px);
}

.button-secondary,
.button-muted,
.button-ghost,
.action-link {
    border: 1px solid var(--commerce-line-strong);
    background: #fff;
    color: var(--commerce-ink);
}

.button-secondary:hover,
.button-muted:hover,
.button-ghost:hover,
.action-link:hover {
    border-color: var(--commerce-red);
    background: #fff9f6;
    color: var(--commerce-red);
    transform: translateY(-1px);
}

/* Product marketing */
.landing-body {
    min-width: 320px;
    overflow-x: clip;
    background: #f4f0eb;
}

.landing-shell {
    width: min(calc(100% - 32px), 1380px);
    margin-inline: auto;
}

.landing-header {
    top: 0;
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(48, 35, 29, .10);
    border-radius: 0;
    background: rgba(244, 240, 235, .94);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.landing-header__bar {
    min-height: 72px;
}

.landing-brand .brand-lockup__mark {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: var(--commerce-dark);
    color: #fff;
    box-shadow: none;
}

.landing-brand .brand-lockup__copy strong {
    color: var(--commerce-dark);
    font-size: .86rem;
}

.landing-brand .brand-lockup__copy small {
    font-size: .61rem;
}

.landing-header__nav {
    gap: 2px;
}

.landing-header__nav a {
    padding: 9px 10px;
    border-radius: 7px;
    color: #615650;
    font-size: .69rem;
    font-weight: 600;
}

.landing-header__nav a:hover {
    background: #fff;
    color: var(--commerce-red);
}

.landing-header__actions {
    gap: 7px;
}

.landing-main {
    padding: 28px 0 72px;
    gap: 76px;
}

.landing-hero {
    min-height: 630px;
    grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
    align-items: center;
    gap: 42px;
    padding: 46px;
    border: 1px solid var(--commerce-line);
    border-radius: 20px;
    background: var(--commerce-paper);
    box-shadow: none;
}

.landing-hero__copy {
    padding: 0;
}

.landing-hero__copy .eyebrow {
    display: inline-flex;
    width: auto;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e4d6cf;
    border-radius: 999px;
    background: #fff7f3;
    color: var(--commerce-red);
    font-size: .66rem;
    font-weight: 700;
}

.landing-hero .hero-title {
    max-width: 760px;
    margin: 18px 0;
    color: var(--commerce-dark);
    font-family: "Fraunces", serif;
    font-size: clamp(3rem, 5.1vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.06em;
}

html[dir="rtl"] .landing-hero .hero-title {
    max-width: 710px;
    font-family: var(--commerce-font-ar);
    font-size: clamp(2.55rem, 4vw, 4.25rem);
    line-height: 1.14;
    letter-spacing: -.04em;
}

.landing-hero .hero-copy {
    max-width: 600px;
    margin: 0;
    color: var(--commerce-copy);
    font-size: 1.02rem;
    line-height: 1.85;
}

.hero-actions {
    margin-top: 25px;
    gap: 8px;
}

.landing-showcase,
.landing-browser {
    min-height: 540px;
    height: 540px;
}

.landing-browser {
    overflow: hidden;
    border: 0;
    border-radius: 16px 16px 4px 16px;
    background: var(--commerce-dark);
    box-shadow: 0 26px 60px rgba(53, 34, 27, .16);
}

html[dir="rtl"] .landing-browser {
    border-radius: 16px 16px 16px 4px;
}

.landing-browser__bar {
    height: 38px;
    background: #2b211e;
}

.landing-browser__body,
.landing-browser__visual {
    height: calc(100% - 38px);
    min-height: 0;
}

.landing-browser__visual {
    padding: 0;
}

.landing-browser__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-browser__visual::after {
    background: linear-gradient(180deg, transparent 42%, rgba(27, 18, 15, .68));
}

.landing-browser__hero {
    inset-inline: 16px;
    bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    background: rgba(31, 22, 19, .84);
    box-shadow: none;
}

.landing-browser__hero h2 {
    color: #fff;
    font-size: 1.35rem;
}

.landing-browser__hero p {
    color: rgba(255, 255, 255, .66);
    font-size: .68rem;
}

.landing-stats {
    margin-top: 18px;
    gap: 8px;
}

.landing-stats .hero-stat {
    min-height: 76px;
    padding: 13px;
    border: 1px solid var(--commerce-line);
    border-radius: 9px;
    background: #faf8f5;
    box-shadow: none;
}

.landing-stats .hero-stat strong {
    color: var(--commerce-dark);
    font-size: .78rem;
}

.landing-stats .hero-stat span {
    margin-top: 5px;
    color: var(--commerce-muted);
    font-size: .62rem;
}

.content-section {
    padding: 0;
}

.section-head {
    align-items: end;
    margin-bottom: 26px;
}

.section-title {
    color: var(--commerce-dark);
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    line-height: 1.16;
}

.section-copy {
    margin-top: 8px;
    color: var(--commerce-copy);
    font-size: .82rem;
    line-height: 1.75;
}

.landing-store-grid {
    gap: 12px;
}

.landing-store-card {
    min-height: 330px;
    padding: 24px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: var(--commerce-paper);
    box-shadow: none;
}

.landing-store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--commerce-shadow);
}

.landing-mock {
    border-radius: 10px;
    background: #ece5dc;
}

.landing-feature-grid,
.landing-card-grid,
.landing-pricing-grid,
.landing-steps {
    gap: 12px;
}

.landing-feature,
.landing-panel,
.landing-step,
.landing-price-card {
    padding: 24px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: var(--commerce-paper);
    box-shadow: none;
}

.landing-feature {
    min-height: 170px;
}

.landing-feature__dot {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f0ded6;
    color: var(--commerce-red);
}

.landing-step__number {
    color: var(--commerce-red);
    font-size: 1.8rem;
}

.landing-price-card--featured {
    border-color: var(--commerce-dark);
    background: var(--commerce-dark);
    color: #fff;
    transform: none;
}

.landing-price-card--featured .section-title,
.landing-price-card--featured .section-copy,
.landing-price-card--featured li {
    color: #fff;
}

.landing-faq {
    max-width: 920px;
    gap: 8px;
}

.landing-faq__item {
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: var(--commerce-paper);
}

.landing-footer {
    margin-top: 0;
    border-radius: 16px;
    background: var(--commerce-dark);
}

/* Storefront shell */
.storefront-body {
    --store-accent: var(--brand-color, #a63525);
    --store-accent-2: #70261d;
    min-width: 320px;
    overflow-x: clip;
    background: #f4f2ee;
    color: var(--commerce-ink);
}

.storefront-header {
    top: 0;
    border-bottom: 1px solid rgba(44, 35, 31, .10);
    background: rgba(255, 253, 250, .96);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.storefront-header__bar,
.storefront-main,
.storefront-footer {
    width: min(calc(100% - 36px), 1260px);
}

.storefront-header__bar {
    gap: 8px;
    padding: 11px 0 8px;
}

.storefront-header__row {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(280px, 1.25fr) auto;
    gap: 18px;
}

.brand-lockup {
    gap: 9px;
}

.brand-lockup__logo,
.brand-lockup__mark {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--commerce-dark);
    color: #fff;
    box-shadow: none;
}

.brand-lockup__copy strong {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: .83rem;
    line-height: 1.2;
}

.brand-lockup__copy small {
    color: var(--commerce-muted);
    font-size: .59rem;
}

.storefront-search {
    gap: 6px;
}

.storefront-search__input {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
    background: #f7f4f0;
    box-shadow: none;
    font-size: .69rem;
}

.storefront-search__button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--commerce-dark);
    color: #fff;
    box-shadow: none;
}

.storefront-header__actions {
    gap: 6px;
    justify-content: flex-end;
}

.language-switch {
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.language-switch__link {
    min-height: 31px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--commerce-copy);
    font-size: .56rem;
}

.language-switch__link.is-active {
    background: var(--commerce-dark);
    color: #fff;
}

.cart-button {
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: var(--commerce-dark);
    color: #fff;
    box-shadow: none;
}

.cart-button__badge {
    min-width: 20px;
    min-height: 20px;
    padding: 0 5px;
    background: var(--store-accent);
    color: #fff;
    font-size: .54rem;
}

.storefront-nav {
    gap: 4px;
    padding: 7px 0 0;
    border-top: 1px solid #eee9e3;
}

.storefront-nav__link {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--commerce-copy);
    box-shadow: none;
    font-size: .63rem;
}

.storefront-nav__link:hover,
.storefront-nav__link.is-active {
    background: #f2ebe5;
    color: var(--store-accent-2);
}

/* Drawer is inert until explicitly opened. */
.cart-drawer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100 !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .2s ease, visibility .2s ease;
}

.cart-drawer__scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(26, 20, 18, .46);
}

.cart-drawer__panel {
    position: absolute !important;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(410px, 92vw);
    padding: 22px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -24px 0 60px rgba(38, 26, 21, .18);
    transform: translateX(105%);
    transition: transform .25s ease;
}

html[dir="rtl"] .cart-drawer__panel {
    transform: translateX(-105%);
}

body[data-cart-open="true"] .cart-drawer {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body[data-cart-open="true"] .cart-drawer__panel {
    transform: none !important;
}

.cart-drawer__head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--commerce-line);
}

.cart-drawer__title {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 1.2rem;
}

.cart-drawer__items {
    flex: 1;
    overflow: auto;
}

.cart-drawer__footer {
    padding-top: 16px;
    border-top: 1px solid var(--commerce-line);
}

.storefront-main {
    padding: 26px 0 72px;
}

.hero-panel {
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(430px, 1.16fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.hero-panel__copy {
    padding: 42px;
    align-content: center;
}

.hero-panel .eyebrow,
.listing-shell .eyebrow {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f0e8e1;
    color: var(--store-accent-2);
    font-size: .58rem;
    font-weight: 700;
}

.hero-panel .hero-title {
    margin: 17px 0 12px;
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: clamp(2.35rem, 4.7vw, 4.7rem);
    line-height: 1.05;
}

.hero-panel .hero-copy {
    max-width: 540px;
    margin: 0;
    color: var(--commerce-copy);
    font-size: .9rem;
    line-height: 1.85;
}

.hero-stats {
    margin-top: 28px;
    gap: 8px;
}

.hero-stat {
    min-width: 105px;
    padding: 12px;
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
    background: #faf8f5;
    box-shadow: none;
}

.hero-stat strong {
    color: var(--commerce-dark);
    font-size: 1.08rem;
}

.hero-stat span {
    color: var(--commerce-muted);
    font-size: .58rem;
}

.hero-media {
    min-height: 500px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #e8e1d9;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-restaurant-classic {
    --store-accent: #b23822;
    --store-accent-2: #7b251a;
}

.template-restaurant-classic .hero-media {
    background: url("catalog/restaurant/grilled-chicken-platter.webp?v=20260725.9") center / cover;
}

.template-restaurant-classic .hero-media img {
    opacity: 0;
}

.template-fashion-lookbook {
    --store-accent: #263a48;
    --store-accent-2: #172834;
    --commerce-red: #263a48;
    --commerce-red-2: #172834;
}

.template-fashion-lookbook .hero-media {
    background: url("catalog/fashion/men-linen-shirt.webp?v=20260725.9") center / cover;
}

.template-fashion-lookbook .hero-media img {
    opacity: 0;
}

.template-fashion-lookbook .storefront-header {
    background: rgba(249, 248, 245, .96);
}

.template-fashion-lookbook .hero-panel {
    border-radius: 2px;
}

.template-fashion-lookbook .hero-panel__copy {
    background: #f6f3ee;
}

.template-fashion-lookbook .hero-panel .hero-title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
}

html[dir="rtl"] .template-fashion-lookbook .hero-panel .hero-title {
    font-family: var(--commerce-font-ar);
}

.storefront-main .content-section {
    margin-top: 62px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--commerce-shadow);
}

.product-card__media {
    aspect-ratio: 1 / 1;
    background: #eee8e1;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.025);
}

.product-card__badge {
    top: 10px;
    inset-inline-start: 10px;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--store-accent);
    color: #fff;
    font-size: .53rem;
    font-weight: 700;
}

.product-card__content {
    padding: 15px;
}

.product-card__title {
    margin: 0;
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: .82rem;
    line-height: 1.5;
}

.product-card__excerpt {
    min-height: 38px;
    margin: 6px 0 10px;
    color: var(--commerce-muted);
    font-size: .62rem;
    line-height: 1.55;
}

.product-card__actions {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-stack strong {
    color: var(--commerce-dark);
    font-size: .8rem;
}

.product-card__actions .button {
    min-height: 32px;
    padding: 0 10px;
    font-size: .58rem;
}

.category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-tile {
    min-height: 120px;
    padding: 18px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.category-tile:hover {
    border-color: var(--store-accent);
    transform: translateY(-2px);
}

.category-tile strong {
    color: var(--commerce-dark);
    font-size: .82rem;
}

.category-meta {
    color: var(--store-accent-2);
    font-size: .58rem;
}

.storefront-footer {
    margin-top: 0;
    padding: 40px 0;
    border-top: 1px solid var(--commerce-line);
}

.footer-grid {
    gap: 10px;
}

.footer-card {
    padding: 16px;
    border: 1px solid var(--commerce-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

.footer-card__label {
    color: var(--commerce-muted);
    font-size: .56rem;
}

.footer-card p {
    color: var(--commerce-copy);
    font-size: .66rem;
}

/* Listing, product, cart, checkout */
.listing-shell {
    display: grid;
    gap: 16px;
}

.listing-shell > .panel,
.listing-toolbar,
.detail-card,
.checkout-step,
.cart-item-card,
.timeline-card {
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.listing-shell > .panel {
    padding: 24px;
}

.listing-title {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 2rem;
}

.listing-toolbar {
    padding: 11px 14px;
}

.listing-summary {
    color: var(--commerce-muted);
    font-size: .63rem;
}

.product-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, .88fr);
    align-items: start;
    gap: 24px;
}

.product-gallery {
    position: sticky;
    top: 122px;
}

.gallery-stage {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: #eee7df;
    box-shadow: none;
}

.gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-sidebar {
    gap: 12px;
}

.detail-card {
    padding: 24px;
}

.product-detail__title {
    margin: 18px 0 10px;
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 2rem;
    line-height: 1.22;
}

.product-copy {
    color: var(--commerce-copy);
    font-size: .76rem;
    line-height: 1.8;
}

.detail-price {
    margin-top: 18px;
}

.detail-price strong {
    color: var(--commerce-dark);
    font-size: 1.3rem;
}

.detail-section {
    padding: 15px 0;
    border-top: 1px solid var(--commerce-line);
}

.detail-section h3 {
    color: var(--commerce-dark);
    font-size: .74rem;
}

.detail-note {
    color: var(--commerce-muted);
    font-size: .62rem;
    line-height: 1.65;
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.trust-card {
    padding: 10px;
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
    background: #faf8f5;
}

.trust-card strong {
    color: var(--commerce-dark);
    font-size: .6rem;
}

.trust-card span {
    color: var(--commerce-muted);
    font-size: .52rem;
}

.option-grid,
.addon-list {
    gap: 7px;
}

.option-pill,
.addon-item {
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
    background: #fff;
}

.quantity-box input,
.option-select,
.addon-select,
.checkout-field input,
.checkout-field select,
.checkout-field textarea,
.cart-inline-form__qty {
    min-height: 41px;
    padding: 8px 10px;
    border: 1px solid var(--commerce-line-strong);
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    font-size: .68rem;
}

.cart-layout,
.checkout-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 18px;
}

.cart-item-card {
    padding: 14px;
    gap: 14px;
}

.cart-item-card__media {
    width: 116px;
    height: 116px;
    border-radius: 8px;
    background: #eee8e1;
}

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

.cart-item-card__head h2 {
    color: var(--commerce-dark);
    font-size: .82rem;
}

.cart-summary-card,
.timeline-card {
    position: sticky;
    top: 122px;
}

.summary-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--commerce-line);
    color: var(--commerce-copy);
    font-size: .68rem;
}

.checkout-progress {
    gap: 8px;
}

.checkout-progress__item {
    min-height: 34px;
    border-radius: 7px;
    background: #ece7e1;
    color: var(--commerce-muted);
    font-size: .58rem;
}

.checkout-progress__item.is-active {
    background: var(--commerce-dark);
    color: #fff;
}

.checkout-step {
    padding: 20px;
}

.checkout-step__index {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--commerce-dark);
    color: #fff;
    font-size: .62rem;
}

.checkout-step__title {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 1rem;
}

.empty-state {
    padding: 42px;
    border: 1px dashed var(--commerce-line-strong);
    border-radius: 10px;
    background: #faf8f5;
    box-shadow: none;
}

.empty-state h2 {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--commerce-muted);
    font-size: .7rem;
}

/* Merchant application */
.app-shell,
.admin-shell {
    min-height: 100vh;
    background: #f1f0ee;
    color: var(--commerce-ink);
}

.app-shell {
    --commerce-red: var(--brand-color, #a63525);
    --commerce-red-2: var(--brand-strong, color-mix(in srgb, var(--brand-color, #a63525) 78%, black));
}

.app-frame {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 17px 13px;
    border: 0;
    background: var(--commerce-dark);
    box-shadow: none;
}

.app-sidebar::before {
    display: none;
}

.sidebar-brand {
    gap: 12px;
    margin-bottom: 17px;
    padding: 2px 3px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-brand__top {
    gap: 9px;
}

.sidebar-logo,
.brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 9px;
    background: #fff;
    color: var(--commerce-dark);
    box-shadow: none;
}

.brand-copy {
    gap: 2px;
}

.brand-copy strong {
    color: #fff;
    font-family: var(--commerce-font);
    font-size: .76rem;
}

.brand-copy span {
    color: rgba(255, 255, 255, .48);
    font-size: .56rem;
}

.sidebar-brand__meta {
    padding: 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .055);
    box-shadow: none;
}

.plan-pill {
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--commerce-red) 20%, transparent);
    color: color-mix(in srgb, var(--commerce-red) 30%, #fff);
    font-size: .52rem;
}

.sidebar-nav {
    gap: 2px;
}

.sidebar-link {
    min-height: 39px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    color: rgba(255, 255, 255, .62);
    font-size: .68rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    transform: none;
}

.sidebar-link.is-active {
    border: 0;
    background: #fff;
    color: var(--commerce-dark);
    box-shadow: none;
}

.sidebar-link__icon {
    width: 23px;
    height: 23px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    box-shadow: none;
    font-size: .48rem;
}

.sidebar-link.is-active .sidebar-link__icon {
    background: color-mix(in srgb, var(--commerce-red) 12%, #fff);
    color: var(--commerce-red);
}

.sidebar-foot {
    margin-top: 17px;
    padding: 12px 7px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .36);
    font-size: .53rem;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    padding: 13px 24px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--commerce-line);
    background: rgba(255, 255, 255, .95);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.app-topbar__main {
    gap: 8px;
}

.app-topbar__support {
    gap: 7px;
}

.topbar-utility {
    min-height: 27px;
    padding: 0 8px;
    border: 1px solid var(--commerce-line);
    border-radius: 6px;
    background: #f7f4f1;
    box-shadow: none;
    color: var(--commerce-muted);
    font-size: .55rem;
}

.panel-head {
    gap: 3px;
}

.panel-head h1 {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 1.3rem;
    line-height: 1.2;
}

.panel-head p {
    color: var(--commerce-muted);
    font-size: .61rem;
}

.topbar-meta {
    gap: 7px;
}

.lang-switch {
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--commerce-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.lang-link {
    min-height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
    color: var(--commerce-copy);
    font-size: .54rem;
}

.lang-link.is-active {
    border: 0;
    background: var(--commerce-dark);
    color: #fff;
}

.topbar-user {
    min-height: 36px;
    padding: 3px 6px;
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--commerce-red) 12%, #fff);
    color: var(--commerce-red);
    box-shadow: none;
    font-size: .54rem;
}

.topbar-user strong {
    font-size: .6rem;
}

.topbar-user .topbar-meta {
    font-size: .52rem;
}

.topbar-actions .action-link {
    min-height: 31px;
    padding: 0 9px;
    font-size: .55rem;
}

.app-content {
    width: min(100%, 1500px);
    padding: 19px 24px 48px;
}

.hero-card,
.card,
.module-card,
.toolbar-card,
.table-card,
.status-board-card {
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.hero-card {
    padding: 20px;
}

.hero-card .hero-title {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 1.3rem;
}

.hero-card .hero-copy {
    color: var(--commerce-muted);
    font-size: .65rem;
}

.hero-stats {
    gap: 9px;
}

.app-shell .hero-stat,
.metric-card {
    min-height: 105px;
    padding: 14px;
    border: 1px solid var(--commerce-line);
    border-top: 3px solid var(--commerce-red);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

.app-shell .hero-stat strong,
.metric-card strong {
    color: var(--commerce-dark);
    font-size: 1.18rem;
}

.app-shell .hero-stat span,
.stat-label {
    color: var(--commerce-muted);
    font-size: .56rem;
}

.grid,
.module-grid,
.card-split {
    gap: 11px;
}

.card,
.module-card,
.toolbar-card,
.table-card {
    padding: 17px;
}

.card-title,
.section-title,
.module-card h2,
.module-card h3 {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: .85rem;
}

.card-meta,
.helper-note,
.empty-copy {
    color: var(--commerce-muted);
    font-size: .6rem;
    line-height: 1.6;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .65rem;
}

th {
    padding: 10px 11px;
    border-bottom: 1px solid var(--commerce-line-strong);
    background: #f6f3ef;
    color: #71665f;
    font-size: .56rem;
    font-weight: 700;
    white-space: nowrap;
}

td {
    padding: 11px;
    border-bottom: 1px solid #eee9e4;
    color: #463b36;
}

tbody tr:hover {
    background: #faf8f5;
}

.status-pill,
.meta-pill,
.inline-pill,
.segmented-chip,
.mini-pill {
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: .51rem;
    font-weight: 700;
}

.status-pill {
    background: #e9f2ed;
    color: #2b6d52;
}

.status-pill.is-muted {
    background: #ece8e4;
    color: #786d67;
}

.form-grid {
    gap: 11px;
}

.field label,
.checkout-field label {
    margin-bottom: 6px;
    color: #615650;
    font-size: .6rem;
    font-weight: 700;
}

.input,
.select,
.textarea {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--commerce-line-strong);
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    color: var(--commerce-ink);
    font-size: .66rem;
}

.textarea {
    min-height: 90px;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--commerce-red);
    outline: 3px solid color-mix(in srgb, var(--commerce-red) 10%, transparent);
}

.app-shell .button,
.app-shell .button-secondary,
.app-shell .button-danger,
.app-shell .button-ghost {
    min-height: 33px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: .56rem;
}

.button-danger {
    border: 1px solid #e3b9b6;
    background: #fff;
    color: var(--commerce-danger);
}

.tab-row,
.segmented-control {
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--commerce-line);
    border-radius: 8px;
    background: #f5f2ee;
    box-shadow: none;
}

.tab-link,
.segmented-link {
    min-height: 30px;
    padding: 0 9px;
    border-radius: 5px;
    color: var(--commerce-copy);
    font-size: .55rem;
}

.tab-link.is-active,
.segmented-link.is-active {
    background: #fff;
    color: var(--commerce-red);
    box-shadow: 0 2px 7px rgba(50, 35, 29, .07);
}

/* Authentication */
.auth-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #ede9e4;
}

.auth-shell::after {
    content: "";
    position: fixed;
    top: 24px;
    bottom: 24px;
    left: 24px;
    width: calc(50% - 36px);
    display: block;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(31, 22, 19, .04), rgba(31, 22, 19, .28)),
        url("images/commerce-hero-v2.webp?v=20260725.9") center / cover;
    box-shadow: var(--commerce-shadow);
}

.auth-wrap {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), 1180px);
    min-height: 100vh;
    margin: 0 auto;
    display: block;
}

.auth-card {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: none !important;
    width: min(100%, 460px);
    padding: 42px;
    border: 1px solid var(--commerce-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--commerce-shadow);
}

.auth-card::before {
    display: none;
}

html[dir="rtl"] .auth-card {
    right: 0;
}

.auth-card__head {
    gap: 10px;
}

.auth-card .inline-pill {
    width: max-content;
    max-width: 100%;
    justify-self: start;
}

.auth-mark {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: var(--commerce-dark);
    color: #fff;
    box-shadow: none;
}

.auth-card h1 {
    margin: 28px 0 6px;
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 1.55rem;
}

.auth-card .hero-copy {
    color: var(--commerce-muted);
    font-size: .66rem;
}

.auth-form {
    margin-top: 22px;
    gap: 12px;
}

.auth-input {
    min-height: 44px;
    border: 1px solid var(--commerce-line-strong);
    border-radius: 7px;
    box-shadow: none !important;
}

.auth-shell .auth-form .auth-input:invalid,
.auth-shell .auth-form .auth-input:valid {
    border-color: var(--commerce-line-strong);
    box-shadow: none !important;
}

.auth-form .button {
    min-height: 44px;
}

.auth-links {
    margin-top: 18px;
}

/* Super admin */
.admin-shell {
    background: #f1efec;
}

.superadmin-hero,
.admin-card {
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.superadmin-hero {
    padding: 24px;
}

.superadmin-title {
    color: var(--commerce-dark);
    font-family: var(--commerce-font);
    font-size: 1.7rem;
}

.admin-card {
    padding: 18px;
}

@media (max-width: 1080px) {
    .landing-hero {
        grid-template-columns: 1fr 1fr;
        padding: 32px;
    }

    .storefront-header__row {
        grid-template-columns: 1fr auto;
    }

    .storefront-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .app-frame {
        grid-template-columns: 208px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .landing-shell {
        width: min(calc(100% - 22px), 1380px);
    }

    .landing-header__nav {
        display: none;
    }

    .landing-hero,
    .hero-panel,
    .product-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: 0;
        padding: 28px;
    }

    .landing-showcase,
    .landing-browser {
        height: 440px;
        min-height: 440px;
    }

    .hero-media {
        min-height: 400px;
        order: -1;
    }

    .product-gallery,
    .cart-summary-card,
    .timeline-card {
        position: static;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-frame {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        z-index: 80;
        width: min(285px, 86vw);
        transform: translateX(-110%);
        transition: transform .25s ease;
    }

    html[dir="rtl"] .app-sidebar {
        transform: translateX(110%);
    }

    .app-shell[data-nav-open="true"] .app-sidebar {
        transform: none;
    }

    .app-nav-toggle {
        display: inline-grid;
    }

    .app-content {
        padding-inline: 14px;
    }

    .auth-shell::after {
        display: none !important;
    }

    .auth-wrap {
        display: grid;
        align-items: center;
        width: min(calc(100% - 28px), 520px);
    }

    .auth-card,
    html[dir="rtl"] .auth-card {
        position: static;
        width: 100%;
        transform: none;
    }
}

@media (max-width: 560px) {
    .landing-header__actions .language-switch,
    .landing-header__actions .button-secondary {
        display: none;
    }

    .landing-main {
        padding-top: 12px;
        gap: 52px;
    }

    .landing-hero {
        padding: 22px;
        border-radius: 14px;
    }

    .landing-hero .hero-title {
        font-size: 2.7rem;
    }

    html[dir="rtl"] .landing-hero .hero-title {
        font-size: 2.35rem;
    }

    .landing-showcase,
    .landing-browser {
        height: 350px;
        min-height: 350px;
    }

    .landing-browser__hero {
        grid-template-columns: 1fr;
    }

    .storefront-header__bar,
    .storefront-main,
    .storefront-footer {
        width: min(calc(100% - 22px), 1260px);
    }

    .storefront-header__row {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .language-switch,
    .cart-button__label {
        display: none;
    }

    .hero-panel {
        min-height: 0;
        border-radius: 11px;
    }

    .hero-panel__copy {
        padding: 26px 20px;
    }

    .hero-panel .hero-title,
    .template-fashion-lookbook .hero-panel .hero-title {
        font-size: 2.45rem;
    }

    .hero-media {
        min-height: 310px;
    }

    .storefront-main .content-section {
        margin-top: 46px;
    }

    .grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .product-card__content {
        padding: 11px;
    }

    .product-card__excerpt {
        display: none;
    }

    .product-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .trust-list,
    .checkout-field-grid,
    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .product-detail__title {
        font-size: 1.55rem;
    }

    .topbar-user,
    .topbar-utility {
        display: none;
    }

    .app-topbar {
        padding-inline: 14px;
    }

    .panel-head h1 {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
