:root {
    --ink: #251f1a;
    --muted: #6f645d;
    --paper: #fffaf2;
    --surface: #fffdf8;
    --line: #eadfce;
    --coral: #d94f3d;
    --saffron: #eea236;
    --teal: #16836f;
    --indigo: #334c89;
    --leaf: #6f8f45;
    --rose: #b9446b;
    --shadow: 0 18px 48px rgba(49, 38, 26, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 250, 242, 0.92);
    border-bottom: 1px solid rgba(37, 31, 26, 0.08);
    backdrop-filter: blur(16px);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 100%, var(--paper) 0 23%, transparent 24%),
        conic-gradient(from 220deg, var(--coral), var(--saffron), var(--leaf), var(--teal), var(--indigo), var(--rose), var(--coral));
    box-shadow: inset 0 0 0 1px rgba(37, 31, 26, 0.08);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
    background: #ffffff;
}

.admin-link {
    border: 1px solid var(--line);
}

.hero {
    position: relative;
    min-height: min(690px, calc(100vh - 72px));
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #f7ecda;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 250, 242, 0.95) 0%, rgba(255, 250, 242, 0.78) 38%, rgba(255, 250, 242, 0.16) 72%),
        linear-gradient(180deg, rgba(255, 250, 242, 0) 70%, var(--paper) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 94px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1,
.page-hero h1 {
    width: min(780px, 100%);
    margin-bottom: 18px;
    font-size: clamp(2.75rem, 7vw, 6.9rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.hero-copy,
.page-copy {
    width: min(600px, 100%);
    margin-bottom: 28px;
    color: #4d443e;
    font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    background: var(--ink);
    color: #fffaf2;
}

.button-primary:hover {
    background: #42372f;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(37, 31, 26, 0.14);
}

.button-secondary:hover {
    background: #fff;
}

.catalog-preview,
.section,
.page-hero,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.catalog-preview {
    transform: translateY(-42px);
    position: relative;
    z-index: 2;
}

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

.section {
    padding: 48px 0;
}

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

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1;
}

.section-heading p {
    max-width: 530px;
    margin-bottom: 0;
    color: var(--muted);
}

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

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(37, 31, 26, 0.08);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(49, 38, 26, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card[data-product-card] {
    cursor: pointer;
}

.product-card[data-product-card]:hover,
.product-card[data-product-card]:focus-visible {
    border-color: rgba(22, 131, 111, 0.24);
    box-shadow: 0 18px 38px rgba(49, 38, 26, 0.12);
    transform: translateY(-2px);
}

.product-card[data-product-card]:focus-visible {
    outline: 3px solid rgba(22, 131, 111, 0.2);
    outline-offset: 3px;
}

.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #efe3d1;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

.focus-ceramic img {
    object-position: 64% 50%;
}

.focus-textile img {
    object-position: 91% 66%;
}

.focus-bead img {
    object-position: 67% 84%;
}

.focus-paint img {
    object-position: 60% 40%;
}

.focus-thread img {
    object-position: 83% 34%;
}

.focus-table img {
    object-position: 48% 82%;
}

.product-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.92);
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 850;
}

.product-body {
    display: flex;
    min-height: 250px;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.product-kicker {
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-body h3 {
    margin-bottom: 0;
    font-size: 1.18rem;
    line-height: 1.16;
}

.product-body p {
    margin-bottom: 0;
    color: var(--muted);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.price {
    font-size: 1.06rem;
    font-weight: 850;
}

.small-link {
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 800;
    text-decoration: none;
}

.small-link:hover {
    color: var(--coral);
}

.color-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 5px;
}

.color-strip span:nth-child(1) {
    background: var(--coral);
}

.color-strip span:nth-child(2) {
    background: var(--saffron);
}

.color-strip span:nth-child(3) {
    background: var(--leaf);
}

.color-strip span:nth-child(4) {
    background: var(--teal);
}

.color-strip span:nth-child(5) {
    background: var(--indigo);
}

.color-strip span:nth-child(6) {
    background: var(--rose);
}

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

.category-tile {
    min-height: 148px;
    border: 1px solid rgba(37, 31, 26, 0.08);
    border-radius: 8px;
    padding: 18px;
    background: #fffdf8;
    text-decoration: none;
}

.category-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(49, 38, 26, 0.1);
}

.category-tile b {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.category-tile span {
    color: var(--muted);
}

.tile-home {
    border-top: 5px solid var(--coral);
}

.tile-gifts {
    border-top: 5px solid var(--saffron);
}

.tile-textiles {
    border-top: 5px solid var(--teal);
}

.tile-custom {
    border-top: 5px solid var(--indigo);
}

.story-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.story-panel {
    border-radius: 8px;
    background: #251f1a;
    color: #fffaf2;
    padding: clamp(24px, 5vw, 52px);
}

.story-panel p {
    color: #eadfce;
}

.process-list {
    display: grid;
    gap: 12px;
}

.process-item {
    border-left: 5px solid var(--teal);
    background: #fffdf8;
    padding: 16px 18px;
}

.process-item:nth-child(2) {
    border-left-color: var(--saffron);
}

.process-item:nth-child(3) {
    border-left-color: var(--rose);
}

.page-hero {
    padding: 72px 0 34px;
}

.catalog-tools {
    position: sticky;
    top: 72px;
    z-index: 6;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.94);
    backdrop-filter: blur(16px);
}

.catalog-tools-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.filter-button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffdf8;
    padding: 0 14px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
}

.filter-button.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fffaf2;
}

.catalog-search {
    width: min(300px, 100%);
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffdf8;
    padding: 0 16px;
    color: var(--ink);
    font: inherit;
}

.catalog-empty {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    padding: 26px;
    color: var(--muted);
}

.catalog-empty.show {
    display: block;
}

.product-detail-hero {
    padding-bottom: 20px;
}

.product-detail-section {
    padding-top: 20px;
}

.product-detail-back {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 850;
    text-decoration: none;
}

.product-detail-back:hover {
    color: var(--ink);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.detail-media {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(37, 31, 26, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-detail-panel,
.product-not-found {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    padding: clamp(20px, 4vw, 34px);
    box-shadow: 0 12px 30px rgba(49, 38, 26, 0.08);
}

.product-detail-category {
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-detail-panel h2,
.product-not-found h2 {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1;
}

.product-detail-description {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 1.06rem;
}

.product-detail-price {
    margin-bottom: 18px;
    font-size: 1.55rem;
    font-weight: 900;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.product-detail-list {
    margin-top: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.detail-copy,
.contact-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    padding: clamp(20px, 4vw, 32px);
}

.contact-card {
    box-shadow: var(--shadow);
}

.enquiry-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.enquiry-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf2;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    outline: none;
}

.enquiry-form input {
    min-height: 48px;
    padding: 0 14px;
}

.enquiry-form textarea {
    min-height: 132px;
    resize: vertical;
    padding: 12px 14px;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(22, 131, 111, 0.12);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-note,
.form-status {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.form-status:not(:empty) {
    color: var(--coral);
    font-weight: 800;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.detail-list span {
    color: var(--muted);
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    background: #fffdf8;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0;
    color: var(--muted);
}

.footer-inner a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.floating-whatsapp {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 30;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: #16836f;
    color: #fff;
    padding: 0 18px 0 14px;
    box-shadow: 0 16px 36px rgba(22, 131, 111, 0.32);
    font-weight: 850;
    text-decoration: none;
}

.floating-whatsapp:hover {
    background: #126f60;
    color: #fff;
}

.floating-whatsapp-mark {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 900;
}

@media (max-width: 900px) {
    .product-rail,
    .product-grid,
    .category-band,
    .story-band,
    .product-detail-layout,
    .detail-layout {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        align-items: start;
    }
}

@media (max-width: 680px) {
    .site-nav {
        min-height: 66px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }

    .nav-links {
        width: 100%;
        padding-bottom: 2px;
    }

    .hero {
        min-height: 620px;
    }

    .hero::after {
        background:
            linear-gradient(180deg, rgba(255, 250, 242, 0.96) 0%, rgba(255, 250, 242, 0.8) 47%, rgba(255, 250, 242, 0.2) 100%),
            linear-gradient(180deg, rgba(255, 250, 242, 0) 72%, var(--paper) 100%);
    }

    .hero-inner {
        align-self: start;
        padding-top: 54px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.65rem, 15vw, 4.6rem);
    }

    .product-rail,
    .product-grid,
    .category-band,
    .story-band,
    .product-detail-layout,
    .detail-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .catalog-preview {
        transform: translateY(-28px);
    }

    .section-heading,
    .catalog-tools-inner,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-tools {
        position: static;
    }

    .catalog-search {
        width: 100%;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        min-height: 52px;
        max-width: calc(100% - 28px);
        padding-right: 16px;
        font-size: 0.95rem;
    }
}
