:root {
    --navy-950: #16232b;
    --navy-900: #22343d;
    --navy-700: #3a5562;
    --green-500: #85ad97;
    --green-600: #678775;
    --green-100: #e3eee7;
    --white: #ffffff;
    --grey-50: #f6f8f7;
    --grey-100: #e8ecea;
    --grey-300: #ccd5d1;
    --grey-500: #738082;
    --grey-700: #425359;
    --shadow-soft: 0 22px 40px rgba(8, 24, 38, 0.08);
    --shadow-card: 0 14px 30px rgba(8, 24, 38, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(133, 173, 151, 0.16), transparent 22rem),
        linear-gradient(180deg, #f8faf8 0%, #f1f4f2 100%);
    color: var(--navy-950);
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    min-height: 100vh;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(12, 34, 52, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--green-500), #a8c5b4);
    color: var(--navy-950);
    font-weight: 800;
    box-shadow: var(--shadow-card);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--grey-500);
    font-size: 0.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    color: var(--grey-700);
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--grey-100);
}

.cart-link {
    background: var(--navy-900);
    color: var(--white) !important;
}

.cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    padding: 0.2rem 0.45rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    background: #9bbba8;
    color: var(--navy-950);
    font-size: 0.8rem;
    font-weight: 800;
}

.hero-section {
    padding: 3rem 0 2rem;
}

.hero-grid {
    display: grid;
    gap: 1.5rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--green-600);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-section h1,
.section-heading h1,
.section-heading h2,
.product-detail__content h1,
.contact-card h2 {
    margin: 0 0 1rem;
    line-height: 1.05;
}

.hero-section h1 {
    font-size: clamp(2.4rem, 8vw, 4.7rem);
    max-width: 11ch;
}

.hero-copy {
    max-width: 54ch;
    color: var(--grey-700);
    font-size: 1.05rem;
}

.hero-actions,
.contact-actions,
.cart-actions,
.product-detail__actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-notes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.hero-notes span {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(8, 24, 38, 0.06);
    color: var(--grey-700);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-panel {
    display: grid;
}

.panel-card,
.info-card,
.contact-card,
.product-detail__content,
.product-detail__media,
.cart-items-panel,
.cart-summary-panel,
.empty-state,
.totals-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.panel-card {
    padding: 1.5rem;
    background:
        linear-gradient(160deg, rgba(22, 35, 43, 0.96), rgba(42, 60, 70, 0.95)),
        linear-gradient(135deg, var(--green-500), transparent);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.panel-card::after {
    content: "";
    position: absolute;
    inset: auto -5rem -5rem auto;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(133, 173, 151, 0.2);
}

.panel-card h2 {
    margin: 0.35rem 0 0.9rem;
    font-size: 1.8rem;
}

.panel-card p,
.panel-card li {
    color: rgba(255, 255, 255, 0.84);
}

.panel-label {
    margin: 0;
    color: #c1d7ca;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.panel-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.search-strip {
    padding: 1rem 0 0;
}

.search-form {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.search-form__field {
    display: grid;
}

.search-form input,
.search-form select,
.customer-form input,
.customer-form select,
.customer-form textarea {
    width: 100%;
    padding: 1rem 1rem;
    border: 1px solid var(--grey-300);
    border-radius: 1rem;
    background: #fbfdff;
    color: var(--navy-950);
    font: inherit;
}

.search-form input:focus,
.search-form select:focus,
.customer-form input:focus,
.customer-form select:focus,
.customer-form textarea:focus {
    outline: 3px solid rgba(26, 211, 107, 0.18);
    border-color: var(--green-500);
}

.category-pills {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 1rem 0 0.4rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--grey-700);
    border: 1px solid rgba(12, 34, 52, 0.08);
    white-space: nowrap;
    font-weight: 700;
}

.category-pill.is-active {
    background: var(--navy-900);
    color: var(--white);
}

.section {
    padding: 2.5rem 0;
}

.section--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(227, 238, 231, 0.34));
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.section-heading h2,
.section-heading h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.results-count {
    margin: 0;
    color: var(--grey-500);
    font-weight: 700;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--white);
    border-radius: 1.4rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.product-card__image-wrap {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 211, 107, 0.12), rgba(8, 24, 38, 0.04));
    aspect-ratio: 4 / 3;
}

.product-card__image,
.product-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
}

.product-card__category {
    margin: 0;
    color: var(--green-600);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
}

.product-card__title {
    margin: 0;
    font-size: 1.1rem;
}

.product-card__description,
.info-card p,
.contact-card p,
.product-detail__description,
.delivery-note {
    margin: 0;
    color: var(--grey-700);
    line-height: 1.6;
}

.product-card__meta,
.product-detail__meta,
.totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-card__price,
.product-detail__price {
    font-size: 1.35rem;
}

.product-badge,
.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: var(--green-500);
    color: var(--navy-950);
}

.product-badge--dark {
    position: static;
    background: var(--navy-950);
    color: var(--white);
}

.stock-pill--in {
    background: rgba(26, 211, 107, 0.12);
    color: var(--green-600);
}

.stock-pill--out {
    background: rgba(196, 34, 34, 0.1);
    color: #aa2b2b;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1.15rem;
    border: none;
    border-radius: 1rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-500), #43ef92);
    color: var(--navy-950);
    box-shadow: 0 10px 24px rgba(26, 211, 107, 0.22);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy-950);
    border: 1px solid rgba(12, 34, 52, 0.12);
}

.btn-whatsapp {
    background: var(--navy-900);
    color: var(--white);
}

.info-grid,
.cart-layout,
.product-detail {
    display: grid;
    gap: 1rem;
}

.info-card,
.contact-card,
.empty-state {
    padding: 1.5rem;
}

.empty-state {
    text-align: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--grey-500);
    font-weight: 700;
}

.product-detail__media {
    min-height: 320px;
    overflow: hidden;
}

.product-detail__content {
    padding: 1.5rem;
}

.cart-items-panel,
.cart-summary-panel {
    padding: 1.25rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__image {
    width: 84px;
    height: 84px;
    border-radius: 1rem;
    object-fit: cover;
    background: var(--grey-100);
}

.cart-item__name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.cart-item__meta,
.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.quantity-button,
.remove-button {
    border: 1px solid var(--grey-300);
    background: var(--white);
    color: var(--navy-950);
    padding: 0.5rem 0.75rem;
    border-radius: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.remove-button {
    color: #a52d2d;
}

.customer-form {
    display: grid;
    gap: 1rem;
}

.checkout-preview {
    margin: 1rem 0;
}

.checkout-preview label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--grey-700);
    font-weight: 700;
}

.checkout-preview textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--grey-300);
    border-radius: 1rem;
    background: #fbfdff;
    color: var(--navy-950);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.checkout-preview__box {
    min-height: 12rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--grey-300);
    border-radius: 1rem;
    background: #fbfdff;
    color: var(--navy-950);
    font: inherit;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.checkout-preview__status {
    margin: 0.65rem 0 0;
    color: var(--grey-500);
    font-size: 0.92rem;
}

.customer-form h2,
.totals-card h2 {
    margin: 0;
}

.customer-form label {
    display: grid;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--grey-700);
}

.totals-card {
    margin-top: 1rem;
    padding: 1.25rem;
}

.totals-row {
    padding: 0.65rem 0;
}

.totals-row--grand {
    margin-top: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grey-100);
    font-size: 1.1rem;
}

.mobile-cart-bar {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(8, 24, 38, 0.96);
    color: var(--white);
    box-shadow: 0 18px 34px rgba(8, 24, 38, 0.24);
    z-index: 50;
}

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

.mobile-cart-bar small {
    color: rgba(255, 255, 255, 0.72);
}

.toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 6rem;
    display: grid;
    gap: 0.75rem;
    z-index: 60;
}

.toast {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(8, 24, 38, 0.96);
    color: var(--white);
    box-shadow: var(--shadow-card);
    animation: fade-in 0.2s ease;
}

.site-footer {
    padding: 3rem 0 7rem;
}

.footer-grid {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(12, 34, 52, 0.08);
}

.footer-grid h3 {
    margin-bottom: 0.4rem;
}

.alert {
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    font-weight: 700;
}

.alert.success {
    background: var(--green-100);
    color: var(--green-600);
}

.alert.error {
    background: rgba(196, 34, 34, 0.1);
    color: #a52d2d;
}

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

@media (min-width: 700px) {
    .hero-grid,
    .info-grid,
    .cart-layout,
    .product-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-form {
        grid-template-columns: minmax(0, 1.8fr) minmax(180px, 1fr) auto;
        align-items: center;
    }

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

@media (min-width: 880px) {
    .mobile-cart-bar {
        display: none;
    }

    .site-footer {
        padding-bottom: 3rem;
    }

    .contact-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .product-detail {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

@media (max-width: 699px) {
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .main-nav {
        gap: 0.35rem;
    }

    .main-nav a {
        padding: 0.65rem 0.8rem;
        font-size: 0.92rem;
    }

    .hero-actions .btn,
    .contact-actions .btn,
    .product-detail__actions .btn {
        width: 100%;
    }
}
