:root {
    --bg-color: #f5f5f5;
    --surface-color: #ffffff;
    --surface-hover: #fafafa;
    --primary-color: #ee4d2d;
    --primary-hover: #d73211;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-muted: #757575;
    --border-color: #e8e8e8;
    --danger-color: #f53d2d;
    --success-color: #22c55e;
    --price-color: #ee4d2d;
    --shopee-orange: #ee4d2d;
    --shopee-orange-light: #ff7337;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header - Shopee Style */
header {
    background: linear-gradient(180deg, #f53d2d 0%, #ee4d2d 100%);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.logo span {
    color: #ffc107;
    font-weight: 800;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
}

nav a:hover,
nav a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-top: 0;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Components - Shopee Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff7337 0%, #ee4d2d 100%);
    color: #ffffff;
    padding: 0.65rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(238, 77, 45, 0.3);
}

.btn:hover {
    background: linear-gradient(180deg, #ff8852 0%, #d73211 100%);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(238, 77, 45, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: var(--primary-color);
}

/* Product Grid - Shopee Style */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #f5f5f5;
}

.product-card-body {
    padding: 0.75rem;
}

.product-card h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4rem;
    line-height: 1.2;
}

.product-card .price {
    display: block;
    color: var(--price-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.product-card .price::before {
    content: '$';
    font-size: 0.85em;
}

.product-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.4rem;
    line-height: 1.2;
}

.product-card .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Sold badge - Shopee style */
.product-card .sold-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Forms - Shopee Style */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
    border-color: #ccc;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.15);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

th,
td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.025em;
}

tr:last-child td {
    border-bottom: none;
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #fff5f5;
    border-color: var(--danger-color);
    color: #c5221f;
}

.alert-success {
    background-color: #f6ffed;
    border-color: var(--success-color);
    color: #237804;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
}

footer .small {
    font-size: 0.8rem;
}

/* Auth Pages */
.auth-box {
    max-width: 380px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    box-shadow: var(--shadow-md);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.auth-box button {
    width: 100%;
    margin-top: 1rem;
}

/* Profile Page */
.profile-header {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Hero Section - Shopee Style Banner */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ff7337 0%, #ee4d2d 100%);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.hero p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    color: rgba(255,255,255,0.9);
    position: relative;
}

.hero .btn {
    position: relative;
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 700;
}

.hero .btn:hover {
    background: #fafafa;
    color: var(--primary-hover);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.2rem;
    background-color: #fafafa;
    color: var(--text-muted);
}

/* Rating Stars */
.rating {
    color: #ffc107;
    font-size: 1rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-bar input {
    flex: 1;
    border-radius: 0.25rem 0 0 0.25rem;
    border-right: none;
}

.search-bar button {
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.7rem 1.25rem;
}

/* Card Generic */
.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Utility */
.text-center {
    text-align: center;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr !important;
    }

    .hero-split > div:first-child {
        padding: 2rem 1.5rem !important;
        text-align: center;
    }

    .hero-split > div:first-child .btn {
        justify-content: center;
    }

    .hero-split > div:first-child > div:last-child {
        justify-content: center;
    }

    nav ul {
        gap: 0.25rem;
    }

    nav a {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .product-card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern retail refresh */
:root {
    --bg-color: #f6f7f3;
    --surface-color: #ffffff;
    --surface-hover: #f8faf6;
    --primary-color: #e6532e;
    --primary-hover: #c63e21;
    --accent-color: #52775d;
    --ink-color: #20231f;
    --text-color: #272a25;
    --text-muted: #6f756c;
    --border-color: #dfe4dc;
    --shadow-sm: 0 1px 2px rgba(32, 35, 31, 0.06);
    --shadow-md: 0 14px 36px rgba(32, 35, 31, 0.08);
    --shadow-lg: 0 24px 70px rgba(32, 35, 31, 0.16);
}

body {
    background:
        radial-gradient(circle at 12% 6%, rgba(82, 119, 93, 0.12), transparent 26rem),
        linear-gradient(180deg, #fbfcf8 0%, var(--bg-color) 42%, #eef2ec 100%);
    color: var(--text-color);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.main-content {
    padding: 1.5rem 0 4rem;
}

.site-header {
    background: rgba(246, 247, 243, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(32, 35, 31, 0.08);
    box-shadow: none;
}

.site-header .container {
    min-height: 64px;
}

.logo h1 {
    font-size: 1.15rem;
}

.logo a {
    color: var(--ink-color);
    letter-spacing: 0;
    text-shadow: none;
}

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

nav ul {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

nav a,
.nav-button {
    background: transparent;
    color: var(--text-muted);
    border-radius: 999px;
    font-size: 0.84rem;
    padding: 0.5rem 0.75rem;
}

nav a:hover,
nav a.active {
    background: #ffffff;
    color: var(--ink-color);
    box-shadow: var(--shadow-sm);
}

.nav-button {
    background: var(--ink-color);
    color: #ffffff;
    margin-left: 0.2rem;
}

.nav-button:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn {
    background: var(--primary-color);
    border-radius: 999px;
    box-shadow: none;
    color: #ffffff;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.72rem 1.15rem;
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 12px 30px rgba(230, 83, 46, 0.24);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-light,
.btn-ghost {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: var(--ink-color);
}

.btn-secondary:hover,
.btn-light:hover {
    background: var(--ink-color);
    color: #ffffff;
    border-color: var(--ink-color);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.btn-compact {
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
}

.eyebrow {
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

.home-page {
    display: grid;
    gap: 2.75rem;
}

.home-hero {
    position: relative;
    width: 100vw;
    min-height: min(760px, calc(100svh - 64px));
    margin-left: calc(50% - 50vw - 1.5rem);
    overflow: hidden;
    isolation: isolate;
    background: var(--ink-color);
}

.home-hero__media,
.home-hero__shade {
    position: absolute;
    inset: 0;
}

.home-hero__media {
    background-image: url("../images/hero/tea-dispenser.png");
    background-position: center;
    background-size: cover;
}

.home-hero__shade {
    background:
        linear-gradient(90deg, rgba(12, 14, 12, 0.9) 0%, rgba(12, 14, 12, 0.62) 38%, rgba(12, 14, 12, 0.16) 70%, rgba(12, 14, 12, 0.05) 100%),
        linear-gradient(0deg, rgba(12, 14, 12, 0.32), transparent 45%);
    z-index: 1;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    width: min(90%, 1180px);
    min-height: min(760px, calc(100svh - 64px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    padding: 4rem 0;
    animation: riseIn 580ms ease-out 120ms both;
}

.home-hero__content .eyebrow {
    color: #a8c6b1;
}

.home-hero h2 {
    color: #ffffff;
    font-size: clamp(3.3rem, 8vw, 7.5rem);
    line-height: 0.9;
    max-width: 8ch;
    margin: 0;
    letter-spacing: 0;
}

.home-hero__copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.7;
    max-width: 34rem;
    margin: 1.3rem 0 0;
}

.home-hero__actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    width: min(34rem, 100%);
    margin: 3rem 0 0;
}

.home-hero__stats div {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding-top: 0.8rem;
}

.home-hero__stats dt {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

.home-hero__stats dd {
    color: rgba(255, 255, 255, 0.66);
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
}

.section-heading {
    display: grid;
    gap: 1rem;
}

.section-heading > div {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.section-heading h3,
.craft-band h3,
.page-hero h2 {
    color: var(--ink-color);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
    margin: 0;
}

.section-heading a {
    color: var(--primary-color);
    font-weight: 800;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 0;
}

.product-grid-featured {
    margin-top: -1rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(32, 35, 31, 0.08);
    border-radius: 18px;
    box-shadow: none;
    cursor: default;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(82, 119, 93, 0.22);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card__image {
    display: block;
    background: #f4f1ea;
    overflow: hidden;
}

.product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.product-card-body {
    padding: 1rem;
}

.product-card__meta {
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.product-card h4 {
    color: var(--ink-color);
    font-size: 1rem;
    min-height: 0;
}

.product-card p {
    min-height: 2.6rem;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.product-card .price {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0;
}

.product-card .btn {
    width: auto;
    margin: 0;
}

.craft-band {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) 1.6fr;
    gap: 2rem;
    align-items: start;
    padding: 2.25rem 0 0;
    border-top: 1px solid rgba(32, 35, 31, 0.12);
}

.craft-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.craft-list div {
    border-top: 1px solid rgba(32, 35, 31, 0.12);
    padding-top: 1rem;
}

.craft-list span {
    color: var(--primary-color);
    font-weight: 900;
}

.craft-list h4 {
    color: var(--ink-color);
    margin: 0.35rem 0;
}

.craft-list p {
    margin: 0;
}

.page-hero {
    width: 100%;
    padding: 3rem 0 2rem;
}

.page-hero-compact {
    max-width: 820px;
}

.page-hero p:not(.eyebrow) {
    max-width: 42rem;
    font-size: 1rem;
}

.search-page {
    display: grid;
    gap: 1.5rem;
}

.search-bar {
    display: flex;
    max-width: 620px;
    margin: 1.4rem 0 0;
    gap: 0.6rem;
}

.search-bar input {
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.search-bar button {
    border-radius: 999px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: center;
    padding: 2rem 0 4rem;
}

.product-detail__media {
    background: #f4f1ea;
    border-radius: 28px;
    overflow: hidden;
}

.product-detail__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.product-detail h2 {
    color: var(--ink-color);
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.product-detail__description {
    max-width: 32rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.product-detail__price {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    margin: 1.5rem 0;
}

.product-detail__actions,
.product-detail__notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-detail__notes {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.86rem;
}

.product-detail__notes span {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.site-footer {
    background: #1f241f;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
}

.site-footer h4 {
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a,
.site-footer__bottom {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
}

.site-footer a {
    display: block;
    margin: 0.45rem 0;
}

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

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
}

.editorial-hero,
.media-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
    padding: 2.8rem 0;
}

.editorial-hero img,
.media-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
}

.editorial-hero h2,
.media-hero h2,
.article-hero h1 {
    color: var(--ink-color);
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    line-height: 0.96;
    margin: 0;
}

.editorial-hero p:not(.eyebrow),
.media-hero p:not(.eyebrow) {
    max-width: 34rem;
    font-size: 1.02rem;
    line-height: 1.75;
}

.media-hero {
    position: relative;
    min-height: 430px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--ink-color);
    padding: 0;
}

.media-hero img {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.media-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 17, 14, 0.88), rgba(15, 17, 14, 0.5) 45%, rgba(15, 17, 14, 0.08));
}

.media-hero > div {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 4rem);
}

.media-hero h2,
.media-hero p:not(.eyebrow) {
    color: #ffffff;
}

.media-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.76);
}

.compact-media-hero {
    min-height: 330px;
    margin-bottom: 2rem;
}

.chip-nav {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
}

.chip-nav a {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.58rem 0.9rem;
}

.chip-nav a.active,
.chip-nav a:hover {
    background: var(--ink-color);
    border-color: var(--ink-color);
    color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.blog-card,
.location-card,
.form-panel,
.contact-aside,
.tool-panel,
.response-panel,
.comments-panel,
.review-card,
.checkout-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(32, 35, 31, 0.08);
    border-radius: 24px;
}

.blog-card {
    overflow: hidden;
}

.blog-card__image {
    display: block;
    background: #f4f1ea;
}

.blog-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 500ms ease;
}

.blog-card:hover img {
    transform: scale(1.035);
}

.blog-card__body {
    padding: 1.1rem;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.blog-card h3 {
    margin-bottom: 0.45rem;
}

.blog-card h3 a {
    color: var(--ink-color);
}

.text-link {
    color: var(--primary-color);
    font-weight: 800;
}

.empty-state {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
}

.article-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.article-hero {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.article-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 28px;
}

.article-body,
.comments-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(32, 35, 31, 0.08);
    border-radius: 24px;
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.blog-content {
    line-height: 1.8;
    color: var(--text-color);
}

.article-tags {
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.article-tags span {
    background: #f0f3ed;
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0.35rem 0.65rem;
}

.mock-comments {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.mock-comments div {
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
}

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

.location-card {
    overflow: hidden;
}

.location-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.location-card > div {
    padding: 1.1rem;
}

.location-card h3 {
    color: var(--ink-color);
}

.location-card dl {
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
    padding-top: 1rem;
}

.location-card dt {
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location-card dd {
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}

.location-card__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(280px, 1.25fr);
    gap: 1.25rem;
    align-items: end;
    margin-top: 1.5rem;
    padding: 1.25rem;
}

.inline-form {
    display: flex;
    gap: 0.7rem;
}

.inline-form input {
    border-radius: 999px;
}

.response-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
}

.response-panel pre {
    background: #1f241f;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    max-height: 420px;
    overflow: auto;
    padding: 1rem;
}

.contact-layout,
.reviews-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.form-panel,
.contact-aside {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.form-panel h3,
.contact-aside h3 {
    color: var(--ink-color);
}

.form-panel .btn {
    width: auto;
}

.contact-aside {
    display: grid;
    gap: 1rem;
}

.contact-aside > div + div {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.review-list {
    display: grid;
    gap: 0.8rem;
}

.review-card {
    padding: 1rem;
}

.review-card > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.review-card small {
    color: var(--text-muted);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 1.5rem;
}

.checkout-panel {
    min-width: 0;
    padding: 1.5rem;
}

.checkout-summary {
    height: fit-content;
}

.checkout-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.promo-code-row {
    display: flex;
    gap: 0.5rem;
}

.promo-code-row input {
    min-width: 0;
}

.loyalty-page {
    padding-bottom: 2rem;
}

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

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }
    to {
        transform: scale(1.02);
    }
}

@media (max-width: 900px) {
    header .container,
    .site-header .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
        padding-bottom: 0.8rem;
        padding-top: 0.8rem;
    }

    .home-hero,
    .home-hero__content {
        min-height: 720px;
    }

    .home-hero__media {
        background-position: 63% center;
    }

    .home-hero__shade {
        background: linear-gradient(90deg, rgba(12, 14, 12, 0.9) 0%, rgba(12, 14, 12, 0.6) 66%, rgba(12, 14, 12, 0.28) 100%);
    }

    .craft-band,
    .product-detail,
    .site-footer__grid,
    .editorial-hero,
    .contact-layout,
    .reviews-layout,
    .tool-panel,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .editorial-hero {
        padding: 2rem 0;
    }

    .editorial-hero img {
        order: -1;
    }

    .tool-panel {
        align-items: stretch;
    }

    .inline-form {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: 94%;
        padding: 0 0.75rem;
    }

    nav ul {
        overflow-x: auto;
        padding-bottom: 0.1rem;
        flex-wrap: nowrap;
        min-width: 100%;
        width: max-content;
        scrollbar-width: none;
    }

    nav {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        width: 100%;
    }

    nav::-webkit-scrollbar,
    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav a,
    .nav-button {
        white-space: nowrap;
    }

    .home-hero,
    .home-hero__content {
        min-height: 690px;
    }

    .home-hero {
        margin-left: calc(50% - 50vw + 0.5rem);
    }

    .home-hero h2 {
        font-size: 3.4rem;
    }

    .home-hero__content {
        width: calc(100% - 2rem);
    }

    .home-hero__stats,
    .craft-list {
        grid-template-columns: 1fr;
    }

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

    .search-bar {
        flex-direction: column;
    }

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

    .editorial-hero,
    .media-hero {
        gap: 1rem;
    }

    .editorial-hero img,
    .media-hero {
        border-radius: 20px;
    }

    .media-hero > div {
        padding: 1.5rem;
    }

    .media-hero h2,
    .editorial-hero h2,
    .article-hero h1 {
        font-size: 2.45rem;
    }

    .contact-layout,
    .reviews-layout {
        gap: 1rem;
    }

    .checkout-panel {
        padding: 1.1rem;
    }

    .checkout-field-grid,
    .promo-code-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

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