/* ═══════════════════════════════════════════
   RazorCart — Default Theme
   Minimal · Editorial · Refined
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */

:root {
    color-scheme: light;
    --bg: #f6f4ef;
    --surface: #ffffff;
    --ink: #1d1d1b;
    --muted: #8a8a86;
    --border: #e6e4df;
    --accent: #1d1d1b;
    --accent-hover: #2d2d2b;
    --accent-soft: #f0eeea;
    --success: #3a9d5e;
    --warm: #c4a882;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 50px rgba(0,0,0,0.08);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease);
}

/* ── Reset ── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Utilities ── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

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

/* ═══════════════════════════════════════════
   Header (layout)
   ═══════════════════════════════════════════ */

.site-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 5vw;
    height: 64px;
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--ink);
    flex-shrink: 0;
}

.brand img {
    display: block;
    max-height: 30px;
    max-width: 170px;
}

.nav {
    display: flex;
    flex: 1;
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}

.nav a:hover {
    color: var(--ink);
    background: var(--accent-soft);
}

/* ── Cart Link ── */

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    flex-shrink: 0;
}

.cart-link:hover {
    border-color: var(--muted);
    box-shadow: var(--shadow-sm);
}

.cart-icon {
    font-size: 16px;
    line-height: 1;
}

[data-cart-count] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

[data-cart-count].is-pulsing {
    animation: pulse 0.4s ease;
}

.locale-switcher {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.locale-switcher select {
    min-width: 80px;
    padding: 7px 32px 7px 10px;
    font-size: 13px;
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 210px;
    max-width: 300px;
    flex: 0 1 260px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color var(--transition);
}

.header-search:focus-within {
    border-color: var(--ink);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 4px 9px 14px;
    box-shadow: none;
}

.header-search input:focus {
    box-shadow: none;
    border: 0;
}

.header-search button {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
}

.header-search button:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

/* ── Hamburger Menu (mobile only) ── */

.hamburger {
    display: none;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background var(--transition);
}

.hamburger:hover {
    background: var(--accent-soft);
}

.hamburger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Search Toggle (mobile only) ── */

.search-toggle {
    display: none;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.search-toggle:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

/* ── Mobile Side Drawer ── */

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.drawer-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.drawer {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 210;
    width: min(300px, 80vw);
    background: var(--surface);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.drawer__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.drawer__close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.drawer__close:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    gap: 2px;
}

.drawer__nav a {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    transition: background var(--transition);
}

.drawer__nav a:hover {
    background: var(--accent-soft);
}

.drawer__locale {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.drawer__locale-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.drawer__locale-label + .drawer__locale-list {
    margin-bottom: 16px;
}

.drawer__locale-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.drawer__locale-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color var(--transition), background var(--transition);
}

.drawer__locale-item:hover {
    border-color: var(--muted);
}

.drawer__locale-item.is-current {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

@media (min-width: 861px) {
    .drawer,
    .drawer-overlay {
        display: none !important;
    }
}

.cart-menu {
    position: relative;
    flex-shrink: 0;
}

.cart-preview {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 120;
    width: min(360px, calc(100vw - 40px));
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.cart-menu:hover .cart-preview,
.cart-menu:focus-within .cart-preview,
.cart-menu.is-open .cart-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-preview__head,
.cart-preview__total,
.cart-preview__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-preview__head {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.cart-preview__head span,
.cart-preview__empty {
    color: var(--muted);
    font-size: 13px;
}

.cart-preview__item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-preview__item img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--accent-soft);
}

.cart-preview__item span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.cart-preview__item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.cart-preview__item small {
    color: var(--muted);
    font-size: 12px;
}

.cart-preview__total {
    padding: 12px 0;
    font-weight: 700;
}

.cart-preview__actions a,
.cart-preview__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.cart-preview__actions a:first-child,
.cart-preview__action {
    background: var(--accent-soft);
    color: var(--ink);
}

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover,
button:hover {
    background: #e2e0db;
}

.btn:disabled,
button:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-hover);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--muted);
    background: transparent;
}

.btn--sm {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.btn--lg {
    min-height: 52px;
    padding: 0 28px;
    font-size: 15px;
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Add-to-cart button */
.btn--add {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 20px 0 24px;
    border-radius: var(--radius);
}

.btn--add.is-loading {
    opacity: 0.6;
}

.btn--add.is-added {
    background: var(--success);
}

.btn--add.is-added .btn__icon {
    background: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */

.hero {
    padding: 96px 5vw 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.hero__body {
    max-width: 680px;
}

.hero__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero__title {
    margin: 0 0 16px;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.hero__desc {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.hero__count {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.home-banner {
    padding: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.shortcode-banner {
    position: relative;
    display: block;
    min-height: clamp(360px, 58vh, 720px);
    overflow: hidden;
    color: #fff;
    background: #111;
}

.shortcode-banner img {
    width: 100%;
    height: clamp(360px, 58vh, 720px);
    object-fit: cover;
}

.shortcode-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.48), rgba(0,0,0,0.08) 58%, rgba(0,0,0,0));
    pointer-events: none;
}

.shortcode-banner__title {
    position: absolute;
    left: 5vw;
    bottom: clamp(44px, 8vh, 86px);
    z-index: 1;
    max-width: min(720px, 82vw);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0;
}

.shortcode-term {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════
   Section
   ═══════════════════════════════════════════ */

.section {
    padding: 60px 5vw;
}

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
}

.section__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color var(--transition);
    white-space: nowrap;
}

.section__link:hover {
    color: var(--ink);
}

.section__count {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   Breadcrumbs
   ═══════════════════════════════════════════ */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 24px 5vw 0;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs a {
    color: var(--muted);
    font-weight: 500;
    transition: color var(--transition);
    padding: 4px 0;
}

.breadcrumbs a:hover {
    color: var(--ink);
}

.breadcrumbs > span:last-child {
    color: var(--ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumbs__sep {
    color: #d0cdc7;
    font-size: 11px;
    font-weight: 300;
}

/* ═══════════════════════════════════════════
   Product Grid
   ═══════════════════════════════════════════ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* ═══════════════════════════════════════════
   Product Card
   ═══════════════════════════════════════════ */

.product-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.product-card__link {
    display: block;
    color: inherit;
}

.product-card__figure {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    background: var(--accent-soft);
    overflow: hidden;
}

.product-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__figure img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-card__body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.product-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.product-card__price {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card__price--old {
    color: var(--muted);
    font-size: 13px;
    text-decoration: line-through;
    font-weight: 400;
}

/* ═══════════════════════════════════════════
   Product Detail
   ═══════════════════════════════════════════ */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 5vw 40px;
    align-items: start;
}

.product__gallery {
    position: sticky;
    top: 88px;
}

.gallery__main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--accent-soft);
}

.gallery__main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.gallery__thumb {
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background: var(--accent-soft);
    cursor: pointer;
    transition: border-color var(--transition);
    min-height: 0;
}

.gallery__thumb:hover,
.gallery__thumb:focus-visible {
    border-color: var(--ink);
}

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

/* ── Product Info ── */

.product__info {
    display: grid;
    gap: 20px;
}

.product__category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0;
}

.product__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0;
}

.product__price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.product__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.product__price--old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 15px;
}

.product__options {
    display: grid;
    gap: 14px;
}

.product__option {
    display: grid;
    gap: 6px;
    max-width: 320px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.product__option-label {
    display: block;
}

.product__action {
    display: grid;
    gap: 14px;
    max-width: 380px;
    padding-top: 4px;
}

.product__qty {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.product__qty input {
    max-width: 100px;
}

/* ── Product Tabs ── */

.product-tabs {
    padding: 0 5vw 80px;
}

.product-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.product-tabs__tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 24px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
    border-radius: 0;
    min-width: 0;
}

.product-tabs__tab:hover {
    color: var(--ink);
    background: transparent;
}

.product-tabs__tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.product-tabs__panel {
    display: none;
}

.product-tabs__panel.is-active {
    display: block;
}

.product-tabs__empty {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.product__desc {
    line-height: 1.9;
    font-size: 15px;
    color: var(--ink);
}

.product__desc p {
    margin: 0 0 16px;
}

.product__desc p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   Cart Page
   ═══════════════════════════════════════════ */

.cart-page {
    max-width: 920px;
    margin: 0 auto;
}

.cart__empty {
    text-align: center;
    color: var(--muted);
    padding: 48px 0;
    font-size: 15px;
}

.cart__row {
    display: grid;
    grid-template-columns: 72px 1fr 80px 110px 80px 36px;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.cart__row:first-of-type {
    border-top: 1px solid var(--border);
}

.cart__row-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}

.cart__row-info {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.cart__row-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart__row-sku {
    font-size: 12px;
    color: var(--muted);
}

.cart__row-sku small {
    display: block;
    color: var(--muted);
    margin-top: 1px;
}

.cart__row-price,
.cart__row-total {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.cart__row-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    justify-self: center;
}

.cart__row-qty button {
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
}

.cart__row-qty button:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.cart__row-qty span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cart__row-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    min-height: 0;
    transition: background var(--transition), color var(--transition);
}

.cart__row-remove:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.cart__total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 16px;
    padding: 24px 0 0;
    font-size: 18px;
}

.cart__total strong {
    font-size: 22px;
    font-weight: 700;
}

.cart__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

/* ═══════════════════════════════════════════
   Checkout
   ═══════════════════════════════════════════ */

.checkout-page {
    max-width: 1400px;
    margin: 0 auto;
}

.checkout__grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}

.checkout__grid.is-hidden,
.empty-state.is-hidden {
    display: none;
}

.checkout__form {
    display: grid;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #d0cdc7;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.checkout__section {
    display: grid;
    gap: 14px;
}

.checkout__section.is-hidden {
    display: none;
}

.checkout__section-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.checkout__field {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6a6a66;
}

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

.checkout__field--wide {
    grid-column: 1 / -1;
}

.checkout__terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.5;
}

.checkout__terms a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout__terms input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

[data-checkout-message] {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: var(--accent-soft);
}

/* ── Order Summary ── */

.checkout__summary {
    background: #ffffff;
    border: 1px solid #d0cdc7;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 88px;
}

.checkout__summary-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.checkout__empty {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

.checkout__summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #d0cdc7;
    font-size: 14px;
}

.checkout__summary-row:first-of-type {
    padding-top: 0;
}

.checkout__summary-info {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.checkout__summary-info strong {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout__summary-info span {
    font-size: 12px;
    color: #7a7a76;
}

.checkout__summary-qty {
    font-weight: 500;
    white-space: nowrap;
    color: #6a6a66;
}

.checkout__summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 14px;
}

.checkout__summary-line strong {
    color: var(--ink);
    font-weight: 600;
}

.checkout__summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

.payment-card {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.payment-card__head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.payment-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--ink);
}

.payment-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-card__head p {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.payment-card__head strong {
    display: block;
    font-size: 15px;
}

.payment-card__desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.payment-card__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-card__fields.is-hidden {
    display: none;
}

.payment-methods {
    display: grid;
    gap: 10px;
}

.payment-method {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.payment-method.is-selected {
    border-color: var(--ink);
    background: var(--accent-soft);
}

.payment-method input[type="radio"] {
    grid-row: 1 / 3;
    align-self: center;
    width: auto;
}

.payment-method > span:last-child {
    grid-column: 2;
    grid-row: 2;
}

.payment-method strong,
.payment-method small {
    display: block;
}

.payment-method small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════
   Cart Toast
   ═══════════════════════════════════════════ */

.cart-toast {
    position: fixed;
    top: 80px;
    right: 5vw;
    z-index: 9999;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    min-width: 300px;
    max-width: min(380px, calc(100vw - 40px));
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cart-toast-image {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--accent-soft);
}

.cart-toast-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--success);
}

.cart-toast-kicker span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.cart-toast-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.cart-toast-body strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.cart-toast-body > span {
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-toast-actions {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.cart-toast-actions a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid currentColor;
    line-height: 1.2;
    transition: opacity var(--transition);
}

.cart-toast-actions a:hover {
    opacity: 0.6;
}

.cart-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
}

.cart-toast-progress::after {
    content: '';
    display: block;
    height: 100%;
    background: var(--ink);
    animation: toastTimer 2.2s linear forwards;
}

/* ═══════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════ */

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(29, 29, 27, 0.06);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8a86' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ═══════════════════════════════════════════
   Legal / Terms
   ═══════════════════════════════════════════ */

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 5vw 80px;
    line-height: 1.8;
    font-size: 15px;
}

.legal-page h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
}

/* ═══════════════════════════════════════════
   Pagination
   ═══════════════════════════════════════════ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 48px;
}

.pagination__page,
.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.pagination__page {
    color: var(--muted);
}

.pagination__page:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.pagination__page.is-current {
    background: var(--ink);
    color: #fff;
    font-weight: 600;
}

.pagination__ellipsis {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
}

.pagination__arrow:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

/* ═══════════════════════════════════════════
   Empty State
   ═══════════════════════════════════════════ */

.empty-state {
    padding: 80px 5vw;
    text-align: center;
    color: var(--muted);
}

.empty-state h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
}

.empty-state a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════
   Footer (layout)
   ═══════════════════════════════════════════ */

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 32px 5vw;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.footer-policies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    max-width: 980px;
}

.footer-policies a {
    color: var(--ink);
    font-weight: 500;
}

.footer-policies a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-copy {
    color: var(--muted);
}

/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.18); }
}

@keyframes toastTimer {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .product {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: 32px;
    }
}

@media (max-width: 860px) {
    /* ── Header ── */
    .site-header {
        height: auto;
        min-height: 60px;
        padding: 0 5vw;
        flex-wrap: wrap;
        gap: 0;
    }

    .brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
    }

    .hamburger {
        display: inline-flex;
        order: -1;
    }

    .search-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .locale-switcher {
        display: none;
    }

    .cart-menu {
        order: 3;
    }

    .cart-link {
        margin-left: 0;
    }

    /* Nav: hidden on mobile, shown in drawer */
    .nav {
        display: none;
    }

    /* Search: hidden by default, slides open */
    .header-search {
        order: 4;
        flex: 1 1 100%;
        max-width: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin: 0;
        border: none;
        transition: max-height 0.35s var(--ease), opacity 0.25s ease, margin 0.25s ease;
    }

    .header-search.is-open {
        max-height: 56px;
        opacity: 1;
        margin: 0 0 10px;
        border: 1px solid var(--border);
    }

    .header-search.is-open:focus-within {
        border-color: var(--ink);
    }

    .header-search input {
        padding: 10px 4px 10px 14px;
    }

    /* ── Drawer visible on mobile ── */
    .drawer {
        display: flex;
    }

    .drawer-overlay {
        display: block;
    }

    /* ── Hero ── */
    .hero {
        padding: 56px 5vw 48px;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__desc {
        font-size: 16px;
    }

    .shortcode-banner,
    .shortcode-banner img {
        min-height: 360px;
        height: 420px;
    }

    .shortcode-banner__title {
        font-size: 38px;
        bottom: 42px;
    }

    /* ── Sections ── */
    .section {
        padding: 40px 5vw;
    }

    .section__title {
        font-size: 22px;
    }

    /* ── Product Grid ── */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card__body {
        padding: 12px;
    }

    .product-card__title {
        font-size: 13px;
    }

    .product-card__price {
        font-size: 14px;
    }

    /* ── Product Detail ── */
    .product {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 5vw 40px;
    }

    .product__title {
        font-size: 22px;
    }

    .product-tabs {
        padding: 0 5vw 60px;
    }

    .product-tabs__nav {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .product__gallery {
        position: static;
    }

    .product__title {
        font-size: 26px;
    }

    .product__action {
        max-width: none;
    }

    .product__option {
        max-width: none;
    }

    .product__qty input {
        max-width: 80px;
    }

    /* ── Cart Page ── */
    .cart__row {
        grid-template-columns: 56px 1fr auto;
        gap: 8px 10px;
        padding: 14px 0;
        position: relative;
    }

    .cart__row-img {
        width: 56px;
        height: 56px;
        grid-row: span 2;
    }

    .cart__row-info {
        grid-column: 2;
    }

    .cart__row-title {
        font-size: 13px;
    }

    .cart__row-price {
        display: none;
    }

    .cart__row-total {
        grid-column: 3;
        grid-row: 1;
        font-size: 14px;
        font-weight: 600;
        text-align: right;
        white-space: nowrap;
    }

    .cart__row-qty {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .cart__row-qty button {
        min-height: 36px;
        min-width: 38px;
        font-size: 18px;
    }

    .cart__row-qty span {
        min-width: 36px;
        height: 36px;
    }

    .cart__row-remove {
        position: absolute;
        top: 14px;
        right: 0;
    }

    .cart__row-sku small {
        font-size: 11px;
    }

    .cart__total {
        font-size: 16px;
    }

    .cart__total strong {
        font-size: 18px;
    }

    .cart__actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .cart__actions .btn {
        width: 100%;
    }

    /* ── Checkout ── */
    .checkout__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .checkout__fields {
        grid-template-columns: 1fr;
    }

    .checkout__form {
        padding: 24px 20px;
    }

    .checkout__summary {
        padding: 24px 20px;
        position: static;
    }

    .checkout__summary-row {
        font-size: 13px;
    }

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

    /* ── Breadcrumbs ── */
    .breadcrumbs {
        padding: 16px 5vw 0;
        font-size: 12px;
        gap: 6px;
    }

    /* ── Toast ── */
    .cart-toast {
        left: 5vw;
        right: 5vw;
        top: auto;
        bottom: 5vw;
        max-width: none;
        min-width: 0;
    }

    /* ── Footer ── */
    .site-footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-policies {
        gap: 8px 16px;
    }
}

/* ── Extra small screens ── */
@media (max-width: 480px) {
    .site-header {
        min-height: 54px;
    }

    .brand {
        font-size: 16px;
    }

    .brand img {
        max-height: 24px;
        max-width: 130px;
    }

    .hamburger,
    .search-toggle {
        width: 38px;
        height: 38px;
    }

    .cart-link {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .locale-switcher select {
        min-width: 48px;
        padding: 6px 20px 6px 6px;
        font-size: 11px;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero {
        padding: 40px 5vw 36px;
    }

    .section {
        padding: 28px 5vw;
    }

    .section__title {
        font-size: 20px;
    }

    .product-grid {
        gap: 8px;
    }

    .product-card__body {
        padding: 8px;
        gap: 4px;
    }

    .product-card__title {
        font-size: 12px;
    }

    .product-card__price {
        font-size: 13px;
    }

    .product-card__badge {
        top: 6px;
        left: 6px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .cart__row {
        grid-template-columns: 48px 1fr auto;
        gap: 6px 8px;
        padding: 12px 0;
    }

    .cart__row-img {
        width: 48px;
        height: 48px;
    }

    .cart__row-title {
        font-size: 12px;
    }

    .cart__row-total {
        font-size: 13px;
    }

    .cart__row-qty button {
        min-height: 32px;
        min-width: 34px;
        font-size: 16px;
    }

    .cart__row-qty span {
        min-width: 30px;
        height: 32px;
        font-size: 13px;
    }

    .cart__total {
        font-size: 14px;
    }

    .cart__total strong {
        font-size: 16px;
    }

    .product {
        padding: 16px 5vw 32px;
    }

    .product__title {
        font-size: 22px;
    }

    .product-tabs {
        padding: 0 5vw 40px;
    }

    .checkout__form,
    .checkout__summary {
        padding: 20px 16px;
    }
}
