/* ==========================================================
   SHOP CART AND CHECKOUT
   Header cart button, Add to cart (cards + product page), the
   cart panel, "Added" message and the checkout page.
   Uses the colours from css/site.css.
   ========================================================== */


/* ==========================================================
   HEADER CART BUTTON
   ========================================================== */

.store-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 0;

    background: none;
    border: 0;

    color: #ffffff;

    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;

    cursor: pointer;
}

.store-cart-icon {
    position: relative;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;

    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.store-cart-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;

    min-width: 20px;
    height: 20px;
    padding: 0 5px;

    background: var(--gold);
    border: 2px solid #2c1f02;
    border-radius: 999px;

    color: #2c1f02;

    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.store-cart-count[hidden] {
    display: none;
}

.store-cart:hover,
.store-cart:focus-visible {
    color: var(--gold);
}

.store-cart:hover .store-cart-icon,
.store-cart:focus-visible .store-cart-icon {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brown-dark);
}

.store-cart.is-bumped .store-cart-icon {
    animation: cart-bump 0.45s ease;
}

@keyframes cart-bump {
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
}


/* ==========================================================
   PRODUCT CARDS: the link fills the card, Add to cart below
   ========================================================== */

.product-card-link {
    display: flex;
    flex: 1;
    flex-direction: column;

    color: inherit;
    text-decoration: none;
}

.product-card-link:hover {
    color: inherit;
}

.product-card .buy-box {
    padding: 0 14px 14px;
}


/* ==========================================================
   QUANTITY (− 1 +) AND ADD TO CART
   ========================================================== */

.buy-box {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.qty {
    display: inline-flex;
    flex: 0 0 auto;

    height: 40px;

    background: var(--white);
    border: 1px solid #d9d4c8;
    border-radius: 8px;

    overflow: hidden;
}

.qty button {
    width: 34px;

    padding: 0;

    background: #f6f3ec;
    border: 0;

    color: var(--brown);

    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
}

.qty button:hover,
.qty button:focus-visible {
    background: var(--gold);
    color: var(--brown-dark);
}

.qty input {
    width: 44px;
    min-width: 0;

    padding: 0 2px;

    background: var(--white);
    border: 0;
    border-right: 1px solid #ece7dc;
    border-left: 1px solid #ece7dc;

    color: var(--text);

    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.qty input:focus {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.buy-add {
    flex: 1 1 auto;

    min-height: 40px;
    padding: 0 12px;

    font-size: 14px;
    white-space: nowrap;
}

.buy-add svg {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.buy-add-done {
    display: none;
}

.buy-add.is-added {
    background: #1d6b3a;
    border-color: #1d6b3a;
    color: #ffffff;
}

.buy-add.is-added .buy-add-text {
    display: none;
}

.buy-add.is-added .buy-add-done {
    display: inline;
}

.buy-out {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;

    min-height: 40px;

    background: #f4f1ea;
    border-radius: 8px;

    color: var(--text-muted);

    font-size: 13.5px;
    font-weight: 600;
}

/* Product page: bigger */
.buy-box-large {
    margin-top: 24px;
    max-width: 460px;
}

.buy-box-large .qty {
    height: 48px;
}

.buy-box-large .qty button {
    width: 44px;
}

.buy-box-large .qty input {
    width: 60px;
    font-size: 16px;
}

.buy-box-large .buy-add {
    min-height: 48px;
    font-size: 15.5px;
}

.buy-ready {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 12px 0 0;

    color: var(--brown-muted);

    font-size: 14px;
    font-weight: 600;
}

.buy-ready i {
    color: var(--gold);
}

.product-info .product-actions {
    margin-top: 14px;
}


/* ==========================================================
   CART PANEL (slides in from the right)
   ========================================================== */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;

    background: rgba(20, 14, 2, 0.45);

    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-overlay.is-open {
    opacity: 1;
}

.cart-overlay[hidden] {
    display: none;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1201;

    display: flex;
    flex-direction: column;

    width: min(440px, 100%);

    background: var(--bg);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);

    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
}

.cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s ease, visibility 0s;
}

body.cart-open {
    overflow: hidden;
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 0 18px;
    min-height: 64px;

    background: #2c1f02;

    color: #ffffff;
}

.cart-head h2 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
}

.cart-head h2 span {
    color: var(--gold);
}

.cart-close {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    background: none;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;

    color: #ffffff;

    cursor: pointer;
}

.cart-close svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.cart-close:hover,
.cart-close:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brown-dark);
}

.cart-body {
    flex: 1;

    padding: 6px 18px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.cart-lines {
    margin: 0;
    padding: 0;

    list-style: none;
}

.cart-line {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid var(--line);
}

.cart-line.is-blocked .cart-line-image,
.cart-line.is-blocked .cart-line-name {
    opacity: 0.5;
}

.cart-line-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;
    padding: 4px;

    background: var(--white);
    border: 1px solid var(--line);
}

.cart-line-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.cart-line-info {
    display: flex;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.cart-line-name {
    color: var(--text);

    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.cart-line-name:hover {
    color: var(--gold-dark);
}

.cart-line-unit,
.cart-line-tbc {
    color: var(--text-muted);

    font-size: 13px;
}

.cart-line-warn {
    color: #b3261e;

    font-size: 13px;
    font-weight: 600;
}

.cart-line-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-top: 6px;
}

.qty-small {
    height: 34px;
}

.qty-small button {
    width: 30px;
    font-size: 16px;
}

.qty-small input {
    width: 46px;
    font-size: 14px;
}

.cart-line-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px 6px;

    font-size: 14.5px;
}

.cart-line-total strong {
    color: var(--brown);
}

.cart-line-total s {
    color: var(--text-muted);
    font-size: 12.5px;
}

.cart-line-total em {
    padding: 1px 6px;

    background: #fff4d6;

    color: #8a6200;

    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.cart-line-remove {
    align-self: start;

    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    background: none;
    border: 0;
    border-radius: 50%;

    color: var(--text-muted);

    cursor: pointer;
}

.cart-line-remove svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-line-remove:hover,
.cart-line-remove:focus-visible {
    background: #fbe9e7;
    color: #b3261e;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    padding: 60px 10px;

    color: var(--text-soft);

    text-align: center;
}

.cart-empty p {
    margin: 0;
}

.cart-empty-icon {
    display: grid;
    place-items: center;

    width: 72px;
    height: 72px;

    background: #f1ece1;
    border-radius: 50%;

    color: var(--brown);
}

.cart-empty-icon svg {
    width: 32px;
    height: 32px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-foot {
    padding: 14px 18px 18px;

    background: var(--white);
    border-top: 1px solid var(--line);
}

.cart-foot:empty {
    display: none;
}

.cart-totals {
    margin: 0 0 10px;
}

.cart-totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    padding: 3px 0;

    font-size: 14.5px;
}

.cart-totals dt {
    color: var(--text-soft);
}

.cart-totals dd {
    margin: 0;

    text-align: right;
}

.cart-discount dd {
    color: #1d6b3a;
    font-weight: 700;
}

.cart-total {
    margin-top: 4px;
    padding-top: 8px !important;

    border-top: 1px dashed var(--line);
}

.cart-total dt {
    color: var(--text) !important;
    font-weight: 700;
}

.cart-total dd {
    color: var(--brown);

    font-size: 19px;
    font-weight: 800;
}

.cart-total small {
    display: block;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;
}

.cart-note {
    margin: 0 0 6px;

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.45;
}

.cart-ready {
    color: var(--brown-muted);
    font-weight: 600;
}

.cart-warn {
    color: #b3261e;
    font-weight: 600;
}

.cart-checkout {
    width: 100%;
    margin-top: 8px;
}

.cart-checkout.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cart-continue {
    display: block;

    width: 100%;
    margin-top: 6px;
    padding: 10px;

    background: none;
    border: 0;

    color: var(--brown);

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.cart-continue:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}


/* ==========================================================
   "ADDED TO CART" MESSAGE
   ========================================================== */

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1300;

    display: flex;
    align-items: center;
    gap: 14px;

    max-width: calc(100% - 32px);
    padding: 12px 14px 12px 18px;

    background: #2c1f02;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    color: #ffffff;

    font-size: 14px;

    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.is-shown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cart-toast button {
    flex: 0 0 auto;

    padding: 7px 12px;

    background: var(--gold);
    border: 0;
    border-radius: 6px;

    color: #2c1f02;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


/* ==========================================================
   PHONES
   ========================================================== */

@media (max-width: 768px) {

    .store-actions {
        gap: 10px;
    }

    .store-cart-label {
        display: none;
    }

    .store-cart-icon {
        width: 36px;
        height: 36px;
    }

    /* Cards: − 1 + on one row, Add to cart below */
    .product-card .buy-box {
        flex-wrap: wrap;
        gap: 6px;

        padding: 0 10px 10px;
    }

    .product-card .qty {
        width: 100%;
        height: 36px;
    }

    .product-card .qty button {
        flex: 0 0 36px;
        width: 36px;
    }

    .product-card .qty input {
        flex: 1;
        width: auto;
    }

    .product-card .buy-add {
        width: 100%;
        min-height: 38px;

        font-size: 13.5px;
    }

    .buy-box-large {
        max-width: none;
    }

    .cart-line {
        grid-template-columns: 60px 1fr auto;
        gap: 10px;
    }

    .cart-line-image {
        width: 60px;
        height: 60px;
    }

    .cart-toast {
        bottom: 16px;

        width: calc(100% - 32px);
    }
}


/* ==========================================================
   CHECKOUT PAGE (/shop/checkout/)
   ========================================================== */

.checkout-page {
    padding: 22px 0 64px;
}

.checkout-title {
    margin: 10px 0 20px;

    color: var(--brown);

    font-size: clamp(26px, 3vw, 34px);
}

.checkout-loading {
    padding: 40px 0;

    color: var(--text-muted);
}

.checkout-empty {
    max-width: 560px;
    padding: 36px 28px;

    background: var(--white);
    border: 1px solid var(--line);
}

.checkout-empty h2 {
    margin-top: 0;
    color: var(--brown);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 28px;
}

.checkout-layout[hidden] {
    display: none;
}

.checkout-steps {
    min-width: 0;
}

.checkout-locked {
    min-width: 0;
    margin: 0;
    padding: 0;

    border: 0;
}

.checkout-locked:disabled .checkout-step {
    opacity: 0.55;
}

.checkout-step {
    margin-bottom: 16px;
    padding: 22px 24px;

    background: var(--white);
    border: 1px solid var(--line);
}

.checkout-step h2 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 16px;

    color: var(--brown);

    font-size: 19px;
}

.step-number {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    background: var(--brown);
    border-radius: 50%;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.checkout-step.is-done .step-number {
    background: #1d6b3a;
}

.checkout-step p {
    margin: 0 0 12px;
    color: var(--text-soft);
}

.checkout-signed-in {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 !important;
}

.checkout-signed-in i {
    color: #1d6b3a;
}

.checkout-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Delivery and payment choices: cards with a radio button */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.delivery-option {
    position: relative;

    display: block;

    cursor: pointer;
}

.delivery-option input {
    position: absolute;
    top: 16px;
    left: 14px;

    width: 18px;
    height: 18px;
    margin: 0;

    accent-color: var(--brown);
}

.delivery-card {
    display: flex;
    flex-direction: column;
    gap: 4px;

    height: 100%;
    padding: 13px 14px 13px 42px;

    background: var(--white);
    border: 1.5px solid #ddd6c8;
    border-radius: 8px;

    transition: border-color 0.15s ease, background 0.15s ease;
}

.delivery-card strong {
    color: var(--text);

    font-size: 15px;
}

.delivery-card strong i {
    margin-right: 4px;
    color: var(--gold-dark);
}

.delivery-card small {
    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.45;
}

.delivery-option:hover .delivery-card {
    border-color: var(--gold);
}

.delivery-option input:checked + .delivery-card {
    background: #fffaf0;
    border-color: var(--brown);
    box-shadow: inset 0 0 0 1px var(--brown);
}

.delivery-option input:focus-visible + .delivery-card {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.delivery-group-title {
    margin: 18px 0 8px !important;

    color: var(--text) !important;

    font-size: 14.5px;
    font-weight: 700;
}

.delivery-group-title span {
    color: var(--text-muted);
    font-weight: 500;
}

.destination {
    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px dashed var(--line);
}

.destination[hidden] {
    display: none;
}

.checkout-hint {
    color: var(--text-muted) !important;
}

.pay-box {
    margin-bottom: 14px;
    padding: 12px 14px;

    background: #faf7f0;
    border-left: 3px solid var(--gold);
}

.pay-box p {
    margin: 0 !important;
}

.pay-options {
    margin-bottom: 14px;
}

.checkout-note {
    margin-top: 6px;
}

.checkout-error {
    margin: 0 0 14px;
    padding: 12px 14px;

    background: #fdecea;
    border-left: 3px solid #b3261e;

    color: #8c1d18;

    font-weight: 600;
}

.checkout-submit {
    width: 100%;
    min-height: 52px;

    font-size: 16.5px;
}

.checkout-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-whatsapp-solid,
.checkout-submit.btn-whatsapp-solid {
    background: #1f8f4e;
    border-color: #1f8f4e;
    color: #ffffff;
}

.btn-whatsapp-solid:hover,
.btn-whatsapp-solid:focus-visible {
    background: #17733e;
    border-color: #17733e;
    color: #ffffff;
}

.checkout-small {
    margin: 10px 0 0;

    color: var(--text-muted);

    font-size: 13px;
    text-align: center;
}

/* Order summary */
.checkout-summary {
    position: sticky;
    top: 100px;
}

.checkout-summary-inner {
    padding: 20px 22px;

    background: var(--white);
    border: 1px solid var(--line);
}

.checkout-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.checkout-summary h2 {
    margin: 0;

    color: var(--brown);

    font-size: 18px;
}

.checkout-edit {
    padding: 0;

    background: none;
    border: 0;

    color: var(--gold-dark);

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.checkout-edit:hover {
    text-decoration: underline;
}

.summary-lines {
    margin: 0 0 12px;
    padding: 0;

    list-style: none;
}

.summary-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;

    padding: 9px 0;

    border-bottom: 1px solid var(--line);

    font-size: 14px;
}

.summary-qty {
    color: var(--text-muted);
    font-weight: 600;
}

.summary-name em {
    display: inline-block;

    margin-left: 4px;

    font-style: normal;
}

.summary-off {
    padding: 0 5px;

    background: #fff4d6;

    color: #8a6200;

    font-size: 12px;
    font-weight: 700;
}

.summary-price {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.summary-line.is-blocked .summary-name {
    opacity: 0.6;
}

/* Done */
.checkout-done {
    padding-top: 10px;
}

.done-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 34px 32px;

    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid #1d6b3a;
}

.done-icon {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;
    margin-bottom: 14px;

    background: #e7f4ec;
    border-radius: 50%;

    color: #1d6b3a;

    font-size: 24px;
}

.done-card h1 {
    margin: 0 0 6px;

    color: var(--brown);

    font-size: clamp(24px, 3vw, 30px);
}

.done-number {
    margin: 0 0 18px;

    font-size: 17px;
}

.done-number strong {
    color: var(--gold-dark);
}

.done-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin: 0 0 18px;
}

.done-facts div {
    padding: 12px 14px;

    background: #faf7f0;
}

.done-facts dt {
    color: var(--text-muted);

    font-size: 13px;
}

.done-facts dd {
    margin: 2px 0 0;

    color: var(--brown);

    font-size: 17px;
    font-weight: 700;
}

.done-facts small {
    color: #1d6b3a;

    font-size: 13px;
}

.done-next {
    margin-bottom: 14px;
    padding: 16px 18px;

    border: 1px solid var(--line);
}

.done-next p {
    margin: 0 0 12px;
}

.done-pay {
    margin: 0 0 10px;
    padding-left: 18px;
}

.done-pay li + li {
    margin-top: 4px;
}

.done-buttons {
    margin-top: 18px;
}


@media (max-width: 1024px) {

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

    /* Summary first on tablets and phones */
    .checkout-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {

    .checkout-step {
        padding: 18px 16px;
    }

    .delivery-options,
    .delivery-couriers {
        grid-template-columns: 1fr;
    }

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

    .done-card {
        padding: 26px 18px;
    }

    .done-facts {
        grid-template-columns: 1fr;
    }
}


/* Hidden parts stay hidden, whatever their layout */
.checkout-page [hidden],
.cart-drawer [hidden] {
    display: none !important;
}

/* The floating WhatsApp button stays out of the cart's way */
body.cart-open .hba-floating-whatsapp {
    display: none;
}


/* ==========================================================
   REQUEST QUOTATION BUTTON (shop toolbar, beside search)
   ========================================================== */

.quote-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;

    height: 46px;
    padding: 0 18px;

    background: var(--gold);
    border: 1px solid var(--gold);

    color: var(--brown-dark);

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quote-button i {
    font-size: 16px;
}

.quote-button:hover,
.quote-button:focus-visible {
    background: var(--brown);
    border-color: var(--brown);
    color: #ffffff;
}

.quote-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.quote-button-short {
    display: none;
}

/* Search and the button share the search's place */
.shop-find {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.shop-find .shop-search {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
}

/* Cart panel link */
.cart-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 8px;
    padding: 10px;

    border: 1px dashed #d4ccbb;
    border-radius: 8px;

    color: var(--brown);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.cart-quote:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.product-actions .btn i {
    margin-right: 2px;
}


/* ==========================================================
   QUOTATION PAGE (/shop/quote/)
   ========================================================== */

.quote-page {
    padding: 22px 0 64px;
}

.quote-page [hidden] {
    display: none !important;
}

.quote-intro {
    max-width: 760px;
    margin: 10px 0 22px;
}

.quote-intro h1 {
    margin: 0 0 6px;

    color: var(--brown);

    font-size: clamp(26px, 3vw, 34px);
}

.quote-intro p {
    margin: 0;

    color: var(--text-soft);
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
    gap: 28px;
}

.quote-picker,
.quote-panel {
    min-width: 0;
}

.quote-picker,
.quote-panel-inner {
    background: var(--white);
    border: 1px solid var(--line);
}

.quote-picker-head {
    position: sticky;
    top: 84px;
    z-index: 5;

    padding: 18px 20px 14px;

    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.quote-picker h2,
.quote-panel h2 {
    margin: 0 0 12px;

    color: var(--brown);

    font-size: 19px;
}

.quote-search {
    display: block;
}

.quote-search input {
    width: 100%;
    height: 44px;

    background: var(--white);
    border: 1px solid #dcd6c8;

    font: inherit;
    font-size: 15px;
}

.quote-search input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 155, 0, 0.18);
}

.quote-chips {
    display: flex;
    gap: 8px;

    margin-top: 12px;
    padding-bottom: 2px;

    overflow-x: auto;
    scrollbar-width: thin;
}

.quote-chip {
    flex: 0 0 auto;

    min-height: 34px;
    padding: 0 14px;

    background: var(--white);
    border: 1px solid #d6d0c2;
    border-radius: 999px;

    color: var(--text-soft);

    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;

    cursor: pointer;
}

.quote-chip:hover {
    border-color: var(--brown);
    color: var(--brown);
}

.quote-chip.is-active {
    background: var(--brown);
    border-color: var(--brown);
    color: #ffffff;
}

.quote-products {
    margin: 0;
    padding: 0 20px;

    list-style: none;
}

.quote-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;

    padding: 12px 0;

    border-bottom: 1px solid var(--line);
}

.quote-product:last-child {
    border-bottom: 0;
}

.quote-product-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    padding: 4px;

    border: 1px solid var(--line);
}

.quote-product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.quote-product-info {
    display: grid;
    gap: 3px;

    min-width: 0;
}

.quote-product-name {
    color: var(--text);

    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.quote-product-name:hover {
    color: var(--gold-dark);
}

.quote-product-price {
    color: var(--brown);

    font-size: 14px;
    font-weight: 700;
}

.quote-product .buy-box {
    width: 250px;
}

.quote-none {
    padding: 24px 20px;

    color: var(--text-muted);
}

/* The quotation */
.quote-panel {
    position: sticky;
    top: 100px;
}

.quote-panel-inner {
    padding: 20px 22px;
}

.quote-lines {
    margin: 0 0 10px;
    padding: 0;

    list-style: none;
}

.quote-line {
    padding: 10px 0;

    border-bottom: 1px solid var(--line);
}

.quote-line.is-blocked .quote-line-name {
    opacity: 0.55;
}

.quote-line-top,
.quote-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quote-line-bottom {
    margin-top: 6px;
}

.quote-line-name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
}

.quote-line-remove {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 28px;
    height: 28px;

    background: none;
    border: 0;
    border-radius: 50%;

    color: var(--text-muted);

    cursor: pointer;
}

.quote-line-remove svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.quote-line-remove:hover {
    background: #fbe9e7;
    color: #b3261e;
}

.quote-line-total {
    font-size: 14px;
    text-align: right;
}

.quote-line-total strong {
    color: var(--brown);
}

.quote-line-total s {
    color: var(--text-muted);
    font-size: 12.5px;
}

.quote-line-total em {
    color: var(--text-muted);
    font-size: 13px;
}

.quote-empty {
    margin: 0 0 12px;
    padding: 18px 14px;

    background: #faf7f0;

    color: var(--text-soft);

    font-size: 14px;
    text-align: center;
}

.quote-form {
    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px dashed var(--line);
}

.quote-form h3 {
    margin: 0 0 10px;

    color: var(--brown);

    font-size: 16px;
}

.quote-form .form-field {
    margin-bottom: 12px;
}

.quote-submit {
    width: 100%;
    min-height: 50px;
    margin-bottom: 8px;

    font-size: 16px;
}

.quote-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ready */
.quote-done-head {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 16px;
}

.quote-done-head .done-icon {
    flex: 0 0 auto;

    margin: 0;

    background: #fdf2dc;

    color: var(--gold-dark);
}

.quote-done-head h2 {
    margin: 0 0 2px;
}

.quote-done-head p {
    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
}

.quote-actions {
    display: grid;
    gap: 8px;

    margin-bottom: 12px;
}

.quote-actions .btn {
    width: 100%;
}

.quote-actions-next {
    margin-top: 6px;
    padding-top: 12px;

    border-top: 1px dashed var(--line);
}

.quote-link {
    padding: 8px;

    background: none;
    border: 0;

    color: var(--brown);

    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;

    cursor: pointer;
}


@media (max-width: 1024px) {

    .quote-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-panel {
        position: static;
    }
}

@media (max-width: 768px) {

    /* Toolbar: categories + sort, then search + quotation */
    .shop-find {
        order: 3;
        flex: 1 1 100%;
        gap: 8px;
    }

    .quote-button {

        height: 44px;
        padding: 0 14px;

        font-size: 14px;
    }

    .quote-button-long {
        display: none;
    }

    .quote-button-short {
        display: inline;
    }

    .quote-picker-head {
        top: 66px;
        padding: 14px;
    }

    .quote-products {
        padding: 0 14px;
    }

    .quote-product {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 4px 12px;
    }

    .quote-product-image {
        grid-row: span 2;

        width: 56px;
        height: 56px;
    }

    .quote-product .buy-box {
        width: auto;
        grid-column: 2;
    }

    .quote-panel-inner {
        padding: 18px 16px;
    }
}

/* Phones: "Get quotation" bar at the bottom of the product list */
.quote-jump {
    display: none;
}

@media (max-width: 1024px) {

    .quote-jump {
        position: sticky;
        bottom: 12px;
        z-index: 20;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        width: calc(100% - 28px);
        margin: 16px auto 0;
        padding: 13px 16px;

        background: var(--brown-dark);
        border-radius: 10px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);

        color: #ffffff;

        font-size: 14.5px;
        font-weight: 600;
        text-decoration: none;
    }

    .quote-jump strong {
        color: var(--gold);
    }

    .quote-jump > span:last-child {
        color: var(--gold);
    }

    .quote-page .quote-jump[hidden] {
        display: none !important;
    }
}

/* Tablets: the shorter "Quotation" label leaves room to search */
@media (max-width: 1180px) {

    .quote-button-long {
        display: none;
    }

    .quote-button-short {
        display: inline;
    }
}

/* Payment steps after an order */
ol.done-pay {
    margin: 0 0 12px;
    padding-left: 20px;
}

ol.done-pay li {
    padding: 2px 0;
}

.pay-copy {
    padding: 1px 7px;

    background: #fff4d6;

    color: var(--brown-dark);

    font-size: 1.05em;
    letter-spacing: 0.03em;
    user-select: all;
}

.done-next .btn + .cart-note {
    margin-top: 10px;
}
