:root {
    --brand: #1f7a3a;
    --brand-dark: #14532d;
    --brand-ink: #102b1d;
    --brand-soft: #eef7f1;
    --brand-light: #dcefe3;
    --brand-contrast: #f8fbf8;
    --accent: #f39a21;
    --accent-dark: #c87512;
    --whatsapp: #21a366;
    --page: #f4f5f2;
    --text: #26313d;
    --muted: #6c7885;
    --line: #e1e5df;
    --panel: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page);
    color: var(--text);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--panel);
    box-shadow: 0 2px 12px rgba(20, 31, 24, 0.1);
}

.top-strip {
    background: var(--brand-contrast);
    color: var(--brand-dark);
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}

.top-strip-inner {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-strip a,
.top-strip button {
    font-weight: 800;
}

.top-commercial-link,
.top-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    color: var(--brand-dark);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.top-commercial-link {
    padding: 4px 10px 4px 6px;
    background: #ffffff;
    border: 1px solid rgba(31, 122, 58, 0.16);
}

.top-commercial-link svg,
.top-action svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.top-commercial-link:hover,
.top-commercial-link:focus {
    color: var(--brand-ink);
    border-color: rgba(31, 122, 58, 0.34);
    background: var(--brand-soft);
}

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

.top-action {
    padding: 5px 9px;
    border: 1px solid transparent;
}

.top-action:hover,
.top-action:focus {
    color: var(--brand-ink);
    background: var(--brand-soft);
    border-color: rgba(31, 122, 58, 0.2);
}

.top-action-register {
    color: #6f3f06;
    background: rgba(243, 154, 33, 0.12);
    border-color: rgba(243, 154, 33, 0.24);
}

.top-action-register:hover,
.top-action-register:focus {
    color: #5c3304;
    background: rgba(243, 154, 33, 0.2);
    border-color: rgba(243, 154, 33, 0.38);
}

.top-status {
    color: var(--muted);
    font-weight: 700;
}

.brand-row {
    min-height: 86px;
    display: grid;
    grid-template-columns: 210px 1fr 160px;
    gap: 18px;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 210px;
    background: #ffffff;
    padding: 6px 10px;
    text-decoration: none;
}

.logo-img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: left center;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 112px;
    height: 46px;
    border: 2px solid var(--brand);
    background: var(--panel);
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    font-size: 14px;
    outline: 0;
}

.search-box button {
    border: 0;
    background: var(--brand);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.cart-summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 10px;
    background: var(--brand-contrast);
    border: 1px solid rgba(31, 122, 58, 0.18);
    color: var(--brand-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cart-summary:hover,
.cart-summary:focus {
    border-color: rgba(31, 122, 58, 0.36);
    box-shadow: 0 8px 18px rgba(20, 31, 24, 0.1);
    transform: translateY(-1px);
}

.cart-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: white;
    font-weight: 800;
}

.cart-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.cart-summary strong,
.cart-summary small {
    display: block;
}

.cart-summary strong {
    color: var(--brand-ink);
    font-size: 14px;
    line-height: 1.1;
}

.cart-summary small {
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

.cart-copy {
    min-width: 0;
}

.cart-count {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.main-menu {
    background: var(--brand-dark);
    color: white;
}

.main-menu-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.whatsapp-link {
    margin-left: auto;
    background: var(--whatsapp);
    padding: 10px 14px;
}

.inline-form {
    display: inline;
    margin: 0;
}

.inline-form button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.top-account-actions .inline-form button.top-action {
    border: 1px solid transparent;
    background: transparent;
    color: var(--brand-dark);
    padding: 5px 9px;
}

.top-account-actions .inline-form button.top-action:hover,
.top-account-actions .inline-form button.top-action:focus {
    color: var(--brand-ink);
    background: var(--brand-soft);
    border-color: rgba(31, 122, 58, 0.2);
}

main {
    padding: 22px 0 38px;
}

.flash-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.flash-message {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 12px 14px;
    font-weight: 700;
}

.flash-message.success {
    border-color: #b8dfc9;
    color: #146c43;
    background: #eefaf3;
}

.flash-message.error {
    border-color: #f0b8b8;
    color: #9f1c1c;
    background: #fff1f1;
}

.storefront {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.category-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-list,
.sidebar-widget {
    background: var(--panel);
    border: 1px solid var(--line);
}

.category-list h2 {
    margin: 0;
    padding: 14px 16px;
    background: var(--brand);
    color: white;
    font-size: 16px;
}

.category-list ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.category-list a {
    display: block;
    padding: 9px 16px;
    color: #334150;
    font-size: 14px;
    border-bottom: 1px solid #edf0f3;
}

.category-list a:hover {
    color: var(--brand);
    background: var(--brand-contrast);
}

.sidebar-widget {
    padding: 16px;
}

.sidebar-widget h3,
.sidebar-widget strong {
    display: block;
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 16px;
}

.sidebar-widget p,
.sidebar-widget span,
.sidebar-widget li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.sidebar-widget p {
    margin: 0 0 12px;
}

.sidebar-widget > a:not(.mini-product),
.sidebar-help a,
.side-banner a {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-help {
    background: var(--brand-ink);
    color: white;
    border-color: var(--brand-ink);
}

.sidebar-help strong {
    color: white;
}

.sidebar-help span {
    display: block;
    margin-bottom: 12px;
    color: #d7e2dc;
}

.sidebar-help a {
    background: var(--whatsapp);
}

.sidebar-widget.compact ul {
    margin: 0;
    padding-left: 18px;
}

.featured-mini {
    padding-bottom: 8px;
}

.mini-product {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #edf0f3;
    background: transparent;
}

.mini-product img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #edf0f3;
}

.mini-product b,
.mini-product small {
    display: block;
}

.mini-product b {
    color: #273542;
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
}

.mini-product small {
    margin-top: 5px;
    color: var(--brand-dark);
    font-weight: 900;
}

.side-banner {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(rgba(16, 43, 29, 0.78), rgba(16, 43, 29, 0.86)),
        url("https://images.unsplash.com/photo-1588508065123-287b28e013da?auto=format&fit=crop&w=500&q=80");
    background-size: cover;
    background-position: center;
    border: 0;
}

.side-banner span {
    color: #e7f0eb;
    font-weight: 900;
    text-transform: uppercase;
}

.side-banner strong {
    color: white;
    font-size: 20px;
    line-height: 1.15;
}

.home-content {
    min-width: 0;
}

.hero-market {
    position: relative;
    min-height: 310px;
    background: #0f2436;
    overflow: hidden;
}

.hero-slides {
    min-height: 310px;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 46%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy {
    padding: 42px;
    color: white;
    align-self: center;
}

.hero-copy p {
    margin: 0 0 10px;
    color: #bfe4ff;
    font-weight: 800;
}

.hero-copy span {
    display: block;
    max-width: 520px;
    margin: -12px 0 22px;
    color: #d8ecfa;
    font-size: 15px;
    line-height: 1.45;
}

.hero-copy h1 {
    margin: 0 0 24px;
    max-width: 560px;
    font-size: 34px;
    line-height: 1.08;
}

.hero-copy a {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 13px 18px;
    font-weight: 900;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 44px;
    border: 0;
    background: rgba(20, 83, 45, 0.72);
    color: white;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 0;
}

.hero-control.next {
    right: 0;
}

.hero-dots {
    position: absolute;
    left: 42px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    padding: 0;
}

.hero-dots button.active {
    background: var(--accent);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 16px 0;
    background: var(--line);
    border: 1px solid var(--line);
}

.trust-strip article {
    min-height: 86px;
    background: var(--panel);
    padding: 16px;
}

.trust-strip strong,
.trust-strip span {
    display: block;
}

.trust-strip strong {
    color: var(--brand-dark);
    margin-bottom: 5px;
}

.trust-strip span {
    color: var(--muted);
    font-size: 13px;
}

.product-section {
    margin-top: 18px;
}

.section-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--brand);
    padding: 0 16px;
}

.section-title h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 18px;
}

.section-title a {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

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

.product-card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-image {
    height: 142px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    border: 1px solid #eef1f4;
    overflow: hidden;
}

.product-image span {
    display: none;
}

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

.product-image.image-missing {
    background: linear-gradient(135deg, #f1f5f2, #fff8ed);
}

.product-image.image-missing span {
    display: block;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    padding: 12px;
}

.product-category {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0;
    min-height: 56px;
    color: #222d37;
    font-size: 13px;
    line-height: 1.35;
    text-transform: uppercase;
}

.product-card strong {
    color: var(--brand-dark);
    font-size: 17px;
}

.product-card button {
    width: 100%;
    min-height: 34px;
    border: 0;
    background: var(--accent);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.product-action {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 9px 12px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.whatsapp-product-action,
.whatsapp-detail-action {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 9px 12px;
    background: var(--whatsapp);
    color: white;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.whatsapp-product-action:hover,
.whatsapp-product-action:focus,
.whatsapp-detail-action:hover,
.whatsapp-detail-action:focus {
    background: #188351;
    outline: 2px solid #b8dfc9;
    outline-offset: 2px;
}

.whatsapp-detail-action {
    max-width: 240px;
    margin-bottom: 18px;
}

.catalog-page {
    min-height: 52vh;
}

.catalog-intro {
    margin: 14px 0 0;
    color: var(--muted);
}

.catalog-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 14px;
}

.catalog-filters.category-order {
    grid-template-columns: minmax(180px, 260px) auto;
}

.catalog-filters label,
.catalog-filters span {
    display: block;
}

.catalog-filters label span {
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.catalog-filters input,
.catalog-filters select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    background: white;
    color: var(--text);
    font: inherit;
    padding: 0 10px;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
}

.filter-actions button {
    min-height: 40px;
    border: 0;
    background: var(--accent);
    color: white;
    font-weight: 900;
    padding: 0 16px;
    cursor: pointer;
}

.filter-actions a {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.empty-state {
    margin-top: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 28px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--brand-dark);
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

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

.detail-media,
.detail-info {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 18px;
}

.detail-main-image {
    min-height: 380px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    border: 1px solid #eef1f4;
}

.detail-main-image span {
    display: none;
}

.detail-main-image img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.detail-main-image.image-missing {
    background: linear-gradient(135deg, #f1f5f2, #fff8ed);
}

.detail-main-image.image-missing span {
    display: block;
    color: var(--brand-dark);
    font-weight: 900;
    text-transform: uppercase;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.detail-gallery img {
    width: 100%;
    height: 82px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #eef1f4;
    padding: 6px;
}

.detail-info h1 {
    margin: 8px 0 12px;
    color: #222d37;
    font-size: 28px;
    line-height: 1.16;
}

.detail-summary {
    color: var(--muted);
    margin: 0 0 18px;
    line-height: 1.5;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-price strong {
    color: var(--brand-dark);
    font-size: 28px;
}

.detail-price span {
    color: var(--muted);
    text-decoration: line-through;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 20px;
    background: var(--line);
    border: 1px solid var(--line);
}

.detail-meta div {
    background: var(--panel);
    padding: 12px;
}

.detail-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 700;
}

.detail-description {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.detail-description h2 {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 18px;
}

.detail-description p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.detail-back {
    max-width: 220px;
    margin-top: 20px;
}

.add-cart-form {
    margin: 0;
}

.detail-cart-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
}

.detail-cart-form label,
.detail-cart-form span {
    display: block;
}

.detail-cart-form span {
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-cart-form input {
    width: 100px;
    min-height: 40px;
    border: 1px solid var(--line);
    padding: 0 10px;
    font: inherit;
}

.detail-cart-form button,
.cart-quantity-form button,
.cart-remove-form button,
.cart-summary-box button {
    min-height: 40px;
    border: 0;
    background: var(--accent);
    color: white;
    font-weight: 900;
    padding: 0 14px;
    cursor: pointer;
}

.cart-page {
    min-height: 52vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    margin-top: 12px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 150px 130px auto;
    gap: 12px;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 12px;
}

.cart-item-image {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    border: 1px solid #eef1f4;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.cart-item-image span {
    display: none;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.cart-item-image.image-missing span {
    display: block;
}

.cart-item-name,
.cart-item-info span,
.cart-item-info small,
.cart-item-subtotal span,
.cart-item-subtotal strong {
    display: block;
}

.cart-item-name {
    color: var(--brand-dark);
    font-weight: 900;
}

.cart-item-info span,
.cart-item-subtotal strong {
    margin-top: 6px;
    color: var(--brand-dark);
    font-weight: 900;
}

.cart-item-info small,
.cart-item-subtotal span {
    color: var(--muted);
    font-size: 12px;
}

.cart-quantity-form {
    display: grid;
    gap: 8px;
}

.cart-quantity-form label,
.cart-quantity-form span {
    display: block;
}

.cart-quantity-form span {
    margin-bottom: 5px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
}

.cart-quantity-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    padding: 0 10px;
    font: inherit;
}

.cart-remove-form button {
    background: #b42318;
}

.cart-summary-box {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 16px;
}

.cart-summary-box h3 {
    margin: 0 0 12px;
    color: var(--brand-dark);
}

.cart-summary-box dl {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
}

.cart-summary-box dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.cart-summary-box dt {
    color: var(--muted);
    font-weight: 700;
}

.cart-summary-box dd {
    margin: 0;
    color: var(--brand-dark);
    font-weight: 900;
}

.cart-summary-box button {
    width: 100%;
    background: #b42318;
}

.cart-checkout-link {
    display: block;
    margin-top: 10px;
    background: var(--accent);
    color: white;
    font-weight: 900;
    padding: 12px 14px;
    text-align: center;
}

.checkout-page {
    min-height: 52vh;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
    margin-top: 12px;
    align-items: start;
}

.checkout-form,
.order-summary-box,
.confirmation-box {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 16px;
}

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

.checkout-form h3,
.order-summary-box h3,
.confirmation-box h3 {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    color: var(--brand-dark);
}

.checkout-form label,
.checkout-form span {
    display: block;
}

.checkout-form label span {
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    padding: 9px 10px;
    font: inherit;
}

.checkout-form textarea {
    resize: vertical;
}

.checkout-form .full,
.checkout-actions.full {
    grid-column: 1 / -1;
}

.checkout-actions button {
    border: 0;
    background: var(--accent);
    color: white;
    padding: 12px 16px;
    font-weight: 900;
    cursor: pointer;
}

.order-summary-items {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.order-summary-items article {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.order-summary-items strong,
.order-summary-items span,
.order-summary-items b {
    display: block;
}

.order-summary-items strong {
    color: var(--text);
}

.order-summary-items span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.order-summary-items b {
    margin-top: 4px;
    color: var(--brand-dark);
}

.order-summary-box dl,
.confirmation-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.order-summary-box dl div,
.confirmation-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.order-summary-box dt,
.confirmation-meta dt {
    color: var(--muted);
    font-weight: 700;
}

.order-summary-box dd,
.confirmation-meta dd {
    margin: 0;
    color: var(--brand-dark);
    font-weight: 900;
    text-align: right;
}

.confirmation-box {
    margin-top: 12px;
}

.confirmation-box p {
    color: var(--muted);
}

.confirmation-total {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding: 14px 16px;
    color: var(--brand-dark);
    font-weight: 900;
}

.admin-detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
}

.admin-detail-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-detail-list dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 700;
}

.order-admin-grid,
.order-detail-card {
    margin-top: 12px;
}

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

.assignments-form select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    padding: 0 10px;
}

.assignments-actions {
    padding: 16px;
}

.admin-page {
    min-height: 52vh;
}

.admin-card {
    background: var(--panel);
    border: 1px solid var(--line);
}

.login-card {
    max-width: 460px;
    margin: 0 auto;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.admin-toolbar a,
.admin-actions button {
    display: inline-block;
    border: 0;
    background: var(--accent);
    color: white;
    padding: 11px 14px;
    font-weight: 900;
    cursor: pointer;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 14px;
}

.admin-card h3 {
    margin: 0;
    padding: 14px 16px;
    color: var(--brand-dark);
    border-bottom: 1px solid var(--line);
}

.admin-muted {
    margin: 0;
    padding: 16px;
    color: var(--muted);
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

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

.admin-table th {
    color: var(--brand-dark);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-row-actions form {
    margin: 0;
}

.admin-action {
    display: inline-block;
    border: 0;
    padding: 7px 9px;
    color: white;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.admin-action.edit {
    background: var(--brand);
}

.admin-action.toggle {
    background: var(--accent);
}

.admin-action.delete {
    background: #b42318;
}

.status-pill {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 900;
}

.status-pill.active {
    border-color: #b8dfc9;
    color: #146c43;
    background: #eefaf3;
}

.status-pill.inactive {
    border-color: #f0b8b8;
    color: #9f1c1c;
    background: #fff1f1;
}

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

.admin-form label,
.admin-form label span {
    display: block;
}

.admin-form label span {
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    padding: 9px 10px;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form .full,
.admin-actions.full {
    grid-column: 1 / -1;
}

.check-field {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.check-field input {
    width: auto;
    min-height: 0;
}

.check-field span {
    margin-bottom: 0 !important;
}

.admin-image-preview {
    display: grid;
    gap: 8px;
}

.admin-image-preview > span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-image-preview img {
    width: 180px;
    height: 140px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 6px;
}

.admin-banner-thumb {
    width: 140px;
    height: 72px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.admin-gallery {
    border-top: 1px solid var(--line);
    padding: 16px;
}

.admin-gallery h3 {
    border: 0;
    padding: 0;
    margin: 0 0 12px;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.admin-gallery-grid article {
    display: grid;
    gap: 8px;
}

.admin-gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 6px;
}

.admin-gallery-grid .admin-action {
    width: 100%;
}

.ad-band {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: center;
    margin-top: 18px;
    background: var(--brand-ink);
    color: white;
    min-height: 150px;
    overflow: hidden;
}

.ad-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-band div {
    padding: 26px;
}

.ad-band span {
    color: #e7f0eb;
    font-weight: 900;
    text-transform: uppercase;
}

.ad-band h2 {
    margin: 8px 0 0;
    font-size: 24px;
    line-height: 1.15;
}

.site-footer {
    background:
        linear-gradient(180deg, rgba(20, 83, 45, 0.16), rgba(20, 83, 45, 0)),
        #16231b;
    color: #e7eee9;
    padding: 42px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(140px, 0.85fr) minmax(210px, 1.2fr) repeat(2, minmax(150px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-brand,
.footer-column {
    min-width: 0;
}

.footer-brand strong {
    display: inline-block;
    color: white;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.footer-brand strong::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 10px;
    background: var(--accent);
}

.footer-brand p,
.footer-column p,
.footer-commercial li,
.footer-bottom {
    color: #b9c7bf;
    font-size: 14px;
    line-height: 1.55;
}

.footer-brand p {
    max-width: 310px;
    margin: 16px 0 0;
}

.footer-social {
    margin-top: 22px;
}

.footer-social h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 238, 233, 0.18);
    color: #e7eee9;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    outline: 0;
    transform: translateY(-2px);
}

.footer-social-links a:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 3px;
}

.footer-social-links svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-social-links svg path {
    fill: currentColor;
    stroke: none;
}

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

.footer-contact-list p,
.footer-contact-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    color: #d8e4dc;
    font-size: 14px;
    line-height: 1.45;
}

.footer-contact-list a {
    width: auto;
    margin-top: 0;
}

.footer-contact-list svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 238, 233, 0.16);
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-contact-list a:hover,
.footer-contact-list a:focus {
    color: white;
    transform: none;
}

.footer-contact-list a:hover svg,
.footer-contact-list a:focus svg {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    width: fit-content;
    color: #d8e4dc;
    font-size: 14px;
    line-height: 1.35;
    margin-top: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus {
    color: white;
    transform: translateX(3px);
}

.footer-column p {
    margin: 10px 0 0;
}

.footer-action {
    background: var(--accent);
    color: white !important;
    padding: 10px 13px;
    font-size: 12px !important;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-action:hover,
.footer-action:focus {
    background: var(--accent-dark);
    transform: none !important;
}

.footer-commercial ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-commercial li {
    position: relative;
    padding-left: 16px;
}

.footer-commercial li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding: 18px 0;
    border-top: 1px solid rgba(231, 238, 233, 0.12);
}

.footer-bottom span:last-child {
    text-align: right;
}

@media (max-width: 1050px) {
    .brand-row {
        grid-template-columns: 180px 1fr;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cart-summary {
        grid-column: 2;
        justify-content: flex-start;
    }

    .storefront {
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

@media (max-width: 800px) {
    .top-strip-inner,
    .brand-row,
    .storefront,
    .ad-band,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .top-strip-inner {
        align-items: stretch;
        padding: 8px 0;
    }

    .top-commercial-link {
        justify-content: center;
        width: 100%;
    }

    .top-account-actions {
        justify-content: center;
        gap: 6px;
    }

    .top-action {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 132px;
    }

    .footer-main {
        grid-column: auto;
        gap: 24px;
    }

    .footer-social-links a {
        width: 40px;
        height: 40px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom span:last-child {
        text-align: left;
    }

    .brand-row {
        padding: 14px 0;
    }

    .logo {
        max-width: 180px;
    }

    .logo-img {
        height: 70px;
    }

    .cart-summary {
        grid-column: auto;
        justify-content: flex-start;
        width: 100%;
        max-width: 260px;
    }

    .main-menu-inner {
        gap: 16px;
    }

    .whatsapp-link {
        margin-left: 0;
    }

    .category-panel {
        position: static;
    }

    .category-panel ul {
        max-height: 230px;
        overflow: auto;
    }

    .hero-copy {
        padding: 28px;
    }

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

    .hero-slide img {
        height: 210px;
    }

    .hero-copy h1 {
        font-size: 28px;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .cart-layout,
    .cart-item,
    .checkout-layout,
    .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-form .full,
    .checkout-actions.full {
        grid-column: auto;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
    }

    .detail-main-image {
        min-height: 300px;
    }

    .catalog-filters,
    .catalog-filters.category-order {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-filters label:first-child {
        grid-column: 1 / -1;
    }

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

    .admin-form .full,
    .admin-actions.full {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .search-box {
        grid-template-columns: 1fr;
        height: auto;
    }

    .search-box input,
    .search-box button {
        min-height: 42px;
    }

    .trust-strip,
    .product-grid,
    .product-grid.dense {
        grid-template-columns: 1fr;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 14px;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .detail-info h1 {
        font-size: 24px;
    }

    .catalog-filters,
    .catalog-filters.category-order {
        grid-template-columns: 1fr;
    }

    .catalog-filters label:first-child {
        grid-column: auto;
    }

    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-actions button,
    .filter-actions a {
        width: 100%;
        text-align: center;
    }
}

.info-page {
    max-width: 980px;
}

.info-page-header {
    background: var(--panel);
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--brand);
    padding: 22px;
}

.info-page-header h1 {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 28px;
}

.info-page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.info-page-content {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.info-section,
.info-notice,
.info-contact-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 18px;
}

.info-section h2,
.info-contact-card h2 {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 18px;
}

.info-section p,
.info-contact-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.info-notice {
    border-color: #f4d19b;
    background: #fff8ed;
    color: #7a4b08;
    font-weight: 700;
    line-height: 1.5;
}

.info-contact-card {
    border-color: #b8dfc9;
    background: #f6fcf8;
}

.info-whatsapp-action {
    display: inline-block;
    margin-top: 14px;
    background: var(--whatsapp);
    color: white;
    padding: 12px 16px;
    font-weight: 900;
    text-align: center;
}

.info-whatsapp-action:hover,
.info-whatsapp-action:focus {
    background: #188351;
    outline: 2px solid #b8dfc9;
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .info-page-header,
    .info-section,
    .info-notice,
    .info-contact-card {
        padding: 16px;
    }

    .info-page-header h1 {
        font-size: 24px;
    }

    .info-whatsapp-action {
        width: 100%;
    }
}
