/* Sub-category page heading label */
.cm-business-address { white-space: pre-line; overflow-wrap: anywhere; }
.contact-details a[href^="mailto:"], .sales-contact a[href^="mailto:"] { overflow-wrap: anywhere; }
.top-strip.cm-topbar-ready .top-inner { gap: 16px; }
.cm-mobile-hero-shipping { display:none; }
@media (max-width:640px) {
  .cm-mobile-hero-shipping { display:flex; align-items:center; justify-content:center; width:100%; min-height:38px; margin:0; padding:10px 10px 8px; background:var(--secondary); color:var(--primary-foreground); font-size:12.5px; font-weight:700; line-height:1.4; text-align:center; text-transform:uppercase; letter-spacing:0; overflow-wrap:anywhere; border-bottom:2px solid var(--primary); }
  .category-section.home-category-strip { padding-bottom:8px; }
}
/* Category directories share a full-width banner; cards stay unchanged. */
.storefront { --category-banner: var(--secondary); --category-banner-foreground: var(--primary-foreground); }
.cm-category-header { background:var(--category-banner); color:var(--category-banner-foreground); padding:64px 24px; text-align:center; border-bottom:4px solid var(--primary); }
.cm-category-header > div { max-width:1100px; margin-inline:auto; min-width:0; }
.cm-category-header h1 { font-size:40px; line-height:1.2; font-weight:750; text-transform:uppercase; letter-spacing:0; overflow-wrap:anywhere; margin:0; }
.cm-category-header p { max-width:900px; margin:20px auto 0; font-size:18px; line-height:1.7; white-space:pre-line; overflow-wrap:anywhere; }
.shopping-page .cm-subcategories-heading { width:fit-content; max-width:100%; margin:12px 0 28px; padding-bottom:12px; border-bottom:3px solid var(--primary); color:var(--secondary); font-size:28px; line-height:1.3; font-weight:750; letter-spacing:0; }
@media (max-width:1024px) { .cm-category-header { padding:48px 24px; } .cm-category-header h1 { font-size:34px; } }
@media (max-width:640px) { .cm-category-header { padding:34px 20px; } .cm-category-header h1 { font-size:27px; } .cm-category-header p { font-size:16px; margin-top:16px; } .shopping-page .cm-subcategories-heading { font-size:23px; margin-bottom:22px; } }

/* Sub-category cards: 1 phone / 3 tablet / 4 desktop, larger */
.shopping-page .subcategory-directory .all-categories { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important; }
.shopping-page .subcategory-directory .category-directory-item > div { aspect-ratio: 1.15 !important; }
.shopping-page .subcategory-directory .category-directory-item h2 { font-size: 17px !important; }
/* Match directory count badges to home categories without changing catalog values. */
.all-categories .cat-tile.category-directory-item .cat-tile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  max-width: 100%;
  margin-block: 4px 8px;
  align-self: center;
  padding: 6px 14px !important;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, var(--card)) !important;
  color: var(--primary) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.all-categories .cat-tile-count::after {
  content: "→";
  font-size: 19px;
  line-height: 1;
}
html:lang(ar-AE) .all-categories .cat-tile-count::after { content: "←"; }
/* Main category directory: balanced cards with complete product arrangements. */
.shopping-page > .all-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.shopping-page > .all-categories > .category-directory-item {
  border-radius: 8px;
  padding: 8px 8px 14px;
  gap: 10px;
  min-width: 0;
}
.shopping-page > .all-categories > .category-directory-item h2 {
  padding-inline: 6px !important;
  font-size: 16px;
  min-height: 2.6em !important;
  overflow-wrap: anywhere;
}
.shopping-page > .all-categories > .category-directory-item > div {
  background: var(--card) !important;
  border-radius: 4px;
}
.shopping-page > .all-categories > .category-directory-item > div img,
.shopping-page > .all-categories > .category-directory-item:hover > div img {
  padding: 0 !important;
  object-fit: contain !important;
}
@media (max-width: 1024px) {
  .shopping-page > .all-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 640px) {
  .shopping-page > .all-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopping-page > .all-categories > .category-directory-item h2 { font-size: 14px; }
}
@media (max-width: 480px) {
  .shopping-page > .all-categories { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin-inline: auto; }
}
@media (max-width: 1024px) {
  .shopping-page .subcategory-directory .all-categories { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; }
}
@media (max-width: 640px) {
  .shopping-page .subcategory-directory .all-categories { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  .shopping-page .subcategory-directory .category-directory-item h2 { font-size: 18px !important; }
}

/* Top bar (Ocean-Mania style) */
.top-strip.cm-topbar-ready .top-inner > :not(.language):not(.cm-tb) { display: none !important; }
.top-strip.cm-topbar-ready .top-inner { height: 44px; gap: 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; justify-content: space-between; }
.cm-tb { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.cm-tb svg { width: 20px; height: 20px; flex-shrink: 0; }
.cm-tb-ship { flex: 1; justify-content: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cm-tb-quote { background: var(--destructive); color: var(--destructive-foreground); padding: 0 18px; align-self: stretch; }
.cm-tb-quote:hover { filter: brightness(1.1); }
.cm-tb-flag { width: 22px; height: 14px; border-radius: 2px; }
.top-strip.cm-topbar-ready .language { display: inline-flex; align-items: center; gap: 6px; order: 10; }
.cm-tb-wa { order: 1; } .cm-tb-mail { order: 2; } .cm-tb-ship { order: 3; } .cm-tb-quote { order: 4; }
@media (max-width: 900px) {
  .cm-tb-mail, .cm-tb-ship, .cm-tb-quote { display: none !important; }
  .top-strip.cm-topbar-ready .top-inner { height: 36px; font-size: 11px; }
}
.shopping-page .subcategory-directory .all-categories { display: grid !important; justify-content: stretch !important; }
.shopping-page .subcategory-directory .all-categories > .category-directory-item { flex: none !important; width: 100% !important; max-width: none !important; }
.shopping-page .subcategory-directory .category-directory-item > div { width: 100% !important; }
.cm-social-login { display: grid; gap: 10px; margin: 4px 0 16px; }
.cm-social-login button { width: 100%; min-height: 42px; }
.cm-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-block: 24px; }
.billing-layout .cod-payment > svg, .order-success .order-meta svg.lucide-banknote { display: none; }
.billing-layout .commerce-trust span:nth-child(2) > svg { display: none; }
@media(max-width: 640px) {
  .acc-main { min-width: 0; }
  .acc-form input { min-width: 0; max-width: 100%; }
  .cm-social-login button { white-space: normal; }
}

/* Footer refresh: hide payment column, 4 balanced columns, larger text */
.ref-footer .footer-main>div:has(.pay-badges){display:none!important}
.ref-footer .footer-main{display:grid!important;grid-template-columns:1.25fr .9fr 1fr 1.35fr!important;gap:48px!important;padding-top:64px;padding-bottom:48px}
.ref-footer .footer-main h3{font-size:20px!important;position:relative;padding-bottom:12px;margin-bottom:22px}
.ref-footer .footer-main h3::after{content:"";position:absolute;left:0;bottom:0;width:42px;height:3px;border-radius:3px;background:#f26b0f}
.ref-footer .footer-main>div>a:not(.brand){font-size:17px!important;padding:7px 0;transition:color .2s,transform .2s;display:block}
.ref-footer .footer-main>div>a:not(.brand):hover{color:#f26b0f;transform:translateX(4px)}
.ref-footer .footer-brand p{font-size:17px!important;line-height:1.7}
.ref-footer .footer-contact .fc-row{font-size:17px!important;line-height:1.55}
.ref-footer .footer-bottom{font-size:15px!important}
@media (max-width:1024px){.ref-footer .footer-main{grid-template-columns:1fr 1fr!important;gap:40px 32px!important}}
@media (max-width:600px){.ref-footer .footer-main{grid-template-columns:1fr 1fr!important;gap:32px 20px!important}.ref-footer .footer-brand,.ref-footer .footer-contact{grid-column:1/-1}.ref-footer .footer-main>div>a:not(.brand),.ref-footer .footer-contact .fc-row{font-size:16px!important}}
/* Sub-category images fill the whole box edge to edge */
.shopping-page .subcategory-directory .category-directory-item > div { padding: 0 !important; overflow: hidden !important; border: 0 !important; box-shadow: none !important; }
.shopping-page .subcategory-directory .category-directory-item > div img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; display: block !important; margin: 0 !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }

/* Readable contact information without changing editable field markup. */
.contact-hero p { font-size: 17px; line-height: 1.7; max-width: 490px; }
.contact-hero h2 { font-size: 27px; max-width: 450px; }
.contact-promises strong { font-size: 14px; line-height: 1.4; }
.contact-promises small { font-size: 13px; line-height: 1.5; }
.contact-details { gap: 24px; padding-block: 36px; }
.contact-details > div > div { min-width: 0; }
.contact-details h3 { font-size: 15px; line-height: 1.4; }
.contact-details p, .contact-details a { font-size: 16px; line-height: 1.7; }
.contact-eyebrow { font-size: 14px; }
.contact-team > .store-container > p { font-size: 17px; line-height: 1.7; max-width: 650px; margin-block: 14px 26px; }
.sales-card > div:not(.sales-photo-placeholder) { padding: 18px; }
.sales-card h3 { font-size: 19px; line-height: 1.4; }
.sales-card p { font-size: 15px; line-height: 1.6; margin-block: 5px 14px; }
.sales-card a:not(.sales-whatsapp) { font-size: 14px; line-height: 1.6; margin-bottom: 10px; overflow-wrap: anywhere; }
.sales-card .sales-whatsapp { font-size: 15px !important; min-height: 46px; margin-top: 10px; }
.contact-message input, .contact-message select, .contact-message textarea { font-size: 16px; min-height: 46px; }
.contact-office p, .contact-office a, .contact-message form > p { font-size: 16px; line-height: 1.7; }

/* A compact marine-parts drawer with separate product tiles and fixed actions. */
.side-cart { width: min(460px, 100vw) !important; max-width: 460px !important; padding: 28px 22px 20px !important; gap: 12px; background: var(--background); border-top: 4px solid var(--primary); }
.side-cart > h2 { font-size: 23px; line-height: 1.4; padding-inline-end: 42px; margin: 0; min-height: 36px; }
.side-cart > h2 > svg { color: var(--primary); flex-shrink: 0; }
.side-cart > p { font-size: 14px; line-height: 1.5; margin: 0 0 6px; }
.side-cart > button { width: 36px; height: 36px; display: grid; place-items: center; opacity: 1; border: 1px solid var(--border); background: var(--background); border-radius: 6px; }
.side-cart-items { overscroll-behavior: contain; padding-block: 2px 12px; }
.side-cart .commerce-lines { display: grid; gap: 12px; }
.side-cart .compact .commerce-line { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 10px 8px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.side-cart .commerce-product { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; min-width: 0; grid-area: 1 / 1; }
.side-cart .commerce-product img { width: 76px; height: 84px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: var(--background); padding: 5px; }
.side-cart .commerce-product strong { display: block; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.side-cart .commerce-product small { display: block; font-size: 12px; line-height: 1.5; margin-top: 6px; color: var(--muted-foreground); }
.side-cart .compact .commerce-unit { grid-column: 1; margin: 0 0 0 88px; font-size: 17px; line-height: 1.4; color: var(--primary); }
.side-cart .compact .commerce-qty { grid-column: 1; margin: 0 0 0 88px; width: 116px; height: 40px; border-radius: 6px; background: var(--muted); border: 1px solid var(--border); display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; }
.side-cart .commerce-qty button { width: 38px; height: 38px; padding: 0; }
.side-cart .commerce-qty span { text-align: center; font-size: 15px; font-weight: 700; }
.side-cart .compact .commerce-line > button { grid-area: 1 / 2; width: 36px; height: 36px; color: var(--muted-foreground); border-radius: 6px; }
.side-cart .commerce-line > button:hover { color: var(--destructive); background: var(--muted); }
.side-cart-bottom { gap: 10px; padding-top: 16px; background: var(--background); flex-shrink: 0; }
.side-cart-bottom > div { font-size: 20px; line-height: 1.4; }
.side-cart-bottom .cart-delivery-perk { margin: 0; padding: 12px; background: var(--muted); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.side-cart-bottom > a { min-height: 48px; font-size: 16px; border-radius: 6px; }
@media (max-width: 640px) {
  .contact-promises { gap: 20px 12px; }
  .contact-promises > div { min-width: 0; align-items: flex-start; }
  .contact-promises svg { width: 36px; height: 36px; }
  .contact-hero h2 { font-size: 24px; }
  .contact-hero p { font-size: 16px; }
  .contact-details { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 20px; }
  .contact-details > div { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px 0; gap: 16px; }
  .contact-details > div:last-child { border: 0; }
  .contact-details h3 { margin-bottom: 7px; }
  .sales-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sales-card > img, .sales-photo-placeholder { aspect-ratio: 1.6; height: auto; }
  .sales-card h3 { font-size: 21px; }
  .sales-card p, .sales-card a:not(.sales-whatsapp) { font-size: 16px; }
  .contact-message form { grid-template-columns: minmax(0, 1fr); }
  .side-cart { width: min(460px, 94vw) !important; max-width: 94vw !important; padding: 22px 14px max(16px, env(safe-area-inset-bottom)) !important; }
  .side-cart > h2 { font-size: 21px; }
  .side-cart .compact .commerce-line { padding: 12px; }
  .side-cart .commerce-product { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .side-cart .commerce-product img { width: 64px; height: 76px; }
  .side-cart .commerce-product strong { font-size: 15px; }
  .side-cart .compact .commerce-unit, .side-cart .compact .commerce-qty { margin-left: 74px; }
}
@media (prefers-reduced-motion: no-preference) {
  .side-cart[data-state="open"] { animation: cm-cart-enter 220ms ease-out !important; }
  @keyframes cm-cart-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
}

/* Featured products: horizontal carousel above Top Categories. */
.featured-slider-section { margin-block: 36px; }
.featured-slider { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.featured-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-block: 6px 14px; scrollbar-width: none; }
.featured-track > * { min-width: 0; scroll-snap-align: start; height: auto; }
.featured-track::-webkit-scrollbar { display: none; }
.featured-dots { flex-wrap: wrap; }
.featured-dots button:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.featured-track:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 1100px) { .featured-track { grid-auto-columns: calc((100% - 24px) / 3); } }
@media (max-width: 700px) { .featured-slider { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; } .featured-track { grid-auto-columns: calc((100% - 12px) / 2); } }
@media (max-width: 480px) {
  .featured-slider { position: relative; display: block; }
  .featured-track { grid-auto-columns: calc((100% - 12px) / 2); }
  .featured-slider > .sub-arrow { position: absolute; top: 32%; z-index: 2; background: var(--background); }
  .featured-slider > .sub-arrow:first-child { left: -8px; }
  .featured-slider > .sub-arrow:last-child { right: -8px; }
  .featured-track .product-body { padding: 10px; }
  .featured-track .product-body h4 { font-size: 14px; overflow-wrap: anywhere; }
  .featured-track .rating { gap: 3px; font-size: 11px; }
  .featured-track .stars svg { width: 13px; height: 13px; }
  .featured-track .card-actions button { font-size: 12px; padding-inline: 6px; gap: 4px; white-space: normal; }
  .featured-track .cart-fly-arrow { display: none; }
  .featured-slider-section .section-heading { align-items: flex-start; gap: 12px; }
  .featured-slider-section .view-all { white-space: nowrap; }
}

/* Shop sidebar filters — card style */
.shop-page aside.shop-filters{background:var(--muted);border:1px solid var(--border);border-radius:18px;padding:18px 14px;display:flex;flex-direction:column;gap:4px}
.shop-page aside.shop-filters h3{display:flex;align-items:center;gap:8px;margin:18px 4px 8px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--secondary)}
.shop-page aside.shop-filters h3:first-child{margin-top:0}
.shop-page aside.shop-filters h3::before{content:"";width:4px;height:16px;border-radius:4px;background:var(--primary)}
.shop-page aside.shop-filters h3:not(:first-child){border-top:1px dashed var(--border);padding-top:16px}
.shop-page aside.shop-filters>a{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid transparent;color:var(--foreground);font-size:14px;font-weight:600;line-height:1.3;transition:all .18s ease}
.shop-page aside.shop-filters>a svg{width:15px;height:15px;flex:none;color:var(--primary);transition:transform .18s ease}
.shop-page aside.shop-filters>a:hover{border-color:var(--primary);transform:translateX(3px);box-shadow:0 6px 16px -10px rgba(244,106,11,.6)}
.shop-page aside.shop-filters>a:hover svg{transform:translateX(2px)}
.shop-page aside.shop-filters>a.active{background:linear-gradient(135deg,var(--primary),#ff8a3d);color:#fff;border-color:transparent;box-shadow:0 10px 22px -12px rgba(244,106,11,.9)}
.shop-page aside.shop-filters>a.active svg{color:#fff}
.shop-page aside.shop-filters>label{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid var(--border);font-size:14px;font-weight:600;color:var(--foreground);cursor:pointer;transition:all .18s ease}
.shop-page aside.shop-filters>label:hover{border-color:var(--primary);background:var(--orange-soft)}
.shop-page aside.shop-filters>label:has(input:checked){border-color:var(--primary);background:var(--orange-soft);color:var(--secondary)}
.shop-page aside.shop-filters input[type=checkbox],.shop-page aside.shop-filters input[type=radio]{appearance:none;-webkit-appearance:none;width:18px;height:18px;flex:none;margin:0;border:2px solid #cbd5e1;background:#fff;display:grid;place-content:center;cursor:pointer;transition:all .15s ease}
.shop-page aside.shop-filters input[type=checkbox]{border-radius:6px}
.shop-page aside.shop-filters input[type=radio]{border-radius:50%}
.shop-page aside.shop-filters input[type=checkbox]:checked{background:var(--primary);border-color:var(--primary)}
.shop-page aside.shop-filters input[type=checkbox]:checked::after{content:"";width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.shop-page aside.shop-filters input[type=radio]:checked{border-color:var(--primary)}
.shop-page aside.shop-filters input[type=radio]:checked::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--primary)}
.shop-page aside.shop-filters .small{display:inline-block;margin:0 4px 8px;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid var(--border);font-weight:700;color:var(--secondary);font-size:13px}
.shop-page aside.shop-filters input[type=range]{-webkit-appearance:none;appearance:none;width:calc(100% - 8px);margin:4px;height:6px;border-radius:99px;background:linear-gradient(90deg,var(--primary),#ff8a3d);outline:none}
.shop-page aside.shop-filters input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:4px solid var(--primary);box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer}
.shop-page aside.shop-filters input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:4px solid var(--primary);cursor:pointer}
.shop-page aside.shop-filters .stars svg{width:15px;height:15px}

/* About page: photos in the former icon-only panels */
.about-page .about-mark{position:relative;overflow:hidden;background:linear-gradient(180deg,transparent 60%,rgba(7,22,43,.35)),url("/cdn/c891784c-8978-4112-b337-230aeb6c41e9/about-showroom.webp") center/cover no-repeat!important;justify-content:flex-end!important;min-height:340px}
.about-page .about-mark>*{display:none!important}
.about-page .about-logistics{position:relative;overflow:hidden;background:linear-gradient(180deg,transparent 55%,rgba(7,22,43,.55)),url("/cdn/4997e686-2c9f-4e49-9d07-8b5142502ce7/about-logistics.webp") center/cover no-repeat!important;min-height:320px}
.about-page .about-logistics>*{display:none!important}

/* Reserve the final top-bar height before its script runs, so the whole page doesn't jump (layout shift). */
.top-strip .top-inner { min-height: 44px; box-sizing: border-box; }
@media (max-width: 900px) { .top-strip .top-inner { min-height: 36px; } }

/* Slightly larger category circles; preserve the complete product arrangement. */
.home-category-slider .home-cat > span { width: 154px; max-width: 154px; height: 154px; }
.home-category-slider .home-cat img { object-fit: contain; padding: 0; }
@media (min-width: 1025px) {
  .home-category-slider .home-cats { gap: 24px !important; }
  .home-category-slider .home-cat { flex: 0 0 calc((100% - 120px) / 6) !important; }
  .home-category-slider .home-cat > span { aspect-ratio: 1; width: 100%; height: auto; }
}
@media (max-width: 1024px) {
  .home-category-slider .home-cats { gap: 16px !important; }
  .home-category-slider .home-cat { flex: 0 0 calc((100% - 48px) / 4) !important; min-width: 0; }
  .home-category-slider .home-cat > span { aspect-ratio: 1; width: 100% !important; height: auto !important; }
  .home-category-slider .home-cat > span { max-width: 130px !important; }
}
@media (max-width: 640px) {
  .home-category-slider .home-cats { gap: 8px !important; }
  .home-category-slider .home-cat { flex: 0 0 calc((100% - 16px) / 3) !important; font-size: 13px !important; line-height: 1.25 !important; }
  .home-category-slider .home-cat > span { width: 100% !important; max-width: 96px !important; height: auto !important; }
  .home-category-slider .home-cat { overflow-wrap: anywhere; }
}

/* Tree selection stays in ProductBrowser; expansion is independent of filtering. */
.shop-page .cm-category-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; border:1px solid var(--border); border-radius:8px; background:var(--card); }
.shop-page .cm-category-branch { min-width:0; }
.shop-page .cm-category-row.active, .shop-page .cm-category-all.active { background:var(--primary); color:var(--primary-foreground); }
.shop-page aside.shop-filters .cm-category-select, .shop-page aside.shop-filters .cm-category-all { min-width:0; width:100%; height:auto; min-height:44px; padding:10px 12px; white-space:normal; overflow-wrap:anywhere; justify-content:flex-start; text-align:start; line-height:1.4; font-weight:600; color:inherit; }
.shop-page aside.shop-filters .cm-category-all { border:1px solid var(--border); border-radius:8px; background:var(--card); }
.shop-page aside.shop-filters .cm-category-all.active { background:var(--primary); color:var(--primary-foreground); }
.shop-page aside.shop-filters .cm-category-toggle { width:36px; height:40px; padding:8px; justify-content:center; color:var(--primary); }
.shop-page .cm-category-row.active .cm-category-toggle { color:var(--primary-foreground); }
.shop-page .cm-category-toggle svg { transition:transform 180ms ease; flex-shrink:0; }
.shop-page .cm-category-toggle[aria-expanded="true"] svg { transform:rotate(90deg); }
.shop-page .cm-category-children { display:grid; gap:6px; margin:6px 0 8px 10px; padding-left:8px; border-left:2px solid var(--border); }
.shop-page .shop-layout > section { min-width:0; }
/* Give the category tree more room without changing the product/filter behavior. */
@media (min-width: 801px) {
  .shop-page .shop-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; }
}
.shop-page aside.shop-filters h3:first-child { font-size: 16px; letter-spacing: 0; }
.shop-page aside.shop-filters .cm-category-select,
.shop-page aside.shop-filters .cm-category-all { font-size: 16px; min-height: 50px; padding: 12px 14px; }
.shop-page aside.shop-filters .cm-category-toggle { width: 40px; height: 46px; }
.shop-page aside.shop-filters .cm-category-toggle svg { width: 18px; height: 18px; }
.storefront .home-product-section { margin-block:28px 36px; min-width:0; }
.storefront .home-product-section .tab-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; padding:0; }
.storefront .home-product-section .tab-row button { min-height:44px; max-width:100%; white-space:normal; }
.storefront .home-product-section .home-section { margin-top:0; }
@media(max-width:640px) {
  .storefront .home-product-section { margin-block:24px 30px; }
  .storefront .home-product-section .tab-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .storefront .home-product-section .tab-row button { width:100%; padding:10px 8px; }
}
@media(prefers-reduced-motion:reduce) { .shop-page .cm-category-toggle svg { transition:none; } }

/* Hide archived admin links before the saved footer hydrates. */
.ref-footer a[href="/admin"], .ref-footer a[href="/auth"] { display:none!important; }

/* Phone: cart side panel opens at 80% width */
@media (max-width: 767px) {
  .side-cart { width: 80vw !important; max-width: 80vw !important; min-width: 0 !important; }
}

/* Shop categories: keep text readable on hover (selected stays orange with white text) */
.shop-page aside.shop-filters .cm-category-row:not(.active) .cm-category-select:hover,
.shop-page aside.shop-filters .cm-category-all:not(.active):hover,
.shop-page aside.shop-filters .cm-category-row:not(.active) .cm-category-toggle:hover { background:var(--orange-soft, #fff1e7); color:var(--secondary); }
.shop-page aside.shop-filters .cm-category-row:not(.active) .cm-category-toggle:hover { color:var(--primary); }
.shop-page aside.shop-filters .cm-category-row.active .cm-category-select,
.shop-page aside.shop-filters .cm-category-row.active .cm-category-select:hover,
.shop-page aside.shop-filters .cm-category-row.active .cm-category-toggle,
.shop-page aside.shop-filters .cm-category-row.active .cm-category-toggle:hover,
.shop-page aside.shop-filters .cm-category-all.active:hover { background:transparent; color:var(--primary-foreground); }
.shop-page aside.shop-filters .cm-category-all.active:hover { background:var(--primary); }
.shop-page aside.shop-filters .cm-category-row.active:hover { filter:brightness(1.05); }

/* Floating WhatsApp contact button + popup */
.cm-wa-float{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:flex-end;gap:10px;pointer-events:none}
.cm-wa-float>*{pointer-events:auto}
.cm-wa-btn{display:grid;place-items:center;width:58px;height:58px;flex:none;border-radius:50%;background:#25d366;color:#fff;box-shadow:0 10px 24px -8px rgba(18,140,74,.7);transition:transform .2s ease,box-shadow .2s ease;animation:cm-wa-pulse 2.6s ease-out infinite}
.cm-wa-btn:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 14px 28px -8px rgba(18,140,74,.8)}
.cm-wa-btn:focus-visible{outline:3px solid #0b1f3a;outline-offset:3px}
.cm-wa-pop{position:relative;max-width:240px;margin-bottom:6px;padding:12px 30px 12px 14px;border-radius:14px 14px 4px 14px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 12px 30px -12px rgba(11,31,58,.35);animation:cm-wa-in .35s ease .8s both}
.cm-wa-pop a{display:grid;gap:3px;color:#0b1f3a;font-size:13px;line-height:1.4;text-decoration:none}
.cm-wa-pop strong{font-size:13px;color:#128c4a}
.cm-wa-close{position:absolute;top:4px;right:6px;width:22px;height:22px;border:0;border-radius:50%;background:transparent;color:#64748b;font-size:18px;line-height:1;cursor:pointer}
.cm-wa-close:hover{background:#f1f5f9;color:#0b1f3a}
@keyframes cm-wa-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cm-wa-pulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,.55),0 10px 24px -8px rgba(18,140,74,.7)}70%{box-shadow:0 0 0 14px rgba(37,211,102,0),0 10px 24px -8px rgba(18,140,74,.7)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0),0 10px 24px -8px rgba(18,140,74,.7)}}
@media (max-width:767px){.cm-wa-float{right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}.cm-wa-btn{width:52px;height:52px}.cm-wa-pop{max-width:170px;padding:10px 26px 10px 12px}.cm-wa-pop a{font-size:12px}}
@media (prefers-reduced-motion:reduce){.cm-wa-btn,.cm-wa-pop{animation:none}}
body:has(.side-cart) .cm-wa-float{display:none}

/* View All pill buttons on home sections */
a.view-all{display:inline-flex!important;align-items:center;gap:8px;padding:9px 18px 9px 20px;border:1.5px solid #f26b1d;border-radius:999px;background:#fff;color:#f26b1d!important;font-weight:600;font-size:14px;line-height:1;text-decoration:none!important;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s,transform .2s;flex-shrink:0;align-self:center}
a.view-all svg{width:16px;height:16px;transition:transform .2s}
a.view-all:hover,a.view-all:focus-visible{background:#f26b1d;color:#fff!important;box-shadow:0 6px 16px -6px rgba(242,107,29,.6);transform:translateY(-1px)}
a.view-all:hover svg{transform:translateX(3px)}
@media (max-width:640px){a.view-all{padding:7px 13px;font-size:13px;gap:6px}a.view-all svg{width:14px;height:14px}}
.cm-wa-float.is-left{right:auto;left:20px;flex-direction:row-reverse}
@media (max-width:767px){.cm-wa-float.is-left{right:auto;left:14px}}
@media (min-width:1101px){.why-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (min-width:768px) and (max-width:1100px){.why-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Brand logos beside the unchanged Shop checkbox filters. */
.shop-page aside.shop-filters > label { flex-wrap:wrap; overflow-wrap:anywhere; }
.shop-page aside.shop-filters .cmb-filter-logo { width:64px; height:40px; flex:none; object-fit:contain; padding:3px; border-radius:4px; background:var(--card); }
.shop-page aside.shop-filters .cmb-filter-logo[hidden] { display:none; }

/* Phone filters retain the same mounted controls and product selections. */
.cm-filter-trigger, .cm-filter-heading, .cm-filter-footer, .cm-filter-backdrop { display:none!important; }
@media (max-width:767px) {
  .shop-page .shop-layout { grid-template-columns:minmax(0,1fr); }
  .shop-page aside.shop-filters { position:fixed; inset:0 auto 0 0; width:min(360px,88vw); height:100dvh; max-height:100dvh; margin:0; border-radius:0; border:0; z-index:101; overflow-y:auto; overscroll-behavior:contain; padding:0 16px; background:var(--background); transform:translateX(-100%); visibility:hidden; pointer-events:none; transition:transform 220ms ease,visibility 220ms; }
  .shop-page aside.shop-filters { min-height:0!important; }
  .shop-page aside.shop-filters.cm-filters-open { transform:translateX(0); visibility:visible; pointer-events:auto; }
  .shop-page aside.shop-filters.cm-filters-open > * { visibility:visible!important; }
  .shop-page .cm-filter-backdrop { display:block!important; position:fixed; inset:0; width:100%; height:100dvh; z-index:100; border:0; border-radius:0; padding:0; background:color-mix(in srgb,var(--foreground) 45%,transparent); }
  .shop-page .cm-filter-backdrop:hover { background:color-mix(in srgb,var(--foreground) 45%,transparent); }
  .shop-page .cm-filter-heading { display:grid!important; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; position:sticky; top:0; z-index:2; background:var(--background); border-bottom:1px solid var(--border); padding:14px 0; }
  .shop-page .cm-filter-heading h2 { min-width:0; font-size:20px; margin:0; }
  .shop-page .cm-filter-heading button { flex-shrink:0; font-size:28px; }
  .shop-page .cm-filter-footer { display:block!important; position:sticky; bottom:0; z-index:2; background:var(--background); border-top:1px solid var(--border); padding:12px 0 max(12px,env(safe-area-inset-bottom)); margin-top:16px; }
  .shop-page .cm-filter-footer button { width:100%; min-height:46px; }
  .shop-page .cm-filter-trigger { display:inline-flex!important; min-height:42px; }
  .shop-page .shop-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
  .shop-page .shop-toolbar > span { min-width:0; font-size:13px; text-align:end; }
  .shop-page .shop-toolbar > div { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; min-width:0; }
  .shop-page .shop-toolbar > div > label { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:6px; }
  .shop-page .shop-toolbar select { width:100%; min-width:0; }
  .shop-page:has(.cm-filters-open) .cm-wa-float { display:none; }
}
@media (prefers-reduced-motion:reduce) { .shop-page aside.shop-filters { transition:none; } }

/* Footer social, payment and delivery icons (edited in Admin > Header & Footer). */
.ref-footer .cm-footer-badges { border-top:1px solid color-mix(in srgb,var(--primary-foreground) 12%,transparent); }
.ref-footer .cm-footer-badges-inner { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; padding-top:36px; padding-bottom:36px; align-items:start; }
.ref-footer .cm-badge-group { min-width:0; text-align:center; }
.ref-footer .cm-badge-group h3 { margin:0 0 20px; font-size:22px; font-weight:700; letter-spacing:0; color:var(--primary-foreground); position:relative; padding-bottom:12px; }
.ref-footer .cm-badge-group h3::after { content:""; position:absolute; left:50%; bottom:0; width:42px; height:3px; border-radius:3px; background:var(--primary); transform:translateX(-50%); }
.ref-footer .cm-badge-row { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.ref-footer .cm-badge { display:inline-flex; align-items:center; justify-content:center; line-height:0; border-radius:10px; transition:transform .2s ease, box-shadow .2s ease; }
.ref-footer .cm-badge img { display:block; height:44px; width:auto; max-width:72px; object-fit:contain; border-radius:9px; }
.ref-footer .cm-badge-group[data-group="0"] .cm-badge img { height:48px; max-width:64px; }
.ref-footer a.cm-badge:hover { transform:translateY(-3px); box-shadow:0 8px 18px color-mix(in srgb,var(--foreground) 35%,transparent); }
.ref-footer a.cm-badge:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
@media (max-width:1024px) { .ref-footer .cm-footer-badges-inner { grid-template-columns:1fr; gap:28px; } }
@media (max-width:640px) { .ref-footer .cm-footer-badges-inner { padding-top:28px; padding-bottom:28px; } .ref-footer .cm-badge-group h3 { font-size:19px; margin-bottom:16px; } .ref-footer .cm-badge-row { gap:9px; } .ref-footer .cm-badge img { height:42px; max-width:72px; } .ref-footer .cm-badge-group[data-group="0"] .cm-badge img { height:42px; max-width:42px; } }

/* Distinct card design for the footer icon groups. */
.ref-footer .cm-footer-badges { position:relative; border-top:0; background:linear-gradient(180deg,color-mix(in srgb,var(--primary-foreground) 4%,transparent),transparent 70%); }
.ref-footer .cm-footer-badges::before { content:""; position:absolute; inset:0 0 auto; height:2px; background:linear-gradient(90deg,transparent,var(--primary),transparent); opacity:.8; }
.ref-footer .cm-footer-badges-inner { gap:22px; padding-top:40px; padding-bottom:40px; }
.ref-footer .cm-badge-group { position:relative; padding:26px 18px 24px; border-radius:18px; border:1px solid color-mix(in srgb,var(--primary-foreground) 12%,transparent); background:color-mix(in srgb,var(--primary-foreground) 5%,transparent); box-shadow:inset 0 1px 0 color-mix(in srgb,var(--primary-foreground) 10%,transparent); transition:border-color .25s ease, transform .25s ease; overflow:hidden; }
.ref-footer .cm-badge-group::after { content:""; position:absolute; width:140px; height:140px; right:-50px; top:-60px; border-radius:50%; background:radial-gradient(circle,color-mix(in srgb,var(--primary) 30%,transparent),transparent 70%); pointer-events:none; }
.ref-footer .cm-badge-group:hover { border-color:color-mix(in srgb,var(--primary) 55%,transparent); transform:translateY(-2px); }
.ref-footer .cm-badge-group h3 { font-size:21px; padding-bottom:14px; }
.ref-footer .cm-badge-group h3::before { content:"⚓"; display:inline-block; margin-inline-end:8px; color:var(--primary); font-size:.8em; vertical-align:2px; }
.ref-footer .cm-badge-group h3::after { width:56px; height:3px; background:linear-gradient(90deg,var(--primary),color-mix(in srgb,var(--primary) 20%,transparent)); }
.ref-footer .cm-badge { padding:4px; border-radius:14px; background:color-mix(in srgb,var(--primary-foreground) 8%,transparent); border:1px solid color-mix(in srgb,var(--primary-foreground) 10%,transparent); }
.ref-footer a.cm-badge:hover { transform:translateY(-4px) scale(1.05); border-color:var(--primary); box-shadow:0 10px 22px color-mix(in srgb,var(--primary) 30%,transparent); }
.ref-footer .cm-badge-group[data-group="0"] .cm-badge { border-radius:50%; padding:5px; }
.ref-footer .cm-badge-group[data-group="0"] .cm-badge img { border-radius:50%; }
@media (max-width:640px) { .ref-footer .cm-badge-group { padding:20px 12px 18px; border-radius:14px; } .ref-footer .cm-badge { padding:3px; } }
.ref-footer .cm-badge-row { gap:8px; }
.ref-footer .cm-badge-group:not([data-group="0"]) .cm-badge img { height:38px; max-width:58px; }
@media (max-width:640px) { .ref-footer .cm-badge-row { gap:6px; } .ref-footer .cm-badge-group:not([data-group="0"]) .cm-badge img { height:34px; max-width:52px; } }
@media (min-width:1025px) { .ref-footer .cm-badge-row { flex-wrap:nowrap; } .ref-footer .cm-badge { flex:0 1 auto; min-width:0; } }
@media (max-width:640px) { .home-product-section:first-of-type, main > .home-product-section { margin-top:6px !important; } .featured-slider-section { padding-top:10px !important; } .cm-hero-dots { margin-top:2px; } }
/* Main Categories: card layout (reference design) */
.home-category-strip { background:transparent !important; background-image:none !important; }
.home-category-slider .home-cats { padding:10px 4px 14px !important; }
.home-category-slider .home-cat { display:flex !important; flex-direction:column; align-items:center; justify-content:flex-start; gap:10px; padding:16px 12px 16px !important; background:var(--card,#fff); border:1px solid color-mix(in srgb,var(--secondary,#0b2545) 9%,transparent); border-radius:22px; box-shadow:0 8px 22px -12px color-mix(in srgb,var(--secondary,#0b2545) 28%,transparent); color:var(--secondary,#0b2545) !important; font-weight:700; text-align:center; line-height:1.25; transition:transform .2s ease, box-shadow .2s ease; min-height:100%; }
.home-category-slider .home-cat:hover { transform:translateY(-3px); box-shadow:0 14px 28px -14px color-mix(in srgb,var(--secondary,#0b2545) 38%,transparent); }
.home-category-slider .home-cat::after { content:""; display:block; width:40px; height:3px; border-radius:3px; background:var(--primary,#ff7900); margin-top:2px; }
.home-category-slider .home-category-arrow { width:44px !important; height:44px !important; border-radius:50% !important; background:var(--secondary,#0b2545) !important; color:#fff !important; border:0 !important; box-shadow:0 6px 16px -6px color-mix(in srgb,var(--secondary,#0b2545) 60%,transparent); }
.home-category-slider .home-category-arrow:disabled { opacity:.35 !important; }
@media (max-width:640px) {
  .home-category-slider .home-cats { gap:12px !important; scroll-snap-type:x mandatory; overflow-x:auto !important; }
  .home-category-slider .home-cat { flex:0 0 calc((100% - 24px) / 2.35) !important; scroll-snap-align:start; padding:12px 8px 12px !important; gap:10px; font-size:13.5px !important; border-radius:18px; overflow-wrap:normal; }
  .home-category-slider .home-cat > span { max-width:120px !important; width:100% !important; }
  .home-category-slider .home-category-arrow { width:32px !important; height:32px !important; }
}
/* Main Categories: shorter cards, phone shows 2 */
.home-category-slider .home-cats { align-items:stretch !important; }
.home-category-slider .home-cat { min-height:0 !important; height:auto !important; padding:14px 10px 12px !important; gap:8px !important; }
@media (max-width:640px) {
  .home-category-slider .home-cat { flex:0 0 calc((100% - 12px) / 2) !important; padding:12px 8px 10px !important; }
}
.home-category-slider .home-category-arrow { align-self:center !important; margin-top:0 !important; margin-bottom:0 !important; }
