:root {
    --navy: #4b2e24;
    --navy-2: #634034;
    --navy-3: #7a4d3d;
    --cyan: #d68a3a;
    --cyan-2: #b76c28;
    --cyan-soft: #fff0dc;
    --cream: #fff9f0;
    --cream-2: #f7ead7;
    --gold: #e7b45f;
    --pink: #c96b73;
    --green: #6f8c5f;
    --red: #a33a2a;
    --text: #33231c;
    --muted: #7b665b;
    --border: #ead9c8;
    --white: #fff;
    --shadow: 0 18px 42px rgba(75, 46, 36, .13);
    --shadow-soft: 0 10px 25px rgba(75, 46, 36, .08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 213, 255, .13), transparent 34rem),
        linear-gradient(180deg, var(--cream), #ffffff 34rem);
    color: var(--text);
    line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: #066a80; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.25rem; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--navy); padding: 10px 14px; border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { background: rgba(7, 22, 41, .97); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 900; }
.brand:hover, .footer-brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: linear-gradient(135deg, var(--cyan), var(--gold)); color: var(--navy); font-weight: 950; box-shadow: 0 12px 30px rgba(0, 213, 255, .2); }
.brand-text { display: grid; gap: 0; line-height: 1.1; }
.brand-text small { color: #b9cad8; font-size: .76rem; font-weight: 700; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.main-nav a { color: #fff; padding: 9px 12px; border-radius: 999px; font-weight: 800; font-size: .94rem; }
.main-nav a[aria-current="page"], .main-nav a:hover { background: rgba(255,255,255,.13); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 14px; padding: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 99px; }
.role-strip { background: rgba(0, 213, 255, .12); border-top: 1px solid rgba(255,255,255,.08); }
.role-strip .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #dfeaf0; font-size: .9rem; }
.role-strip a { color: #fff; font-weight: 800; }
.main-container { padding: 36px 0 62px; }

.eyebrow, .badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border-radius: 999px; padding: 8px 12px; background: var(--cyan-soft); color: #045465; font-weight: 900; font-size: .82rem; letter-spacing: .02em; }
.badge-dark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: stretch; background: radial-gradient(circle at top right, rgba(0,213,255,.26), transparent 42%), var(--navy); color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero:after { content: ''; position: absolute; right: -90px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(244, 180, 75, .22); }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 5rem); line-height: .96; margin: 16px 0 20px; letter-spacing: -.055em; }
.hero p { font-size: clamp(1rem, 2vw, 1.16rem); color: #dfeaf0; max-width: 62ch; }
.hero-card { position: relative; z-index: 1; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 26px; padding: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.hero-card h2, .hero-card h3 { margin-top: 0; }
.hero-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.hero-mini { padding: 16px; background: rgba(255,255,255,.1); border-radius: 18px; border: 1px solid rgba(255,255,255,.12); }
.hero-mini strong { display: block; font-size: 1.35rem; color: #fff; }

.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--navy); color: #fff; font-weight: 900; cursor: pointer; font: inherit; line-height: 1.2; }
.btn:hover, button:hover { text-decoration: none; filter: brightness(1.04); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), #0098c7); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 46px 0 18px; }
.section-title h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.section-title p { max-width: 60ch; color: var(--muted); margin: 7px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.panel, .card { background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft); }
.panel { margin-bottom: 22px; }
.panel-narrow { max-width: 740px; margin-left: auto; margin-right: auto; }
.card h3, .panel h1, .panel h2 { margin-top: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--navy); font-weight: 950; margin-bottom: 14px; }
.muted { color: var(--muted); }
.notice { border-left: 5px solid var(--cyan); background: var(--cyan-soft); padding: 14px 16px; border-radius: 14px; }
.warning { border-left-color: var(--gold); background: #fff6df; }

.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.shop-sidebar { position: sticky; top: 110px; }
.category-list { display: grid; gap: 8px; margin-top: 14px; }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-weight: 800; background: #fff; }
.category-list a:hover, .category-list a[aria-current="page"] { text-decoration: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,213,255,.12); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.product-card h3 { margin-bottom: 8px; }
.product-image { display: grid; place-items: center; min-height: 176px; border-radius: 18px; background: radial-gradient(circle at top right, rgba(255,255,255,.85), transparent 34%), linear-gradient(135deg, var(--cyan-soft), #fff3de); color: var(--navy); font-weight: 950; font-size: 3rem; margin-bottom: 16px; border: 1px solid rgba(0, 213, 255, .14); }
.product-image.large { min-height: 410px; font-size: clamp(4rem, 8vw, 7rem); margin-bottom: 0; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f2f7fa; color: #344054; font-size: .82rem; font-weight: 800; }
.pill-success { background: #eafaf3; color: #027a48; }
.pill-gold { background: #fff3de; color: #8a5200; }
.price { font-size: 1.42rem; font-weight: 950; color: #073b4c; margin: 8px 0; }
.product-card .actions { margin-top: auto; padding-top: 14px; }
.product-detail { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); gap: 24px; align-items: start; }
.product-summary { display: grid; gap: 18px; }
.product-summary h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin: 0; letter-spacing: -.045em; }
.qty-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: end; margin-top: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumbs a { font-weight: 800; }

.callout { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border: 0; overflow: hidden; position: relative; }
.callout p { color: #dfeaf0; }
.callout:after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -50px; bottom: -70px; background: rgba(0,213,255,.18); }
.callout > * { position: relative; z-index: 1; }
.process-list { display: grid; gap: 14px; counter-reset: step; }
.process-step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.process-step:before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 950; }
.review-card { position: relative; }
.stars { color: #d98300; letter-spacing: .08em; font-weight: 950; }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--navy); color: #fff; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.summary-box { display: grid; gap: 8px; background: #f8fbfd; border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; }
.summary-row.total { font-size: 1.2rem; font-weight: 950; padding-top: 10px; border-top: 1px solid var(--border); }

form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { font-weight: 800; display: grid; gap: 7px; }
label.inline { display: flex; align-items: center; gap: 10px; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; font: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0, 213, 255, .22); border-color: var(--cyan); }
textarea { min-height: 130px; resize: vertical; }
input[type="checkbox"] { width: auto; }
.flash { margin-bottom: 16px; border-radius: 16px; padding: 13px 15px; border: 1px solid var(--border); background: #fff; font-weight: 800; }
.flash-error { border-color: #fecdca; background: #fff1f0; color: var(--red); }
.flash-success { border-color: #abefc6; background: #ecfdf3; color: #027a48; }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--navy); color: #fff; border-radius: 20px; padding: 18px; }
.stat span { color: #b9cad8; font-weight: 800; }
.stat strong { display: block; font-size: 2rem; }
.progress-track { height: 14px; border-radius: 999px; background: #e9f1f6; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--green)); border-radius: inherit; }

.site-footer { background: var(--navy); color: #dfeaf0; padding: 42px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 28px; }
.footer-grid h3 { color: #fff; margin: 0 0 12px; }
.footer-grid a { display: block; color: #fff; margin: 0 0 8px; font-weight: 700; }
.footer-brand { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #b9cad8; font-size: .9rem; }

@media (max-width: 1000px) {
    .hero, .product-detail, .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .grid, .grid-2, .grid-4, .form-grid, .dashboard-grid, .footer-grid { grid-template-columns: 1fr; }
    .nav-wrap { min-height: 70px; }
    .nav-toggle { display: inline-grid; place-items: center; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
    .main-nav.is-open { display: flex; }
    .main-nav a { background: rgba(255,255,255,.08); }
    .nav-wrap { flex-wrap: wrap; }
    .role-strip .container { flex-direction: column; align-items: flex-start; padding: 8px 0; }
    .hero { padding: 28px; border-radius: 24px; }
    .hero-mini-grid, .product-grid, .qty-row { grid-template-columns: 1fr; }
    .product-image.large { min-height: 280px; }
    .section-title { display: block; }
}

.cart-add-form { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: center; margin-top: 12px; }
.cart-add-form input[type="number"] { min-width: 0; }
.compact-actions { margin-top: 10px; }
.btn-small { padding: 8px 12px; font-size: .88rem; }
.btn-wide { width: 100%; margin-top: 16px; }
.qty-input { width: 92px; }
.small-title { margin: 0 0 16px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 22px; align-items: start; }
.checkout-summary-panel { position: sticky; top: 110px; }
.error-panel { border-color: #fecdca; background: #fff7f6; }
.error-panel h2 { color: var(--red); }
.field-error { color: var(--red); font-weight: 800; font-size: .86rem; }
.terms-line { background: #f8fbfd; border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-top: 12px; }
.is-muted-group { opacity: .56; }
.mini-table th, .mini-table td { padding: 10px; font-size: .92rem; }
button[disabled], input[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 1000px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary-panel { position: static; }
}
@media (max-width: 600px) {
    .cart-add-form { grid-template-columns: 1fr; }
    .qty-input { width: 100%; }
}

.compact-title { margin: 0 0 18px; }
.soft-rule { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.timeline { display: grid; gap: 12px; }
.timeline-item { border-left: 4px solid var(--cyan); background: #f8fbfd; border-radius: 14px; padding: 12px 14px; }
.timeline-item strong { display: block; }
.timeline-item span { color: var(--muted); font-size: .9rem; font-weight: 800; }
.timeline-item p { margin: 8px 0 0; }
.review-list { display: grid; gap: 14px; }
.review-history-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: #fff; }
.review-history-card p { margin: 8px 0 0; }
.review-meta { display: grid; gap: 8px; justify-items: end; color: var(--muted); font-weight: 800; font-size: .9rem; }
@media (max-width: 700px) {
    .review-history-card { grid-template-columns: 1fr; }
    .review-meta { justify-items: start; }
}


.btn-danger { background: var(--red); color: #fff; }
.success-panel { border-color: #abefc6; background: #ecfdf3; }
.success-panel h2 { color: #027a48; }
.notice-danger { border-left-color: var(--red); background: #fff1f0; color: var(--red); }
.code-box { display: block; white-space: pre-wrap; word-break: break-word; background: var(--navy); color: #fff; padding: 16px; border-radius: 16px; font-weight: 900; font-size: 1.05rem; }
.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: start; }
.stacked-form { margin-top: 18px; }
.compact-review-list .review-card { border: 1px solid var(--border); background: #fff; border-radius: 18px; padding: 16px; }
@media (max-width: 1000px) {
    .wide-left { grid-template-columns: 1fr; }
}

.stat-light { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.stat-light span { color: var(--muted); }
.admin-module-grid { grid-template-columns: repeat(3, 1fr); }
.inline-actions, .inline-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-filter { margin: 0; }
.inline-filter select { min-width: 140px; }
.sub-row td { background: #f8fbfd; }
.admin-inline-card { border: 1px dashed var(--border); border-radius: 16px; padding: 14px; background: #fff; }
.three-col { grid-template-columns: repeat(3, 1fr); }
.inline-bottom { align-self: end; padding-bottom: 12px; }
.mini-list { display: grid; gap: 12px; }
.mini-list-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--border); background: #fff; border-radius: 16px; }
.mini-list-item span { color: var(--muted); font-size: .92rem; }
.mini-list-item a { grid-row: 1 / span 2; grid-column: 2; font-weight: 900; }
.review-admin-list { display: grid; gap: 16px; }
.review-admin-card { display: grid; grid-template-columns: 1fr minmax(250px, .35fr); gap: 18px; border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 18px; }
.review-action-form { align-content: start; }
.product-image img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.product-image:has(img) { padding: 0; overflow: hidden; }
@media (max-width: 1000px) {
    .admin-module-grid, .three-col, .review-admin-card { grid-template-columns: 1fr; }
    .mini-list-item { grid-template-columns: 1fr; }
    .mini-list-item a { grid-row: auto; grid-column: auto; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--card-bg, #fff);
    border: 1px solid rgba(92, 55, 36, .12);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(54, 31, 20, .06);
}
.stat-card span {
    display: block;
    color: var(--muted, #75645b);
    font-size: .88rem;
    margin-bottom: 8px;
}
.stat-card strong {
    display: block;
    font-size: 1.7rem;
    color: var(--accent-dark, #5a2e21);
}
.email-preview {
    white-space: pre-wrap;
    background: #fff8ef;
    border: 1px solid rgba(177, 112, 50, .22);
    border-radius: 14px;
    padding: 16px;
    max-height: 460px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .92rem;
    line-height: 1.5;
}
.error-text {
    color: #8a1f11;
}
@media (max-width: 760px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


.testing-list { display: grid; gap: 14px; margin-bottom: 24px; }
.testing-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr); gap: 16px; border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 16px; }
.testing-card p { margin: 7px 0 10px; color: var(--muted); }
.testing-card-actions { display: grid; gap: 10px; }
.status-pass { border-color: #abefc6; background: #fbfffd; }
.status-fail { border-color: #fecdca; background: #fffafa; }
.status-blocked { border-color: #fedf89; background: #fffdf6; }
.status-not_started { background: #fff; }
.admin-testing-page textarea { min-height: 72px; }
.admin-testing-page .inline-filter textarea { min-width: 210px; min-height: 48px; }
@media (max-width: 1000px) { .testing-card { grid-template-columns: 1fr; } }

.admin-handover-page textarea { min-height: 72px; }
.handover-list .status-completed,
.handover-list .status-signed_off,
.status-handed_over { border-color: #abefc6; background: #fbfffd; }
.handover-list .status-ready,
.status-prepared { border-color: #b2ddff; background: #f5fbff; }
.handover-list .status-needs_work,
.status-on_hold { border-color: #fedf89; background: #fffdf6; }
.handover-list .status-pending { background: #fff; }
.training-note { border: 1px solid var(--border); background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.training-note h3 { margin-top: 0; }
.handover-asset-form { min-width: 330px; }
.handover-asset-form input,
.handover-asset-form textarea { min-width: 220px; }
@media (max-width: 900px) {
    .handover-asset-form { min-width: 0; }
    .handover-asset-form input,
    .handover-asset-form textarea { min-width: 0; }
}

.admin-qa-page textarea { min-height: 72px; }
.qa-case-list,
.qa-result-list { display: grid; gap: 14px; margin-bottom: 24px; }
.qa-case-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr); gap: 16px; border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 16px; }
.qa-case-card p { color: var(--muted); margin: 7px 0 0; }
.admin-qa-page .testing-card h3 { margin: 10px 0 8px; }
.admin-qa-page .testing-card p { margin: 8px 0; }
.status-signed_off { border-color: #abefc6; background: #fbfffd; }
.status-ready { border-color: #b2ddff; background: #f5fbff; }
.status-draft { background: #fff; }
.status-cancelled,
.status-wont_fix { border-color: #d0d5dd; background: #f8fbfd; }
@media (max-width: 1000px) {
    .qa-case-card { grid-template-columns: 1fr; }
}


html { font-size: clamp(15px, 0.4vw + 14px, 17px); }
body {
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 0%, rgba(231, 180, 95, .23), transparent 28rem),
        radial-gradient(circle at 100% 6rem, rgba(111, 140, 95, .16), transparent 30rem),
        linear-gradient(180deg, #fff9f0 0%, #fff4e6 36rem, #fffdf8 100%);
}
a { color: #8a4f1f; }
.container { width: min(1180px, calc(100% - clamp(24px, 5vw, 48px))); }
.site-header {
    background: rgba(74, 45, 35, .96);
    border-bottom: 1px solid rgba(255, 244, 230, .16);
}
.nav-wrap { gap: 14px; }
.brand { min-width: fit-content; }
.brand-logo-frame { background: #fff8ed; overflow: hidden; box-shadow: 0 12px 28px rgba(44, 24, 15, .18); }
.brand-logo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand-text small { color: #f5dcc2; }
.nav-actions { display: flex; align-items: center; gap: 10px; order: 2; }
.rina-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fffaf2;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 6px 10px 6px 6px;
    font-weight: 900;
    white-space: nowrap;
}
.rina-chip:hover { text-decoration: none; background: rgba(255,255,255,.18); }
.rina-chip img,
.page-rina-line img,
.footer-rina img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 244, 230, .85);
    background: #fff8ed;
}
.main-nav { order: 3; flex: 1 1 100%; justify-content: center; padding: 0 0 12px; }
.main-nav a { color: #fffaf2; }
.main-nav a[aria-current="page"], .main-nav a:hover { background: rgba(255, 244, 230, .16); }
.role-strip { background: rgba(231, 180, 95, .14); }
.page-rina-line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px auto;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 252, 247, .88);
    box-shadow: var(--shadow-soft);
    color: #6d4f42;
    font-size: .92rem;
    font-weight: 800;
}
.page-rina-line img { width: 30px; height: 30px; border-color: #ead2ba; }
.hero {
    background:
        radial-gradient(circle at 92% 10%, rgba(231,180,95,.32), transparent 28%),
        radial-gradient(circle at 7% 92%, rgba(111,140,95,.18), transparent 30%),
        linear-gradient(135deg, #5a3528, #7b4f3b 62%, #9a673e);
    border: 1px solid rgba(255, 244, 230, .18);
}
.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.16) 0 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .22;
}
.hero:after { background: rgba(255, 234, 199, .26); }
.hero p { color: #fff2e2; }
.hero-card, .hero-mini { background: rgba(255, 249, 240, .13); border-color: rgba(255, 249, 240, .22); }
.badge-dark { background: rgba(255,249,240,.14); color: #fff8ed; border-color: rgba(255,249,240,.22); }
.eyebrow, .badge { background: #fff0dc; color: #754015; }
.panel, .card { background: rgba(255, 253, 248, .94); border-color: var(--border); }
.card, .panel, .product-image { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover, .product-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(75, 46, 36, .12); }
.product-image { background: linear-gradient(135deg, #fff2df, #f3dcc2); color: #754015; border-color: #eed6bc; }
.btn, button { background: #4b2e24; }
.btn-primary { background: linear-gradient(135deg, #e3a257, #b76c28); color: #2d1b13; }
.btn-outline { color: #5d382b; border-color: #d9bfa6; background: rgba(255,255,255,.25); }
.btn-light { color: #4b2e24; }
.price { color: #6d3d1e; }
.notice { border-left-color: #d68a3a; background: #fff3e2; }
.callout { background: linear-gradient(135deg, #5a3528, #7b4f3b); }
.callout p { color: #fff1df; }
.process-step:before { background: #8a4f1f; }
.table-wrap { max-width: 100%; }
table { min-width: 640px; }
th { background: #5a3528; }
input:focus, select:focus, textarea:focus { outline-color: rgba(214, 138, 58, .25); border-color: #d68a3a; }
.stat { background: linear-gradient(135deg, #5a3528, #7b4f3b); }
.stat span { color: #f5dcc2; }
.progress-fill { background: linear-gradient(90deg, #d68a3a, #6f8c5f); }
.timeline-item { border-left-color: #d68a3a; background: #fff8ef; }
.code-box { background: #4b2e24; }
.site-footer { background: #3e261e; color: #f5dcc2; }
.footer-grid { align-items: start; }
.footer-grid a, .footer-grid h3, .footer-brand { color: #fff8ed; }
.footer-bottom { color: #e9cdb1; border-top-color: rgba(255,255,255,.13); }
.footer-rina { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #fff4e6; font-weight: 800; }
.footer-rina img { width: 42px; height: 42px; border-color: #ead2ba; }

@media (min-width: 1101px) {
    .nav-wrap { flex-wrap: wrap; }
}
@media (max-width: 1180px) {
    .admin-module-grid, .dashboard-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .hero, .product-detail, .shop-layout, .checkout-layout, .wide-left { grid-template-columns: 1fr !important; }
    .shop-sidebar, .checkout-summary-panel { position: static; }
    .hero { gap: 20px; }
    .main-container { padding-top: 24px; }
}
@media (max-width: 820px) {
    .container { width: min(100% - 24px, 1180px); }
    .nav-wrap { min-height: 68px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .nav-actions { justify-self: end; }
    .rina-chip span { display: none; }
    .main-nav { grid-column: 1 / -1; justify-content: stretch; padding-bottom: 14px; }
    .main-nav a { border-radius: 14px; padding: 11px 13px; }
    .hero { padding: 24px; border-radius: 24px; }
    .hero h1 { font-size: clamp(2rem, 11vw, 3.1rem); letter-spacing: -.04em; }
    .actions, .inline-actions, .inline-filter { align-items: stretch; }
    .actions .btn, .actions button, .inline-actions .btn, .inline-actions button { width: 100%; }
    .section-title { gap: 12px; }
    .section-title .btn { margin-top: 12px; }
    .form-grid, .grid, .grid-2, .grid-4, .dashboard-grid, .admin-module-grid, .stats-grid, .footer-grid, .three-col, .qa-case-card, .testing-card, .review-admin-card { grid-template-columns: 1fr !important; }
    .page-rina-line { margin-left: 0; border-radius: 18px; width: 100%; align-items: flex-start; }
}
@media (max-width: 560px) {
    .container { width: calc(100% - 20px); }
    .brand-text small { display: none; }
    .brand-mark { width: 40px; height: 40px; border-radius: 14px; }
    .rina-chip { padding-right: 6px; }
    .main-container { padding-bottom: 38px; }
    .panel, .card { padding: 18px; border-radius: 18px; }
    .hero { padding: 20px; border-radius: 20px; }
    .hero-mini-grid, .product-grid { grid-template-columns: 1fr !important; }
    .cart-add-form, .qty-row { grid-template-columns: 1fr !important; }
    .btn, button { min-height: 44px; }
    .summary-row { display: grid; grid-template-columns: 1fr; gap: 2px; }
    .table-wrap { margin-inline: -4px; border-radius: 14px; }
    th, td { padding: 11px 10px; }
    .footer-rina { align-items: flex-start; }
}
@media (max-width: 390px) {
    .brand-text strong { font-size: .96rem; }
    .nav-actions { gap: 6px; }
    .rina-chip img { width: 30px; height: 30px; }
    .nav-toggle { width: 40px; height: 40px; }
}

:root {
    --navy: #3b2016;
    --navy-2: #56301f;
    --navy-3: #7a4328;
    --cyan: #e88e97;
    --cyan-2: #c85a62;
    --cyan-soft: #fde9eb;
    --cream: #fff8f1;
    --cream-2: #f7e7d3;
    --gold: #c78045;
    --pink: #e88e97;
    --green: #8f9d68;
    --red: #a94439;
    --text: #321b12;
    --muted: #7a5b4f;
    --border: #efcdd0;
    --white: #fff;
    --shadow: 0 18px 44px rgba(84, 45, 27, .16);
    --shadow-soft: 0 10px 28px rgba(84, 45, 27, .09);
}
body {
    background:
        radial-gradient(circle at 12% 0%, rgba(232, 142, 151, .22), transparent 27rem),
        radial-gradient(circle at 92% 4rem, rgba(199, 128, 69, .16), transparent 28rem),
        radial-gradient(circle at 50% 100%, rgba(255, 238, 224, .95), transparent 38rem),
        linear-gradient(180deg, #fffaf6 0%, #fff2ea 38rem, #fffdf9 100%);
    color: var(--text);
}
a { color: #9e424d; }
.site-header {
    background: rgba(59, 32, 22, .97);
    border-bottom: 1px solid rgba(232, 142, 151, .22);
}
.nav-wrap { min-height: 86px; }
.brand { gap: 14px; }
.brand-logo-frame {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff8f1, #fde9eb);
    border: 1px solid rgba(232, 142, 151, .45);
    box-shadow: 0 12px 32px rgba(59, 32, 22, .22);
}
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: inherit;
}
.brand-text strong { color: #fff9f4; letter-spacing: .01em; }
.brand-text small { color: #ffdce0; }
.rina-chip {
    background: rgba(232, 142, 151, .16);
    border-color: rgba(255, 220, 224, .34);
    color: #fff8f1;
}
.rina-chip:hover { background: rgba(232, 142, 151, .25); }
.rina-chip img,
.page-rina-line img,
.footer-rina img {
    border-color: #f7c5ca;
    background: #fff8f1;
    object-position: center 22%;
}
.main-nav a[aria-current="page"], .main-nav a:hover { background: rgba(232, 142, 151, .22); }
.role-strip { background: rgba(232, 142, 151, .12); border-top-color: rgba(255,255,255,.08); }
.role-strip .container { color: #ffe8ea; }
.page-rina-line {
    background: rgba(255, 248, 241, .94);
    border-color: #f2c4c9;
    color: #6d3a2b;
}
.hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(232, 142, 151, .42), transparent 31%),
        radial-gradient(circle at 6% 88%, rgba(199, 128, 69, .24), transparent 34%),
        linear-gradient(135deg, #3b2016 0%, #6d3a25 62%, #b96745 100%);
}
.hero:after { background: rgba(232, 142, 151, .28); }
.hero p { color: #fff1ea; }
.hero-card, .hero-mini { background: rgba(255, 248, 241, .13); border-color: rgba(255, 220, 224, .24); }
.hero-logo-card { text-align: center; }
.hero-logo {
    width: min(360px, 100%);
    margin: -10px auto 18px;
    filter: drop-shadow(0 16px 28px rgba(38, 18, 10, .20));
}
.badge-dark { background: rgba(255,248,241,.14); color: #fff8f1; border-color: rgba(255,220,224,.24); }
.eyebrow, .badge { background: #fde9eb; color: #8d3944; border: 1px solid rgba(232, 142, 151, .22); }
.panel, .card { background: rgba(255, 253, 249, .96); border-color: #efd0d3; }
.card-icon, .product-image { background: linear-gradient(135deg, #fde9eb, #fff0e2); color: #7a2e38; border-color: #efcdd0; }
.category-list a:hover, .category-list a[aria-current="page"] { border-color: #e88e97; box-shadow: 0 0 0 3px rgba(232,142,151,.14); }
.btn, button { background: #3b2016; color: #fff8f1; }
.btn-primary { background: linear-gradient(135deg, #f0a1a8, #c85a62); color: #321b12; }
.btn-outline { color: #7a2e38; border-color: #e5b9bd; background: rgba(255, 248, 241, .72); }
.btn-light { color: #3b2016; }
.btn-ghost { background: rgba(255,248,241,.12); color: #fff8f1; border-color: rgba(255,220,224,.32); }
.hero .btn-outline { color: #fff8f1; border-color: rgba(255,220,224,.46); }
.price { color: #8d3944; }
.notice { border-left-color: #e88e97; background: #fff0f2; }
.warning { border-left-color: #c78045; background: #fff4e8; }
.callout { background: linear-gradient(135deg, #3b2016, #6d3a25); }
.callout:after { background: rgba(232,142,151,.22); }
.callout p { color: #fff1ea; }
.process-step:before { background: #8d3944; }
th { background: #3b2016; color: #fff8f1; }
input:focus, select:focus, textarea:focus { outline-color: rgba(232,142,151,.22); border-color: #e88e97; }
.stat { background: linear-gradient(135deg, #3b2016, #6d3a25); }
.stat span { color: #ffdce0; }
.progress-fill { background: linear-gradient(90deg, #e88e97, #c78045); }
.timeline-item { border-left-color: #e88e97; background: #fff5f5; }
.code-box { background: #3b2016; }
.site-footer {
    background:
        radial-gradient(circle at 85% 15%, rgba(232,142,151,.18), transparent 25rem),
        #3b2016;
    color: #fbe3e6;
}
.footer-grid a, .footer-grid h3, .footer-brand { color: #fff8f1; }
.footer-bottom { color: #f3c7cc; border-top-color: rgba(255,220,224,.18); }
.footer-brand .brand-logo-frame { width: 74px; height: 74px; border-radius: 26px; }
.pill-gold { background: #fff0e2; color: #8a4b20; }
.pill-success { background: #eef6e8; color: #486133; }
.pill { background: #fff1f2; color: #6d3a2b; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { min-width: 680px; }
input, select, textarea { max-width: 100%; }
@media (max-width: 820px) {
    .brand-logo-frame { width: 54px; height: 54px; border-radius: 19px; }
    .nav-wrap { min-height: 76px; }
    .hero-logo { width: min(310px, 92%); margin-top: 0; }
}
@media (max-width: 560px) {
    .brand-logo-frame { width: 48px; height: 48px; border-radius: 17px; }
    .brand-text strong { font-size: .98rem; }
    .footer-brand .brand-logo-frame { width: 62px; height: 62px; }
}

/* Button readability patch: high-contrast, logo-matched controls site-wide. */
:root {
    --btn-dark: #3b2016;
    --btn-dark-2: #5f2e22;
    --btn-rose: #a93f4a;
    --btn-rose-2: #7a2e38;
    --btn-cream: #fffaf6;
    --btn-border: #7a2e38;
}
.btn,
.btn:link,
.btn:visited,
button:not(.nav-toggle) {
    min-height: 42px;
    border: 2px solid var(--btn-dark) !important;
    background: linear-gradient(135deg, var(--btn-dark), var(--btn-dark-2)) !important;
    color: var(--btn-cream) !important;
    font-weight: 950;
    letter-spacing: .01em;
    text-shadow: none !important;
    box-shadow: 0 8px 18px rgba(59, 32, 22, .16);
}
.btn:hover,
.btn:focus,
.btn:active,
button:not(.nav-toggle):hover,
button:not(.nav-toggle):focus,
button:not(.nav-toggle):active {
    color: var(--btn-cream) !important;
    text-decoration: none;
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(59, 32, 22, .22);
}
.btn:focus-visible,
button:not(.nav-toggle):focus-visible {
    outline: 3px solid rgba(232, 142, 151, .42);
    outline-offset: 3px;
}
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background: linear-gradient(135deg, var(--btn-rose), var(--btn-rose-2)) !important;
    border-color: var(--btn-rose-2) !important;
    color: #fffaf6 !important;
}
.btn-outline,
.btn-outline:link,
.btn-outline:visited,
.btn-light,
.btn-light:link,
.btn-light:visited,
.btn-ghost,
.btn-ghost:link,
.btn-ghost:visited,
.hero .btn-outline,
.hero .btn-outline:link,
.hero .btn-outline:visited {
    background: #fffaf6 !important;
    border-color: var(--btn-border) !important;
    color: #3b2016 !important;
    box-shadow: 0 8px 18px rgba(59, 32, 22, .12);
}
.btn-outline:hover,
.btn-outline:focus,
.btn-light:hover,
.btn-light:focus,
.btn-ghost:hover,
.btn-ghost:focus,
.hero .btn-outline:hover,
.hero .btn-outline:focus {
    background: #fde9eb !important;
    border-color: #3b2016 !important;
    color: #3b2016 !important;
}
.btn-danger,
.btn-danger:link,
.btn-danger:visited {
    background: linear-gradient(135deg, #9f2f25, #6d1f19) !important;
    border-color: #6d1f19 !important;
    color: #fffaf6 !important;
}
.product-card .btn,
.table-wrap .btn,
.inline-actions .btn,
.compact-actions .btn,
.actions .btn,
.actions button:not(.nav-toggle),
.inline-actions button:not(.nav-toggle),
.inline-filter button:not(.nav-toggle) {
    white-space: nowrap;
}
.nav-toggle {
    color: #fffaf6;
    border-color: rgba(255, 220, 224, .34);
}
.nav-toggle span:not(.sr-only) {
    background: #fffaf6;
}
@media (max-width: 560px) {
    .btn,
    button:not(.nav-toggle) {
        min-height: 46px;
        padding-inline: 14px;
    }
    .product-card .btn,
    .table-wrap .btn,
    .inline-actions .btn,
    .compact-actions .btn,
    .actions .btn,
    .actions button:not(.nav-toggle),
    .inline-actions button:not(.nav-toggle),
    .inline-filter button:not(.nav-toggle) {
        white-space: normal;
    }
}



/* Cart and order-card readability patch. Keeps the logo palette but makes cart areas clear. */
.cart-page .grid-2 {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    align-items: start;
}
.cart-page .cart-main-panel,
.cart-page aside.panel,
.checkout-page .checkout-summary-panel,
.product-card,
.summary-box {
    background: #fffaf6 !important;
    color: #321b12 !important;
    border: 2px solid #efcdd0 !important;
    box-shadow: 0 14px 30px rgba(59, 32, 22, .10);
}
.cart-page .cart-main-panel h2,
.cart-page aside.panel h2,
.checkout-page .checkout-summary-panel h2,
.product-card h3,
.summary-box h3,
.summary-row strong {
    color: #3b2016 !important;
}
.cart-page .table-wrap,
.checkout-page .mini-table,
.cart-main-panel .table-wrap {
    background: #fffaf6;
    border: 2px solid #e7b9be !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.cart-page table,
.checkout-page .mini-table table {
    background: #fffaf6 !important;
    color: #321b12 !important;
}
.cart-page th,
.checkout-page .mini-table th {
    background: #3b2016 !important;
    color: #fffaf6 !important;
    border-bottom-color: #3b2016 !important;
}
.cart-page td,
.checkout-page .mini-table td {
    background: #fffaf6;
    color: #321b12;
    border-bottom-color: #f0d7da;
}
.cart-page tbody tr:nth-child(even) td,
.checkout-page .mini-table tbody tr:nth-child(even) td {
    background: #fff1f2;
}
.cart-page td strong,
.checkout-page .mini-table td strong,
.product-card strong {
    color: #321b12 !important;
}
.cart-page .muted,
.checkout-page .checkout-summary-panel .muted,
.product-card .muted {
    color: #6d4b40 !important;
}
.cart-page .qty-input,
.cart-add-form input[type="number"],
.qty-row input[type="number"] {
    min-height: 44px;
    border: 2px solid #7a2e38 !important;
    background: #fffdf9 !important;
    color: #321b12 !important;
    font-weight: 900;
    text-align: center;
}
.cart-add-form,
.qty-row {
    background: #fff5f5;
    border: 1px solid #efcdd0;
    border-radius: 18px;
    padding: 10px;
}
.product-card .cart-add-form .btn,
.product-card .cart-add-form button,
.product-summary .qty-row .btn,
.product-summary .qty-row button,
.cart-page .actions .btn,
.cart-page .actions button,
.cart-page .table-wrap .btn,
.checkout-page .checkout-summary-panel .btn,
.checkout-page .checkout-summary-panel button {
    color: #fffaf6 !important;
    background: linear-gradient(135deg, #8d3944, #5f2e22) !important;
    border-color: #3b2016 !important;
    text-shadow: none !important;
}
.cart-page .actions .btn-outline,
.cart-page .actions button.btn-outline,
.cart-page .table-wrap .btn-outline,
.checkout-page .checkout-summary-panel .btn-outline {
    color: #321b12 !important;
    background: #fffaf6 !important;
    border-color: #7a2e38 !important;
}
.summary-box {
    gap: 10px;
}
.summary-row {
    padding: 8px 0;
    border-bottom: 1px solid #f0d7da;
}
.summary-row:last-child {
    border-bottom: 0;
}
.summary-row span {
    color: #6d4b40;
    font-weight: 800;
}
.summary-row.total {
    margin-top: 4px;
    padding: 12px 0 2px;
    border-top: 2px solid #7a2e38 !important;
    border-bottom: 0;
}
.summary-row.total span,
.summary-row.total strong {
    color: #7a2e38 !important;
}
@media (max-width: 1000px) {
    .cart-page .grid-2 {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 700px) {
    .cart-page .cart-main-panel .table-wrap,
    .checkout-page .mini-table {
        overflow: visible;
        border: 0 !important;
        background: transparent;
    }
    .cart-page .cart-main-panel table,
    .cart-page .cart-main-panel thead,
    .cart-page .cart-main-panel tbody,
    .cart-page .cart-main-panel tr,
    .cart-page .cart-main-panel th,
    .cart-page .cart-main-panel td,
    .checkout-page .mini-table table,
    .checkout-page .mini-table thead,
    .checkout-page .mini-table tbody,
    .checkout-page .mini-table tr,
    .checkout-page .mini-table th,
    .checkout-page .mini-table td {
        display: block;
        width: 100%;
        min-width: 0 !important;
    }
    .cart-page .cart-main-panel thead,
    .checkout-page .mini-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
    }
    .cart-page .cart-main-panel tr,
    .checkout-page .mini-table tr {
        margin: 0 0 14px;
        padding: 14px;
        border: 2px solid #efcdd0;
        border-radius: 18px;
        background: #fffaf6;
        box-shadow: 0 10px 24px rgba(59, 32, 22, .08);
    }
    .cart-page .cart-main-panel td,
    .checkout-page .mini-table td {
        display: grid;
        grid-template-columns: minmax(90px, .42fr) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0d7da;
        background: transparent !important;
        text-align: right;
    }
    .cart-page .cart-main-panel td:last-child,
    .checkout-page .mini-table td:last-child {
        border-bottom: 0;
    }
    .cart-page .cart-main-panel td::before,
    .checkout-page .mini-table td::before {
        content: attr(data-label);
        color: #7a2e38;
        font-weight: 950;
        text-align: left;
    }
    .cart-page .cart-main-panel td[data-label="Product"],
    .checkout-page .mini-table td[data-label="Product"] {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .cart-page .cart-main-panel td[data-label="Product"]::before,
    .checkout-page .mini-table td[data-label="Product"]::before {
        margin-bottom: 2px;
    }
    .cart-page .qty-input {
        width: 100% !important;
        max-width: 130px;
        justify-self: end;
    }
    .cart-page .cart-main-panel td[data-label="Action"] .btn {
        width: 100%;
    }
}
@media (max-width: 430px) {
    .cart-add-form,
    .qty-row {
        padding: 8px;
        border-radius: 14px;
    }
    .cart-page .cart-main-panel td,
    .checkout-page .mini-table td {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .cart-page .qty-input {
        justify-self: stretch;
        max-width: none;
    }
}


/* Live checkout total update for Pudo method selection. */
.live-checkout-summary {
    border-color: #d98b96 !important;
}
.live-checkout-summary .summary-row.total {
    background: #fff1f2;
    border-radius: 14px;
    padding: 12px 14px;
}
.live-checkout-summary [data-checkout-total] {
    font-size: 1.35rem;
}
.live-checkout-summary.needs-manual-shipping .summary-row.total {
    background: #fff7df;
}


/* Card button fit + shop add-to-cart stay-on-page polish. */
.btn,
button:not(.nav-toggle) {
    max-width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}
.card,
.panel,
.product-card {
    min-width: 0;
}
.card .actions,
.panel .actions,
.product-card .actions,
.inline-actions,
.inline-filter {
    min-width: 0;
}
.card .actions > .btn,
.card .actions > button:not(.nav-toggle),
.product-card .actions > .btn,
.product-card .actions > button:not(.nav-toggle) {
    flex: 1 1 160px;
}
.product-card .cart-add-form {
    grid-template-columns: minmax(74px, 92px) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
}
.product-card .cart-add-form input[type="number"] {
    width: 100%;
    height: 100%;
}
.product-card .cart-add-form .btn,
.product-card .cart-add-form button:not(.nav-toggle) {
    width: 100%;
    padding-inline: 12px;
    line-height: 1.15;
}
.product-card .compact-actions,
.product-card .compact-actions .btn {
    width: 100%;
}
.product-card .compact-actions .btn {
    display: flex;
}
.product-summary .qty-row .actions {
    margin-top: 0 !important;
}
.product-summary .qty-row .actions .btn,
.product-summary .qty-row .actions button:not(.nav-toggle) {
    flex: 1 1 180px;
}
.admin-module-grid .card .btn,
.dashboard-grid .card .btn,
.testing-card .btn,
.qa-case-card .btn,
.review-admin-card .btn,
.mini-list-item .btn,
.mini-list-item a.btn {
    width: 100%;
}
.table-wrap .btn,
.table-wrap button:not(.nav-toggle) {
    white-space: normal;
    min-width: max-content;
}
@media (max-width: 760px) {
    .product-card .cart-add-form,
    .qty-row {
        grid-template-columns: 1fr !important;
    }
    .product-card .cart-add-form input[type="number"],
    .product-summary .qty-row input[type="number"] {
        min-height: 46px;
    }
    .table-wrap .btn,
    .table-wrap button:not(.nav-toggle) {
        min-width: 0;
        width: 100%;
    }
}

/* Cart return and checkout helper polish */
.product-card, #add-to-cart { scroll-margin-top: 130px; }
.pudo-locker-button { margin: 6px 0 14px; width: fit-content; max-width: 100%; }
@media (max-width: 600px) { .pudo-locker-button { width: 100%; justify-content: center; } }


/* Fresh production polish: prevent sideways card/form overflow on phones and tablets. */
html, body { overflow-x: hidden; }
.site-page * { min-width: 0; }
.container, .main-container, .panel, .card, .product-card, .hero-card, .shop-layout, .checkout-layout,
.grid, .grid-2, .grid-4, .dashboard-grid, .admin-module-grid, .stats-grid, .testing-card, .qa-case-card,
.review-admin-card, .mini-list-item, form, fieldset, .form-grid, .inline-actions, .inline-filter, .actions {
    max-width: 100%;
}
.card, .panel, .product-card, .testing-card, .qa-case-card, .review-admin-card, .mini-list-item {
    overflow-wrap: anywhere;
}
.inline-filter select,
.admin-testing-page .inline-filter textarea,
.handover-asset-form,
.handover-asset-form input,
.handover-asset-form textarea {
    min-width: 0 !important;
    width: 100%;
}
.inline-filter > *, .inline-actions > *, .actions > * {
    min-width: 0;
}
@media (max-width: 900px) {
    .inline-filter, .inline-actions, .actions {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .inline-filter > label,
    .inline-filter > .btn,
    .inline-filter > button:not(.nav-toggle),
    .inline-actions > .btn,
    .inline-actions > button:not(.nav-toggle),
    .actions > .btn,
    .actions > button:not(.nav-toggle) {
        flex: 1 1 180px;
    }
    .panel, .card { overflow: hidden; }
}
@media (max-width: 700px) {
    .table-wrap { overflow-x: visible !important; border: 0 !important; background: transparent !important; }
    .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap th,
    .table-wrap td {
        display: block;
        width: 100%;
        min-width: 0 !important;
    }
    .table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
    }
    .table-wrap tr {
        margin: 0 0 14px;
        padding: 14px;
        border: 2px solid #efcdd0;
        border-radius: 18px;
        background: #fffaf6;
        box-shadow: 0 10px 24px rgba(59, 32, 22, .08);
    }
    .table-wrap td {
        display: grid;
        grid-template-columns: minmax(100px, .42fr) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0d7da;
        background: transparent !important;
        text-align: right;
    }
    .table-wrap td:last-child { border-bottom: 0; }
    .table-wrap td::before {
        content: attr(data-label);
        color: #7a2e38;
        font-weight: 950;
        text-align: left;
    }
    .table-wrap td:empty::before { content: ''; }
    .table-wrap .btn,
    .table-wrap button:not(.nav-toggle),
    .table-wrap input,
    .table-wrap select,
    .table-wrap textarea { width: 100%; max-width: 100%; }
}
@media (max-width: 430px) {
    .table-wrap td { grid-template-columns: 1fr; text-align: left; }
    .brand { max-width: calc(100vw - 82px); }
    .brand-text { min-width: 0; }
    .brand-text strong { white-space: normal; }
}


/* Footer contact and final no-sideways-card safeguards. */
.footer-contact a { word-break: break-word; overflow-wrap: anywhere; }
.footer-contact p { max-width: 100%; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.card, .panel, .product-card, .stat-card, .hero-card { max-width: 100%; box-sizing: border-box; }
.form-grid > *, .grid > *, .grid-2 > *, .grid-4 > *, .dashboard-grid > *, .admin-module-grid > *, .stats-grid > * { min-width: 0; }
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr !important; }
    .footer-contact a { display: inline; }
    input, select, textarea, button, .btn { max-width: 100%; }
}
