/*
 * WAYA Brand Kit Typography
 * - Default: Inter (400/500/600/700)
 * - Accent/title feature: handwritten (Google Fonts) via .waya-font-hand
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Yellowtail&display=swap');

:root {
    --waya-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --waya-font-hand: "Yellowtail", cursive;
}

/* Default website storefront font */
#wrapwrap {
    font-family: var(--waya-font-sans) !important;
}

/* Form controls don't reliably inherit fonts across browsers */
#wrapwrap button,
#wrapwrap input,
#wrapwrap select,
#wrapwrap textarea {
    font-family: var(--waya-font-sans) !important;
}

/* Optional: use for the Brand Kit “Title design feature” */
#wrapwrap .waya-font-hand {
    font-family: var(--waya-font-hand) !important;
    font-weight: 400;
}

.css_attribute_color{
    width: 1.8rem;
    height: 1.8rem;
}


.css_attribute_color.active{
    border: 5px solid #000000 !important;
}



.variant_attribute .o_variant_pills{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    font-size: .875rem !important;
    line-height: 1.25rem !important;

    background-color: rgb(243 244 246 / 1) !important;
    border-radius: 9999px !important;
}

.variant_attribute .o_variant_pills.btn.active{
    background-color: #222 !important;
}


.o_variant_pills input[type="radio"]{
    -moz--webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit--webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    opacity: 0;
    position: absolute !important;
}

/* -------------------------------------------------------------------------- */
/* PDP: Out-of-stock CTA behavior */
/* -------------------------------------------------------------------------- */

/* website_sale_stock sets #o_wsale_cta_wrapper to d-none when out of stock.
   We keep it visible and instead disable the CTA and swap its label. */
#product_details #o_wsale_cta_wrapper.out_of_stock,
#product_details #o_wsale_cta_wrapper.out_of_stock.d-none {
    display: flex !important;
}

#product_details #o_wsale_cta_wrapper.waya_sold_out,
#product_details #o_wsale_cta_wrapper.waya_sold_out.d-none {
    display: flex !important;
}

#product_details #o_wsale_cta_wrapper .waya-cta-text--out {
    display: none;
}

#product_details #o_wsale_cta_wrapper.out_of_stock .waya-cta-text--in,
#product_details #o_wsale_cta_wrapper.waya_sold_out .waya-cta-text--in {
    display: none;
}

#product_details #o_wsale_cta_wrapper.out_of_stock .waya-cta-text--out,
#product_details #o_wsale_cta_wrapper.waya_sold_out .waya-cta-text--out {
    display: inline;
}

#product_details #o_wsale_cta_wrapper.out_of_stock #add_to_cart,
#product_details #o_wsale_cta_wrapper.waya_sold_out #add_to_cart {
    pointer-events: none !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* WAYA Search Bar Styling - Exact Match */
.waya-search-wrapper {
    position: relative;
    width: 100%;
}

.waya-search-wrapper .o_searchbar_form {
    position: relative;
    width: 100%;
}

.waya-search-wrapper .input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 9999px;
    background-color: rgb(243 244 246);
    border: none;
    height: 2.25rem;
}

.waya-search-wrapper .waya-search-input {
    display: flex;
    height: 2.25rem;
    width: 100%;
    border: 0 !important;
    padding: 0.5rem 3rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: rgb(243 244 246) !important;
    color: rgb(0 0 0);
    border-radius: 9999px !important;
    outline: 2px solid transparent !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
    transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.waya-search-wrapper .waya-search-input::placeholder {
    color: rgb(156 163 175);
}

.waya-search-wrapper .waya-search-input:focus {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    border-color: transparent !important;
}

.waya-search-wrapper .waya-search-input::-webkit-search-cancel-button,
.waya-search-wrapper .waya-search-input::-webkit-search-decoration,
.waya-search-wrapper .waya-search-input::-webkit-search-results-button,
.waya-search-wrapper .waya-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.waya-search-wrapper .waya-search-button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    padding: 0;
    margin: 0;
    color: rgb(107 114 128);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.waya-search-wrapper .waya-search-button:hover {
    color: rgb(55 65 81);
}

.waya-search-wrapper .waya-search-button i,
.waya-search-wrapper .waya-search-button .oi {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Checkout: keep Odoo's required JS classes without Bootstrap visuals */
/* -------------------------------------------------------------------------- */

/*
Odoo's website_sale checkout JS toggles `bg-primary`, `border`, `border-primary`
on the selected address `.card`. That breaks the Tailwind design by applying
Bootstrap's blue background/border.

We keep the classes (for JS logic) but override their *visual* effect only for
our checkout address cards.
*/
#shop_checkout [name="address_card"].card.bg-primary {
    background-color: #F9F9F9 !important;
}

#shop_checkout [name="address_card"].card.border-primary {
    border-color: rgba(93, 66, 99, 0.2) !important;
}

.waya-search-wrapper .waya-search-button::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.3-4.3'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.waya-search-wrapper .waya-search-button:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.3-4.3'%3E%3C/path%3E%3C/svg%3E");
}

/* Search autocomplete dropdown styling */
.waya-search-wrapper .o_dropdown_menu,
.waya-search-wrapper .dropdown-menu {
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgb(229 231 235);
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
    min-width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Home: Discover What's Hot gradient tabs (match mobile app) */
/* -------------------------------------------------------------------------- */

#wrapwrap .waya-whats-hot-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 29px;
    min-width: 117px;
    padding: 0 16px;
    border-radius: 20.57px;
    border: 0;
    cursor: pointer;
    user-select: none;
    font-size: 11.4px;
    font-weight: 600;
    letter-spacing: -0.18px;
    line-height: 24px;
    color: #FFFFFF;
    transition: background 250ms ease-in-out, filter 250ms ease-in-out;
    background-image: linear-gradient(90deg, #D6B98B, #CB99B3);
}

#wrapwrap .waya-whats-hot-tab[data-tab="new-arrivals"] {
    background-image: linear-gradient(90deg, #96C1C1, #9A8CBF);
}

#wrapwrap .waya-whats-hot-tab[data-tab="trending"] {
    background-image: linear-gradient(90deg, #7389BD, #97B390);
}

#wrapwrap .waya-whats-hot-tab[data-tab="best-sellers"] {
    background-image: linear-gradient(90deg, #D6B98B, #CB99B3);
}

#wrapwrap .waya-whats-hot-tab.is-active {
    background-image: none;
    background-color: #000000;
    color: #F4F4F4;
}

#wrapwrap .waya-whats-hot-tab:not(.is-active):hover {
    filter: brightness(0.98);
}

.waya-search-wrapper .o_dropdown_menu .dropdown-item,
.waya-search-wrapper .dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgb(17 24 39);
    text-decoration: none;
    border: none;
    background-color: transparent;
    width: 100%;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.waya-search-wrapper .o_dropdown_menu .dropdown-item:hover,
.waya-search-wrapper .dropdown-menu .dropdown-item:hover,
.waya-search-wrapper .o_dropdown_menu .dropdown-item:focus,
.waya-search-wrapper .dropdown-menu .dropdown-item:focus {
    background-color: rgb(249 250 251);
    color: rgb(17 24 39);
}

.waya-search-wrapper .o_dropdown_menu img,
.waya-search-wrapper .dropdown-menu img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.waya-search-wrapper .o_dropdown_menu .dropdown-item strong,
.waya-search-wrapper .dropdown-menu .dropdown-item strong {
    font-weight: 500;
    font-size: 0.875rem;
}

.waya-search-wrapper .o_dropdown_menu .dropdown-item small,
.waya-search-wrapper .dropdown-menu .dropdown-item small {
    font-size: 0.75rem;
    color: rgb(107 114 128);
}

/* WAYA Product Card Styling for Shop Page */
/* Ensure Tailwind-like utilities work properly */
.aspect-\[3\/4\] {
    aspect-ratio: 3/4;
}

.rounded-xs {
    border-radius: 0.375rem;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-muted {
    background-color: rgb(250 250 250);
}

/* WAYA Product Card Container */
.waya-product-card {
    flex-direction: column !important;
    border: none !important;
    background: transparent !important;
}

/* WAYA Product Image Wrapper - 3:4 aspect ratio */
.waya-product-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: rgb(250 250 250);
}

.waya-product-image-wrapper:hover .waya-product-img {
    transform: scale(1.05);
}

.waya-product-img {
    transition: transform 300ms ease-in-out;
    object-fit: cover !important;
}

/* Wishlist button styling */
.waya-wishlist-btn:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.waya-wishlist-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Color variant dots */
.waya-color-dot {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.waya-color-dot:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Swatch ring state used by our JS (Tailwind ring classes may or may not exist depending on bundle); ensure it's visible */
.waya-color-dot.ring-2,
.color-attr-bits.ring-2 {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Product card variant container (Crest-style positioning) */
.pav_container,
.waya-color-variants {
    pointer-events: auto;
}

/* Product information section */
.o_wsale_product_information {
    padding: 0 !important;
    margin-top: 0.75rem;
}

.waya-product-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.waya-product-title a:hover {
    color: var(--primary, #000) !important;
}

/* Product sub section (price + button) */
.o_wsale_product_sub {
    margin-top: 0.5rem;
}

.waya-product-price {
    order: 1;
}

.waya-add-to-cart-btn {
    order: 2;
    font-size: 0.875rem !important;
}

.waya-add-to-cart-btn:hover {
    background-color: rgba(240, 240, 240, 0.8) !important;
}

.waya-add-to-cart-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Override Odoo's default product grid item styles */
#o_wsale_products_grid .waya-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#o_wsale_products_grid .waya-product-card .o_wsale_product_information {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#o_wsale_products_grid .waya-product-card .o_wsale_product_sub {
    margin-top: auto;
}

/* WAYA Shopping Cart Styles */
.js_quantity.quantity.form-control {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}

.js_quantity.quantity.form-control::-webkit-inner-spin-button,
.js_quantity.quantity.form-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.js_quantity.quantity.form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

/* Remove default form control styles from quantity input */
.js_quantity.quantity.form-control.border-0 {
    background-color: transparent;
}

/* Ensure proper spacing in cart */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-md {
    max-width: 28rem;
}


.variant_attribute .attribute_name:after{
    border: none !important;
}

.variant_attribute .attribute_name {
    font-family: inherit !important;
    text-transform: capitalize !important;
}


.o_wsale_product_page_grid_column div:only-child img, #o-carousel-product .carousel-item:only-child img{
    object-fit: cover !important;
}



#o-carousel-product .carousel-inner img {
    object-fit: cover !important;
}


#o-carousel-product.o_carousel_not_single .carousel-outer .product_detail_img{
    width: 100% !important;
}

.o_carousel_product_indicators {
    display: none !important;
}


/* =====================================================================
   WAYA Quick View – trigger button
   (Tailwind classes are not available in Odoo Bootstrap theme,
   so every style is defined explicitly here)
   ===================================================================== */

/* Flutter: Container(padding: EdgeInsets.symmetric(horizontal:10, vertical:7),
              decoration: BoxDecoration(color: Color(0xFFF1F3F7), borderRadius: BorderRadius.circular(50))) */
.waya-qv-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 50px;
    padding: 7px 10px;
    background-color: #F1F3F7 !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 150ms ease;
    line-height: 1;
    vertical-align: middle;
    outline: none;
}
.waya-qv-trigger:hover,
.waya-qv-trigger:focus {
    background-color: #e1e3e8 !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none;
}
.waya-qv-trigger:active {
    background-color: #d1d3d8 !important;
}
.waya-qv-trigger svg {
    display: block;
    flex-shrink: 0;
}

/* Wrapper alignment */
.waya-product-card .o_wsale_product_btn {
    display: inline-flex;
    align-items: center;
}

/* =====================================================================
   WAYA Quick View Bottom Sheet
   Mirrors the Flutter VariantSelectorBottomSheet exactly:
   - Slides up from the bottom on mobile
   - Centred modal on desktop (≥ 768 px)
   ===================================================================== */

/* ── dialog element base ── */
dialog.waya-quickview-dialog {
    position: fixed;
    inset: 0;
    margin: auto auto 0 auto;       /* stick to bottom */
    width: 100%;
    max-width: 100%;
    max-height: 65vh;
    padding: 0;
    border: none;
    border-radius: 20px 20px 0 0;
    background: #fff;
    overflow: hidden;
    display: none;                  /* overridden by [open] */
    flex-direction: column;
    z-index: 10001;
    box-shadow: 0 -4px 32px rgba(0,0,0,.18);
}

dialog.waya-quickview-dialog[open] {
    display: flex;
    animation: wayaQvSlideUp .32s cubic-bezier(.32,.72,0,1) forwards;
}

dialog.waya-quickview-dialog.waya-qv-closing {
    animation: wayaQvSlideDown .25s cubic-bezier(.32,.72,0,1) forwards;
}

dialog.waya-quickview-dialog::backdrop {
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(1px);
}

@keyframes wayaQvSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes wayaQvSlideDown {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

/* Desktop: centred modal */
@media (min-width: 768px) {
    dialog.waya-quickview-dialog {
        left: 50%;
        right: auto;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        max-width: 520px;
        max-height: 80vh;
        border-radius: 20px;
        margin: 0;
    }
    dialog.waya-quickview-dialog[open] {
        animation: wayaQvFadeIn .2s ease forwards;
    }
    dialog.waya-quickview-dialog.waya-qv-closing {
        animation: wayaQvFadeOut .18s ease forwards;
    }
    @keyframes wayaQvFadeIn {
        from { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
        to   { opacity: 1; transform: translate(-50%, -50%) scale(1);   }
    }
    @keyframes wayaQvFadeOut {
        from { opacity: 1; transform: translate(-50%, -50%) scale(1);   }
        to   { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
    }
}

/* ── drag handle ── */
.waya-qv-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 6px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}
.waya-qv-handle-pill {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

/* ── scrollable body ── */
.waya-qv-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ── image gallery (horizontal scroll, 110 px cards – mirrors Flutter) ── */
.waya-qv-images {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.waya-qv-images::-webkit-scrollbar { display: none; }
.waya-qv-img-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 140px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.waya-qv-img-wrap img.waya-qv-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}

/* ── info body ── */
.waya-qv-body {
    padding: 0 20px 20px;
}
.waya-qv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.waya-qv-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}
.waya-qv-link {
    font-size: 12px;
    font-weight: 500;
    color: #2563EB;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.waya-qv-link:hover { text-decoration: underline; }
.waya-qv-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px;
}

/* ── section labels ── */
.waya-qv-section-label {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin: 0 0 10px;
}
.waya-qv-section-label strong {
    font-weight: 600;
    color: #000;
}

/* ── colour circles (24 px – mirrors Flutter 24 px circles) ── */
.waya-qv-colors-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.waya-qv-color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    padding: 0;
    background: none;
    outline: none;
    transition: border-color .12s;
}
.waya-qv-color-btn.waya-qv-color-selected {
    border-color: #000;
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* ── size pills (mirrors Flutter pill buttons) ── */
.waya-qv-sizes-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.waya-qv-size-btn {
    padding: 10px 22px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: #f3f4f6;
    color: #000;
    transition: background .15s, color .15s;
    line-height: 1;
}
.waya-qv-size-btn.waya-qv-size-selected {
    background: #000;
    color: #fff;
}
.waya-qv-size-btn:disabled {
    color: #d1d5db;
    cursor: default;
    opacity: .7;
}

/* ── stock status ── */
.waya-qv-stock-status {
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}

/* ── fixed footer (wishlist + add-to-basket) ── */
.waya-qv-footer {
    background: #fff;
    padding: 14px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,.06);
    flex-shrink: 0;
}
.waya-qv-footer-inner {
    display: flex;
    gap: 12px;
    align-items: center;
}
.waya-qv-wish-btn {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    color: #000;
    transition: background .15s;
    padding: 0;
}
.waya-qv-wish-btn:hover { background: #e5e7eb; }
.waya-qv-wish-btn.o_is_in_wishlist svg { stroke: #e22b68; fill: #e22b68; }

.waya-qv-cart-form {
    flex: 1;
    margin: 0;
    padding: 0;
}
.waya-qv-add-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    white-space: nowrap;
    transition: background .15s;
}
.waya-qv-add-btn:hover { background: #222; }
.waya-qv-add-btn:disabled { background: #9ca3af; cursor: default; }
.waya-qv-price-badge {
    font-size: 13px;
    font-weight: 600;
    opacity: .75;
}





/* ════════════════════════════════════════════════════════════════
   WAYA Categories Page — mirrors Flutter CategoriesPage layout
   ════════════════════════════════════════════════════════════════ */

/* ── Page container — centres + constrains width on desktop ── */
.waya-cats-page-wrap {
    width: 100%;
}

/* ── Chip container — horizontal scroll on mobile ── */
.waya-cat-chips-section {
    padding-top: 16px;
    padding-bottom: 8px;
}

.waya-cat-chips-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.waya-cat-chips-wrap::-webkit-scrollbar { display: none; }

.waya-cat-chips-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
}

/* ── Individual chip ── */
.waya-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    width: 76px;
    color: inherit;
}

/* Circle — 74×74, matches Flutter Container(shape:BoxShape.circle) */
.waya-cat-chip-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, box-shadow .2s;
}
.waya-cat-chip:hover .waya-cat-chip-circle {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.07);
}

.waya-cat-chip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.waya-cat-chip-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Label — 11px 600-weight centred, 2-line clamp */
.waya-cat-chip-label {
    font-size: 11px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    max-width: 76px;
}

/* ── "Shop All" heading ── */
.waya-shop-all-heading {
    padding: 20px 16px 12px;
}
.waya-shop-all-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 0;
}
.waya-shop-all-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* ── Products grid — 2 columns mobile ── */
.waya-products-grid-section {
    padding: 0 16px 32px;
}
.waya-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Empty state */
.waya-products-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
}
.waya-products-empty-icon {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}
.waya-products-empty-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   DESKTOP overrides (≥ 768 px)
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

    /* Page container: constrains + centres */
    .waya-cats-page-wrap {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Chips: switch from horizontal scroll to wrapping row */
    .waya-cat-chips-wrap {
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 12px 0;
        row-gap: 20px;
        column-gap: 16px;
    }

    /* Larger chips on desktop */
    .waya-cat-chip {
        width: 100px;
    }
    .waya-cat-chip-circle {
        width: 96px;
        height: 96px;
    }
    .waya-cat-chip-label {
        font-size: 12px;
        max-width: 100px;
    }

    /* Heading: no extra x-padding (container handles it) */
    .waya-shop-all-heading {
        padding-left: 0;
        padding-right: 0;
    }
    .waya-shop-all-title {
        font-size: 24px;
    }

    /* Grid: 3 columns on tablet, 4 on large desktop */
    .waya-products-grid-section {
        padding-left: 0;
        padding-right: 0;
    }
    .waya-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .waya-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}


/* ════════════════════════════════════════════════════════════════
   WAYA Cart Page — mirrors Flutter CartPage / _buildCartItem()
   ════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.waya-cart-page { background: #fff; }

.waya-cart-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 100px; /* bottom padding for sticky bar */
}

/* ── Header bar — Flutter AppBar ── */
.waya-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px;
    border-bottom: 1px solid #f1f1f1;
    margin-bottom: 4px;
}
.waya-cart-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #111827;
    text-decoration: none;
    border-radius: 50%;
    transition: background .15s;
}
.waya-cart-back:hover { background: #f3f4f6; }
.waya-cart-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    letter-spacing: -0.2px;
}
.waya-cart-header-right { width: 36px; } /* balances flex layout */

/* ════════════════════════════════════════════════════════════════
   EMPTY CART — Flutter _buildEmptyCart()
   ════════════════════════════════════════════════════════════════ */
.waya-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 0 32px;
    text-align: center;
}
.waya-empty-cart-icon {
    color: #9ca3af;
    margin-bottom: 16px;
}
.waya-empty-cart-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}
.waya-empty-cart-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}
.waya-empty-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .15s;
    margin-bottom: 40px;
}
.waya-empty-cart-btn:hover { background: #374151; color: #fff; }

/* ── Trust tiles (3-up grid) ── */
.waya-trust-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 540px;
    margin-bottom: 24px;
}
.waya-trust-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}
.waya-trust-tile--blue  { background: #eff6ff; color: #1e40af; }
.waya-trust-tile--green { background: #f0fdf4; color: #15803d; }
.waya-trust-tile--orange{ background: #fff7ed; color: #c2410c; }

/* Strip variant (inside cart items list) */
.waya-cart-trust-strip {
    margin: 20px 0 8px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
}
.waya-trust-tiles--strip {
    display: flex;
    flex-direction: row;
    gap: 10px;
    max-width: none;
    margin-bottom: 16px;
    justify-content: space-between;
}
.waya-trust-tiles--strip .waya-trust-tile {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    font-size: 11px;
}

/* ── Payment logos ── */
.waya-payment-logos {
    width: 100%;
    max-width: 540px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}
.waya-payment-logos-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    margin: 0 0 12px;
}
.waya-payment-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.waya-payment-logos-row--strip { margin-top: 0; }
.waya-pay-logo { height: 32px; object-fit: contain; }
.waya-pay-logo--sm { height: 24px; }

/* ════════════════════════════════════════════════════════════════
   CART WITH ITEMS layout
   Mobile: single column  ·  Desktop: 2/3 + 1/3
   ════════════════════════════════════════════════════════════════ */
.waya-cart-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.waya-cart-items-col { width: 100%; }

/* Sidebar hidden on mobile, shown on desktop */
.waya-cart-sidebar { display: none; }

/* ── Individual cart item card
   Flutter: Container(color:#F5F5F5, borderRadius:12, padding:12, margin:h16/v6)
   ── */
.waya-cart-item {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 12px;
    background: #F5F5F5;
    border-radius: 12px;
    padding: 12px;
    margin: 6px 0;
}

/* Image — Flutter 95×120, borderRadius 4 */
.waya-cart-item-img-wrap {
    flex-shrink: 0;
    display: block;
    width: 95px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}
.waya-cart-item-img {
    width: 95px !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 4px !important;
    display: block !important;
}
/* Odoo renders a <span> around t-field=image, style its inner img */
.waya-cart-item-img-wrap span img,
.waya-cart-item-img-wrap span {
    width: 95px !important;
    height: 120px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 4px !important;
}

/* Details column — fills remaining space, height matches image */
.waya-cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 120px;
}

/* Name — Flutter Text(13px, w600, maxLines:2) */
.waya-cart-item-name-link { text-decoration: none; }
.waya-cart-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

/* Variant — hidden on mobile, shown on desktop */
.waya-cart-item-variant {
    display: none;
}
@media (min-width: 768px) {
.waya-cart-item-variant {
    display: block;
    font-size: 10px;
    font-style: italic;
    color: #6b7280;
    letter-spacing: -0.1px;
    margin-top: 3px;
}
}
/* Odoo injects <ul> inside the description div */
.waya-cart-item-variant ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.waya-cart-item-variant li { font-size: 10px; font-style: italic; color: #6b7280; }

/* Bottom row: price left · qty controls right */
.waya-cart-item-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Price — Flutter 14px w800 */
.waya-cart-item-price-wrap { display: flex; flex-direction: column; }
.waya-cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}
.waya-cart-item-price-del {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-top: 1px;
}

/* Qty controls — Flutter Container(28×28, black, borderRadius:4) */
.waya-cart-qty {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    /* override Odoo input-group */
    width: auto !important;
    border: none !important;
    border-radius: 0 !important;
}
.waya-cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #111827;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.waya-cart-qty-btn:hover { background: #374151; color: #fff; }
.waya-cart-qty-num {
    width: 36px !important;
    height: 28px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}
.waya-cart-qty-num::-webkit-outer-spin-button,
.waya-cart-qty-num::-webkit-inner-spin-button { -webkit-appearance: none; }
.waya-cart-qty-static {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* Remove button — top-right X */
.waya-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 50%;
    transition: background .15s, color .15s;
}
.waya-cart-item-remove:hover { background: #fee2e2; color: #dc2626; }

/* ════════════════════════════════════════════════════════════════
   STICKY BOTTOM BAR (mobile only)
   Flutter: Container with BoxShadow, row: total + checkout button
   ════════════════════════════════════════════════════════════════ */
.waya-cart-bottom-bar {
    position: fixed;
    bottom: 62px; /* sit above mobile bottom nav */
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
    padding: 12px 16px 16px;
}
@media (min-width: 768px) {
    .waya-cart-bottom-bar {
        bottom: 0;
    }
}
.waya-cart-bottom-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}
.waya-bottom-total {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* Flutter: fontSize:18, fontWeight:w800 */
.waya-bottom-total-price {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    line-height: 1.1;
    white-space: nowrap;
}
/* Flutter: fontSize:12, grey[500] */
.waya-bottom-total-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 1px;
}
/* Flutter: Expanded, height:52, black, borderRadius:4 */
.waya-bottom-checkout-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}
.waya-bottom-checkout-btn:hover { background: #374151; color: #fff; }

/* ════════════════════════════════════════════════════════════════
   DESKTOP overrides (≥ 1024 px)
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

    .waya-cart-container {
        padding: 0 32px 40px; /* no bottom padding — no sticky bar */
    }

    /* 2-column layout: items take 2/3, sidebar takes 1/3 */
    .waya-cart-body {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
        margin-top: 8px;
    }
    .waya-cart-items-col {
        flex: 1 1 0;
        min-width: 0;
    }
    .waya-cart-sidebar {
        display: block;
        width: 340px;
        flex-shrink: 0;
    }

    /* Trust tiles: side-by-side on desktop too */
    .waya-trust-tiles--strip { gap: 12px; }

    /* Sticky sidebar summary box */
    .waya-cart-summary-box {
        position: sticky;
        top: 24px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 24px;
    }
    .waya-summary-title {
        font-size: 18px;
        font-weight: 700;
        color: #111827;
        margin: 0 0 16px;
    }
    .waya-summary-rows {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 14px;
        margin-bottom: 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .waya-summary-row {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }
    .waya-summary-label { color: #6b7280; }
    .waya-summary-value { font-weight: 600; color: #111827; }
    .waya-summary-total-row {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 20px;
    }
    .waya-summary-total-label {}
    .waya-summary-total-value {}

    /* Sidebar buttons */
    .waya-checkout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px;
        background: #111827;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.5px;
        border-radius: 4px;
        text-decoration: none;
        margin-bottom: 10px;
        transition: background .15s;
    }
    .waya-checkout-btn:hover { background: #374151; color: #fff; }
    .waya-continue-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 13px;
        border: 1.5px solid #111827;
        color: #111827;
        font-size: 14px;
        font-weight: 600;
        border-radius: 4px;
        text-decoration: none;
        transition: background .15s;
    }
    .waya-continue-btn:hover { background: #f3f4f6; }

    /* Mini trust in sidebar */
    .waya-summary-trust {
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .waya-summary-trust-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: #4b5563;
    }

    /* Hide sticky bottom bar on desktop */
    .waya-cart-bottom-bar { display: none; }

    /* Trust tiles 3-col on desktop */
    .waya-trust-tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ── You may want to add these — suggestions section ── */
.waya-suggestions-section {
    padding: 20px 0 100px; /* bottom padding accounts for sticky bar on mobile */
}
.waya-suggestions-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 16px 12px;
}
.waya-suggestions-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.waya-suggestions-scroll::-webkit-scrollbar { display: none; }
/* Each card wrapper fixes the width so product_card_template fills it */
.waya-suggestion-card-wrap {
    flex: 0 0 160px;
    width: 160px;
}
@media (min-width: 768px) {
    .waya-suggestions-section { padding-bottom: 40px; }
    .waya-suggestion-card-wrap { flex: 0 0 190px; width: 190px; }
}

/* ── Delivery method card — matches Flutter _buildDeliveryOption() ── */
.waya-dm-card {
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
    height: 100%;
    box-sizing: border-box;
}
.waya-dm-card--selected,
.waya-dm-card.waya-dm-card--selected {
    border: 2px solid #1A1A1A !important;
}
