/* =========================================================
   Süd Səbəti — beautiful organic dairy storefront
   ========================================================= */

:root {
    --cream: #fbf6e9;
    --cream-2: #f3ead0;
    --cream-3: #efe6cf;
    --brown: #6b3f1c;
    --brown-2: #8b5a2b;
    --brown-3: #4a2a14;
    --green: #5a8a3f;
    --green-2: #3f6e2a;
    --green-soft: #d8e6c8;
    --teal: #4a9eb0;
    --teal-2: #357a8a;
    --ink: #2c2418;
    --muted: #7a6e5a;
    --line: #e8dcbf;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(74, 42, 20, 0.06), 0 2px 6px rgba(74, 42, 20, 0.05);
    --shadow-md: 0 4px 14px rgba(74, 42, 20, 0.08), 0 10px 30px rgba(74, 42, 20, 0.07);
    --shadow-lg: 0 12px 40px rgba(74, 42, 20, 0.14);
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --transition: 200ms cubic-bezier(.2,.7,.3,1);
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--cream);
    background-image:
        radial-gradient(1200px 600px at 90% -20%, rgba(90, 138, 63, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(74, 158, 176, 0.10), transparent 55%);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brown-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown); }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--brown-3);
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--brown); color: white; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; z-index: 1000; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.4rem;
    font-weight: 600;
    font-size: .98rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    font-family: inherit;
    text-align: center;
    line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem .95rem; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(63, 110, 42, 0.28);
}
.btn-primary:hover {
    color: white;
    box-shadow: 0 10px 24px rgba(63, 110, 42, 0.36);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--brown-3);
    border-color: var(--brown-2);
}
.btn-ghost:hover {
    background: var(--brown-3);
    color: white;
    border-color: var(--brown-3);
}

.btn-link {
    background: none; border: none; color: var(--teal-2);
    font-weight: 600; cursor: pointer; padding: 0; font-family: inherit;
}
.btn-link:hover { color: var(--teal); }

.btn-icon {
    background: transparent; border: 1px solid var(--line);
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    color: var(--muted); transition: all var(--transition); font-size: 1rem;
}
.btn-icon:hover { background: #fdebe0; border-color: #e6b6a0; color: #b54a2b; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 246, 233, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(232, 220, 191, 0.7);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 14px 24px;
}
.brand {
    display: flex; align-items: center; gap: 12px; color: var(--brown-3);
}
.brand:hover { color: var(--brown-3); }
.brand-logo {
    width: 52px; height: 52px; border-radius: 50%;
    box-shadow: var(--shadow-sm); background: white;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 800; font-size: 1.35rem; color: var(--brown-3);
}
.brand-tag { font-size: .78rem; color: var(--green-2); font-weight: 500; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
    color: var(--brown-3);
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.main-nav a:hover { background: var(--cream-3); color: var(--brown); }

.cart-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--brown-3); color: var(--cream);
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.cart-pill:hover { background: var(--brown); color: white; transform: translateY(-1px); }
.cart-count {
    background: var(--green);
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
}

/* ---------- Messages ---------- */
.messages { padding-top: 14px; }
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid transparent;
}
.alert-success { background: #e7f3d6; color: #2d4f17; border-color: #c9e2a3; }
.alert-info    { background: #e0f3f7; color: #1b4a55; border-color: #b3dde6; }
.alert-warning { background: #fff3cd; color: #6b4a00; border-color: #ffe28a; }
.alert-error   { background: #fde2dc; color: #732618; border-color: #f4b6a8; }

/* ---------- Hero ---------- */
.hero {
    padding: 60px 0 40px;
    overflow: hidden;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}
.hero-text .eyebrow {
    display: inline-block;
    background: var(--green-soft); color: var(--green-2);
    padding: 6px 14px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: .82rem;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-text h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--brown-3);
    margin-bottom: 18px;
}
.hero-accent {
    background: linear-gradient(120deg, var(--green-2) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead {
    font-size: 1.15rem;
    color: var(--ink);
    max-width: 540px;
    margin-bottom: 26px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-points {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 20px;
    color: var(--brown-3); font-weight: 500;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points span { font-size: 1.4rem; }

.hero-art {
    position: relative;
    display: grid; place-items: center;
    aspect-ratio: 1;
    max-width: 720px;
    margin-left: auto;
}
.hero-art-bg {
    position: absolute; inset: 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(90, 138, 63, 0.18), transparent 60%),
        linear-gradient(135deg, var(--cream-2) 0%, var(--green-soft) 100%);
    box-shadow: var(--shadow-lg);
    animation: floaty 8s ease-in-out infinite;
}
.hero-logo {
    position: relative;
    width: 80%;
    filter: drop-shadow(0 18px 40px rgba(74, 42, 20, 0.25));
    animation: floaty 6s ease-in-out infinite;
}
.hero-image {
    position: relative;
    width: 115%;
    max-width: 720px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 26px 60px rgba(74, 42, 20, 0.32));
    animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ---------- Section heads ---------- */
.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Categories ---------- */
.categories { padding: 50px 0; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.cat-card {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    color: var(--brown-3);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.cat-card::before {
    content: '';
    position: absolute; right: -40px; bottom: -40px;
    width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle, var(--green-soft), transparent 70%);
    opacity: .6;
    transition: transform var(--transition);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-soft);
    color: var(--brown-3);
}
.cat-card:hover::before { transform: scale(1.2); }
.cat-icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.cat-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.cat-card p { color: var(--muted); margin: 0 0 14px; font-size: .94rem; }
.cat-link { color: var(--green-2); font-weight: 600; font-size: .92rem; }

/* ---------- Products ---------- */
.products-section { padding: 50px 0; }
.products-section.alt {
    background:
        linear-gradient(180deg, transparent, rgba(243, 234, 208, 0.5) 30%, rgba(243, 234, 208, 0.5) 70%, transparent);
}

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

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.product-image-wrap {
    position: relative;
    aspect-ratio: 1.05;
    background: linear-gradient(135deg, var(--cream-2), var(--green-soft));
    overflow: hidden;
    display: block;
}
.product-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 400ms ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }

.product-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    font-size: 4rem;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.7), transparent 60%),
        linear-gradient(135deg, var(--cream-2), var(--green-soft));
}
.product-placeholder.big { font-size: 8rem; aspect-ratio: 1; border-radius: var(--radius-lg); }
.product-placeholder.small { font-size: 1.8rem; width: 64px; height: 64px; border-radius: 12px; }

.badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: .78rem; font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}
.badge.organic { background: var(--green); color: white; }
.badge.organic.big {
    position: static;
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    font-size: .85rem;
    text-transform: none;
    letter-spacing: 0;
}

.product-body {
    padding: 18px 20px 20px;
    display: flex; flex-direction: column;
    flex: 1;
}
.product-cat {
    color: var(--green-2);
    font-weight: 600; font-size: .78rem;
    letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 6px;
}
.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    margin: 0 0 6px;
}
.product-name a { color: var(--brown-3); }
.product-name a:hover { color: var(--brown); }
.product-desc {
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 14px;
    flex: 1;
}
.product-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}
.price-block {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}
.price {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--brown-3);
    font-size: 1.3rem;
    white-space: nowrap;
}
.price.big { font-size: 2.2rem; }
.weight {
    color: var(--muted);
    font-size: .85rem;
    white-space: nowrap;
}

.add-form { margin: 0; }

/* ---------- Page head ---------- */
.page-head {
    padding: 40px 0 24px;
    background: linear-gradient(180deg, rgba(243, 234, 208, 0.6), transparent);
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}
.page-head h1 { margin-bottom: 6px; }
.crumbs {
    color: var(--muted);
    font-size: .9rem;
    margin: 0 0 10px;
}
.crumbs a { color: var(--green-2); }
.crumbs span { margin: 0 6px; opacity: .5; }

.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 28px;
}
.filter-pill {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: white;
    border: 1px solid var(--line);
    color: var(--brown-3);
    font-weight: 500;
    font-size: .9rem;
    transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--green); color: var(--green-2); }
.filter-pill.active {
    background: var(--brown-3);
    border-color: var(--brown-3);
    color: white;
}

.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px; }

/* ---------- Product detail ---------- */
.product-detail { padding: 20px 24px 60px; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.detail-image {
    background: linear-gradient(135deg, var(--cream-2), var(--green-soft));
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: grid; place-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image .badge.big { position: absolute; left: 16px; top: 16px; }

.detail-body h1 { margin: 4px 0 12px; }
.price-row {
    display: flex; align-items: baseline; gap: 10px;
    margin: 18px 0 24px;
    padding: 18px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
}
.add-form-detail { margin-bottom: 28px; }
.add-form-detail label {
    display: block;
    font-weight: 600; color: var(--brown-3);
    margin-bottom: 8px;
}
.qty-row { display: flex; gap: 12px; align-items: stretch; }
.qty-input {
    width: 90px;
    padding: 12px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--line);
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
    background: white;
    color: var(--brown-3);
}
.qty-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(90,138,63,.18); }

.detail-desc { margin-top: 24px; }
.detail-desc h3 { color: var(--brown-3); }
.detail-meta {
    list-style: none; padding: 0; margin: 24px 0 0;
    display: grid; gap: 8px;
    background: var(--cream-2);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.detail-meta li { color: var(--brown-3); font-size: .94rem; }

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.info-card {
    background: white;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.info-card:hover { transform: translateY(-2px); }
.info-card .info-icon { font-size: 1.6rem; margin-bottom: 4px; }
.info-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--green-2);
    margin: 0 0 8px;
    font-weight: 700;
}
.info-card p {
    margin: 0;
    color: var(--brown-3);
    font-size: .94rem;
    line-height: 1.55;
}

/* ---------- Cart ---------- */
.cart-section, .checkout-section, .success-section { padding: 24px 24px 60px; }
.cart-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 32px;
    align-items: start;
}
.cart-list {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.cart-row {
    display: grid;
    grid-template-columns: 80px 1.2fr 130px 90px 40px;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb {
    width: 64px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream-2);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { color: var(--brown-3); font-weight: 600; display: block; }
.cart-name:hover { color: var(--brown); }
.cart-meta { color: var(--muted); font-size: .85rem; }
.cart-qty-form { display: flex; gap: 8px; align-items: center; }
.cart-qty-form .qty-input { width: 70px; padding: 8px; }
.cart-line-total {
    font-weight: 700;
    color: var(--brown-3);
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
}

.cart-summary {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 24px;
    position: sticky; top: 100px;
    box-shadow: var(--shadow-sm);
}
.cart-summary h3 { margin-top: 0; }
.sum-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    color: var(--ink);
}
.sum-row.total {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brown-3);
    border-top: 2px solid var(--line);
    padding-top: 14px; margin-top: 6px; margin-bottom: 14px;
}
.cart-summary .btn { margin-top: 6px; }

.empty-cart {
    text-align: center; padding: 60px 20px;
    background: white; border-radius: var(--radius-lg);
    border: 1px dashed var(--line);
}
.empty-icon { font-size: 4rem; margin-bottom: 12px; }

/* ---------- Forms ---------- */
.checkout-form {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 16px; }
.form-row label {
    display: block; font-weight: 600;
    color: var(--brown-3); margin-bottom: 6px;
    font-size: .92rem;
}
.field {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.field:focus {
    outline: none;
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 4px rgba(90,138,63,.15);
}
.has-error .field { border-color: #c84a32; background: #fff5f1; }
.error { color: #b54a2b; font-size: .85rem; margin-top: 4px; display: block; }

/* ---------- Success ---------- */
.success-card {
    max-width: 640px; margin: 30px auto;
    background: white; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 50px 40px;
    text-align: center;
}
.success-icon { font-size: 4rem; margin-bottom: 12px; }
.order-summary {
    text-align: left;
    background: var(--cream-2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
}
.order-summary ul { list-style: none; padding: 0; margin: 12px 0; }
.order-summary li {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px dashed var(--line);
    color: var(--brown-3);
}
.order-summary li:last-child { border-bottom: none; }

/* ---------- Why us ---------- */
.why { padding: 60px 0 30px; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.why-item {
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.why-item:hover { transform: translateY(-3px); }
.why-icon { font-size: 2.4rem; margin-bottom: 10px; }
.why-item h3 { margin: 0 0 6px; color: var(--brown-3); }
.why-item p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---------- About / contact ---------- */
.about-section { padding: 20px 24px 50px; }
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-art {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--cream-2), var(--green-soft));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: grid; place-items: center;
}
.about-art img { width: 80%; }
.value-list { list-style: none; padding: 0; }
.value-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.value-list li:last-child { border-bottom: none; }

.contact-section { padding: 24px 24px 60px; }
.contact-form-wrap {
    margin-top: 40px;
    max-width: 600px;
}
.contact-form-wrap h2 { margin-bottom: 4px; }
.contact-form-wrap .checkout-form { margin-top: 16px; }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.contact-card {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card h3 { margin: 8px 0; color: var(--brown-3); }
.contact-card p { margin: 4px 0; }
.contact-ic { font-size: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 60px;
    background: linear-gradient(180deg, var(--brown-3) 0%, #3a2110 100%);
    color: rgba(251, 246, 233, 0.85);
    padding: 50px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
}
.footer-brand h3 {
    color: var(--cream);
    margin: 14px 0 8px;
}
.footer-logo { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); padding: 4px; }
.site-footer h4 {
    color: var(--cream);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(251, 246, 233, 0.78); }
.site-footer a:hover { color: var(--cream); }
.contact-list li { display: flex; gap: 8px; }
.footer-bottom {
    margin-top: 36px; padding-top: 20px;
    border-top: 1px solid rgba(251, 246, 233, 0.12);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: .9rem; color: rgba(251, 246, 233, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-art { max-width: 360px; margin: 0 auto; }
    .detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .main-nav { display: none; }
}

@media (max-width: 640px) {
    .header-inner { padding: 12px 16px; gap: 12px; }
    .brand-tag { display: none; }
    .brand-name { font-size: 1.1rem; }
    .container { padding: 0 16px; }
    .cart-row {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px 14px;
    }
    .cart-thumb { width: 60px; height: 60px; grid-row: 1 / span 3; }
    .cart-info { grid-column: 2; }
    .cart-qty-form { grid-column: 2; }
    .cart-line-total { grid-column: 2; font-size: 1.1rem; }
    .cart-remove-form { grid-column: 2; justify-self: start; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 30px 0; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .product-foot { flex-direction: column; align-items: stretch; }
    .header-actions { gap: 8px; }
    .user-pill span { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}

/* ---------- Header actions & mobile menu ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--brown-3);
    font-weight: 500; font-size: .9rem;
    border: 1px solid var(--line);
    transition: all var(--transition);
}
.user-pill:hover { background: var(--cream-3); color: var(--brown); border-color: var(--brown-2); }

.mobile-toggle {
    display: none;
    background: none; border: none;
    color: var(--brown-3); cursor: pointer;
    padding: 8px;
}
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--line);
    padding: 16px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu nav {
    display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu a {
    padding: 10px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
    color: var(--brown-3);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

@media (max-width: 920px) {
    .mobile-toggle { display: block; }
    .header-actions .user-pill { display: none; }
}

/* ---------- Auth pages ---------- */
.auth-section { padding: 24px 0 60px; }
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}
.auth-card .form-row { margin-bottom: 14px; }
.auth-card .btn { margin-top: 12px; }
.auth-alt {
    text-align: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: .94rem;
}
.auth-alt a { color: var(--green-2); font-weight: 600; }

/* ---------- Profile ---------- */
.profile-section { padding: 24px 0 60px; }
.profile-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
.profile-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 28px 22px;
    text-align: center;
    position: sticky; top: 100px;
}
.profile-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: white;
    display: grid; place-items: center;
    font-size: 1.8rem; font-weight: 700;
    margin: 0 auto 12px;
    font-family: 'Playfair Display', serif;
}
.profile-sidebar h3 { margin: 0 0 4px; font-size: 1.1rem; }
.profile-nav {
    margin-top: 18px;
    display: flex; flex-direction: column; gap: 4px;
    text-align: left;
}
.profile-nav a {
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--brown-3); font-weight: 500;
    transition: background var(--transition);
}
.profile-nav a:hover { background: var(--cream-2); }
.profile-nav a.active { background: var(--green-soft); color: var(--green-2); font-weight: 700; }
.profile-nav a.danger { color: #b54a2b; }

.profile-main { display: flex; flex-direction: column; gap: 22px; }
.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.profile-card h3 { margin-top: 0; }
.info-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: .94rem;
}
.info-row:last-of-type { border-bottom: none; }
.info-label { color: var(--muted); font-weight: 600; }

.orders-table { display: flex; flex-direction: column; gap: 8px; }
.order-row {
    display: grid;
    grid-template-columns: 60px 100px 1fr 90px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
}
.order-row:last-child { border-bottom: none; }
.order-id { font-weight: 700; color: var(--brown-3); }
.order-date { color: var(--muted); }
.order-total { font-weight: 700; }
.order-status {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}
.status-new { background: #e0f3f7; color: #1b4a55; }
.status-confirmed { background: #e7f3d6; color: #2d4f17; }
.status-delivered { background: var(--green-soft); color: var(--green-2); }
.status-cancelled { background: #fde2dc; color: #732618; }

/* ---------- Blog ---------- */
.blog-section { padding: 24px 0 60px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-image-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-2), var(--green-soft));
}
.blog-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 400ms ease;
}
.blog-card:hover .blog-image-wrap img { transform: scale(1.04); }
.blog-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    font-size: 3rem;
}
.blog-body {
    padding: 20px;
    display: flex; flex-direction: column; flex: 1;
}
.blog-date {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.blog-body h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
}
.blog-body h3 a { color: var(--brown-3); }
.blog-body h3 a:hover { color: var(--brown); }
.blog-body p {
    color: var(--muted);
    font-size: .92rem;
    flex: 1;
    margin: 0 0 12px;
}
.blog-link {
    color: var(--green-2);
    font-weight: 600;
    font-size: .9rem;
    margin-top: auto;
}

.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}
.blog-hero {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    max-height: 400px;
}
.blog-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink);
}
.blog-content p { margin-bottom: 1.2em; }
.blog-footer {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
