/* ==========================================================================
   Deluxor — loja
   ========================================================================== */

:root {
    --bg: #050505;
    --surface: #0e0e0e;
    --surface-2: #151515;
    --surface-3: #1d1d1d;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.22);
    --text: #f3f3f3;
    --muted: #a6a6a6;
    --faint: #6f6f6f;
    --white: #ffffff;
    --gold: #d4b477;
    --gold-soft: rgba(212, 180, 119, 0.14);
    --success: #6fcf97;
    --warn: #e9b949;
    --danger: #ff7a7a;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --page-width: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.06), transparent 40%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

body > main {
    flex: 1;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    color: inherit;
}

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

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--surface-3);
    font-size: 0.9em;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.text-success { color: var(--success); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.success { color: var(--success); }

.eyebrow,
.kicker {
    display: inline-block;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    background: var(--surface-3);
    color: var(--text);
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled,
.button.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.button-primary {
    background: var(--white);
    color: #000;
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.1);
}

.button-primary:hover:not(:disabled) {
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.18);
}

.button-ghost {
    background: transparent;
    border-color: var(--border-strong);
}

.button-ghost:hover:not(:disabled) {
    border-color: var(--white);
}

.button-danger {
    background: transparent;
    border-color: rgba(255, 122, 122, 0.4);
    color: var(--danger);
}

.button-small {
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.82rem;
}

.button.full {
    width: 100%;
}

.button.grow {
    flex: 1;
}

.link-button {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-button:hover {
    color: var(--white);
}

.link-button.danger {
    color: var(--danger);
}

.link-button.strong {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.link-arrow:hover {
    color: var(--white);
}

.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.icon-button.outline {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-strong);
}

.icon-button svg,
.favorite-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------------------------------------------------------- forms */

.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.input:hover {
    border-color: var(--border-strong);
}

.input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.input::placeholder {
    color: var(--faint);
}

select.input {
    appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

select.input option {
    background: var(--surface-2);
}

textarea.input {
    resize: vertical;
}

.input-small {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form label,
.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

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

.form-grid .span-2 {
    grid-column: span 2;
}

.form-error {
    color: var(--danger);
    font-size: 0.88rem;
}

.field-error {
    color: var(--danger);
    font-size: 0.78rem;
}

.field-error:empty {
    display: none;
}

.field-hint {
    font-size: 0.78rem;
}

.field-hint a {
    color: var(--muted);
}

.input[aria-invalid="true"] {
    border-color: var(--danger);
    background: rgba(255, 122, 122, 0.06);
}

.secure-note {
    margin-top: 6px;
}

.form-error:empty {
    display: none;
}

.check {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    cursor: pointer;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}

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

/* ---------------------------------------------------------------- header */

.announcement {
    padding: 8px var(--gutter);
    background: var(--gold);
    color: #1a1407;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    height: 76px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(14px);
}

.menu-toggle {
    display: none;
}

.brand img {
    width: 150px;
    filter: drop-shadow(0 8px 14px rgba(255, 255, 255, 0.1));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    position: relative;
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--white);
}

.site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold);
}

.site-nav .admin-link {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding-left: 14px;
    transition: border-color 0.2s ease;
}

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

.header-search input {
    width: 160px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
}

.account-name:empty {
    display: none;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: #000;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ---------------------------------------------------------------- layout */

.page {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 40px var(--gutter) 96px;
}

.page.narrow {
    max-width: 920px;
}

.page-hero {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
    animation: rise 0.7s ease-out both;
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.page-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.page-hero.compact {
    margin-bottom: 28px;
}

.page-hero.compact h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.section {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 72px var(--gutter) 0;
}

.page .section {
    padding-left: 0;
    padding-right: 0;
}

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

.section-heading h2 {
    margin-top: 6px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.breadcrumb {
    margin-bottom: 28px;
    color: var(--faint);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--white);
}

.panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.panel + .panel,
.panel + .two-columns,
.two-columns + .row,
.timeline + .panel,
.panel + .row {
    margin-top: 20px;
}

.panel h2 {
    margin-bottom: 18px;
    font-size: 1.6rem;
}

.panel h2.spaced {
    margin-top: 24px;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* The grid gap already spaces the cards; drop the stacked-panel margin inside it. */
.two-columns > .panel + .panel {
    margin-top: 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 64px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state h1 {
    color: var(--text);
    font-size: 2.6rem;
}

.not-found-logo {
    width: 200px;
}

/* ---------------------------------------------------------------- home */

.home-hero {
    position: relative;
    min-height: calc(100svh - 110px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px var(--gutter) 80px;
    overflow: hidden;
    text-align: center;
}

.home-hero-glow {
    position: absolute;
    inset: auto 50% 50% auto;
    width: 900px;
    height: 900px;
    transform: translate(50%, 50%);
    background: radial-gradient(circle, rgba(212, 180, 119, 0.12), transparent 60%);
    pointer-events: none;
    animation: glow 8s ease-in-out infinite alternate;
}

.home-logo {
    position: relative;
    width: min(620px, 82vw);
    animation: logo-in 1.1s ease-out both;
}

.home-tagline {
    position: relative;
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    font-style: italic;
    animation: rise 0.8s 0.25s ease-out both;
}

.hero-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    animation: rise 0.8s 0.4s ease-out both;
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    width: 26px;
    height: 42px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
}

.scroll-hint span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--gold);
    animation: scroll-dot 1.8s ease-in-out infinite;
}

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: var(--surface);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee-track span {
    padding: 16px 32px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-track span::after {
    content: "✦";
    margin-left: 64px;
    color: var(--gold);
}

.collections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.collection-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.collection-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75));
}

.collection-card > * {
    position: relative;
}

.collection-card h3 {
    margin: 6px 0;
    font-size: 2.4rem;
}

.collection-card p {
    color: var(--muted);
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.perks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--border);
}

.perk {
    padding: 28px 24px;
    background: var(--surface);
}

.perk strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.perk strong::before {
    content: "✦ ";
    color: var(--gold);
    font-size: 0.9rem;
}

.perk p {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid rgba(212, 180, 119, 0.35);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 10%, rgba(212, 180, 119, 0.18), transparent 50%),
        var(--surface);
}

.cta-banner h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.cta-banner p {
    color: var(--muted);
}

/* ---------------------------------------------------------------- catalog */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

.toolbar-right .input {
    width: 220px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: var(--border-strong);
    color: var(--white);
}

.chip.active {
    background: var(--white);
    border-color: transparent;
    color: #000;
}

.result-count {
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

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

.product-card-media {
    display: block;
}

.product-visual,
.product-detail-visual,
.thumb-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-visual {
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--border);
}

.product-visual img,
.product-detail-visual img,
.thumb-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-visual img {
    transform: scale(1.04);
}

/* Abstract placeholder art used when a product has no photo. */
.product-visual:not(.has-image)::before,
.product-visual:not(.has-image)::after,
.product-detail-visual:not(.has-image)::before,
.product-detail-visual:not(.has-image)::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.6s ease;
}

.product-visual:not(.has-image)::before,
.product-detail-visual:not(.has-image)::before {
    width: 58%;
    height: 56%;
    transform: rotate(-12deg);
    background: rgba(255, 255, 255, 0.08);
}

.product-visual:not(.has-image)::after,
.product-detail-visual:not(.has-image)::after {
    width: 40%;
    height: 40%;
    transform: rotate(12deg);
    background: rgba(255, 255, 255, 0.16);
}

.product-card:hover .product-visual::before {
    transform: rotate(-6deg) scale(1.04);
}

.product-card:hover .product-visual::after {
    transform: rotate(18deg) scale(1.04);
}

.visual-1 { background: linear-gradient(135deg, #1a1a1a, #3b3b3b 40%, #0f0f0f); }
.visual-2 { background: linear-gradient(135deg, #151515, #4d4d4d 42%, #111111); }
.visual-3 { background: linear-gradient(135deg, #0e0e0e, #4d3b2d 45%, #111111); }
.visual-4 { background: linear-gradient(135deg, #111111, #2b2b2b 38%, #0b0b0b); }
.visual-5 { background: linear-gradient(135deg, #171717, #595959 44%, #0d0d0d); }
.visual-6 { background: linear-gradient(135deg, #121212, #4a3f2a 38%, #0a0a0a); }

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-badge.sold-out {
    left: auto;
    right: 14px;
    border-color: rgba(255, 122, 122, 0.4);
    color: var(--danger);
}

.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    color: var(--white);
    transition: transform 0.2s ease, color 0.2s ease;
}

.favorite-button:hover {
    transform: scale(1.08);
}

.favorite-button.active svg,
.favorite-toggle.active svg {
    fill: var(--gold);
    stroke: var(--gold);
}

.product-card:has(.sold-out) .favorite-button {
    top: 50px;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stock-note {
    color: var(--faint);
}

.stock-note.low {
    color: var(--warn);
}

.stock-note.out {
    color: var(--danger);
}

.product-body h3 {
    font-size: 1.55rem;
}

.product-body h3 a {
    text-decoration: none;
}

.product-body p {
    flex: 1;
    margin: 6px 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
}

.skeleton-card {
    min-height: 380px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-card.tall {
    min-height: 520px;
}

/* ---------------------------------------------------------------- product page */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.product-detail-visual {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    animation: rise 0.7s ease-out both;
}

.product-detail-content {
    animation: rise 0.7s 0.1s ease-out both;
}

.product-detail-content h1 {
    margin: 10px 0 16px;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.product-detail-description {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 6px;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 600;
}

.price-row .stock-note {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.buy-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
}

.qty-control button:hover:not(:disabled) {
    background: var(--surface-3);
}

.qty-control button:disabled {
    opacity: 0.3;
}

.qty-control span {
    min-width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.qty-control.large {
    height: 46px;
    padding: 0 6px;
}

.qty-control.large button {
    width: 34px;
    height: 34px;
}

.detail-perks {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    list-style: none;
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-perks li + li {
    margin-top: 8px;
}

.detail-perks li::before {
    content: "✦";
    margin-right: 10px;
    color: var(--gold);
}

/* ---------------------------------------------------------------- gallery */

.product-visual .alt-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-visual .alt-image {
    opacity: 1;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.gallery-main {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }

.gallery-main:hover .gallery-arrow,
.gallery-arrow:focus-visible {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    flex: 0 0 76px;
    height: 76px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--surface-2);
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

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

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--gold);
    opacity: 1;
}

@media (hover: none) {
    .gallery-arrow {
        opacity: 1;
    }
}

/* ---------------------------------------------------------------- notices */

.notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid rgba(233, 185, 73, 0.45);
    border-radius: var(--radius);
    background: rgba(233, 185, 73, 0.07);
}

.notice p {
    color: var(--muted);
    font-size: 0.92rem;
}

.notice strong {
    color: var(--warn);
}

.form-link {
    align-self: flex-start;
}

.google-slot {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.button-google {
    gap: 10px;
    background: var(--white);
    color: #1f1f1f;
    border-color: #dadce0;
}

.button-google:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--faint);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-card.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.center-row {
    justify-content: center;
    margin-top: 8px;
}

/* ---------------------------------------------------------------- cart drawer */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    visibility: hidden;
}

.drawer.open {
    visibility: visible;
}

.drawer-backdrop,
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.drawer-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer.open .drawer-backdrop {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    border-left: 1px solid var(--border);
    background: var(--surface);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.drawer-header,
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.drawer-header h2,
.modal-header h2 {
    font-size: 1.7rem;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1;
}

.drawer-close:hover {
    background: var(--surface-3);
    color: var(--white);
}

.shipping-progress {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}

.shipping-progress p:empty + .progress-track {
    display: none;
}

.shipping-progress strong {
    color: var(--gold);
}

.progress-track {
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
    transition: width 0.4s ease;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 0;
    color: var(--muted);
}

.cart-line {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-thumb .thumb-visual,
.thumb-cell .thumb-visual {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.thumb-visual:not(.has-image)::before {
    content: "";
    width: 50%;
    height: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    transform: rotate(-12deg);
    background: rgba(255, 255, 255, 0.1);
}

.cart-line-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-line-info a {
    font-weight: 600;
    text-decoration: none;
}

.cart-line-info > span {
    color: var(--muted);
    font-size: 0.85rem;
}

.cart-line-info .qty-control {
    align-self: flex-start;
    margin-top: 6px;
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--muted);
}

.total-line strong {
    color: var(--white);
    font-size: 1.2rem;
}

/* ---------------------------------------------------------------- modal */

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 16px;
}

.modal[hidden] {
    display: none;
}

.modal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: calc(100vh - 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: pop 0.25s ease-out both;
}

.modal-body {
    overflow-y: auto;
    padding: 24px;
}

.modal-body h3 {
    margin: 20px 0 6px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------- account */

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    animation: rise 0.6s ease-out both;
}

.auth-card h1 {
    font-size: 2.2rem;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface-2);
}

.tab {
    padding: 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.88rem;
}

.tab[aria-selected="true"] {
    background: var(--white);
    color: #000;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.account-header h1 {
    margin-top: 6px;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.account-header-actions {
    display: flex;
    gap: 10px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.order-row:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.order-row > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.order-row .small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pending { color: var(--warn); }
.status-paid { color: var(--success); }
.status-shipped { color: #7fb2ff; }
.status-delivered { color: var(--text); }
.status-cancelled { color: var(--danger); }
.status-refunded { color: #c39bff; }

.tracking-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.tracking-code {
    padding: 8px 14px;
    border: 1px dashed var(--gold);
    border-radius: 10px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.success-banner {
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid rgba(111, 207, 151, 0.4);
    border-radius: var(--radius);
    background: rgba(111, 207, 151, 0.08);
}

.success-banner strong {
    color: var(--success);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
    list-style: none;
    counter-reset: step;
}

.timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--faint);
    font-size: 0.8rem;
    text-align: center;
}

.timeline li span {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    border: 2px solid var(--surface-3);
    border-radius: 50%;
    background: var(--bg);
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--surface-3);
}

.timeline li:first-child::before {
    display: none;
}

.timeline li.done {
    color: var(--text);
}

.timeline li.done span {
    border-color: var(--gold);
    background: var(--gold);
}

.timeline li.done::before {
    background: var(--gold);
}

.timeline li.current span {
    box-shadow: 0 0 0 5px var(--gold-soft);
}

.pix-panel {
    border-color: rgba(212, 180, 119, 0.4);
}

.pix-code {
    margin: 14px 0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.78rem;
    word-break: break-all;
}

/* ---------------------------------------------------------------- checkout */

.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-main .panel + .panel {
    margin-top: 0;
}

.checkout h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
}

.checkout-summary {
    position: sticky;
    top: 96px;
}

.demo-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px dashed rgba(233, 185, 73, 0.5);
    border-radius: 10px;
    background: rgba(233, 185, 73, 0.06);
    color: var(--muted);
    font-size: 0.85rem;
}

.demo-note strong {
    color: var(--warn);
}

.payment-options {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-option:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.payment-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.payment-option span {
    display: flex;
    flex-direction: column;
}

.payment-option small {
    color: var(--muted);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.summary-line span:first-child {
    color: var(--muted);
}

.coupon-row {
    display: flex;
    gap: 8px;
}

.coupon-row .button {
    min-height: 44px;
}

#couponMessage {
    min-height: 1.4em;
    margin-top: 6px;
}

.totals {
    margin: 12px 0 18px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.totals div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.totals dd {
    color: var(--text);
}

.totals .grand {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
}

.checkout-summary .form-error {
    margin-bottom: 12px;
}

.checkout-summary .button {
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    margin-top: 96px;
    padding: 56px var(--gutter) 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg), #141414);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
    max-width: var(--page-width);
    margin: 0 auto 40px;
}

.footer-grid > * {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid .kicker {
    margin-bottom: 6px;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.04em;
}

.footer-grid p {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-grid a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--gold);
}

.footer-pay {
    margin-top: 8px;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em;
}

.footer-copy {
    max-width: var(--page-width);
    margin: 0 auto;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 0.8rem;
    text-align: center;
}

.footer-legal {
    display: block;
    margin-top: 6px;
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* ---------------------------------------------------------------- policy pages */

.legal {
    max-width: 780px;
}

.legal h1 {
    margin: 10px 0 8px;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.legal .updated {
    margin-bottom: 32px;
    color: var(--faint);
    font-size: 0.85rem;
}

.legal h2 {
    margin: 36px 0 12px;
    font-size: 1.7rem;
}

.legal p,
.legal li {
    color: var(--muted);
    line-height: 1.75;
}

.legal p + p {
    margin-top: 12px;
}

.legal ul {
    margin: 10px 0 0 20px;
}

.legal li + li {
    margin-top: 6px;
}

.legal strong {
    color: var(--text);
}

.legal a {
    color: var(--gold);
}

/* Information the store owner still has to fill in. */
.to-fill {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(233, 185, 73, 0.18);
    color: var(--warn);
    font-weight: 600;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    padding: 18px 0;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    float: right;
    color: var(--gold);
    font-size: 1.2rem;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    padding-bottom: 18px;
}

/* ---------------------------------------------------------------- toast */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-3);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast[data-type="error"] {
    border-color: rgba(255, 122, 122, 0.5);
    color: var(--danger);
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- motion */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.product-grid .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.product-grid .reveal:nth-child(3n + 3) { transition-delay: 0.16s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes logo-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes glow {
    from { opacity: 0.6; transform: translate(50%, 50%) scale(0.9); }
    to { opacity: 1; transform: translate(50%, 50%) scale(1.1); }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes scroll-dot {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
    .header-search input {
        width: 110px;
    }

    .site-nav {
        gap: 18px;
    }

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

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

@media (max-width: 860px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        height: 64px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .brand {
        justify-self: center;
    }

    .brand img {
        width: 120px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px var(--gutter) 16px;
        border-bottom: 1px solid var(--border);
        background: rgba(5, 5, 5, 0.97);
    }

    .site-header.menu-open .site-nav {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
    }

    .site-nav a[aria-current="page"]::after {
        display: none;
    }

    .header-search,
    .account-name {
        display: none;
    }

    .product-grid,
    .collections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail,
    .checkout,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .product-grid,
    .collections,
    .perks,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .collection-card {
        min-height: 220px;
    }

    .toolbar-right,
    .toolbar-right .input {
        width: 100%;
    }

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

    .form-grid .span-2 {
        grid-column: auto;
    }

    .panel,
    .auth-card {
        padding: 20px;
    }

    .order-row {
        grid-template-columns: 1fr auto;
    }

    .order-row .status {
        grid-row: 2;
    }

    .timeline li {
        font-size: 0.68rem;
    }

    .buy-row {
        flex-wrap: wrap;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}
