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

:root {
    --bg-primary: #f7efe7;
    --bg-secondary: #f1e4d8;
    --bg-tertiary: #fffaf6;
    --bg-card: rgba(255, 250, 246, 0.86);
    --surface-strong: #fff7f0;
    --primary: #8d4c26;
    --primary-strong: #703714;
    --accent: #d4a26a;
    --header-bg: rgba(37, 19, 9, 0.92);
    --footer-bg: #271208;
    --text-dark: #24120a;
    --text-muted: #735747;
    --text-light: #fff7f1;
    --success: #236741;
    --success-bg: rgba(35, 103, 65, 0.1);
    --error: #a63833;
    --error-bg: rgba(166, 56, 51, 0.1);
    --border-light: rgba(129, 82, 47, 0.14);
    --border-strong: rgba(129, 82, 47, 0.24);
    --shadow-light: 0 18px 50px rgba(61, 30, 12, 0.08);
    --shadow-hover: 0 24px 60px rgba(61, 30, 12, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --max-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(212, 162, 106, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(141, 76, 38, 0.1), transparent 26%),
        linear-gradient(180deg, #fbf5ef 0%, #f7efe7 38%, #f3e7db 100%);
    color: var(--text-dark);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(3.1rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

strong {
    color: var(--text-dark);
}

.eyebrow {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.container {
    width: min(var(--max-width), calc(100vw - 2rem));
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
    gap: 1rem;
}

.page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header.compact {
    align-items: start;
    margin-bottom: 1.25rem;
}

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

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.announcement {
    overflow: hidden;
    background: linear-gradient(90deg, #9d5c31 0%, #b77b4c 45%, #8d4c26 100%);
    color: var(--text-light);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.75rem 1rem;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    animation: announcement-scroll 24s linear infinite;
}

@keyframes announcement-scroll {
    0% { transform: translateX(14%); }
    100% { transform: translateX(-14%); }
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 247, 241, 0.1);
}

nav {
    width: min(var(--max-width), calc(100vw - 2rem));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    max-height: 78px;
    overflow: hidden;
}

.logo-img {
    display: block;
    height: 46px;
    max-height: 46px;
    width: auto;
    max-width: 180px;
    border-radius: 8px;
    background: #fff;
    padding: 4px 8px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo-img:hover {
    opacity: 0.88;
}

.hamburger {
    display: none;
    border: 1px solid rgba(255, 247, 241, 0.18);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 42px;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    list-style: none;
}

/* Hidden on desktop — only revealed inside the mobile hamburger menu */
.nav-links li.nav-mobile-account,
.nav-links li.nav-mobile-account-divider {
    display: none;
}

.nav-links a {
    color: rgba(255, 247, 241, 0.78);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.45rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-account-link,
.nav-utility-link,
.cart-icon {
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-account-link,
.nav-utility-link {
    border: 1px solid rgba(255, 247, 241, 0.18);
    padding: 0.78rem 1rem;
}

.nav-account-link {
    background: rgba(255, 247, 241, 0.12);
}

.nav-utility-link {
    color: rgba(255, 247, 241, 0.82);
    background: rgba(255, 255, 255, 0.04);
}

.nav-account-link:hover,
.nav-utility-link:hover,
.cart-icon:hover {
    transform: translateY(-1px);
}

.cart-icon {
    position: relative;
    min-width: 94px;
    padding: 0.78rem 1rem;
    background: linear-gradient(135deg, rgba(212, 162, 106, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 247, 241, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-label {
    padding-right: 1rem;
}

#cart-count {
    position: absolute;
    right: 0.65rem;
    top: 0.55rem;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--text-light);
    color: var(--primary-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.hero {
    width: min(calc(var(--max-width) + 120px), calc(100vw - 1rem));
    min-height: min(82vh, 760px);
    margin: 1rem auto 0;
    overflow: hidden;
    position: relative;
    border-radius: 34px;
    box-shadow: var(--shadow-light);
}

.hero-slide {
    display: none;
    width: 100%;
    min-height: min(82vh, 760px);
    align-items: end;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(28, 13, 5, 0.78) 10%, rgba(28, 13, 5, 0.26) 56%, rgba(28, 13, 5, 0.62) 100%);
}

.hero-slide.active {
    display: flex;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(540px, calc(100% - 2rem));
    margin: 0 0 3.2rem 3rem;
    padding: 0;
    background: none;
    color: var(--text-light);
    text-align: left;
}

.hero-content h1,
.hero-content p {
    color: var(--text-light);
}

.hero-content h1 {
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-content p {
    max-width: 34ch;
    font-size: 1.08rem;
    margin-top: 1rem;
}

.banner-hero {
    margin: 2rem auto 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(141, 76, 38, 0.95), rgba(112, 55, 20, 0.95));
    color: var(--text-light);
}

.banner-hero h1,
.banner-hero p {
    color: var(--text-light);
}

.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-light);
    padding: 1.8rem;
    backdrop-filter: blur(22px);
}

.summary-card {
    align-self: start;
    position: sticky;
    top: 110px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: rgba(255, 250, 246, 0.8);
    border: 1px solid rgba(129, 82, 47, 0.12);
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(129, 82, 47, 0.2);
}

.product-card-link {
    color: inherit;
    display: block;
    flex: 1;
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, rgba(141, 76, 38, 0.06), rgba(212, 162, 106, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.015);
}

.product-detail-image {
    height: min(72vh, 680px);
    min-height: 420px;
}

.placeholder-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(112, 55, 20, 0.55);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-info {
    padding: 1.35rem 1.4rem 1rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary-strong);
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.product-type {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.product-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    min-height: 6.4em;
}

.product-card-actions {
    padding: 0 1.4rem 1.4rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: rgba(36, 18, 10, 0.72);
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.collection-section,
.story-callout {
    margin-top: 3rem;
}

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

.collection-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    padding: 1.4rem;
    border-radius: 28px;
    background:
        linear-gradient(155deg, rgba(255, 250, 246, 0.92), rgba(243, 231, 219, 0.92)),
        radial-gradient(circle at top right, rgba(212, 162, 106, 0.18), transparent 28%);
    border: 1px solid rgba(129, 82, 47, 0.12);
    box-shadow: var(--shadow-light);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.collection-card p:last-of-type {
    margin-bottom: 1.2rem;
}

.collection-card span {
    color: var(--primary-strong);
    font-size: 0.92rem;
    font-weight: 800;
}

.story-callout-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(39, 18, 8, 0.96), rgba(112, 55, 20, 0.96)),
        radial-gradient(circle at top right, rgba(212, 162, 106, 0.2), transparent 22%);
    box-shadow: var(--shadow-light);
}

.story-callout-card h2,
.story-callout-card p {
    color: var(--text-light);
}

.story-callout-copy {
    display: grid;
    align-content: center;
}

.categories {
    margin-bottom: 1rem;
}

.category-buttons,
.subcategory-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.subcategories {
    margin-bottom: 1.5rem;
}

.cat-btn,
.subcat-btn {
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(255, 250, 246, 0.78);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.82rem 1.15rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cat-btn:hover,
.cat-btn.active,
.subcat-btn:hover,
.subcat-btn.active {
    background: linear-gradient(135deg, rgba(141, 76, 38, 0.95), rgba(112, 55, 20, 0.95));
    border-color: transparent;
    color: var(--text-light);
    transform: translateY(-1px);
}

.subcat-btn {
    background: rgba(255, 255, 255, 0.64);
    font-size: 0.86rem;
    padding: 0.68rem 1rem;
}

.filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.cta-button,
.add-to-cart {
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.94rem;
    font-weight: 800;
    min-height: 50px;
    padding: 0.92rem 1.35rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.cta-button,
.add-to-cart {
    border: none;
    background: linear-gradient(135deg, #a56131 0%, #87441e 100%);
    box-shadow: 0 14px 28px rgba(141, 76, 38, 0.18);
    color: var(--text-light);
}

.btn-secondary {
    background: rgba(255, 250, 246, 0.7);
    border: 1px solid var(--border-strong);
    color: var(--primary-strong);
}

.btn-primary:hover,
.btn-secondary:hover,
.cta-button:hover,
.add-to-cart:hover {
    transform: translateY(-2px);
}

.btn-primary:disabled,
.add-to-cart:disabled {
    cursor: wait;
    opacity: 0.8;
}

.btn-block {
    width: 100%;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    color: var(--primary-strong);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(129, 82, 47, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.98rem;
    min-height: 54px;
    padding: 0.95rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    min-height: 132px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: rgba(141, 76, 38, 0.44);
    box-shadow: 0 0 0 4px rgba(141, 76, 38, 0.1);
    outline: none;
}

input[type='checkbox'],
input[type='radio'] {
    width: 1.1rem;
    min-height: 1.1rem;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
}

.checkbox-row {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    cursor: pointer;
}

.status-message {
    border-radius: 22px;
    border: 1px solid var(--border-light);
    background: rgba(255, 250, 246, 0.86);
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-light);
}

.status-message a {
    color: var(--primary-strong);
    font-weight: 700;
}

.status-success {
    background: var(--success-bg);
    border-color: rgba(35, 103, 65, 0.24);
    color: var(--success);
}

.status-error {
    background: var(--error-bg);
    border-color: rgba(166, 56, 51, 0.24);
    color: var(--error);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(141, 76, 38, 0.1);
    color: var(--primary-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(129, 82, 47, 0.12);
}

.cart-row:last-child {
    border-bottom: none;
}

.auth-page,
.checkout-page,
.account-page {
    padding: 2rem 0 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-intro,
.auth-card {
    border-radius: 32px;
    min-height: 100%;
}

.auth-intro {
    padding: 3rem;
    background:
        linear-gradient(145deg, rgba(39, 18, 8, 0.95), rgba(91, 45, 19, 0.96)),
        radial-gradient(circle at top right, rgba(212, 162, 106, 0.28), transparent 25%);
    color: var(--text-light);
    box-shadow: var(--shadow-light);
}

.auth-intro h1,
.auth-intro p {
    color: var(--text-light);
}

.auth-intro p {
    max-width: 36ch;
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.auth-benefits span {
    border-radius: 999px;
    border: 1px solid rgba(255, 247, 241, 0.18);
    color: rgba(255, 247, 241, 0.88);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-card {
    background: rgba(255, 250, 246, 0.92);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
    padding: 2.2rem;
}

.auth-form {
    margin-top: 1rem;
}

.auth-switch {
    margin-top: 1rem;
    margin-bottom: 0;
}

.auth-switch a {
    color: var(--primary-strong);
    font-weight: 800;
}

.account-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    padding: 2rem 0 1.5rem;
}

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

.account-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-summary-card {
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: rgba(255, 250, 246, 0.82);
    box-shadow: var(--shadow-light);
    padding: 1.35rem 1.4rem;
}

.account-summary-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.account-summary-value {
    color: var(--text-dark);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0;
}

.account-summary-text {
    margin-bottom: 0;
}

.account-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-side-stack {
    display: grid;
    gap: 1.5rem;
}

.account-card {
    height: fit-content;
}

.account-form {
    margin-top: 0.25rem;
}

.account-note {
    margin-bottom: 0;
}

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

.account-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(129, 82, 47, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
}

.account-order-id {
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 0.1rem;
}

.account-order-date {
    margin-bottom: 0;
}

.account-order-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: end;
}

.checkout-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: end;
    padding: 2rem 0 1.5rem;
}

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

.checkout-hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.75rem;
}

.checkout-hero-points span,
.checkout-trust-list div {
    border: 1px solid rgba(129, 82, 47, 0.14);
    border-radius: 999px;
    background: rgba(255, 250, 246, 0.76);
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.75rem 0.95rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    gap: 1.5rem;
    align-items: start;
}

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

.checkout-form,
.checkout-summary,
.checkout-success,
.checkout-payment {
    overflow: hidden;
}

.checkout-account-banner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(129, 82, 47, 0.12);
    border-radius: 24px;
    background: rgba(255, 250, 246, 0.78);
    box-shadow: var(--shadow-light);
}

.checkout-account-banner p:last-child {
    margin-bottom: 0;
}

.checkout-account-option {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(141, 76, 38, 0.05);
    border: 1px solid rgba(129, 82, 47, 0.12);
}

.checkout-inline-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(129, 82, 47, 0.2);
}

.checkout-payment-header {
    margin-top: 1rem;
}

.checkout-payment-grid {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.checkout-payment-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(129, 82, 47, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    cursor: pointer;
}

.checkout-payment-option span {
    display: grid;
    gap: 0.12rem;
}

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

.checkout-summary-list {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.35rem;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.checkout-summary-item p {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.checkout-summary-thumb {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(141, 76, 38, 0.08);
}

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

.checkout-summary-totals {
    display: grid;
    gap: 0.7rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(129, 82, 47, 0.12);
}

.checkout-summary-totals div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-total {
    padding-top: 0.45rem;
    margin-top: 0.2rem;
    border-top: 1px dashed rgba(129, 82, 47, 0.12);
}

.checkout-total strong {
    font-size: 1.18rem;
}

.checkout-trust-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.checkout-success {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkout-success h2 {
    margin-top: -0.1rem;
}

footer {
    margin-top: 5rem;
    background:
        linear-gradient(160deg, rgba(39, 18, 8, 0.98), rgba(61, 30, 12, 0.96)),
        radial-gradient(circle at top right, rgba(212, 162, 106, 0.2), transparent 20%);
    color: var(--text-light);
    padding: 3.5rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 0.9rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 247, 241, 0.78);
}

.footer-section a {
    display: block;
    margin-bottom: 0.45rem;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--text-light);
}

.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 999px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in-up {
    animation: fade-in-up 0.7s ease forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(141, 76, 38, 0.08);
}

::-webkit-scrollbar-thumb {
    background: rgba(141, 76, 38, 0.46);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(141, 76, 38, 0.62);
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 0.9rem;
    }

    .grid-cols-3,
    .grid-cols-4,
    .account-summary-grid,
    .footer-content,
    .collection-grid,
    .story-callout-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-grid,
    .checkout-layout,
    .checkout-hero,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .checkout-hero-points {
        justify-content: start;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .logo-img {
        height: 42px;
        padding: 4px 8px;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        top: calc(100% + 0.4rem);
        padding: 1rem;
        border: 1px solid rgba(255, 247, 241, 0.1);
        border-radius: 24px;
        background: rgba(37, 19, 9, 0.98);
        box-shadow: var(--shadow-light);
        flex-direction: column;
        align-items: start;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-account-link,
    .nav-utility-link {
        display: none;
    }

    .nav-links li.nav-mobile-account {
        display: list-item;
        width: 100%;
    }

    .nav-links li.nav-mobile-account .nav-account-link,
    .nav-links li.nav-mobile-account .nav-utility-link {
        display: inline-flex;
        width: auto;
    }

    .nav-links li.nav-mobile-account-divider {
        display: list-item;
        border-top: 1px solid rgba(255, 247, 241, 0.12);
        margin: 0.5rem 0;
    }

    .hero-content {
        margin: 0 1.25rem 1.75rem;
        width: calc(100% - 2.5rem);
    }

    .hero,
    .hero-slide {
        min-height: 70vh;
    }
}

@media (max-width: 720px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .account-summary-grid,
    .footer-content,
    .collection-grid,
    .story-callout-card {
        grid-template-columns: 1fr;
    }

    nav {
        min-height: 70px;
    }

    .hero {
        width: calc(100vw - 0.75rem);
        border-radius: 28px;
    }

    .product-image {
        height: 360px;
    }

    .page-header,
    .account-hero,
    .checkout-account-banner,
    .filters {
        align-items: start;
    }

    .account-order-card {
        align-items: start;
        flex-direction: column;
    }

    .account-order-meta {
        justify-content: start;
    }

    .checkout-summary-item {
        grid-template-columns: 56px 1fr;
    }

    .checkout-summary-item strong:last-child {
        grid-column: 2;
    }
}

@media (max-width: 540px) {
    .container,
    nav {
        width: min(var(--max-width), calc(100vw - 1rem));
    }

    .card,
    .auth-intro,
    .auth-card {
        padding: 1.35rem;
    }

    .auth-intro {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .btn-primary,
    .btn-secondary,
    .cta-button,
    .add-to-cart {
        width: 100%;
    }

    .cart-icon {
        min-width: 84px;
    }

    .cart-label {
        padding-right: 0.8rem;
    }
}
