:root {
    --bg: #fbf8f4;
    --paper: #ffffff;
    --ink: #1f1813;
    --muted: #6b5e55;
    --line: #e8ded5;
    --gold: #b78b5a;
    --gold2: #d8ba94;
    --dark: #1e1713;
    --primary: #1e1713;
    --primary-hover: #34251e;
    --success: #1e7a4d;
    --danger: #b23b3b;
    --info: #1d63b8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 16px 45px rgba(44, 31, 23, 0.08);
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.04);
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

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

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

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

.container {
    width: min(var(--max), calc(100% - 32px));
    max-width: calc(100% - 32px);
    margin: auto;
    box-sizing: border-box;
}

/* Top Bar */
.topbar {
    background: var(--dark);
    color: #f9eee5;
    font-size: 13px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
}

/* Site Header */
.site-head {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 244, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.head-main {
    display: grid;
    grid-template-columns: 240px minmax(280px, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.logo span {
    color: var(--gold);
}

.searchbox {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 6px 4px 18px;
    box-shadow: var(--shadow-sm);
}

.searchbox input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding: 8px 0;
}

.searchbox button {
    background: var(--dark);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.searchbox button:hover {
    background: var(--primary-hover);
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.badge {
    background: var(--gold);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 4px;
}

/* Nav Menu & Category Scroll Pills */
.nav {
    border-top: 1px solid var(--line);
    background: #faf6f2;
    padding: 6px 0;
}

.nav-scroll-container,
.category-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

.nav-scroll-container::-webkit-scrollbar,
.category-pills-row::-webkit-scrollbar {
    display: none;
}

.nav-pill,
.home-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line, #e7dbd0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 13.5px;
    font-weight: 600;
    color: #2d201a;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.nav-pill:hover,
.home-cat-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.nav-pill.active,
.home-cat-pill.active {
    background: #2d201a;
    color: #ffffff;
    border-color: #2d201a;
    box-shadow: 0 2px 8px rgba(45, 32, 26, 0.25);
}

.nav-pill-icon,
.home-cat-icon {
    font-size: 16px;
    line-height: 1;
}

.category-pills-row {
    padding: 4px 0 16px 0;
}

/* Hero Section */
.hero {
    padding: 34px 0 20px;
}

.hero-box {
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: grid;
    align-items: center;
    background: radial-gradient(circle at 75% 35%, #ead6c1 0 12%, transparent 13%), linear-gradient(110deg, #2a1d18 0 54%, #b78b5a 54% 100%);
    color: #ffffff;
}

.hero-slider-wrap {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at 75% 35%, #3d2920 0 14%, transparent 15%), linear-gradient(115deg, #1f1511 0%, #2e2019 50%, #463024 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    color: #ffffff;
    user-select: none;
}
.hero-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}
.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 28px;
    min-height: 480px;
    padding: 44px 54px;
    position: relative;
}

.hero-copy {
    padding: 55px;
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.05;
    margin: 10px 0 18px;
}

.hero p {
    font-size: 17px;
    color: #eaded5;
    max-width: 570px;
}

.hero-jewel {
    position: absolute;
    right: 7%;
    top: 11%;
    width: 34%;
    aspect-ratio: 1;
    border: 3px solid #f8e5c2;
    border-radius: 50%;
    box-shadow: 0 0 0 22px #ffffff0d, 0 0 0 45px #ffffff09;
}

.hero-jewel:after {
    content: "◆";
    position: absolute;
    left: 50%;
    bottom: -62px;
    transform: translateX(-50%);
    font-size: 95px;
    color: #f1d4a7;
    text-shadow: 0 12px 30px #0004;
}

/* Sections & Typography */
.section {
    padding: 56px 0;
}

.section-sm {
    padding: 32px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-kicker {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 700;
}

.section-title {
    font-family: Georgia, serif;
    font-size: 32px;
    margin: 4px 0 0;
}

/* Grids */
.grid {
    display: grid;
    gap: 20px;
}

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

.cat {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 14px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.cat-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f5ece4;
    color: var(--gold);
    font-size: 30px;
}

.cat b {
    font-family: Georgia, serif;
    font-size: 15px;
}

/* Product Cards */
.product-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fbf8f4;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

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

.product-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 700;
}

.product-name {
    font-family: Georgia, serif;
    font-size: 16px;
    margin: 6px 0 8px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

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

del {
    color: var(--muted);
    margin-left: 8px;
    font-size: 14px;
}

.rating {
    font-size: 12px;
    color: var(--gold);
    margin: 6px 0 12px;
    font-weight: 600;
}

.product-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Collections Grid */
.collection-grid {
    grid-template-columns: repeat(3, 1fr);
}

.collection-card {
    min-height: 240px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #2b201a, #8d6b4f);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
}

.collection-card.has-image {
    background-size: cover;
    background-position: center;
}

.collection-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 14, 11, 0.82), rgba(20, 14, 11, 0.08));
}

.collection-copy {
    position: relative;
    z-index: 2;
    padding: 22px;
}

.collection-copy h3 {
    font: 700 26px Georgia, serif;
    margin: 4px 0;
}

.collection-copy p {
    margin: 0;
    color: #ebded5;
    font-size: 13px;
}

.collection-count {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    border: 1px solid #ffffff44;
    border-radius: 99px;
    padding: 4px 8px;
}

/* Trust & Journal */
.trust {
    grid-template-columns: repeat(4, 1fr);
}

.trust .card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.trust-icon {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 6px;
}

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

.journal .card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.journal h3 {
    font: 700 20px/1.3 Georgia, serif;
    margin: 6px 0;
}

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

/* Card generic */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
    background: var(--dark);
    color: #ffffff;
}

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

.btn-gold {
    background: var(--gold);
    color: #ffffff;
}

.btn-gold:hover {
    background: #a27847;
}

.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    background: #f5ece4;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

/* Forms & Registration */
.auth-container {
    max-width: 680px;
    margin: 35px auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-badge {
    background: #f5ece4;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 8px;
}

.auth-title {
    font-family: Georgia, serif;
    font-size: 34px;
    margin: 4px 0 8px;
}

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

.form-section-title {
    font-family: Georgia, serif;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

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

.col-12 {
    grid-column: span 12;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b3e34;
    margin-bottom: 6px;
}

.field .req {
    color: var(--danger);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(183, 139, 90, 0.15);
}

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

/* PIN Code Auto-Sync */
.pincode-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pin-status-pill {
    position: absolute;
    right: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f5ece4;
    color: var(--muted);
    pointer-events: none;
}

.pin-status-pill.pin-syncing {
    background: #fef3c7;
    color: #92400e;
}

.pin-status-pill.pin-success {
    background: #d1fae5;
    color: #065f46;
}

.pin-status-pill.pin-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Alerts & Flashes */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-danger {
    background: #fff0f0;
    color: #922f2f;
    border: 1px solid #fed7d7;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.flash-wrap {
    margin-top: 14px;
}

.flash {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.flash.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.flash.warning {
    background: #fffaf0;
    color: #9c4221;
    border: 1px solid #feebc8;
}

.flash.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #d1c5bc;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}

.site-footer h4 {
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 17px;
    margin: 0 0 16px;
}

.site-footer a {
    display: block;
    color: #b7a99f;
    font-size: 14px;
    margin-bottom: 9px;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #362922;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9a8c82;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
}