:root {
    --bg: #f7f2e8;
    --surface: #ffffff;
    --surface-soft: #fffaf1;
    --text: #231f20;
    --muted: #6f6258;
    --border: #dfd0bd;
    --primary: #111111;
    --secondary: #f1c40f;
    --accent: #c30d10;
    --accent-dark: #000000;
    --success: #2e7d32;
    --danger: #9f1d20;
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

.full-width {
    display: block;
    max-width: 100% !important;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.hero-container {
    width: 100%;
    padding: 0;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #1d1713;
}

.hero-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 32px 70px;
    background: rgba(0, 0, 0, 0.22);
}

.hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hero-logo img {
    height: 56px;
    width: auto;
    max-width: 180px;
    border-radius: 4px;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.hero-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(3px);
}

.hero-links a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-dark);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.public-hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    background: #1d1713;
}

.public-hero-image {
    width: 100%;
    height: 86vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.public-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 32px 72px;
    background: rgba(0, 0, 0, 0.35);
}

.public-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.public-logo img {
    height: 62px;
    width: auto;
    border-radius: 4px;
}

.public-nav .nav-links a {
    color: white;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

.public-nav .nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.18);
}

.public-hero-content {
    max-width: 620px;
    color: white;
}

.public-hero-content h1 {
    margin-bottom: 12px;
    color: white;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1;
}

.public-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.home-landing {
    min-height: 100vh;
}

.home-landing .public-hero-image {
    height: 100vh;
    object-position: center;
}

.home-landing .public-hero-overlay {
    justify-content: flex-start;
    padding: 30px 43px 90px;
    background: rgba(0, 0, 0, 0.42);
}

.home-landing .public-logo {
    display: inline-flex;
    width: fit-content;
}

.home-landing .public-logo img {
    height: 98px;
    border-radius: 5px;
}

.home-landing .public-hero-content {
    max-width: 900px;
    margin-top: clamp(185px, 24vh, 225px);
}

.home-landing .eyebrow {
    color: #ffffff;
    font-size: 1.35rem;
    letter-spacing: 0.18em;
}

.home-landing .public-hero-content h1 {
    max-width: 900px;
    margin-bottom: 20px;
    font-size: clamp(4.4rem, 7vw, 6.8rem);
    line-height: 1.02;
    font-weight: 800;
}

.home-landing .public-hero-content p {
    max-width: 850px;
    font-size: 1.35rem;
    line-height: 1.45;
}

.home-landing .hero-btn {
    margin-top: 10px;
    background: rgba(255, 250, 241, 0.96);
    color: #000000;
}

.home-center-action {
    position: absolute;
    left: 50%;
    bottom: 11vh;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: min(100% - 32px, 520px);
}

.home-center-action .hero-btn {
    margin-top: 0;
}

.home-info {
    padding-top: 34px;
    padding-bottom: 52px;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-dark);
}

.header,
.section,
.container > .brand-box,
.card,
.box {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section {
    margin-bottom: 20px;
    overflow-x: auto;
}

.brand,
.auth-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-brand {
    margin-bottom: 24px;
}

.brand img {
    max-height: 70px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-name {
    margin: 0;
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.brand-tagline {
    color: #7a5c2c;
    font-size: 0.95rem;
}

.site-nav,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.34);
    cursor: pointer;
}

.header .menu-toggle {
    border-color: var(--border);
    background: var(--surface-soft);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    color: white;
}

.header .menu-toggle span {
    color: var(--text);
}

.site-nav a,
.nav-links a,
.back-link,
.lien a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: bold;
}

.site-nav a:hover,
.nav-links a:hover,
.back-link:hover,
.lien a:hover {
    color: var(--accent);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 7px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 0.78rem;
    line-height: 1;
}

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

h1,
h2,
h3 {
    color: var(--text);
}

h1 {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

h2 {
    margin-bottom: 18px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: var(--surface);
}

.article-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface-soft);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.product-placeholder-large {
    min-height: 360px;
    aspect-ratio: auto;
}

.article-card h3 {
    margin-bottom: 0;
}

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

.price,
.item-price,
.total {
    color: var(--accent);
    font-weight: 700;
}

.article-card > .btn,
.article-card > .action-row {
    margin-top: auto;
}

.intro-section > p {
    max-width: 620px;
    color: var(--muted);
}

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

.info-panel {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.info-panel p:last-child,
.info-panel ul:last-child {
    margin-bottom: 0;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.product-media img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.product-info p {
    color: var(--muted);
}

.product-price {
    font-size: 1.5rem;
}

.stock-note {
    font-weight: 700;
}

.table-wrapper,
table {
    width: 100%;
    border-collapse: collapse;
}

table {
    min-width: 760px;
}

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

table th {
    background: #f8f0d7;
    font-weight: bold;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #5b4a3d;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d5c6b2;
    border-radius: 5px;
    background: #fff;
    color: var(--text);
    font-size: 16px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(195, 13, 16, 0.2);
    border-color: var(--accent);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.captcha,
.password-note {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.captcha {
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: var(--accent-dark);
    background: #ece3d5;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    min-height: 44px;
}

.btn:hover {
    filter: brightness(0.97);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #9e0b0d;
}

.btn-success {
    background: var(--secondary);
    color: var(--accent-dark);
}

.btn-success:hover {
    background: #d8b50c;
}

.btn-danger {
    background: var(--accent-dark);
    color: white;
}

.btn-warning {
    background: #f0b000;
    color: var(--accent-dark);
}

.erreur,
.success,
.succes {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.erreur {
    color: #8f1b1d;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.success,
.succes {
    color: #3a5c2e;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.lien,
.back-link {
    display: block;
    margin-top: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.item-name {
    margin-bottom: 4px;
    font-weight: 700;
}

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

.quantity-form label {
    margin: 0;
}

.quantity-form input[type="number"] {
    width: 80px;
    padding: 8px;
}

.quantity-form .btn {
    padding: 8px 12px;
}

.total {
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
    background: var(--surface-soft);
    font-size: 1.2rem;
    text-align: right;
}

.empty-cart {
    padding: 30px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    text-align: center;
}

.muted {
    color: var(--muted);
}

.compact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.compact-form select,
.compact-form input[type="file"] {
    width: auto;
    max-width: 220px;
}

.order-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 5px;
    background: var(--surface-soft);
}

.order-line img,
.admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 5px;
}

.admin-table input,
.admin-table textarea,
.admin-table select {
    min-width: 140px;
}

.actif,
.inactif {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.actif {
    background: #d4edda;
    color: var(--success);
}

.inactif {
    background: #f8d7da;
    color: var(--danger);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    background: rgba(0, 0, 0, 0.35);
}

.modal {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 21;
    display: none;
    width: min(360px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 18px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.modal h3 {
    margin-bottom: 6px;
}

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

.modal-success {
    border-top: 5px solid var(--success);
}

.modal-error {
    border-top: 5px solid var(--danger);
}

.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.toast {
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    border-left: 5px solid var(--success);
    font-weight: 700;
    animation: toast-in 180ms ease-out;
}

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

.toast.is-hiding {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1120px);
        padding: 16px 0;
    }

    body {
        font-size: 15px;
    }

    .header,
    .brand,
    .auth-brand,
    .site-nav,
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .header,
    .section,
    .container > .brand-box,
    .card,
    .box {
        padding: 16px;
    }

    .section {
        overflow-x: visible;
    }

    .nav-links,
    .hero-links,
    .action-row {
        width: 100%;
        gap: 8px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .public-nav,
    .hero-nav,
    .header {
        position: relative;
    }

    .public-nav .nav-links,
    .hero-nav .hero-links,
    .header .nav-links {
        display: none;
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(4px);
    }

    .header .nav-links {
        background: var(--surface-soft);
        border: 1px solid var(--border);
    }

    .public-nav .nav-links.is-open,
    .hero-nav .hero-links.is-open,
    .header .nav-links.is-open {
        display: flex;
    }

    .nav-links a,
    .hero-links a,
    .public-nav .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 13px;
    }

    .hero-overlay {
        padding: 18px 16px 46px;
    }

    .hero-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-links {
        justify-content: flex-start;
    }

    .hero-content {
        align-items: flex-end;
        justify-content: flex-start;
    }

    .hero-logo img,
    .brand img {
        max-height: 60px;
    }

    .public-hero,
    .public-hero-image {
        min-height: 100svh;
        height: 100svh;
    }

    .public-hero-overlay {
        padding: 18px 16px 34px;
        background: rgba(0, 0, 0, 0.45);
    }

    .public-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .public-logo img {
        height: 54px;
    }

    .public-hero-content {
        max-width: 100%;
    }

    .public-hero-content h1 {
        font-size: clamp(2rem, 13vw, 3.4rem);
        line-height: 0.98;
    }

    .public-hero-content p {
        font-size: 1rem;
    }

    .home-landing .public-hero-overlay {
        padding: 22px 18px 46px;
    }

    .home-landing .public-hero-image {
        object-fit: contain;
        object-position: center;
        background: #1d1713;
    }

    .home-landing .public-logo img {
        height: 64px;
    }

    .home-landing .public-hero-content {
        margin-top: clamp(100px, 22vh, 170px);
    }

    .home-landing .eyebrow {
        font-size: 0.95rem;
        letter-spacing: 0.16em;
    }

    .home-landing .public-hero-content h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .home-landing .public-hero-content p {
        font-size: 1rem;
    }

    .home-center-action {
        bottom: 9vh;
        width: calc(100% - 32px);
    }

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

    .article-card {
        padding: 14px;
    }

    .article-card img,
    .product-placeholder {
        aspect-ratio: 16 / 11;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .product-placeholder-large {
        min-height: 240px;
    }

    .product-media img {
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .product-info h2 {
        font-size: 1.8rem;
    }

    .cart-item {
        grid-template-columns: 76px 1fr;
        align-items: flex-start;
    }

    .cart-item form {
        grid-column: 1 / -1;
    }

    .cart-item img {
        width: 76px;
        height: 76px;
    }

    .quantity-form {
        align-items: stretch;
    }

    .quantity-form label {
        width: 100%;
    }

    .quantity-form input[type="number"] {
        width: 100%;
        max-width: 120px;
    }

    .total {
        text-align: left;
    }

    table.admin-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .admin-table tr:first-child {
        display: none;
    }

    .admin-table tr {
        display: block;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: 0 2px 8px var(--shadow);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: minmax(100px, 36%) 1fr;
        gap: 10px;
        align-items: start;
        width: 100%;
        padding: 9px 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-table td:last-child {
        border-bottom: 0;
    }

    .admin-table td::before {
        color: var(--muted);
        font-weight: 700;
    }

    .users-table td:nth-child(1)::before { content: "ID"; }
    .users-table td:nth-child(2)::before { content: "Nom"; }
    .users-table td:nth-child(3)::before { content: "Prenom"; }
    .users-table td:nth-child(4)::before { content: "Email"; }
    .users-table td:nth-child(5)::before { content: "Statut"; }
    .users-table td:nth-child(6)::before { content: "Date"; }
    .users-table td:nth-child(7)::before { content: "Actions"; }

    .orders-table td:nth-child(1)::before { content: "ID"; }
    .orders-table td:nth-child(2)::before { content: "Client"; }
    .orders-table td:nth-child(3)::before { content: "Telephone"; }
    .orders-table td:nth-child(4)::before { content: "Adresse"; }
    .orders-table td:nth-child(5)::before { content: "Articles"; }
    .orders-table td:nth-child(6)::before { content: "Total"; }
    .orders-table td:nth-child(7)::before { content: "Statut"; }
    .orders-table td:nth-child(8)::before { content: "Preuves"; }
    .orders-table td:nth-child(9)::before { content: "Date"; }
    .orders-table td:nth-child(10)::before { content: "Actions"; }

    .products-table td:nth-child(1)::before { content: "ID"; }
    .products-table td:nth-child(2)::before { content: "Photo"; }
    .products-table td:nth-child(3)::before { content: "Nom"; }
    .products-table td:nth-child(4)::before { content: "Description"; }
    .products-table td:nth-child(5)::before { content: "Prix"; }
    .products-table td:nth-child(6)::before { content: "Stock"; }
    .products-table td:nth-child(7)::before { content: "Photo"; }
    .products-table td:nth-child(8)::before { content: "Actions"; }

    .admin-table input,
    .admin-table textarea,
    .admin-table select,
    .compact-form select,
    .compact-form input[type="file"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .compact-form {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-form .btn,
    .admin-table .btn,
    .cart-item .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .container {
        width: calc(100% - 18px);
        padding: 10px 0;
    }

    .header,
    .section,
    .container > .brand-box,
    .card,
    .box {
        padding: 13px;
    }

    .brand,
    .auth-brand {
        gap: 10px;
    }

    .brand img,
    .hero-logo img,
    .public-logo img {
        max-height: 48px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .public-hero-overlay,
    .hero-overlay {
        padding: 12px 10px 24px;
    }

    .public-nav .nav-links,
    .hero-links,
    .nav-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .public-nav .nav-links:not(.is-open),
    .hero-nav .hero-links:not(.is-open),
    .header .nav-links:not(.is-open) {
        display: none;
    }

    .public-nav .nav-links a,
    .hero-links a,
    .nav-links a {
        width: 100%;
        padding: 10px 8px;
        text-align: center;
    }

    .public-hero-content h1 {
        font-size: clamp(1.85rem, 14vw, 2.8rem);
    }

    .home-landing .public-hero-overlay {
        padding: 18px 14px 34px;
    }

    .home-landing .public-logo img {
        height: 58px;
    }

    .home-landing .public-hero-content {
        margin-top: clamp(82px, 20vh, 140px);
    }

    .home-landing .public-hero-content h1 {
        font-size: clamp(2.55rem, 16vw, 3.65rem);
    }

    .home-landing .action-row {
        display: flex;
    }

    .home-center-action {
        bottom: 7vh;
    }

    .home-center-action .hero-btn {
        width: auto;
        min-width: 230px;
    }

    .action-row,
    .article-card .action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .action-row .btn,
    .article-card .btn,
    .product-info .btn,
    form > .btn {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .admin-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .order-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal {
        top: 12px;
        width: calc(100% - 18px);
    }

    .toast-container {
        right: 9px;
        bottom: 9px;
        width: calc(100vw - 18px);
    }

    .toast {
        padding: 12px 14px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .public-hero,
    .public-hero-image,
    .hero,
    .hero-image {
        min-height: 560px;
        height: 560px;
    }

    .public-hero-overlay,
    .hero-overlay {
        padding-bottom: 28px;
    }
}
