:root {
    --blue: #0b5ed7;
    --blue-dark: #0846a8;
    --blue-light: #e8f2ff;
    --blue-soft: #f3f8ff;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #eef2f6;
    --gray-200: #d8e0ea;
    --gray-500: #667085;
    --graphite: #1f2937;
    --muted: #475467;
    --green: #20b15a;
    --orange: #f28c28;
    --red: #d92d20;
    --shadow: 0 16px 42px rgba(31, 41, 55, 0.10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: var(--white);
    color: var(--graphite);
    min-height: 100vh;
}

body.cart-active {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--blue);
    color: var(--white);
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.1;
}

.brand strong {
    font-size: 1rem;
    color: var(--graphite);
}

.brand small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.main-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.nav-link {
    flex: 0 0 auto;
    padding: 9px 10px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: var(--blue-light);
    color: var(--blue-dark);
    outline: none;
}

.cart-button {
    justify-self: end;
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--blue-dark);
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
}

#cart-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: 0.78rem;
}

.hero {
    display: grid;
    gap: 24px;
    padding: 34px 18px 28px;
    background: var(--blue-soft);
    border-bottom: 1px solid var(--gray-200);
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue-dark);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 14px;
    color: var(--graphite);
    font-size: clamp(2rem, 7vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.25;
}

.hero p,
.section-heading p,
.quote-card p,
.promo-section p,
.shop-desc,
.shop-detail,
.product-detail-info p {
    color: var(--muted);
    line-height: 1.6;
}

.hero p {
    max-width: 620px;
    margin-bottom: 22px;
    font-size: 1.04rem;
}

.hero-actions,
.shop-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-btn,
.whatsapp-btn,
.quick-whatsapp-btn,
.promo-btn,
.details-link,
.add-cart-btn,
.clear-cart-btn,
.detail-actions button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.primary-btn,
.add-cart-btn,
.detail-actions button {
    background: var(--blue);
    color: var(--white);
}

.primary-btn:hover,
.add-cart-btn:hover,
.detail-actions button:hover {
    background: var(--blue-dark);
}

.whatsapp-btn,
.quick-whatsapp-btn,
.floating-whatsapp {
    background: var(--green);
    color: var(--white);
}

.whatsapp-btn:hover,
.quick-whatsapp-btn:hover,
.floating-whatsapp:hover {
    background: #15964a;
}

.details-link {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--blue-dark);
}

.details-link:hover {
    border-color: var(--blue);
}

.hero-panel {
    display: grid;
    gap: 8px;
    align-content: center;
    padding: 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.hero-panel strong {
    color: var(--blue-dark);
    font-size: 1.15rem;
}

.hero-panel span {
    color: var(--muted);
}

.quick-request,
.shop,
.promo-section,
.product-detail-page {
    padding: 42px 18px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.quote-grid,
.shop-grid {
    display: grid;
    gap: 14px;
}

.quote-card,
.shop-card,
.cart-panel,
.product-detail-card,
.shop-empty {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.07);
}

.quote-card {
    padding: 18px;
}

.shop {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.shop-controls {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-controls input,
.shop-controls select,
.cart-order-info input,
.cart-order-info select,
.cart-order-info textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--graphite);
    padding: 11px 12px;
    outline: none;
    font: inherit;
}

.shop-controls input:focus,
.shop-controls select:focus,
.cart-order-info input:focus,
.cart-order-info select:focus,
.cart-order-info textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.14);
}

.cart-order-info textarea {
    min-height: 82px;
    resize: vertical;
}

.shop-card {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.card-image {
    display: flex;
    height: 148px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 1.8rem;
    font-weight: 800;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-card h3 {
    margin-bottom: 0;
    color: var(--graphite);
}

.shop-desc,
.shop-detail {
    margin-bottom: 0;
    font-size: 0.94rem;
}

.price {
    color: var(--blue-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.shop-actions {
    margin-top: 4px;
}

.shop-actions > * {
    flex: 1 1 145px;
}

.shop-empty {
    padding: 20px;
    color: var(--muted);
}

.promo-section {
    display: grid;
    gap: 16px;
    align-items: center;
    margin: 18px;
    border-radius: var(--radius);
    background: #fff6e9;
    border: 1px solid #ffd8a8;
}

.promo-label {
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-btn {
    background: var(--orange);
    color: var(--white);
}

.promo-btn:hover {
    background: #d97412;
}

.cart-panel {
    position: fixed;
    inset: auto 12px 12px 12px;
    z-index: 1100;
    display: none;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 16px;
}

.cart-panel.cart-open {
    display: block;
}

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

.cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-close-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--graphite);
    font-size: 1.35rem;
    cursor: pointer;
}

.cart-items,
.cart-order-info,
.cart-summary {
    display: grid;
    gap: 10px;
}

.cart-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
}

.cart-item-title {
    font-weight: 800;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn,
.remove-item-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--graphite);
    font-weight: 800;
    cursor: pointer;
}

.remove-item-btn {
    margin-left: auto;
    color: var(--red);
}

.qty-display {
    min-width: 32px;
    text-align: center;
    font-weight: 800;
}

.cart-item-price,
.cart-empty {
    color: var(--muted);
}

.cart-order-info {
    margin: 14px 0;
}

.cart-order-message {
    min-height: 20px;
    color: var(--muted);
    font-weight: 600;
}

.cart-order-message.success {
    color: var(--green);
}

.cart-order-message.error {
    color: var(--red);
}

.cart-total {
    color: var(--graphite);
    font-size: 1.1rem;
    font-weight: 800;
}

.clear-cart-btn {
    width: 100%;
    background: #fff1f0;
    color: var(--red);
    border: 1px solid #ffd0cc;
}

.floating-whatsapp {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1050;
    min-height: 46px;
    border-radius: 999px;
    padding: 13px 18px;
    box-shadow: 0 12px 28px rgba(32, 177, 90, 0.26);
    font-weight: 800;
    text-decoration: none;
}

.product-detail-page {
    background: var(--gray-50);
    min-height: 70vh;
}

.product-detail-card {
    display: grid;
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 14px;
}

.product-detail-image {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 2rem;
    font-weight: 800;
}

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

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.product-detail-meta span {
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue-dark);
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.site-footer {
    display: grid;
    gap: 7px;
    padding: 28px 18px 82px;
    background: var(--graphite);
    color: var(--white);
}

.site-footer span {
    color: #d0d5dd;
}

.site-footer a {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 720px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
        padding: 14px 28px;
    }

    .main-nav {
        grid-column: auto;
        justify-content: center;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: center;
        padding: 58px 28px;
    }

    .quick-request,
    .shop,
    .product-detail-page {
        padding: 58px 28px;
    }

    .quote-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-controls {
        grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    }

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

    .promo-section {
        grid-template-columns: 1fr auto;
        margin: 28px;
        padding: 30px;
    }

    .cart-panel {
        inset: 86px 24px auto auto;
        width: 380px;
        max-height: calc(100vh - 110px);
    }

    .product-detail-card {
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
        padding: 24px;
    }
}

@media (min-width: 1080px) {
    .site-header,
    .hero,
    .quick-request,
    .shop,
    .site-footer {
        padding-left: calc((100vw - 1180px) / 2);
        padding-right: calc((100vw - 1180px) / 2);
    }

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