:root {
    color-scheme: light;
    --bg: #fbf6ed;
    --surface: #fffdfa;
    --surface-2: #f1e6d6;
    --ink: #241b16;
    --muted: #76695d;
    --line: #e2d6c6;
    --coffee: #5c3523;
    --coffee-2: #8b4d2b;
    --cream: #fff7e8;
    --teal: #116f6b;
    --teal-2: #dff1ed;
    --coral: #c9573e;
    --gold: #d8a849;
    --danger: #b83434;
    --shadow: 0 24px 70px rgba(64, 42, 27, 0.14);
    --soft-shadow: 0 12px 34px rgba(64, 42, 27, 0.10);
    --radius: 8px;
    --container: 1180px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #15110e;
    --surface: #211a16;
    --surface-2: #2e241d;
    --ink: #fff6e8;
    --muted: #c9b8a5;
    --line: #3a2d25;
    --coffee: #d7a56b;
    --coffee-2: #f0c085;
    --cream: #231a15;
    --teal: #58c8bd;
    --teal-2: #183531;
    --coral: #ee7d62;
    --gold: #e7bd64;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(216, 168, 73, 0.18), transparent 28rem),
        linear-gradient(180deg, #fffaf1 0%, var(--bg) 44rem);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at 20% 0%, rgba(216, 168, 73, 0.10), transparent 28rem),
        linear-gradient(180deg, #17100d 0%, var(--bg) 44rem);
}

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

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

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

main {
    min-height: 66vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr) auto;
    align-items: center;
    gap: 22px;
    width: min(1220px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px 12px;
    background: rgba(255, 253, 250, 0.92);
    border: 1px solid rgba(92, 53, 35, 0.12);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .site-header {
    background: rgba(33, 26, 22, 0.92);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--coffee);
    letter-spacing: 0;
    white-space: nowrap;
}

.brand-mark {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 5px;
    background: rgba(241, 230, 214, 0.62);
    border-radius: 8px;
}

[data-theme="dark"] .site-nav {
    background: rgba(46, 36, 29, 0.72);
}

.site-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--muted);
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 800;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--surface);
    color: var(--teal);
    box-shadow: 0 6px 18px rgba(64, 42, 27, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.button,
.icon-button,
.cart-link {
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--coffee);
    color: #fff8ed;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(92, 53, 35, 0.20);
}

.button:hover,
.icon-button:hover,
.cart-link:hover {
    transform: translateY(-1px);
}

.button.ghost,
.cart-link {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
    box-shadow: none;
}

.button.ghost:hover,
.cart-link:hover {
    background: var(--surface);
    border-color: rgba(17, 111, 107, 0.34);
}

.button.light {
    background: #fff8ed;
    color: var(--coffee);
}

.button-small {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.88rem;
}

.button.danger,
.icon-button.danger {
    background: var(--danger);
    color: #fff;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    font-weight: 900;
    box-shadow: none;
}

.menu-toggle {
    display: none;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    font-weight: 900;
}

.cart-link strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 0.78rem;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: calc(100vh - 86px);
    margin-top: -74px;
    padding: 150px clamp(18px, 6vw, 72px) 72px;
    overflow: hidden;
    background: #1b120d;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(27, 18, 13, 0.94) 0%, rgba(48, 29, 19, 0.88) 38%, rgba(48, 29, 19, 0.24) 70%, rgba(27, 18, 13, 0.10) 100%),
        linear-gradient(180deg, rgba(27, 18, 13, 0.08), rgba(27, 18, 13, 0.68));
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #dff1ed;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    filter: saturate(0.96) contrast(1.02);
}

.hero-copy {
    width: min(640px, 100%);
    color: #fff8ed;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(3.2rem, 8vw, 7.4rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero p {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255, 248, 237, 0.86);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions,
.product-footer,
.panel-heading,
.cart-summary,
.review-total {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 28px;
}

.hero .button.ghost {
    background: rgba(255, 248, 237, 0.10);
    border-color: rgba(255, 248, 237, 0.28);
    color: #fff8ed;
}

.hero-notes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-notes span {
    padding: 8px 11px;
    color: #fff8ed;
    background: rgba(255, 248, 237, 0.12);
    border: 1px solid rgba(255, 248, 237, 0.18);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

.section,
.page-hero,
.product-detail {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 28px);
}

.page-hero.compact {
    padding-bottom: 20px;
}

.page-hero.compact h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1;
}

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

.section-heading h2,
.promo-band h2,
.split h2,
.contact-aside h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: 0;
}

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

.product-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(92, 53, 35, 0.10);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.product-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}

.detail-media img,
.table-product img,
.cart-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media img {
    width: 100%;
    height: 100%;
    padding: 14px;
    object-fit: contain;
}

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

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

.product-body p {
    flex: 1;
    color: var(--muted);
}

.product-footer {
    justify-content: space-between;
}

.product-footer strong,
.detail-price {
    color: var(--coral);
}

.add-button {
    background: var(--teal);
    color: #fff;
}

.promo-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 20px 0 0;
    padding: clamp(34px, 6vw, 70px) clamp(18px, 6vw, 84px);
    background: linear-gradient(135deg, var(--teal), #0c5653);
    color: #fff8ed;
}

.promo-band .eyebrow {
    color: #dff1ed;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 6vw, 70px);
    align-items: center;
}

.split p,
.contact-aside p,
.empty-state p,
.auth-panel p {
    color: var(--muted);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.feature-list span,
.stats-band div,
.contact-aside,
.form-panel,
.auth-panel,
.order-review,
.empty-state,
.admin-panel,
.stat-grid article,
.message-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.feature-list span {
    padding: 18px;
    font-weight: 900;
}

.rounded-image {
    width: 100%;
    border-radius: 8px;
    background: var(--teal-2);
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto 70px;
    padding: 0 clamp(18px, 5vw, 28px);
}

.stats-band div {
    padding: 24px;
}

.stats-band strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.contact-layout,
.checkout-layout,
.admin-grid.two {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.form-panel,
.auth-panel,
.contact-aside,
.order-review,
.empty-state,
.admin-panel {
    padding: 24px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 900;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(17, 111, 107, 0.16);
}

small {
    color: var(--danger);
    font-weight: 800;
}

.form-panel,
.auth-panel,
.admin-form {
    display: grid;
    gap: 16px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 210px minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 26px;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    text-align: center;
}

.empty-state.full {
    min-height: 70vh;
    margin: 48px auto;
    max-width: 760px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: clamp(28px, 6vw, 70px);
    align-items: center;
}

.detail-media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.detail-copy p {
    color: var(--muted);
    font-size: 1.08rem;
}

.detail-price {
    display: block;
    margin: 20px 0;
    font-size: 1.6rem;
}

.quantity-form {
    display: grid;
    grid-template-columns: 120px auto;
    gap: 12px;
    align-items: end;
}

.cart-table {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 82px 1fr 96px 120px 44px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.cart-row img {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}

.cart-row span {
    display: block;
    color: var(--muted);
}

.cart-summary {
    justify-content: flex-end;
    padding-top: 12px;
}

.cart-summary strong,
.review-total strong {
    color: var(--coral);
    font-size: 1.4rem;
}

.review-row,
.review-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.review-total {
    border: 0;
    padding-bottom: 0;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 78vh;
    padding: 32px 18px;
}

.auth-panel {
    width: min(100%, 430px);
}

.auth-logo {
    width: 58px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    padding: 44px clamp(18px, 5vw, 56px);
    background: #1b120d;
    color: #fff8ed;
}

.site-footer div {
    display: grid;
    gap: 7px;
}

.site-footer p,
.site-footer span {
    margin: 0;
    color: #e8dac8;
}

.footer-logo {
    width: 48px;
}

.toast-wrap {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.toast {
    padding: 14px 16px;
    background: var(--surface);
    color: var(--ink);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.toast.error {
    border-left-color: var(--danger);
}

.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 246, 237, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

[data-theme="dark"] .admin-header {
    background: rgba(21, 17, 14, 0.94);
}

.admin-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px 10px;
}

.admin-userbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 14px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    background: var(--teal-2);
    border-color: rgba(17, 111, 107, 0.16);
    color: var(--teal);
}

.admin-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
    min-width: 0;
}

.admin-content {
    padding: 26px 22px 42px;
}

.admin-page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-page-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-grid article {
    padding: 18px;
}

.stat-grid span {
    color: var(--muted);
    font-weight: 900;
}

.stat-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
    line-height: 1;
}

.admin-panel.narrow {
    max-width: 760px;
}

.panel-heading {
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-heading h2,
.admin-panel h2 {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-product img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.status.new {
    background: #f5e3b2;
}

.status.preparing {
    background: #cfece7;
}

.status.completed {
    background: #d8f0dc;
}

.status.cancelled {
    background: #f5d2d2;
}

.stack,
.message-list {
    display: grid;
    gap: 12px;
}

.category-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 80px auto auto;
    gap: 10px;
    align-items: center;
}

.category-edit {
    margin: 0;
}

.status-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

.message-item {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.message-item span {
    color: var(--muted);
}

.message-item p {
    margin: 0;
}

.admin-preview {
    width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-2);
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .menu-toggle {
        display: inline-grid;
        justify-self: end;
    }

    .site-nav,
    .header-actions {
        grid-column: 1 / -1;
        display: none;
        justify-content: start;
        flex-wrap: wrap;
    }

    .site-header.is-open .site-nav,
    .site-header.is-open .header-actions {
        display: flex;
    }

    .site-nav {
        width: 100%;
        justify-content: start;
    }

    .hero {
        min-height: 720px;
        margin-top: -86px;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(27, 18, 13, 0.92) 0%, rgba(48, 29, 19, 0.76) 52%, rgba(27, 18, 13, 0.35) 100%);
    }

    .product-detail,
    .split,
    .contact-layout,
    .checkout-layout,
    .admin-grid.two {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-nav {
        padding-bottom: 12px;
    }
}

@media (max-width: 720px) {
    .site-header {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .brand {
        font-size: 0.98rem;
    }

    .brand-mark {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px;
    }

    .hero {
        min-height: 680px;
        padding: 128px 18px 54px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 3rem;
    }

    .product-grid,
    .stats-band,
    .feature-list,
    .stat-grid,
    .site-footer,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .promo-band,
    .section-heading,
    .admin-header-top,
    .admin-page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-row {
        grid-template-columns: 68px 1fr;
    }

    .cart-row input,
    .cart-row > strong,
    .cart-row .icon-button {
        grid-column: 2;
    }

    .quantity-form,
    .status-form,
    .category-row {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        padding-inline: 14px;
    }

    .admin-header-top {
        padding-inline: 14px;
    }

    .admin-userbar {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-content {
        padding: 18px 14px 34px;
    }

    .table-actions {
        flex-direction: column;
    }
}

/* Kahve Dunyasi-inspired retail theme. Original assets/branding are not copied. */
:root {
    --bg: #fff8f0;
    --surface: #ffffff;
    --surface-2: #fff1df;
    --ink: #2a1613;
    --muted: #7a625c;
    --line: #ead7c6;
    --coffee: #b51624;
    --coffee-2: #7a221d;
    --cream: #fff6e7;
    --teal: #b51624;
    --teal-2: #fff1df;
    --coral: #b51624;
    --gold: #f6c15b;
    --shadow: 0 18px 45px rgba(110, 28, 22, 0.12);
    --soft-shadow: 0 10px 26px rgba(110, 28, 22, 0.08);
}

body {
    background: #fff8f0;
}

.kd-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 38px;
    padding: 7px 18px;
    background: var(--coffee);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: center;
}

.kd-announcement a {
    color: #fff6e7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-header.kd-header {
    position: sticky;
    top: 0;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(110, 28, 22, 0.08);
}

.kd-header-main {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 13px;
}

.kd-brand {
    color: var(--coffee);
    font-size: 1.36rem;
    font-weight: 950;
}

.kd-brand .brand-mark {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px;
}

.kd-search {
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(520px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream);
}

.kd-search input {
    min-height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.kd-search button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    background: var(--coffee);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.kd-category-nav.site-nav {
    display: flex;
    justify-content: center;
    gap: 26px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    background: transparent;
    border-radius: 0;
}

.kd-category-nav.site-nav a {
    min-height: auto;
    padding: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: 950;
    text-transform: uppercase;
}

.kd-category-nav.site-nav a:hover,
.kd-category-nav.site-nav a.is-active {
    color: var(--coffee);
    background: transparent;
    box-shadow: none;
}

.header-actions .button,
.header-actions .cart-link,
.header-actions .icon-button {
    min-height: 38px;
}

.cart-link strong {
    background: var(--coffee);
}

.hero.kd-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
    gap: clamp(24px, 5vw, 64px);
    width: min(1240px, calc(100% - 32px));
    min-height: auto;
    margin: 28px auto 0;
    padding: clamp(34px, 6vw, 66px);
    overflow: hidden;
    background:
        linear-gradient(135deg, #b51624 0%, #7a221d 56%, #5b1b18 100%);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero.kd-hero::before {
    display: none;
}

.kd-hero .hero-copy {
    width: 100%;
    color: #fff;
}

.kd-hero .eyebrow {
    color: #ffd978;
}

.kd-hero h1 {
    max-width: 560px;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.96;
}

.kd-hero p {
    color: rgba(255, 255, 255, 0.88);
}

.kd-hero .hero-visual {
    position: static;
    z-index: 0;
    min-height: 370px;
    align-self: stretch;
    display: grid;
    place-items: center;
    background: #fff4e3;
    border-radius: 8px;
}

.kd-hero .hero-visual img {
    width: min(100%, 680px);
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
}

.kd-hero .button {
    background: #fff;
    color: var(--coffee);
}

.kd-hero .button.ghost {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.section {
    max-width: 1240px;
}

.kd-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 28px;
    padding-bottom: 26px;
}

.kd-categories a {
    min-height: 118px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.kd-categories span {
    display: block;
    color: var(--coffee);
    font-size: 1.18rem;
    font-weight: 950;
}

.kd-categories strong {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.94rem;
}

.kd-product-rail {
    padding-top: 34px;
}

.section-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.section-heading h2 {
    color: var(--ink);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.product-grid {
    gap: 20px;
}

.product-card {
    border-color: #ead7c6;
    box-shadow: none;
}

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

.product-media {
    background: #fff1df;
}

.product-body .eyebrow {
    color: var(--coffee);
}

.product-footer strong {
    font-size: 1.08rem;
}

.add-button {
    background: var(--coffee);
}

.compact-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promo-band.kd-gift-band {
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto;
    padding: clamp(34px, 5vw, 58px);
    background:
        linear-gradient(90deg, rgba(255, 246, 231, 0.92), rgba(255, 246, 231, 0.78)),
        linear-gradient(135deg, #b51624, #7a221d);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.kd-gift-band .eyebrow {
    color: var(--coffee);
}

.kd-gift-band p {
    max-width: 580px;
    color: var(--muted);
}

.kd-gift-band .button.light {
    background: var(--coffee);
    color: #fff;
}

.kd-app-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.kd-app-band h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.05;
}

.kd-app-band p {
    color: var(--muted);
}

.site-footer {
    background: #7a221d;
}

@media (max-width: 1040px) {
    .kd-header-main {
        grid-template-columns: auto auto;
    }

    .kd-search,
    .header-actions,
    .kd-category-nav.site-nav {
        grid-column: 1 / -1;
        display: none;
        justify-content: flex-start;
    }

    .site-header.is-open .kd-search,
    .site-header.is-open .header-actions,
    .site-header.is-open .kd-category-nav.site-nav {
        display: flex;
    }

    .site-header.is-open .kd-search {
        display: grid;
    }

    .kd-category-nav.site-nav {
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero.kd-hero {
        grid-template-columns: 1fr;
    }

    .kd-categories,
    .compact-products,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .kd-announcement {
        flex-direction: column;
        gap: 2px;
    }

    .kd-header-main {
        width: calc(100% - 24px);
    }

    .kd-brand {
        font-size: 1.05rem;
    }

    .hero.kd-hero {
        width: calc(100% - 24px);
        margin-top: 18px;
        padding: 28px 20px;
    }

    .kd-hero h1 {
        font-size: 2.6rem;
    }

    .kd-hero .hero-visual {
        min-height: 240px;
    }

    .kd-categories,
    .compact-products,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .kd-app-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Light, brand-matched admin surface */
.admin-body {
    background: #fff8f0 !important;
    color: #2a1613 !important;
}

.admin-body [data-theme-toggle] {
    display: none;
}

.admin-header {
    background: #ffffff !important;
    border-bottom: 1px solid #ead7c6 !important;
    box-shadow: 0 10px 28px rgba(110, 28, 22, 0.08);
}

.admin-brand {
    color: #b51624 !important;
}

.admin-nav {
    gap: 10px;
}

.admin-nav a {
    background: #fff8f0;
    border-color: #ead7c6;
    color: #5f4540 !important;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    background: #b51624 !important;
    border-color: #b51624 !important;
    color: #ffffff !important;
}

.admin-userbar {
    color: #5f4540;
}

.admin-page-title {
    padding: 22px;
    background: linear-gradient(135deg, #b51624, #7a221d);
    color: #fff;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.admin-page-title .eyebrow {
    color: #ffd978;
}

.admin-panel,
.stat-grid article,
.message-item {
    background: #ffffff;
    border-color: #ead7c6;
    box-shadow: 0 10px 26px rgba(110, 28, 22, 0.08);
}

.stat-grid strong {
    color: #b51624;
}

.admin-panel table th {
    color: #8b6259;
}

.admin-panel table td {
    color: #2a1613;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.category-edit input,
.status-form select {
    background: #fff8f0;
    border-color: #ead7c6;
}

/* Final dark-mode overrides for the retail theme */
[data-theme="dark"] {
    --bg: #12100f;
    --surface: #1e1a18;
    --surface-2: #2a211e;
    --ink: #fff7ee;
    --muted: #ccb8ad;
    --line: #3b2d29;
    --coffee: #f0f0f0;
    --coffee-2: #ffffff;
    --cream: #211b18;
    --teal: #ffffff;
    --teal-2: #2a211e;
    --coral: #ff8075;
    --gold: #f6c15b;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    --soft-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] body:not(.admin-body) {
    background: #12100f;
    color: #fff7ee;
}

[data-theme="dark"] .kd-announcement {
    background: #050505;
    color: #fff;
    border-bottom: 1px solid #2f2f2f;
}

[data-theme="dark"] .site-header.kd-header {
    background: rgba(20, 18, 17, 0.96);
    border-bottom-color: #3b2d29;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .kd-brand,
[data-theme="dark"] .brand {
    color: #ffffff;
}

[data-theme="dark"] .kd-search {
    background: #211b18;
    border-color: #3b2d29;
}

[data-theme="dark"] .kd-search input {
    color: #fff7ee;
}

[data-theme="dark"] .kd-search input::placeholder {
    color: #bda89e;
}

[data-theme="dark"] .kd-search button,
[data-theme="dark"] .button,
[data-theme="dark"] .add-button {
    background: #ffffff;
    color: #15100e;
}

[data-theme="dark"] .button.ghost,
[data-theme="dark"] .cart-link,
[data-theme="dark"] .icon-button {
    background: #211b18;
    border-color: #3b2d29;
    color: #fff7ee;
}

[data-theme="dark"] .cart-link strong {
    background: #ffffff;
    color: #15100e;
}

[data-theme="dark"] .kd-category-nav.site-nav a {
    color: #e9d7cf;
}

[data-theme="dark"] .kd-category-nav.site-nav a:hover,
[data-theme="dark"] .kd-category-nav.site-nav a.is-active {
    color: #ffffff;
}

[data-theme="dark"] .hero.kd-hero {
    background: linear-gradient(135deg, #17110f 0%, #261a16 56%, #050505 100%);
    border: 1px solid #3b2d29;
}

[data-theme="dark"] .kd-hero .hero-visual,
[data-theme="dark"] .product-media {
    background: #2a211e;
}

[data-theme="dark"] .kd-hero .button {
    background: #ffffff;
    color: #15100e;
}

[data-theme="dark"] .kd-categories a,
[data-theme="dark"] .product-card,
[data-theme="dark"] .kd-app-band,
[data-theme="dark"] .form-panel,
[data-theme="dark"] .auth-panel,
[data-theme="dark"] .order-review,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .contact-aside,
[data-theme="dark"] .feature-list span,
[data-theme="dark"] .stats-band div {
    background: #1e1a18;
    border-color: #3b2d29;
    color: #fff7ee;
}

[data-theme="dark"] .kd-categories strong,
[data-theme="dark"] .product-body p,
[data-theme="dark"] .kd-app-band p,
[data-theme="dark"] .split p,
[data-theme="dark"] .contact-aside p {
    color: #ccb8ad;
}

[data-theme="dark"] .kd-gift-band {
    background: #1e1a18;
    border-color: #3b2d29;
    color: #fff7ee;
}

[data-theme="dark"] .kd-gift-band p {
    color: #ccb8ad;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #211b18;
    border-color: #3b2d29;
    color: #fff7ee;
}

.button:disabled,
.add-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    padding: 0 13px;
    overflow: hidden;
    color: #fff;
    background: var(--coffee);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.78rem;
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.account-menu-panel a,
.account-menu-panel button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    text-align: left;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
    background: #fff4e4;
    color: var(--coffee);
}

.account-menu-panel form {
    margin: 0;
}

.account-grid,
.account-order-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-order-layout {
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
}

.account-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.account-card h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.05;
}

.account-card p {
    color: var(--muted);
}

.account-password-form {
    max-width: 560px;
}

.account-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.account-order-actions form {
    margin: 0;
}

.account-order-actions.vertical {
    align-items: stretch;
    flex-direction: column;
}

.account-order-actions.vertical .button,
.account-order-actions.vertical button {
    width: 100%;
}

.account-table table {
    min-width: 720px;
}

.status-pill,
.stock-badge,
.stock-note {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    background: #fff4e4;
    color: var(--coffee);
    border: 1px solid #ead7c6;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 950;
}

.stock-badge.is-low,
.stock-note.is-empty {
    background: #fde7e7;
    color: var(--danger);
    border-color: #f3bcbc;
}

.stock-note {
    margin: 2px 0 10px;
}

.detail-copy .stock-note {
    margin-top: 12px;
}

.stock-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 230px;
}

.stock-form input {
    width: 90px;
    min-height: 38px;
}

.order-product-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.order-product-row img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    background: #fff4e4;
    border-radius: 8px;
}

[data-theme="dark"] .account-menu-panel,
[data-theme="dark"] .account-card {
    background: #211b18;
    border-color: #3b2d29;
}

[data-theme="dark"] .account-menu-panel a,
[data-theme="dark"] .account-menu-panel button {
    color: #fff7ee;
}

[data-theme="dark"] .account-menu-panel a:hover,
[data-theme="dark"] .account-menu-panel button:hover,
[data-theme="dark"] .status-pill,
[data-theme="dark"] .stock-badge,
[data-theme="dark"] .stock-note {
    background: #30231e;
    color: #ffd978;
    border-color: #4a372f;
}

[data-theme="dark"] .stock-badge.is-low,
[data-theme="dark"] .stock-note.is-empty {
    background: #3a1c1c;
    color: #ffb0a6;
    border-color: #704141;
}

.favorite-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.favorite-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(92, 53, 35, 0.16);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.96);
    color: var(--coffee);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(10px);
}

.favorite-button.is-active {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.favorite-detail-form {
    margin: 4px 0 10px;
}

.rating-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 900;
}

.rating-line.large {
    font-size: 1rem;
}

.filter-check {
    min-height: 42px;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.filter-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.campaign-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.campaign-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.campaign-card img {
    width: 148px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: var(--teal-2);
}

.campaign-card h2 {
    margin: 4px 0 6px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.campaign-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.coupon-panel,
.coupon-edit,
.review-card,
.delivery-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.coupon-panel {
    width: min(var(--container), calc(100% - 32px));
    margin: 16px auto 0;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.coupon-form {
    display: flex;
    gap: 12px;
    align-items: end;
    width: 100%;
}

.coupon-form label {
    flex: 1;
}

.coupon-edit {
    padding: 16px;
}

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

.form-actions,
.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 22px;
    align-items: start;
}

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

.review-card {
    padding: 16px;
}

.review-card strong,
.review-card span {
    display: inline-flex;
    margin-right: 10px;
}

.review-card span {
    color: var(--gold);
    font-weight: 900;
}

.review-card p {
    margin: 10px 0;
    color: var(--muted);
}

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

.status-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.status-timeline span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: 0.84rem;
    font-weight: 900;
}

.status-timeline span.is-done,
.status-timeline span.is-current {
    border-color: rgba(17, 111, 107, 0.26);
    background: var(--teal-2);
    color: var(--teal);
}

.status-timeline span.is-current {
    box-shadow: inset 0 0 0 2px rgba(17, 111, 107, 0.18);
}

.low-stock-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.low-stock-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}

.low-stock-list span {
    color: var(--danger);
    font-weight: 900;
}

.warning-panel {
    border-color: rgba(216, 168, 73, 0.45);
    background: linear-gradient(180deg, #fffaf0, var(--surface));
}

.checkout-form textarea,
.address-form textarea,
.review-form textarea {
    resize: vertical;
}

[data-theme="dark"] .favorite-button,
[data-theme="dark"] .campaign-card,
[data-theme="dark"] .coupon-panel,
[data-theme="dark"] .coupon-edit,
[data-theme="dark"] .review-card,
[data-theme="dark"] .delivery-card {
    background: #211b18;
    border-color: #3b2d29;
}

[data-theme="dark"] .campaign-card img,
[data-theme="dark"] .status-timeline span.is-done,
[data-theme="dark"] .status-timeline span.is-current {
    background: #183531;
}

[data-theme="dark"] .warning-panel,
[data-theme="dark"] .low-stock-list a {
    background: #241d18;
}

/* Final mobile layer: keeps the Kahve Dunyasi theme usable on phones. */
@media (max-width: 760px) {
    body {
        overflow-x: hidden;
    }

    .kd-announcement {
        padding: 8px 14px;
        gap: 3px;
        text-align: center;
        font-size: 0.78rem;
    }

    .site-header.kd-header {
        position: sticky;
        top: 0;
        z-index: 80;
    }

    .kd-header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        width: calc(100% - 24px);
        gap: 10px 12px;
        padding: 11px 0;
    }

    .kd-brand {
        min-width: 0;
        font-size: 0.98rem;
        line-height: 1.05;
    }

    .kd-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kd-brand .brand-mark {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px;
    }

    .menu-toggle {
        display: inline-grid;
        justify-self: end;
    }

    .kd-search,
    .header-actions,
    .kd-category-nav.site-nav {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        display: none;
    }

    .site-header.is-open .kd-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        margin: 4px 0 0;
    }

    .site-header.is-open .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .site-header.is-open .header-actions .icon-button,
    .site-header.is-open .header-actions .cart-link,
    .site-header.is-open .header-actions .button,
    .site-header.is-open .header-actions .account-menu,
    .site-header.is-open .header-actions .account-menu summary,
    .site-header.is-open .header-actions .inline-form,
    .site-header.is-open .header-actions .inline-form button {
        width: 100%;
    }

    .site-header.is-open .header-actions .icon-button,
    .site-header.is-open .header-actions .cart-link,
    .site-header.is-open .header-actions .button,
    .site-header.is-open .header-actions .account-menu summary {
        min-height: 42px;
    }

    .site-header.is-open .header-actions .cart-link,
    .site-header.is-open .header-actions .inline-form {
        justify-content: center;
    }

    .site-header.is-open .header-actions .account-menu summary {
        justify-content: center;
        max-width: none;
    }

    .account-menu-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .site-header.is-open .kd-category-nav.site-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 4px 0 6px;
    }

    .kd-category-nav.site-nav a {
        min-height: 42px;
        align-items: center;
        border-top: 1px solid var(--line);
        font-size: 0.9rem;
    }

    .hero.kd-hero {
        width: calc(100% - 24px);
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 14px;
        padding: 24px 18px 18px;
    }

    .kd-hero h1 {
        max-width: 100%;
        font-size: clamp(2.05rem, 11vw, 2.85rem);
        line-height: 1;
    }

    .kd-hero p {
        margin-top: 14px;
        font-size: 0.98rem;
    }

    .hero-actions {
        width: 100%;
        gap: 10px;
    }

    .hero-actions .button {
        flex: 1 1 100%;
        width: 100%;
    }

    .kd-hero .hero-visual {
        min-height: 190px;
        max-height: 260px;
        overflow: hidden;
    }

    .kd-hero .hero-visual img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
    }

    .section,
    .page-hero,
    .product-detail {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .kd-categories {
        gap: 10px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .kd-categories a {
        min-height: auto;
        padding: 15px;
    }

    .product-grid,
    .compact-products,
    .filter-bar,
    .campaign-strip,
    .campaign-card,
    .review-layout,
    .form-grid.two,
    .cart-item,
    .site-footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .campaign-card img {
        width: 100%;
        max-height: 210px;
    }

    .coupon-panel,
    .coupon-form {
        flex-direction: column;
        align-items: stretch;
    }

    .coupon-panel {
        width: calc(100% - 28px);
    }

    .section-heading {
        gap: 12px;
    }

    .section-heading .button {
        width: 100%;
    }

    .promo-band.kd-gift-band {
        width: calc(100% - 24px);
        padding: 24px 18px;
    }

    .kd-app-band {
        margin-bottom: 24px;
    }

    .account-grid,
    .account-order-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .stock-form {
        min-width: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .kd-brand span {
        max-width: 180px;
    }

    .site-header.is-open .header-actions {
        grid-template-columns: 1fr;
    }

    .kd-search button {
        padding: 0 12px;
    }
}
