:root {
    --quote-navy: #123f55;
    --quote-blue: #0b6f9f;
    --quote-green: #138a62;
    --quote-line: #d5e1e7;
    --quote-soft: #f2f7f9;
}

[hidden] { display: none !important; }
body.quote-open { overflow: hidden; }

.quote-drawer {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 1001 !important;
    width: min(560px, 100%) !important;
    height: 100dvh !important;
    padding: 0 26px 32px !important;
    overflow: auto !important;
    display: block !important;
    background: #fff !important;
    color: #15364e !important;
    box-shadow: -24px 0 70px rgba(10, 45, 64, .24) !important;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(105%, 0, 0) !important;
    transition: transform .34s cubic-bezier(.22, .75, .2, 1), opacity .2s ease, visibility .34s !important;
}

.quote-drawer.open {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) !important;
}

.drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: block !important;
    border: 0 !important;
    background: rgba(7, 34, 49, .5) !important;
    backdrop-filter: blur(3px) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s !important;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quote-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 96px;
    margin: 0 -26px 16px;
    padding: 24px 68px 18px 26px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--quote-line);
    backdrop-filter: blur(12px);
}

.quote-drawer-head h2 { margin: 2px 0 0; font-size: clamp(25px, 4vw, 33px); line-height: 1.05; }
.quote-kicker { margin: 0; color: var(--quote-green); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.drawer-close {
    position: absolute !important;
    top: 23px !important;
    right: 22px !important;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--quote-line) !important;
    border-radius: 50%;
    background: #fff !important;
    color: var(--quote-navy) !important;
    font-size: 29px !important;
    line-height: 1;
    cursor: pointer;
}
.drawer-close:hover { background: var(--quote-soft) !important; }
.quote-help { margin: 0 0 18px; color: #5d7380; font-size: 14px; line-height: 1.55; }

.cart-items { display: grid; gap: 11px; margin: 0 0 22px; }
.cart-row {
    position: relative;
    min-width: 0;
    padding: 13px;
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) auto 42px !important;
    gap: 12px !important;
    align-items: center !important;
    background: #fff;
    border: 1px solid var(--quote-line) !important;
    border-radius: 12px !important;
}
.cart-row-image { width: 62px; height: 62px; object-fit: contain; background: #fff; border: 1px solid #edf2f4; border-radius: 8px; }
.cart-row-image-placeholder { width: 62px; height: 62px; display: grid; place-items: center; background: var(--quote-soft); border-radius: 8px; color: var(--quote-blue); font-size: 25px; }
.cart-row-copy { min-width: 0; }
.cart-row-copy strong { display: block; overflow: hidden; color: var(--quote-navy); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; }
.cart-row-copy small { display: block; margin-top: 4px; color: #738893; font-size: 10px; }
.cart-row-copy a:hover strong { color: var(--quote-blue); }
.quantity-stepper {
    display: grid;
    grid-template-columns: 46px 48px 46px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #b8cbd5;
    border-radius: 10px;
    background: #fff;
}
.quantity-stepper button {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 0 !important;
    background: var(--quote-soft) !important;
    color: var(--quote-blue) !important;
    font-size: 27px !important;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.quantity-stepper button:hover { background: #deedf3 !important; }
.quantity-stepper input {
    width: 48px !important;
    height: 46px;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid #d5e1e7 !important;
    border-left: 1px solid #d5e1e7 !important;
    border-radius: 0 !important;
    color: var(--quote-navy);
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    appearance: textfield;
}
.quantity-stepper input::-webkit-inner-spin-button { appearance: none; }
.cart-remove {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 0 !important;
    border-radius: 50%;
    background: #fff2f2 !important;
    color: #a83b3b !important;
    font-size: 24px !important;
    cursor: pointer;
}
.cart-empty { padding: 34px 20px; display: grid; justify-items: center; gap: 7px; background: var(--quote-soft); border: 1px dashed #b9cbd4; border-radius: 12px; text-align: center; }
.cart-empty span { font-size: 38px; }
.cart-empty strong { color: var(--quote-navy); }
.cart-empty small { color: #6c818d; }

.quote-request-form { display: grid; gap: 15px; }
.quote-request-form > label,
.express-grid label { display: grid; gap: 7px; color: var(--quote-navy); font-size: 12px; font-weight: 800; }
.quote-request-form input,
.quote-request-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b9cbd4;
    border-radius: 8px;
    background: #fff;
    color: var(--quote-navy);
    outline: 0;
}
.quote-request-form textarea { resize: vertical; }
.quote-request-form input:focus,
.quote-request-form textarea:focus { border-color: var(--quote-blue); box-shadow: 0 0 0 3px rgba(11, 111, 159, .11); }
.quote-account { padding: 13px 15px; display: grid; gap: 3px; background: #eaf5f1; border: 1px solid #cae5db; border-radius: 10px; }
.quote-account small { color: #56756a; }
.express-registration { padding: 18px; display: grid; gap: 16px; background: var(--quote-soft); border: 1px solid var(--quote-line); border-radius: 12px; }
.express-registration h3 { margin: 4px 0 0; color: var(--quote-navy); font-size: 20px; line-height: 1.25; }
.express-registration > div > p:last-child { margin: 7px 0 0; color: #647b87; font-size: 13px; line-height: 1.45; }
.express-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.express-login { margin: 0; color: #647b87; font-size: 13px; }
.express-login a,
.quote-account-link { color: var(--quote-blue); font-weight: 900; }
.quote-submit { width: 100%; min-height: 52px !important; }
[data-quote-message] { min-height: 20px; margin: 0; color: var(--quote-green); font-size: 13px; font-weight: 800; line-height: 1.45; }

.quote-floating-controls { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
.quote-fab {
    min-width: 225px;
    min-height: 68px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 44px 1fr 28px;
    align-items: center;
    gap: 10px;
    border: 2px solid #fff;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--quote-blue), #07577f);
    box-shadow: 0 18px 42px rgba(11, 82, 116, .34);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.quote-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(11, 82, 116, .4); }
.quote-fab-icon { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.14); border-radius: 13px; }
.quote-fab-icon svg { width: 27px; height: 27px; fill: currentColor; }
.quote-fab-copy { display: grid; gap: 3px; }
.quote-fab-copy strong { font-size: 14px; }
.quote-fab-copy small { opacity: .86; font-size: 11px; }
.quote-fab-badge { width: 28px; height: 28px; display: grid; place-items: center; background: #fff; border-radius: 50%; color: var(--quote-blue); font-size: 12px; font-weight: 900; }
.quote-fab.is-pulsing { animation: quoteBagPulse .65s cubic-bezier(.2,.8,.2,1); }

.quote-whatsapp-fallback {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #17975b;
    box-shadow: 0 16px 40px rgba(18, 139, 83, .32);
    transition: transform .18s ease;
}
.quote-whatsapp-fallback:hover { transform: translateY(-3px) scale(1.03); }
.quote-whatsapp-fallback img { width: 33px; height: 33px; }
.quote-whatsapp-fallback span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.quote-toast {
    position: fixed;
    right: 22px;
    bottom: 104px;
    z-index: 1100;
    width: min(360px, calc(100% - 28px));
    padding: 13px 16px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 11px;
    align-items: center;
    background: #fff;
    border: 1px solid #b9ddd0;
    border-radius: 13px;
    box-shadow: 0 18px 50px rgba(8, 54, 42, .2);
    color: var(--quote-navy);
    animation: quoteToastIn .3s cubic-bezier(.2,.8,.2,1);
}
.quote-toast > span { width: 36px; height: 36px; display: grid; place-items: center; background: #dff4eb; border-radius: 50%; color: var(--quote-green); font-size: 20px; font-weight: 900; }
.quote-toast p { margin: 0; display: grid; gap: 3px; }
.quote-toast strong { font-size: 13px; }
.quote-toast small { overflow: hidden; color: #647b87; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quote-flyer { position: fixed; z-index: 1200; pointer-events: none; object-fit: contain; background: #fff; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 14px 35px rgba(7, 55, 78, .24); }
[data-add-product].is-added { background: var(--quote-green) !important; border-color: var(--quote-green) !important; color: #fff !important; }

.product-image[href],
.product-title-link { color: inherit; }
.product-image[href]:focus-visible,
.product-title-link:focus-visible { outline: 3px solid rgba(11,111,159,.25); outline-offset: 2px; }
.product-title-link:hover { color: var(--quote-blue); }

.featured-card { display: flex; flex-direction: column; }
.featured-card-link { display: flex; flex: 1; flex-direction: column; }
.featured-card-link > span { padding: 17px; display: grid; gap: 7px; }
.featured-card-link > span strong { flex: 1; }
.featured-card-actions { padding: 0 14px 14px; }
.featured-card-actions .button { width: 100%; min-height: 44px; padding: 8px 10px; font-size: 12px; }

.product-detail-shell { max-width: 1180px; }
.product-breadcrumbs { margin-bottom: 24px; display: flex; align-items: center; gap: 8px; color: #657b87; font-size: 13px; }
.product-breadcrumbs a { color: var(--quote-blue); font-weight: 800; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.product-gallery { min-width: 0; }
.product-gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--quote-line); border-radius: 18px; box-shadow: 0 15px 45px rgba(15, 64, 86, .07); }
.product-gallery-main img { width: 100%; height: 100%; padding: clamp(18px, 4vw, 42px); object-fit: contain; }
.product-gallery-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 82px)); gap: 10px; }
.product-gallery-thumb { aspect-ratio: 1; padding: 5px; overflow: hidden; background: #fff; border: 2px solid var(--quote-line); border-radius: 10px; cursor: pointer; }
.product-gallery-thumb.active { border-color: var(--quote-blue); box-shadow: 0 0 0 3px rgba(11,111,159,.1); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-copy { position: sticky; top: 105px; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.product-detail-meta span { padding: 6px 9px; background: var(--quote-soft); border-radius: 999px; color: var(--quote-blue); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.product-detail-copy h1 { margin: 16px 0 10px; color: var(--quote-navy); font-family: Georgia, serif; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; }
.product-presentation-detail { margin: 0 0 16px; color: #647b87; font-size: 16px; line-height: 1.5; }
.product-detail-copy .inventory-state { display: inline-flex; margin-bottom: 22px; padding: 7px 11px; background: #e9f6f0; border-radius: 999px; }
.product-description-panel { padding: 20px 0; border-top: 1px solid var(--quote-line); border-bottom: 1px solid var(--quote-line); }
.product-description-panel h2 { margin: 0 0 10px; color: var(--quote-navy); font-size: 20px; }
.product-description-panel p { margin: 0; color: #526b78; font-size: 15px; line-height: 1.7; }
.product-facts { margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.product-facts div { padding: 12px; background: var(--quote-soft); border-radius: 9px; }
.product-facts small,
.product-facts strong { display: block; }
.product-facts small { margin-bottom: 3px; color: #748995; font-size: 10px; text-transform: uppercase; }
.product-facts strong { color: var(--quote-navy); font-size: 13px; }
.product-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.product-detail-actions .button { min-height: 52px; }
.product-detail-note { margin: 13px 0 0; color: #6c818d; font-size: 12px; line-height: 1.5; }
.product-gallery-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.product-gallery-admin article { padding: 11px; display: grid; gap: 9px; border: 1px solid var(--quote-line); border-radius: 9px; background: var(--quote-soft); }
.product-gallery-admin img { width: 100%; height: 120px; object-fit: contain; background: #fff; border-radius: 6px; }
.product-gallery-admin .check { justify-content: flex-start; color: #a13b3b; }
.gallery-upload-note { color: #6b7f8a; font-size: 12px; font-weight: 500; }
.table-actions-compact { display: flex; flex-wrap: wrap; gap: 8px; }

@keyframes quoteBagPulse {
    0%, 100% { transform: scale(1); }
    42% { transform: scale(1.09) rotate(-1.5deg); }
    70% { transform: scale(.98) rotate(1deg); }
}
@keyframes quoteToastIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
    .quote-drawer { padding: 0 16px 26px !important; }
    .quote-drawer-head { margin-inline: -16px; padding: 18px 64px 15px 16px; min-height: 82px; }
    .drawer-close { top: 17px !important; right: 14px !important; }
    .cart-row { grid-template-columns: 54px minmax(0,1fr) 42px !important; }
    .cart-row-image,
    .cart-row-image-placeholder { width: 54px; height: 54px; }
    .quantity-stepper { grid-column: 2 / 4; justify-self: start; }
    .cart-remove { grid-column: 3; grid-row: 1; }
    .express-grid { grid-template-columns: 1fr; }
    .quote-floating-controls { right: 14px; bottom: 74px; }
    .quote-fab { min-width: 205px; }
    .quote-toast { right: 14px; bottom: 154px; }
    .featured-card-link > span { padding: 13px; }
    .featured-card-actions { padding: 0 10px 10px; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .product-detail-copy { position: static; }
    .product-detail-actions { grid-template-columns: 1fr; }
}

@media (max-width: 410px) {
    .quote-fab { min-width: 0; width: 68px; height: 68px; grid-template-columns: 1fr; padding: 10px; border-radius: 50%; }
    .quote-fab-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .quote-fab-badge { position: absolute; top: -5px; right: -4px; }
    .quote-fab-icon { background: transparent; }
    .product-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .quote-drawer,
    .drawer-backdrop,
    .quote-fab,
    .quote-whatsapp-fallback { transition: none !important; }
    .quote-fab.is-pulsing,
    .quote-toast { animation: none !important; }
}
