:root {
    color-scheme: light;
    --brand: #7c2f36;
    --brand-muted: rgba(124, 47, 54, 0.08);
    --bg: #f5f5f1;
    --text: #2a2a2a;
    --accent: #d19a66;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(245, 245, 241, 0.9);
    border-bottom: 1px solid rgba(124, 47, 54, 0.08);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-welcome {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand);
}

.nav-form {
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand);
    background: rgba(124, 47, 54, 0.12);
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

button.nav-link {
    border: none;
    font: inherit;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(124, 47, 54, 0.2);
    transform: translateY(-1px);
}

.nav-link--active {
    background: var(--brand);
    color: #fffdf9;
}

.brand {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.hero {
    padding: 4rem 1.5rem 2rem;
    background: linear-gradient(135deg, var(--brand-muted), transparent);
}

.hero .about {
    max-width: 1100px;
    margin: 0 auto 1.75rem;
}

.hero .about p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 0;
    color: var(--brand);
}

.domain {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(42, 42, 42, 0.65);
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

main {
    flex: 1;
    width: 100%;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.legal {
    display: grid;
    gap: 1.5rem;
}

.legal__section {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.legal__section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: "Playfair Display", serif;
    color: var(--brand);
}

.legal__section ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.6rem;
    line-height: 1.55;
}

.legal__section p {
    margin: 0;
    line-height: 1.6;
}

.carousel {
    margin-top: 2.5rem;
    display: grid;
    gap: 0.75rem;
}

.carousel__header h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    color: var(--brand);
}

.carousel__subtitle {
    margin: 0.2rem 0 0;
    color: #555;
}

.carousel__track {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    scroll-snap-type: x mandatory;
}

.carousel__card {
    flex: 0 0 200px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.carousel__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
}

.carousel__media {
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 140px;
}

.carousel__media img {
    max-width: 120px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(15, 15, 15, 0.1));
}

.carousel__body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
}

.carousel__body h4 {
    margin: 0;
    font-size: 1rem;
    font-family: "Playfair Display", serif;
    color: var(--text);
}

.carousel__meta {
    margin: 0;
    color: #6a6a6a;
    font-size: 0.85rem;
}

.carousel__price {
    margin: 0;
    font-weight: 700;
    color: var(--brand);
    font-size: 1rem;
}

.carousel__stock {
    margin: 0;
    font-size: 0.8rem;
    color: #555;
}

footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.flash {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #fff4f4;
    border: 1px solid rgba(124, 47, 54, 0.2);
    color: var(--brand);
    margin-bottom: 1.5rem;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(17, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-card h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-help {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.auth-submit {
    width: 100%;
    justify-content: center;
}

@media (max-width: 720px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.25rem;
        text-align: center;
    }

    .nav-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding: 3rem 1.25rem 1.75rem;
    }

    .content {
        padding: 1.75rem 1.25rem 2.5rem;
    }

    .product-media {
        padding: 1.5rem;
    }

    .product-media img {
        width: min(100%, 220px);
    }

    .product-info {
        align-items: flex-start;
    }
}

.product-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(27, 27, 27, 0.08);
    overflow: hidden;
    transition: transform 140ms ease, box-shadow 140ms ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(27, 27, 27, 0.15);
}

.product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.product-card__media {
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-card__media img {
    max-width: 160px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(15, 15, 15, 0.15));
}

.product-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-card__body h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-family: "Playfair Display", serif;
    color: var(--text);
}

.product-card__excerpt {
    margin: 0;
    color: #5a5a5a;
    font-size: 0.95rem;
}

.admin-panel {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
}

.admin-form,
.admin-summary {
    background: #fffdfa;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 22px 40px rgba(27, 27, 27, 0.08);
}

.admin-form h2,
.admin-summary h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
    color: var(--brand);
}

.admin-form__hint {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: #6a6a6a;
}

.admin-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form__actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
}

.admin-summary {
    position: sticky;
    top: 6rem;
}

.admin-user-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--brand);
}

.back-link:hover {
    text-decoration: underline;
}

.admin-user-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
}

.admin-form--user {
    background: #fffdfa;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 22px 40px rgba(27, 27, 27, 0.08);
}

.admin-user-switches {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #4a4a4a;
}

.switch input {
    width: 1.15rem;
    height: 1.15rem;
}

.admin-form__actions--between {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-form__actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6a6a6a;
}

.admin-card {
    background: #fffdfa;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 22px 40px rgba(27, 27, 27, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-card--security h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    color: var(--brand);
}

.password-display {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(124, 47, 54, 0.08);
}

.password-display__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    font-weight: 600;
}

.password-display__value {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.password-form {
    margin: 0;
}

.admin-summary__section + .admin-summary__section {
    margin-top: 2rem;
}

.admin-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.admin-product-list li {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(124, 47, 54, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.admin-product-list__title {
    font-weight: 600;
}

.admin-product-list__meta {
    color: #6a6a6a;
    font-size: 0.85rem;
}

.admin-user-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-user-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(124, 47, 54, 0.05);
}

.admin-user-list__details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.admin-user-list__title {
    font-weight: 600;
}

.admin-user-list__meta {
    color: #6a6a6a;
    font-size: 0.85rem;
}

.admin-user-list__badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-empty {
    margin: 0;
    font-size: 0.95rem;
    color: #6a6a6a;
}

.form-error {
    margin: 0.25rem 0 0;
    color: #c94b41;
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .admin-panel {
        grid-template-columns: 1fr;
    }

    .admin-summary {
        position: static;
    }

    .admin-user-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-user-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-card__price {
    color: var(--brand);
}

.product-card__stock {
    color: #4a4a4a;
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--brand);
    color: #fffdf9;
}

.badge--ghost {
    background: rgba(124, 47, 54, 0.1);
    color: var(--brand);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.1fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.product-media {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(33, 33, 33, 0.1);
}

.product-media img {
    width: min(100%, 260px);
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-info h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-family: "Playfair Display", serif;
}

.price-block {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.85rem;
}

.old_price {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(42, 42, 42, 0.55);
    text-decoration: line-through;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(42, 42, 42, 0.08);
}

.price {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--brand);
}

.stock {
    font-weight: 500;
    color: #444;
}

.description {
    margin: 0;
    line-height: 1.6;
}

.stock--out {
    color: #9a3b40;
    font-weight: 600;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fffdf9;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 140ms ease, transform 140ms ease;
}

.cta:hover {
    background: #5d2026;
    transform: translateY(-2px);
}

@media (max-width: 960px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-media {
        order: 2;
    }

    .product-info {
        order: 1;
    }
}

@media (max-width: 540px) {
    body {
        font-size: 0.95rem;
    }

    .hero {
        padding: 2.5rem 1rem 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 8vw, 2.6rem);
    }

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

    .content {
        padding: 1.5rem 1rem 2rem;
    }

    .product-info h2 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .price {
        font-size: 1.4rem;
    }

    .cta {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    footer {
        font-size: 0.8rem;
    }
}

html.has-modal,
body.has-modal {
    overflow: hidden;
    touch-action: none;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(32, 18, 20, 0.36);
    backdrop-filter: blur(4px);
    transition: opacity 160ms ease;
    z-index: 100;
}

.modal--hidden {
    opacity: 0;
    pointer-events: none;
}

.modal__dialog {
    position: relative;
    width: min(100%, 520px);
    background: #fffdf9;
    border-radius: 20px;
    padding: 1.75rem;
    max-height: min(90vh, 780px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal__dialog--wide {
    width: min(100%, 720px);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: rgba(124, 47, 54, 0.08);
    color: var(--brand);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 140ms ease;
}

.modal__close:hover {
    background: rgba(124, 47, 54, 0.16);
}

.modal__intro {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.5;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.preview-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.preview-card__media {
    background: var(--brand-muted);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card__media img {
    width: min(100%, 280px);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.preview-card__body h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    color: var(--brand);
}

.preview-card__meta,
.preview-card__region {
    margin: 0.25rem 0;
    color: #555;
}

.preview-card__price {
    margin: 0.35rem 0;
    font-weight: 700;
    color: var(--brand);
}

.preview-card__description {
    margin: 0.5rem 0;
    line-height: 1.5;
    color: #3a3a3a;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.button--primary {
    background: var(--brand);
    color: #fffdf9;
}

.button--primary:hover {
    background: #5d2026;
    transform: translateY(-2px);
}

.button--ghost {
    background: rgba(124, 47, 54, 0.08);
    color: var(--brand);
}

.button--ghost:hover {
    background: rgba(124, 47, 54, 0.16);
}

.button--secondary {
    background: #fff;
    color: var(--brand);
    border: 1px solid rgba(124, 47, 54, 0.25);
}

.button--secondary:hover {
    background: rgba(124, 47, 54, 0.08);
    transform: translateY(-2px);
}

.quantity-picker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #fff;
}

.quantity-picker input {
    width: 4rem;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 0.25rem;
    background: transparent;
    color: var(--text);
}

.quantity-btn {
    border: none;
    background: transparent;
    padding: 0.65rem 0.9rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--brand);
    transition: background 120ms ease;
}

.quantity-btn:hover {
    background: rgba(124, 47, 54, 0.08);
}

.field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #777;
}

.form-hint {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(124, 47, 54, 0.08);
    color: var(--brand);
    font-size: 0.9rem;
}

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

[data-contact-fields][data-hidden="true"] {
    display: none;
}

.contact-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(124, 47, 54, 0.08);
    border: 1px solid rgba(124, 47, 54, 0.2);
}

.contact-summary__content {
    display: grid;
    gap: 0.15rem;
}

.contact-summary__name {
    margin: 0;
    font-weight: 700;
    color: var(--brand);
}

.contact-summary__line {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.input-field label {
    font-weight: 600;
    font-size: 0.95rem;
}

.input-field input,
.input-field textarea {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input-field input:focus,
.input-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124, 47, 54, 0.16);
}

.input-field textarea {
    resize: vertical;
}

.input-field--full {
    grid-column: 1 / -1;
}

.input-field--error input,
.input-field--error textarea {
    border-color: #c94b41;
    box-shadow: 0 0 0 3px rgba(201, 75, 65, 0.2);
}

.form-errors {
    background: rgba(201, 75, 65, 0.12);
    border: 1px solid rgba(201, 75, 65, 0.35);
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    color: #6d1c12;
    font-size: 0.9rem;
    display: none;
}

.form-errors:empty {
    display: none;
}

.form-errors:not(:empty) {
    display: block;
}

.form-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
}

.form-errors li {
    margin-bottom: 0.25rem;
}

.recap__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.recap__contact {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
    color: #4a4a4a;
}

.modal--toast .modal__dialog {
    width: auto;
    min-width: 220px;
    text-align: center;
    padding: 1.25rem 1.75rem;
}

.modal--toast p {
    margin: 0;
    font-weight: 600;
    color: var(--brand);
}

.dashboard {
    display: grid;
    gap: 1.5rem;
}

.table-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(124, 47, 54, 0.12);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.dashboard-table thead {
    background: rgba(124, 47, 54, 0.08);
}

.dashboard-table th,
.dashboard-table td {
    padding: 0.9rem 1rem;
    text-align: left;
}

.dashboard-table th {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a5a5a;
    border-bottom: 1px solid rgba(124, 47, 54, 0.15);
}

.dashboard-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 120ms ease;
}

.dashboard-table tbody tr:hover {
    background: rgba(124, 47, 54, 0.04);
}

.dashboard-table td a {
    color: var(--brand);
    font-weight: 600;
}

.dashboard-table td {
    font-size: 0.98rem;
    color: #333;
}

.dashboard-empty {
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(124, 47, 54, 0.08);
    color: #5a1f25;
    font-weight: 600;
}

@media (max-width: 760px) {
    .table-wrapper {
        overflow-x: auto;
        border-radius: 12px;
    }

    .dashboard-table {
        min-width: 580px;
    }
}

.table-wrapper--compact {
    box-shadow: none;
    border-radius: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
    background: #fff;
}

.admin-table thead {
    background: rgba(124, 47, 54, 0.08);
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 0.9rem;
    text-align: left;
}

.admin-table th {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a5a5a;
    border-bottom: 1px solid rgba(124, 47, 54, 0.15);
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 120ms ease;
}

.admin-table tbody tr:hover {
    background: rgba(124, 47, 54, 0.04);
}

.admin-table td a {
    color: var(--brand);
    font-weight: 600;
}

.admin-table select {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.45rem 0.6rem;
    background: #fff;
    font: inherit;
}

@media (max-width: 760px) {
    .admin-table {
        min-width: 520px;
    }
}

@media (max-width: 640px) {
    .modal__dialog {
        padding: 1.5rem;
    }

    .preview-card {
        grid-template-columns: 1fr;
    }

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

    .modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .modal__footer .button {
        width: 100%;
    }
}
