/* =====================================================================
   Coastal Calm — shop / category listing, clearance, All Filters modal.
   Loaded after coastal.css. Every rule is scoped to #cShop, .c-clr or
   #allFilterModal so nothing leaks into other pages.
   ===================================================================== */

/* ---------- Page shell ---------- */
.c-shop { padding: 36px 0 24px; background: var(--c-shell); }
.c-shop__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.c-shop__crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--c-muted); flex-wrap: wrap; }
.c-shop__crumbs a { color: var(--c-ocean); font-weight: 600; }
.c-shop__crumbs span[aria-hidden] { color: #b7aa95; }
.c-shop__title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.c-shop__title > div:first-child { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.c-shop__title h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.06; margin: 0; overflow-wrap: anywhere; }
.c-shop__meta { display: flex; align-items: center; gap: 18px; }
.c-shop__count { font-size: 15px; color: var(--c-text); white-space: nowrap; }
.c-shop__count #product_shop_count { font-weight: 700; color: var(--c-ink); }
#cShop:not([data-count]) .c-shop__count { visibility: hidden; }
.c-shop__view { display: inline-flex; padding: 4px; gap: 2px; background: #fff; border: 1px solid var(--c-sand-line); border-radius: 999px; }
.c-shop__view a {
    width: 38px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--c-muted) !important; font-size: 14px; transition: background .2s, color .2s;
}
.c-shop__view a:hover { color: var(--c-ink) !important; }
.c-shop__view a.active { background: var(--c-navy); color: #fff !important; }

/* ---------- Filter bar ---------- */
#cShop .c-shop__bar {
    display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap;
    padding: 0 0 20px; margin: 0; border: 0 !important; border-bottom: 1px solid var(--c-sand-line) !important;
    background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
}
#cShop .c-shop__filters, #cShop .c-shop__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; }
#cShop .c-shop__bar .form-group { margin: 0 !important; padding: 0; display: block; width: auto; }
#cShop .c-pill-select { position: relative; }
#cShop .c-pill-select::after {
    content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 1.75px solid var(--c-navy); border-bottom: 1.75px solid var(--c-navy);
    transform: rotate(45deg); pointer-events: none;
}
#cShop .c-pill-select select.form-control {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    height: 44px !important; min-height: 44px; width: auto; min-width: 128px; max-width: 240px;
    padding: 0 44px 0 20px !important; margin: 0;
    background: #fff !important; border: 1px solid var(--c-sand-line) !important; border-radius: 999px !important;
    color: var(--c-ink) !important; font-size: 14.5px !important; font-weight: 600 !important;
    cursor: pointer; box-shadow: none !important; transition: border-color .2s, background .2s;
}
#cShop .c-pill-select select.form-control:hover { border-color: var(--c-ocean) !important; background: #fff !important; }
#cShop .c-pill-select select.form-control:focus { border-color: var(--c-ocean) !important; box-shadow: 0 0 0 3px rgba(176, 38, 10, .15) !important; }
#cShop .c-pill-select select option { color: var(--c-ink); font-weight: 500; }
#cShop .c-pill-btn {
    display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px;
    border-radius: 999px; border: 1.5px solid var(--c-navy); background: transparent;
    color: var(--c-ink) !important; font-size: 14.5px; font-weight: 600; cursor: pointer;
    transition: background .2s, color .2s;
}
#cShop .c-pill-btn:hover { background: var(--c-navy); color: #fff !important; }
#cShop .c-pill-select--sort { display: flex !important; align-items: center; gap: 10px; }
#cShop .c-pill-select--sort::after { top: auto; bottom: 22px; margin-top: 0; }
#cShop .c-shop__sort-label { font-size: 14px; color: var(--c-muted); white-space: nowrap; }
#cShop .c-pill-select--sort select.form-control { min-width: 160px; }

/* Active filter chips */
#cShop .c-shop__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 0; }
#cShop .delete_section {
    display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 8px 7px 16px;
    background: var(--c-seafoam); border: 1px solid #cfe0e0; border-radius: 999px; color: var(--c-ink);
}
#cShop .delete_section small { font-size: 13.5px; font-weight: 600; color: var(--c-ink); }
#cShop .delete_section .delete_button {
    width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--c-ink); font-size: 16px; line-height: 1; cursor: pointer; margin: 0; transition: background .2s, color .2s;
}
#cShop .delete_section .delete_button:hover { background: var(--c-navy); color: #fff; }
#cShop .delete_section--all { background: transparent; border-color: transparent; cursor: pointer; padding-left: 8px; }
#cShop .delete_section--all small#all-name { color: var(--c-ocean); text-decoration: underline; text-underline-offset: 3px; }
#cShop .delete_section--all .delete_button { background: transparent; }

/* ---------- Results grid ---------- */
#cShop .c-shop__results { padding-top: 28px; }
#cShop .products-area { margin: 0; padding: 0; }
#cShop #swap { padding: 0; margin: 0; }
#cShop .shop_page_product_card { margin-left: -11px; margin-right: -11px; row-gap: 22px; }
#cShop .shop_page_product_card > .div-class { padding-left: 11px; padding-right: 11px; margin: 0 !important; display: flex; }

/* Loading skeleton + empty state (driven by #cShop[data-count]) */
#cShop .c-shop__empty { display: none; }
#cShop[data-count="0"] .c-shop__empty {
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
    background: #fff; border: 1px solid var(--c-sand-line); border-radius: 24px; padding: 56px 24px; color: var(--c-ocean);
}
#cShop .c-shop__empty h2 { font-size: 28px; margin: 4px 0 0; }
#cShop .c-shop__empty p { max-width: 460px; margin: 0; color: var(--c-text); font-size: 16px; line-height: 1.6; }
#cShop .c-shop__empty .c-btn { margin-top: 8px; }
#cShop:not([data-count]) .shop_page_product_card:empty {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; min-height: 420px;
}
#cShop:not([data-count]) .shop_page_product_card:empty::before,
#cShop:not([data-count]) .shop_page_product_card:empty::after {
    content: ''; border-radius: 24px; min-height: 420px;
    background: linear-gradient(var(--c-sand), var(--c-sand)) top / 100% 58% no-repeat, #fff;
    border: 1px solid var(--c-sand-line); animation: cPulse 1.4s ease-in-out infinite;
}

/* ---------- Product card (includes/shop/product_card.blade.php) ---------- */
#cShop .c-scard {
    width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important; display: flex;
}
#cShop .c-scard article {
    display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0 !important; padding: 0 !important;
    background: #fff !important; border: 1px solid var(--c-sand-line) !important; border-radius: 24px !important;
    overflow: hidden; box-shadow: none !important; transition: transform .2s, box-shadow .2s;
}
#cShop .c-scard article:hover { transform: translateY(-3px); box-shadow: var(--c-shadow) !important; }
#cShop .c-scard .thumb {
    position: relative; height: 250px; margin: 0 !important; padding: 0 !important; overflow: hidden;
    background: var(--c-sand) !important; border-radius: 0 !important; display: block;
}
#cShop .shop_page_product_card > .div-class:nth-child(even) .c-scard .thumb { background: var(--c-seafoam) !important; }
#cShop .c-scard .thumb .product-card-image-link { display: block; width: 100%; height: 100%; }
#cShop .c-scard .thumb img {
    width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block;
    mix-blend-mode: multiply !important; transition: transform .4s; margin: 0 !important;
}
#cShop .c-scard article:hover .thumb img { transform: scale(1.04); }
#cShop .c-scard .mobile-icons { display: none !important; }

/* Badges: coral sale pill + navy "Call for deal" pill, stacked top-left */
#cShop .c-scard .badges {
    position: absolute !important; top: 14px !important; left: 14px !important; right: 14px !important; z-index: 2;
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; pointer-events: none;
    width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important;
}
#cShop .c-scard .badges .badge {
    position: static !important; display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important;
    font-family: var(--c-sans) !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.2 !important;
    padding: 6px 12px !important; border-radius: 999px !important; letter-spacing: .01em; text-transform: none;
    box-shadow: none !important; width: auto !important; height: auto !important; transform: none !important;
}
#cShop .c-scard .badges .badge::before, #cShop .c-scard .badges .badge::after { display: none !important; }
#cShop .c-scard .badges .badge-brown, #cShop .c-scard .badges .custom-badge { background: var(--c-coral) !important; color: #fff !important; }
#cShop .c-scard .badges .badge-main { background: var(--c-navy) !important; color: #fff !important; }
#cShop .c-scard .badges .c-deal-badge b { font-weight: 700; color: var(--c-gold); font-family: var(--c-sans) !important; }
#cShop .c-scard .badges .badge-info { background: var(--c-ocean) !important; color: #fff !important; }

/* Body */
#cShop .c-scard .content {
    display: flex; flex-direction: column; gap: 8px; flex-grow: 1; text-align: left; height: auto !important; min-height: 0 !important;
    padding: 20px 22px 22px !important; margin: 0 !important; background: transparent !important; position: relative;
}
#cShop .c-scard .product-card-category {
    display: block; margin: 0 !important; padding: 0 !important; background: none !important;
    font-family: var(--c-sans) !important; font-size: 12px !important; font-weight: 700 !important;
    letter-spacing: .1em !important; text-transform: uppercase; color: var(--c-ocean) !important; line-height: 1.3;
}
#cShop .c-scard .product-card-category:empty { display: none; }
#cShop .c-scard h3.title { margin: 0 !important; padding: 0 !important; min-height: calc(2 * 1.35em); font-size: 17px !important; line-height: 1.35 !important; }
#cShop .c-scard h3.title a.product-card-name {
    font-family: var(--c-sans) !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.35 !important;
    color: var(--c-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#cShop .c-scard h3.title a.product-card-name:hover { color: var(--c-ocean) !important; }
#cShop .c-scard .product-card-desc { display: none !important; }
#cShop .c-scard h3.title, #cShop .c-scard h3.title * { text-align: left !important; }

/* Rating row */
#cShop .c-scard .c-scard__rating { display: flex; align-items: center; gap: 6px; min-height: 18px; }
#cShop .c-scard .pro-rating { display: inline-flex !important; margin: 0 !important; padding: 0 !important; line-height: 1 !important; list-style: none; }
#cShop .c-scard .pro-rating fieldset { display: inline-flex; flex-direction: row-reverse; margin: 0 !important; padding: 0 !important; border: 0; float: none; }
#cShop .c-scard .pro-rating fieldset label { float: none !important; margin: 0 1px 0 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1 !important; color: #ddd3c2 !important; }
#cShop .c-scard .pro-rating fieldset label::before { font-size: 13px !important; }
#cShop .c-scard .pro-rating fieldset label.active, #cShop .c-scard .pro-rating fieldset label.active::before { color: #d9a441 !important; }
#cShop .c-scard .review-count {
    position: static !important; font-size: 12.5px !important; color: var(--c-muted) !important; text-decoration: none !important;
    font-weight: 500; padding: 0 !important;
}

/* Price */
#cShop .c-scard .c-scard__sizes { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
#cShop .c-scard .current-size, #cShop .c-scard .all-size { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
#cShop .c-scard .product-card-price {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 !important; padding: 0 !important;
    font-family: var(--c-serif) !important; font-weight: 400 !important; font-size: 27px !important; line-height: 1.15 !important;
    color: var(--c-ink) !important; background: none !important;
}
#cShop .c-scard .product-card-price span {
    font-family: var(--c-sans) !important; font-size: 14px !important; font-weight: 500 !important;
    color: var(--c-muted) !important; text-decoration: line-through; margin: 0 !important;
}

/* Availability lines */
#cShop .c-scard .c-scard__avail { display: flex; flex-direction: column; gap: 4px; }
#cShop .c-scard .c-scard__avail > div { margin: 0 !important; font-size: 13px !important; line-height: 1.45; color: var(--c-text); }
#cShop .c-scard .c-scard__avail > div:empty { display: none; }
#cShop .c-dot, .c-clr .c-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; margin: 0 7px 1px 0; vertical-align: middle; background: #a3b1b7; }
#cShop .c-dot--ok, .c-clr .c-dot--ok { background: #3f8f6b; box-shadow: 0 0 0 3px rgba(63, 143, 107, .15); }
#cShop .c-store-link, .c-clr .c-store-link { color: var(--c-ocean) !important; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }

/* CTA */
#cShop .c-scard .c-scard__cta { margin: 10px 0 0 !important; padding: 0 !important; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; display: block !important; }
#cShop .c-scard .c-scard__cta .product-card-link {
    display: flex !important; align-items: center; justify-content: center; width: 100%; height: 44px; padding: 0 18px !important;
    background: transparent !important; border: 1.5px solid var(--c-navy) !important; color: var(--c-navy) !important;
    border-radius: 999px !important; font-size: 14.5px !important; font-weight: 600 !important; box-shadow: none !important;
    text-transform: none !important; letter-spacing: 0 !important;
}
#cShop .c-scard .c-scard__cta .product-card-link::before, #cShop .c-scard .c-scard__cta .product-card-link::after { display: none !important; }
#cShop .c-scard .c-scard__cta .product-card-link:hover { background: var(--c-navy) !important; color: #fff !important; }

/* List view (#list_3column toggles .listing on the columns) */
#cShop .shop_page_product_card > .div-class.listing { flex: 0 0 100%; max-width: 100%; }
#cShop .listing .c-scard article { flex-direction: row; }
#cShop .listing .c-scard .thumb { width: 38%; max-width: 380px; height: auto; min-height: 260px; flex-shrink: 0; }
#cShop .listing .c-scard .content { padding: 26px 30px !important; }
#cShop .listing .c-scard .product-card-desc { display: block !important; color: var(--c-text) !important; font-size: 15px; margin: 0 !important; }
#cShop .listing .c-scard .c-scard__cta { max-width: 260px; }

/* Load-more / result summary (fetchProduct renders into .pagination) */
#cShop .pagination {
    display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 44px 0 0; padding: 0; border: 0; text-align: center;
}
#cShop .pagination > label { font-size: 14.5px; color: var(--c-muted); padding: 0; margin: 0; }
#cShop .pagination .showing_record, #cShop .pagination .showing_total_record { color: var(--c-ink); font-weight: 700; }
#cShop .pagination > div { max-width: none; flex: none; width: auto; padding: 0; }
#cShop .pagination ol { list-style: none; margin: 0 !important; padding: 0; display: flex; justify-content: center; }
#cShop .pagination .load-more-products {
    height: 48px; padding: 0 30px !important; background: transparent !important; border: 1.5px solid var(--c-navy) !important;
    color: var(--c-ink) !important; border-radius: 999px !important; font-size: 15px !important; font-weight: 600 !important;
}
#cShop .pagination .load-more-products:hover:not([disabled]) { background: var(--c-navy) !important; color: #fff !important; }
#cShop .pagination .load-more-products[disabled] { border-color: var(--c-sand-line) !important; color: var(--c-muted) !important; opacity: 1; cursor: default; }
#cShop[data-count="0"] .pagination { display: none; }

/* ---------- Shop responsive ---------- */
@media (max-width: 991px) {
    .c-shop { padding-top: 20px; }
    .c-shop__title { align-items: flex-start; flex-direction: column; gap: 16px; }
    .c-shop__meta { width: 100%; justify-content: space-between; }
    #cShop .c-shop__bar { flex-direction: column; align-items: stretch; }
    #cShop .c-shop__bar { min-width: 0; }
    #cShop .c-shop__filters {
        flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        width: calc(100% + 40px) !important; max-width: none; min-width: 0; margin: 0 -20px; padding: 2px 20px 4px;
    }
    #cShop .c-shop__filters::-webkit-scrollbar { display: none; }
    #cShop .c-shop__filters > * { flex-shrink: 0; }
    #cShop .c-shop__sort, #cShop .c-pill-select--sort { width: 100%; }
    #cShop .c-pill-select--sort select.form-control { flex-grow: 1; max-width: none; }
    #cShop:not([data-count]) .shop_page_product_card:empty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    #cShop .c-shop__filters { width: calc(100% + 32px) !important; margin: 0 -16px; padding: 2px 16px 4px; }
}
@media (max-width: 767px) {
    #cShop .shop_page_product_card { margin-left: -7px; margin-right: -7px; row-gap: 14px; }
    #cShop .shop_page_product_card > .div-class { flex: 0 0 50%; max-width: 50%; padding-left: 7px; padding-right: 7px; }
    #cShop .shop_page_product_card > .div-class.listing { flex: 0 0 100%; max-width: 100%; }
    #cShop .c-scard article { border-radius: 18px !important; }
    #cShop .c-scard .thumb { height: 170px; }
    #cShop .c-scard .content { padding: 14px 14px 16px !important; gap: 6px; }
    #cShop .c-scard h3.title, #cShop .c-scard h3.title a.product-card-name { font-size: 14.5px !important; }
    #cShop .c-scard .product-card-price { font-size: 22px !important; }
    #cShop .c-scard .product-card-category { font-size: 10.5px !important; }
    #cShop .c-scard .badges { top: 10px !important; left: 10px !important; right: 10px !important; gap: 4px; }
    #cShop .c-scard .badges .badge { font-size: 10.5px !important; padding: 5px 9px !important; }
    #cShop .c-scard .c-scard__avail > div { font-size: 12px !important; }
    #cShop .c-scard .c-scard__cta .product-card-link { height: 40px; font-size: 13.5px !important; }
    #cShop .listing .c-scard article { flex-direction: column; }
    #cShop .listing .c-scard .thumb { width: 100%; max-width: none; min-height: 0; height: 220px; }
    #cShop:not([data-count]) .shop_page_product_card:empty { gap: 14px; }
}

/* =====================================================================
   ALL FILTERS DRAWER (modals/allFilter.blade.php)
   ===================================================================== */
#allFilterModal { padding: 0 !important; }
#allFilterModal .modal-dialog {
    position: fixed !important; top: 0; right: 0; bottom: 0; left: auto;
    width: 440px; max-width: 100%; height: 100%; margin: 0 !important;
    transform: translateX(100%) !important; transition: transform .3s ease-out !important;
}
#allFilterModal.show .modal-dialog { transform: none !important; }
#allFilterModal .modal-content {
    height: 100%; display: flex; flex-direction: column; overflow: hidden;
    background: var(--c-shell) !important; border: 0 !important;
    border-radius: 24px 0 0 24px !important; box-shadow: -30px 0 60px -30px rgba(17, 17, 17, .45) !important;
    animation: none !important;
}
#allFilterModal .modal-header {
    flex-shrink: 0; padding: 26px 28px 20px !important; background: var(--c-shell) !important;
    border-bottom: 1px solid var(--c-sand-line) !important; box-shadow: none !important;
}
#allFilterModal .modal-title {
    font-family: var(--c-serif) !important; font-weight: 400 !important; font-size: 28px !important; line-height: 1.15;
    color: var(--c-ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important; margin: 0;
}
#allFilterModal .c-af__sub { font-size: 14px; color: var(--c-muted); margin-top: 4px; }
#allFilterModal .close-btn {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--c-sand-line); background: #fff;
    color: var(--c-ink); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
#allFilterModal .close-btn:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
#allFilterModal .modal-body { flex-grow: 1; overflow-y: auto; height: auto !important; padding: 8px 28px 0 !important; }
#allFilterModal .modal-body::-webkit-scrollbar { width: 6px; }
#allFilterModal .modal-body::-webkit-scrollbar-thumb { background: #d9cfbf; border-radius: 999px; }

#allFilterModal .filter-section { margin: 0; padding: 6px 0 14px; border-bottom: 1px solid var(--c-sand-line); opacity: 1; animation: none; }
#allFilterModal .section-header {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    padding: 16px 0 8px; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none;
}
#allFilterModal .section-header:hover { transform: none; box-shadow: none; }
#allFilterModal .section-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); }
#allFilterModal .section-icon { color: var(--c-ocean); font-size: 13px; transition: transform .25s; }
#allFilterModal .section-header.collapsed .section-icon { transform: rotate(-180deg); }
#allFilterModal .options-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
#allFilterModal .option-item { position: static; }
#allFilterModal .option-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 40px;
    padding: 8px 16px; margin: 0; background: #fff; color: var(--c-ink);
    border: 1px solid var(--c-sand-line); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2;
    cursor: pointer; box-shadow: none; transform: none; overflow: visible; transition: border-color .2s, background .2s, color .2s;
}
#allFilterModal .option-btn::before { display: none; }
#allFilterModal .option-btn:hover { border-color: var(--c-ocean); color: var(--c-ocean); background: #fff; transform: none; box-shadow: none; }
#allFilterModal .option-btn.active,
#allFilterModal .option-btn.price-active,
#allFilterModal .option-btn.filter_variation_active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; animation: none; }
#allFilterModal .option-btn.color-variant { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c-sand-line); }
#allFilterModal .option-btn.color-variant.active { box-shadow: 0 0 0 2px var(--c-navy); }

#allFilterModal .c-af__actions {
    position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px;
    margin: 0 -28px; padding: 18px 28px 22px; background: var(--c-shell); border-top: 1px solid var(--c-sand-line);
}
#allFilterModal .c-af__actions .btn {
    display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px !important;
    font-size: 15px !important; font-weight: 600 !important; border-radius: 999px !important; box-shadow: none !important;
}
#allFilterModal .c-af__reset { flex: 1; background: transparent !important; border: 1.5px solid var(--c-navy) !important; color: var(--c-navy) !important; }
#allFilterModal .c-af__reset:hover { background: var(--c-sand) !important; }
#allFilterModal .c-af__apply { flex: 2; background: var(--c-navy) !important; border: 1.5px solid var(--c-navy) !important; color: #fff !important; }
#allFilterModal .c-af__apply:hover { background: var(--c-ocean) !important; border-color: var(--c-ocean) !important; }

@media (max-width: 575px) {
    #allFilterModal .modal-dialog { width: 100%; }
    #allFilterModal .modal-content { border-radius: 0 !important; }
    #allFilterModal .modal-header, #allFilterModal .modal-body { padding-left: 20px !important; padding-right: 20px !important; }
    #allFilterModal .c-af__actions { margin: 0 -20px; padding: 16px 20px 20px; }
}

/* =====================================================================
   CLEARANCE (clearance.blade.php + clearance/*)
   ===================================================================== */
.c-clr { background: var(--c-shell); }
.c-clr__hero { background: var(--c-sand); position: relative; }
.c-clr__hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.c-clr__hero-grid:not(:has(.c-clr__banner)) { grid-template-columns: 1fr; }
.c-clr__hero-copy { display: flex; flex-direction: column; gap: 20px; }
.c-clr__hero-copy .c-shop__crumbs { margin-bottom: 4px; }
.c-clr__hero-copy .c-eyebrow { color: var(--c-coral); }
.c-clr__hero h1 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.04; margin: 0; }
.c-clr__hero p { font-size: 18px; line-height: 1.6; color: var(--c-text); margin: 0; max-width: 460px; }
.c-clr__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.c-clr__banner { margin: 0 !important; padding: 0 !important; max-width: none; }
.c-clr__banner .fullwidth-banner {
    display: block; width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; min-height: 0 !important;
    border: 0; border-radius: 28px; overflow: hidden; background-color: var(--c-navy); background-size: cover; background-position: center;
    box-shadow: 0 30px 60px -30px rgba(17, 17, 17, .45); margin: 0 !important;
}

/* Service strip */
.c-clr__info { padding: 40px 0 8px; }
.c-clr__info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.c-clr__info-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--c-sand-line); border-radius: 22px; padding: 20px 22px; }
.c-clr__info-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 999px; background: var(--c-seafoam); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.c-clr__info-icon img { width: 36px; height: 36px; object-fit: contain; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .8; }
.c-clr__info-item strong { display: block; font-size: 16px; font-weight: 600; color: var(--c-ink); line-height: 1.3; }
.c-clr__info-item small { display: block; font-size: 14px; color: var(--c-text); margin-top: 2px; }

/* Product rows (slick carousels filled by fetchProduct) */
.c-clr__deals { padding-top: 64px; }
.c-clr__row { margin-bottom: 64px; position: relative; }
.c-clr__row .c-section-head { margin-bottom: 26px; }
.c-clr__row .c-section-head > div { display: flex; flex-direction: column; gap: 10px; }
.c-clr__empty { display: none; margin: 0; padding: 28px; text-align: center; font-size: 15.5px; color: var(--c-text); background: #fff; border: 1px dashed #dcd1bf; border-radius: 22px; }
.c-clr__track:empty + .c-clr__empty { display: block; }
.c-clr__track { margin: 0 -11px; }
.c-clr__track:empty { margin: 0; }
.c-clr__track:not(.slick-initialized) { display: flex; overflow: hidden; }
.c-clr .slick-list { padding: 4px 0 12px !important; margin: 0; }
.c-clr .slick-track { display: flex !important; }
.c-clr .slick-slide { height: auto !important; float: none; display: flex !important; }
.c-clr .slick-slide > div { display: flex; width: 100%; }
.c-clr__track .div-class { display: flex !important; width: 100%; padding: 0 11px; }
.c-clr .slick-arrow {
    position: absolute; top: -70px; z-index: 2; width: 48px; height: 48px; border-radius: 999px;
    background: transparent !important; border: 1.5px solid #c9c9c9 !important; color: var(--c-ink) !important;
    font-size: 0 !important; display: flex !important; align-items: center; justify-content: center; transform: none !important; box-shadow: none !important;
}
.c-clr .slick-arrow::before {
    content: '' !important; width: 10px; height: 10px; border-top: 2px solid var(--c-navy); border-right: 2px solid var(--c-navy);
    opacity: 1 !important; font-size: 0 !important; display: block;
}
.c-clr .slick-prev { right: 186px; left: auto !important; }
.c-clr .slick-prev::before { transform: rotate(-135deg); margin-left: 4px; }
.c-clr .slick-next { right: 132px; }
.c-clr .slick-next::before { transform: rotate(45deg); margin-right: 4px; }
.c-clr .slick-arrow:hover { background: var(--c-navy) !important; border-color: var(--c-navy) !important; }
.c-clr .slick-arrow:hover::before { border-color: #fff; }

/* Legacy product card (includes/cart/product_card_style1.blade.php) inside clearance */
.c-clr .product {
    width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; display: flex; box-shadow: none !important;
}
.c-clr .product article {
    display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0 !important; padding: 0 !important;
    background: #fff !important; border: 1px solid var(--c-sand-line) !important; border-radius: 24px !important; overflow: hidden;
    box-shadow: none !important; transition: transform .2s, box-shadow .2s;
}
.c-clr .product article:hover { transform: translateY(-3px); box-shadow: var(--c-shadow) !important; }
.c-clr .product .thumb { position: relative; height: 240px; margin: 0 !important; padding: 0 !important; overflow: hidden; background: var(--c-sand) !important; border-radius: 0 !important; }
.c-clr .slick-slide:nth-child(even) .product .thumb { background: var(--c-seafoam) !important; }
.c-clr .product .thumb .product-card-image-link { display: block; width: 100%; height: 100%; }
.c-clr .product .thumb img { width: 100% !important; height: 100% !important; object-fit: cover; mix-blend-mode: multiply; margin: 0 !important; transition: transform .4s; }
.c-clr .product article:hover .thumb img { transform: scale(1.04); }
.c-clr .product .mobile-icons { display: none !important; }
.c-clr .product .badges {
    position: absolute !important; top: 14px !important; left: 14px !important; right: 14px !important; z-index: 2;
    display: flex; flex-wrap: wrap; gap: 6px; width: auto !important; margin: 0 !important; padding: 0 !important; pointer-events: none;
}
.c-clr .product .badges .badge {
    position: static !important; margin: 0 !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.2 !important;
    padding: 6px 12px !important; border-radius: 999px !important; text-transform: none; box-shadow: none !important; transform: none !important;
}
.c-clr .product .badges .badge::before, .c-clr .product .badges .badge::after { display: none !important; }
.c-clr .product .content {
    display: flex; flex-direction: column; gap: 8px; flex-grow: 1; height: auto !important; min-height: 0 !important;
    padding: 20px 22px 22px !important; margin: 0 !important; text-align: left; background: transparent !important;
}
.c-clr .product .product-card-category { font-size: 12px !important; letter-spacing: .1em !important; margin: 0 !important; }
.c-clr .product .product-card-category:empty { display: none; }
.c-clr .product h3.title { margin: 0 !important; min-height: calc(2 * 1.35em); font-size: 16.5px !important; line-height: 1.35 !important; }
.c-clr .product h3.title a {
    font-size: 16.5px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left;
}
.c-clr .product .product-card-desc { display: none !important; }
.c-clr .product .pro-rating { margin: 0 !important; padding: 0 !important; line-height: 1 !important; }
.c-clr .product .pro-rating fieldset { margin: 0 !important; padding: 0 !important; display: inline-flex; flex-direction: row-reverse; }
.c-clr .product .pro-rating fieldset label { float: none !important; margin: 0 1px 0 0 !important; font-size: 13px !important; color: #ddd3c2 !important; }
.c-clr .product .pro-rating fieldset label.active { color: #d9a441 !important; }
.c-clr .product .review-count { display: none; }
.c-clr .product .current-size { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); margin-top: auto; }
.c-clr .product .product-card-discount { justify-content: flex-start !important; }
.c-clr .product .product-card-price { font-size: 26px !important; line-height: 1.15 !important; margin: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.c-clr .product .product-card-price span { font-size: 14px !important; margin: 0 !important; }
.c-clr .product #product_delivery, .c-clr .product #product_in_store { margin: 0 !important; font-size: 13px !important; line-height: 1.45; color: var(--c-text); }
.c-clr .product #product_delivery span[style], .c-clr .product #product_in_store span[style] {
    width: 7px !important; height: 7px !important; padding: 0 !important; margin: 0 7px 1px 0 !important; vertical-align: middle; background-color: #a3b1b7 !important;
}
.c-clr .product #product_delivery span[style*="006601"], .c-clr .product #product_in_store span[style*="006601"] { background-color: #3f8f6b !important; box-shadow: 0 0 0 3px rgba(63, 143, 107, .15); }
.c-clr .product #product_in_store a { color: var(--c-ocean) !important; font-weight: 600; }
.c-clr .product .shop_now:empty, .c-clr .product .all-size:empty { display: none !important; }

/* Countdown (mercado-countdown) */
.c-clr .c-cd { display: inline-flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 8px; margin: 0 2px; background: #fff; border: 1px solid var(--c-sand-line); border-radius: 12px; }
.c-clr .c-cd b { font-family: var(--c-serif); font-weight: 400; font-size: 20px; color: var(--c-ink); }
.c-clr .c-cd small { font-size: 11px; color: var(--c-muted); }

/* Expert CTA */
.c-clr__expert { padding: 8px 0 24px; }
.c-clr__expert-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; background: var(--c-seafoam); border-radius: 32px; padding: 48px 56px; }
.c-clr__expert-img { width: 200px; height: 200px; border-radius: 999px; overflow: hidden; background: #fff; border: 6px solid #fff; }
.c-clr__expert-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-clr__expert-copy { display: flex; flex-direction: column; gap: 14px; }
.c-clr__expert-copy h2 { font-size: 40px; line-height: 1.1; margin: 0; }
.c-clr__expert-copy h2 sup { font-size: .45em; top: -1.1em; }
.c-clr__expert-copy p { font-size: 17px; line-height: 1.6; color: var(--c-text); margin: 0; max-width: 560px; }
.c-clr__expert-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.c-clr__expert-ctas .c-btn { padding: 14px 24px; font-size: 15px; }

@media (max-width: 1199px) {
    .c-clr__info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .c-clr__hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; padding-bottom: 40px; }
    .c-clr .slick-arrow { display: none !important; }
    .c-clr__expert-box { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 36px 24px; gap: 24px; }
    .c-clr__expert-copy { align-items: center; }
    .c-clr__expert-copy h2 { font-size: 30px; }
    .c-clr__expert-ctas { justify-content: center; }
    .c-clr__expert-img { width: 150px; height: 150px; }
}
@media (max-width: 575px) {
    .c-clr__hero p { font-size: 16.5px; }
    .c-clr__ctas .c-btn { flex: 1 1 100%; }
    .c-clr__info-grid { grid-template-columns: 1fr; gap: 10px; }
    .c-clr__info-item { padding: 14px 16px; border-radius: 18px; }
    .c-clr__deals { padding-top: 44px; }
    .c-clr__row { margin-bottom: 44px; }
    .c-clr__banner .fullwidth-banner { border-radius: 20px; }
    .c-clr__expert-ctas .c-btn { flex: 1 1 calc(50% - 10px); padding: 12px 14px; }
}

/* Clearance card fine-tuning */
.c-clr .product .product-card-category, .c-clr .product h3.title { text-align: left !important; display: block; }
.c-clr .product .product-card-discount:empty, .c-clr .product .current-size { display: none !important; }
.c-clr .product .product-card-price { margin-top: auto !important; padding-top: 6px !important; }
#allFilterModal.modal { z-index: 100050 !important; }
.c-clr .product h3.title, .c-clr .product h3.title a, .c-clr .product .product-card-category { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Fine-tuning: left-aligned titles, transparent load-more area, compact "Clear all" */
#cShop .c-scard h3.title { display: block !important; width: 100%; }
#cShop .c-scard h3.title a.product-card-name { width: 100%; margin: 0 !important; }
#cShop .pagination, #cShop .pagination > div, #cShop .pagination ol, #cShop .pagination li { background: transparent !important; box-shadow: none !important; border: 0 !important; }
#cShop .pagination li { padding: 0 !important; margin: 0 !important; }
#cShop .delete_section--all #delete-all { display: none; }
#cShop .delete_section--all { padding: 7px 12px; }
#cShop[data-count="0"] .c-shop__count { visibility: hidden; }
#cShop .listing .c-scard h3.title { min-height: 0; }
