:root {
    --bg: #f7f4ee;
    --panel: #ffffff;
    --text: #151515;
    --muted: #6f6b63;
    --line: #e4ded2;
    --gold: #f0b429;
    --gold-dark: #b7791f;
    --brown: #2d1f12;
    --cream: #fff8ec;
    --green: #0f7a4f;
    --green-bg: #e8f8ef;
    --red: #b42318;
    --red-bg: #fff1f0;
    --shadow: 0 20px 55px rgba(45, 31, 18, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(240, 180, 41, .18), transparent 36%),
        linear-gradient(180deg, #fffaf0 0%, #f7f4ee 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--gold-dark);
}

.container {
    width: min(1140px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brown), var(--gold));
    color: white;
    border-radius: 15px;
    font-size: 14px;
    letter-spacing: .06em;
    box-shadow: 0 10px 26px rgba(240, 180, 41, .28);
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

nav a {
    color: #2e2a24;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

nav a:hover,
nav a.active {
    background: var(--cream);
    color: var(--gold-dark);
}

/* HERO */

.hero {
    padding: 66px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    color: var(--gold-dark);
    background: var(--cream);
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 18px;
    border: 1px solid #f4dfaa;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 26px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 19px;
    border: 0;
    border-radius: 13px;
    background: var(--brown);
    color: white;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(45, 31, 18, .18);
}

.btn:hover {
    background: #17100a;
}

.btn.ghost {
    background: #ffffff;
    color: var(--brown);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn.small {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 13px;
}

.hero-card {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.gift-card-display {
    min-height: 310px;
    border-radius: 28px;
    padding: 28px;
    color: white;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.28), transparent 30%),
        linear-gradient(135deg, #2d1f12 0%, #8a5a12 45%, #f0b429 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.gift-topline {
    font-size: 13px;
    letter-spacing: .18em;
    opacity: .88;
    font-weight: 900;
}

.gift-title {
    font-size: 38px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.04em;
}

.gift-value {
    font-size: 28px;
    font-weight: 900;
}

.gift-bottom {
    font-size: 14px;
    opacity: .9;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 8px 0 44px;
}

.feature-row article {
    background: rgba(255,255,255,.9);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(45, 31, 18, .06);
}

.feature-row span {
    color: var(--gold-dark);
    font-weight: 950;
    font-size: 13px;
}

.feature-row h3 {
    margin: 8px 0 8px;
    font-size: 22px;
}

.feature-row p {
    margin: 0;
    color: var(--muted);
}

/* PAGES */

.page-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 34px;
    margin-top: 38px;
    margin-bottom: 48px;
}

.page-card h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.page-card p {
    color: var(--muted);
    font-size: 16px;
}

.page-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

/* SHOP */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(45, 31, 18, .06);
}

.product-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    background: var(--cream);
    color: var(--gold-dark);
    border: 1px solid #f4dfaa;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 900;
    font-size: 12px;
}

.product-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--cream);
    font-size: 25px;
    margin-bottom: 16px;
}

.product-card h2 {
    margin: 0 0 4px;
    font-size: 21px;
    letter-spacing: -.03em;
}

.category {
    color: var(--gold-dark) !important;
    margin: 0 0 10px;
    font-weight: 900;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.product-bottom {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-bottom strong {
    font-size: 18px;
}

/* FORMS */

.form-wrap {
    max-width: 680px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    font-size: 15px;
    margin-bottom: 15px;
    outline: none;
    background: #ffffff;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(240, 180, 41, .16);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 900;
}

.alert.success {
    background: var(--green-bg);
    color: var(--green);
}

.alert.error {
    background: var(--red-bg);
    color: var(--red);
}

.contact-box,
.contact-note {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    margin-top: 8px;
}

.contact-box span {
    color: var(--muted);
    font-size: 13px;
}

.contact-note {
    display: block;
    margin-top: 18px;
    color: var(--muted);
}

code {
    background: #fff4d8;
    padding: 3px 7px;
    border-radius: 7px;
    font-size: 13px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 14px;
}

th {
    text-align: left;
    background: #fff8ec;
}

td {
    color: #3c3934;
    word-break: break-word;
}

/* FOOTER */

footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    margin-top: 40px;
}

.footer-row {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.footer-row div {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-row a {
    text-decoration: none;
    color: var(--gold-dark);
    font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .hero-grid,
    .feature-row,
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-row,
    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 38px;
    }
}

@media (max-width: 700px) {
    .page-card {
        padding: 24px;
    }

    .product-bottom,
    .admin-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
