/* ==========================================================
   CONWAY BRASSTECH - FINAL RESPONSIVE SYSTEM
   Header / Search / Navigation / Hero / Grids / Footer
   Breakpoints: Desktop > 1149 | Tablet 769-1149 | Mobile <=768
   ========================================================== */

html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body{
  min-width: 0;
}

.container{
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------------- TOP BAR ---------------- */






/* ---------------- HEADER ---------------- */
























/* ---------------- CATEGORY MARQUEE ---------------- */












/* ---------------- HERO ---------------- */
.hero{
  width: 100%;
  min-width: 0;
}

.hero-copy, .hero-art{
  min-width: 0;
}

/* ---------------- TABLET: 769px - 1149px ---------------- */
@media (min-width: 769px) and (max-width: 1149px) {
  .container{
    width: min(100% - 32px, 1080px);
  }

  

  

  

  

  

  

  

  

  

  

  

  .hero{
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr) !important;
    min-height: 350px;
    margin-top: 24px;
  }

  .hero-copy{
    padding: 42px 38px !important;
  }

  .hero h1{
    font-size: clamp(40px, 5vw, 54px) !important;
  }

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

  .soft-section{
    margin-inline: 0;
    padding: 32px;
  }

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

/* ---------------- MOBILE: <=768px ---------------- */
@media (max-width: 768px) {
  .container{
    width: min(100% - 24px, 680px);
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .main-content{
    padding-bottom: 42px;
  }

  .hero{
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    margin: 18px 0 42px !important;
    border-radius: 16px !important;
  }

  .hero-copy{
    order: 1;
    padding: 32px 24px 20px !important;
  }

  .hero .eyebrow{
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .hero h1{
    font-size: clamp(32px, 10vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.5px !important;
    margin: 12px 0 !important;
  }

  .hero p{
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions{
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
  }

  .hero-art{
    order: 2;
    min-height: 250px !important;
    height: 250px;
  }

  .hero-orbit{
    width: 220px;
    height: 220px;
  }

  .hero-orbit.orbit-two{
    width: 310px;
    height: 310px;
  }

  .hero-metal{
    width: 130px;
    height: 130px;
    border-radius: 32px;
    font-size: 40px;
  }

  .hero-note{
    right: 12%;
    bottom: 9%;
    font-size: 8px;
    letter-spacing: 1.3px;
  }

  .section{
    margin: 42px 0;
  }

  .section-heading{
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .section-heading h2, .support-strip h2{
    font-size: 24px;
  }

  .category-grid, .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .category-tile{
    min-height: 72px !important;
    padding: 14px !important;
    border-radius: 10px !important;
  }

  .category-tile .tile-arrow{
    display: none !important;
  }

  .category-tile strong{
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .section:has(.category-grid){
    margin-block: 28px !important;
  }

  .soft-section{
    margin-inline: 0 !important;
    padding: 22px 14px !important;
    border-radius: 14px;
  }

  .product-card .product-image{
    height: 175px !important;
    min-height: 175px !important;
  }

  .product-card .product-info{
    padding: 11px !important;
  }

  .product-card .product-info h3{
    font-size: 12px;
    min-height: 36px;
  }

  .product-card .card-actions{
    flex-direction: column !important;
    gap: 6px !important;
  }

  .product-card .card-actions > a, .product-card .card-actions > form, .product-card .card-actions > form > button{
    width: 100% !important;
  }

  .support-strip{
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
    gap: 18px;
    margin: 42px 0 8px;
    border-radius: 14px;
  }

  .support-strip .button{
    width: 100%;
    text-align: center;
  }

  .footer-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .site-footer{
    padding-top: 34px;
  }

  .footer-brand{
    grid-column: 1 / -1;
  }
}

/* ---------------- SMALL MOBILE: <=480px ---------------- */
@media (max-width: 480px) {
  .container{
    width: calc(100% - 20px);
  }

  

  

  

  

  

  

  

  

  

  

  

  .hero-copy{
    padding: 28px 18px 18px !important;
  }

  .hero h1{
    font-size: 31px !important;
  }

  .hero p{
    font-size: 13px;
  }

  .hero-actions{
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button, .hero-actions .text-link{
    width: 100%;
    text-align: center;
  }

  .hero-art{
    min-height: 220px !important;
    height: 220px;
  }

  .hero-metal{
    width: 112px;
    height: 112px;
    font-size: 34px;
  }

  .category-grid, .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .category-tile{
    min-height: 58px !important;
    padding: 11px !important;
  }

  .category-tile strong{
    font-size: 11px !important;
  }

  .product-card .product-image{
    height: 210px !important;
    min-height: 210px !important;
  }

  .footer-grid{
    grid-template-columns: 1fr;
  }

  .footer-brand{
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track{
    animation: none !important;
    transform: none !important;
  }
}

/* =========================
   HOMEPAGE IMAGE SLIDER
   =========================
   Responsive natural-height slider: image width is always 100%;
   the slider does not use a fixed/min-height on any breakpoint.
*/
.hero-slider{
  position: relative;
  width: 100%;
  margin: 28px 0 42px;
  overflow: hidden;
  border-radius: 20px;
  background: #f3eafa;
  box-shadow: 0 18px 50px rgba(76, 22, 120, .10);
  isolation: isolate;
}

.hero-slider-track{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.hero-slide{
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translateX(0);
  will-change: transform, opacity;
}

.hero-slide.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Natural image ratio: never force a fixed slider height. */
.hero-slide-image{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #f5effb;
}

/* Premium combined transition: horizontal slide + fade + subtle zoom. */
.hero-slide.is-entering-next{
  animation: heroSlideFromRight .72s cubic-bezier(.22,.61,.36,1) both;
}
.hero-slide.is-entering-prev{
  animation: heroSlideFromLeft .72s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes heroSlideFromRight {
  0% { transform: translateX(100%); opacity: 0; }
  35% { opacity: .45; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes heroSlideFromLeft {
  0% { transform: translateX(-100%); opacity: 0; }
  35% { opacity: .45; }
  100% { transform: translateX(0); opacity: 1; }
}
.hero-slide.is-entering-next .hero-slide-image, .hero-slide.is-entering-prev .hero-slide-image{
  animation: heroImageZoom .9s cubic-bezier(.22,.61,.36,1) both;
  transform-origin: center center;
}
@keyframes heroImageZoom {
  from { transform: scale(1.10); }
  to { transform: scale(1); }
}

.hero-slide-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  background: linear-gradient(90deg, rgba(26,16,34,.72) 0%, rgba(26,16,34,.36) 38%, rgba(26,16,34,0) 72%);
}
.hero-slide-content{
  width: min(620px, 62%);
  color: #fff;
}
.hero-slide-content .eyebrow{ color: #fff; }
.hero-slide-content h1{
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero-slide-content p{
  max-width: 560px;
  margin: 0 0 22px;
  color: rgba(255,255,255,.92);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.55;
}
.hero-slide-content .button{ color: #fff; }

/* Refined Previous / Next controls */
.hero-slider-arrow{
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  background: rgba(55, 20, 79, .82);
  color: #fff;
  box-shadow: 0 10px 28px rgba(28, 8, 43, .30), inset 0 1px 0 rgba(255,255,255,.18);
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}
.hero-slider-arrow:hover, .hero-slider-arrow:focus-visible{
  background: #7026a8;
  border-color: #fff;
  outline: none;
}
.hero-slider-arrow:active{ background: #5b1f88; }
.hero-slider-prev{ left: 18px; }
.hero-slider-next{ right: 18px; }

@media (max-width: 900px) {
  .hero-slider{
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 18px;
  }
  .hero-slide-content{ width: min(570px, 72%); }
  .hero-slider-arrow{ width: 48px; height: 48px; font-size: 30px; }
}

@media (max-width: 760px) {
  .hero-slider{
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    margin: 18px 0 34px;
    border-radius: 14px;
  }
  .hero-slide-image{
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .hero-slide-overlay{
    padding: 20px 20px 24px;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(26,16,34,0) 18%, rgba(26,16,34,.18) 36%, rgba(26,16,34,.82) 100%);
  }
  .hero-slide-content{ width: 100%; }
  .hero-slide-content h1{ font-size: clamp(25px, 8vw, 40px); }
  .hero-slide-content p{ font-size: 13px; }
  .hero-slider-arrow{ width: 42px; height: 42px; font-size: 27px; }
  .hero-slider-prev{ left: 10px; }
  .hero-slider-next{ right: 10px; }
}

@media (max-width: 480px) {
  .hero-slider{
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 12px;
  }
  .hero-slide-content h1{ font-size: 28px; }
  .hero-slide-content p{ margin-bottom: 14px; }
  .hero-slide-content .button{ width: 100%; text-align: center; }
  .hero-slider-arrow{ width: 38px; height: 38px; font-size: 24px; }
  .hero-slider-prev{ left: 8px; }
  .hero-slider-next{ right: 8px; }
}

/* Admin slider */
.slider-admin-card .muted strong{ color: var(--brand-primary, #7026a8); }
.slider-current-image{ padding: 12px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fafafa; }
.slider-current-image img{ display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; }
.slider-admin-grid{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.slider-admin-item{ display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 16px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.slider-admin-thumb{ aspect-ratio: 16/8; overflow: hidden; border-radius: 10px; background: #f4eff8; }
.slider-admin-thumb img{ width: 100%; height: 100%; display: block; object-fit: cover; }
.slider-admin-meta{ min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.slider-admin-meta strong{ font-size: 16px; }
.slider-admin-meta > span{ font-size: 12px; color: #64748b; }
.slider-admin-meta p{ margin: 0; color: #64748b; font-size: 13px; line-height: 1.4; }
.slider-admin-meta .admin-actions{ margin-top: auto; }
@media (max-width: 900px) { .slider-admin-grid{ grid-template-columns: 1fr; } }
@media (max-width: 620px) { .slider-admin-item{ grid-template-columns: 1fr; } }

/* Category/brand name-only tiles */
.category-name-only{ min-height: 76px; padding: 20px 48px 20px 20px; display:flex; align-items:center; }
.category-name-only strong{ font-size: 15px; line-height: 1.35; }
.category-name-only .tile-arrow{ top: 50%; transform: translateY(-50%); }
.category-name-only:hover .tile-arrow{ color: var(--brand-primary, #7026a8); }
.brand-grid{ margin-top: 4px; }
.slider-timing-card{ margin-bottom: 18px; }
.slider-timing-form{ align-items: end; }
.slider-timing-form label{ max-width: 360px; }
@media (max-width: 900px) { .category-grid{ grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) { .category-grid{ grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .category-name-only{ min-height: 66px; padding: 16px 38px 16px 16px; } .category-name-only strong{ font-size: 14px; } }
@media (max-width: 420px) { .category-grid{ grid-template-columns: 1fr; } }


/* Header brand-name visibility fix: keep the complete Conway Brasstech name visible. */


/* ==========================================================
   MOBILE / TABLET HEADER + NATURAL IMAGE SLIDER OVERRIDES
   Requested layout:
   - Tablet/phone: logo and search bar stay on the SAME ROW.
   - Hide the Conway Brasstech text/subheading on tablet/phone.
   - Header actions remain on their own compact row below.
   - Slider width is 100% and height follows the uploaded image naturally.
   ========================================================== */


@media (max-width: 768px) {
  

  

  

  

  

  

  

  

  

  

  

  .hero-slider{
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 16px 0 30px !important;
    border-radius: 12px !important;
  }

  .hero-slider-track{
    width: 100% !important;
    height: auto !important;
  }

  .hero-slide-image{
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
}

@media (max-width: 420px) {
  

  

  

  

  .hero-slider{
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 14px !important;
  }
}


/* ==========================================================
   HOMEPAGE DESKTOP-TO-MOBILE SCALE SYSTEM
   Keeps the desktop composition and only scales/reflows it
   for tablet and phone. Slider remains natural-height.
   ========================================================== */
.homepage{
  width: min(1240px, calc(100% - 40px));
}

.homepage .section{
  width: 100%;
}

.homepage .section-heading{
  min-width: 0;
}

.homepage .section-heading > div{
  min-width: 0;
}

.homepage .section-heading h2{
  font-size: clamp(24px, 2.25vw, 30px);
}

.homepage .section-heading p{
  font-size: clamp(12px, 1.1vw, 15px);
}

.homepage .category-grid, .homepage .product-grid{
  width: 100%;
}

.homepage .category-tile, .homepage .product-card{
  min-width: 0;
}

.homepage .category-name-only{
  min-height: clamp(68px, 8vw, 92px);
  padding: clamp(16px, 1.6vw, 22px) clamp(18px, 1.7vw, 22px);
  padding-right: 44px;
}

.homepage .category-name-only strong{
  font-size: clamp(12px, 1.05vw, 15px);
}

.homepage .soft-section{
  width: calc(100% + 30px);
}

.homepage .support-strip{
  width: 100%;
}

/* Tablet: preserve the PC hierarchy, scale spacing/type and use
   three equal columns so nothing becomes cramped. */
@media (min-width: 769px) and (max-width: 1149px) {
  .homepage{
    width: min(100% - 32px, 1080px);
  }

  .homepage .section{
    margin: 48px 0;
  }

  .homepage .section-heading{
    margin-bottom: 20px;
  }

  .homepage .section-heading h2{
    font-size: clamp(23px, 2.7vw, 28px);
  }

  .homepage .category-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .homepage .product-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  .homepage .category-name-only{
    min-height: 76px;
    padding: 18px 42px 18px 18px;
  }

  .homepage .category-name-only strong{
    font-size: 13px;
  }

  .homepage .product-card .product-image{
    height: clamp(180px, 22vw, 215px) !important;
    min-height: 0 !important;
  }

  .homepage .product-card .product-info{
    padding: 13px;
  }

  .homepage .product-card .product-info h3{
    font-size: 13px;
    min-height: 38px;
  }

  .homepage .product-card .card-actions{
    gap: 6px;
  }

  .homepage .soft-section{
    width: 100%;
    margin-inline: 0 !important;
    padding: 30px !important;
  }

  .homepage .support-strip{
    padding: 30px 32px;
    gap: 22px;
  }
}

/* Phone: keep the same visual order as desktop; only reduce sizes,
   spacing and columns so every block remains readable. */
@media (max-width: 768px) {
  .homepage{
    width: calc(100% - 20px);
  }

  .homepage .section{
    margin: 34px 0;
  }

  .homepage .section-heading{
    margin-bottom: 14px;
    gap: 6px;
  }

  .homepage .section-heading h2{
    font-size: clamp(21px, 6vw, 25px);
    margin: 4px 0;
  }

  .homepage .section-heading p{
    font-size: 11px;
    line-height: 1.45;
    margin-top: 4px;
  }

  .homepage .section-heading > .text-link{
    font-size: 11px;
  }

  .homepage .category-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .homepage .category-name-only{
    min-height: 58px;
    padding: 14px 34px 14px 13px;
    border-radius: 9px;
  }

  .homepage .category-name-only strong{
    font-size: 11px;
    line-height: 1.3;
  }

  .homepage .category-name-only .tile-arrow{
    right: 10px;
    font-size: 12px;
  }

  .homepage .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }

  .homepage .product-card{
    border-radius: 10px;
  }

  .homepage .product-card .product-image{
    height: clamp(145px, 42vw, 190px) !important;
    min-height: 0 !important;
  }

  .homepage .product-card .product-info{
    padding: 9px;
  }

  .homepage .product-card .sku{
    font-size: 8px;
  }

  .homepage .product-card .product-info h3{
    font-size: 11px;
    line-height: 1.35;
    min-height: 31px;
    margin: 5px 0 8px;
  }

  .homepage .product-card .price strong{
    font-size: 14px;
  }

  .homepage .product-card .stock{
    font-size: 9px;
  }

  .homepage .product-card .card-actions{
    gap: 5px !important;
    margin-top: 9px;
  }

  .homepage .product-card .card-actions > a, .homepage .product-card .card-actions > form, .homepage .product-card .card-actions > form > button{
    min-height: 31px;
    font-size: 9px;
  }

  .homepage .soft-section{
    width: 100%;
    margin-inline: 0 !important;
    padding: 20px 10px !important;
    border-radius: 12px;
  }

  .homepage .support-strip{
    width: 100%;
    margin: 34px 0 8px;
    padding: 22px 18px;
    border-radius: 12px;
    gap: 14px;
  }

  .homepage .support-strip h2{
    font-size: 21px;
    line-height: 1.2;
  }

  .homepage .support-strip p{
    font-size: 12px;
    line-height: 1.45;
  }

  .homepage .support-strip .button{
    width: 100%;
    min-height: 42px;
  }
}

@media (max-width: 480px) {
  .homepage{
    width: calc(100% - 16px);
  }

  .homepage .section{
    margin: 30px 0;
  }

  .homepage .section-heading h2{
    font-size: 20px;
  }

  .homepage .category-grid, .homepage .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
  }

  .homepage .category-name-only{
    min-height: 54px;
    padding: 12px 30px 12px 11px;
  }

  .homepage .category-name-only strong{
    font-size: 10px;
  }

  .homepage .product-card .product-image{
    height: clamp(125px, 40vw, 165px) !important;
  }

  .homepage .product-card .product-info{
    padding: 8px;
  }

  .homepage .product-card .product-info h3{
    font-size: 10px;
    min-height: 28px;
  }

  .homepage .product-card .price strong{
    font-size: 13px;
  }

  .homepage .product-card .card-actions > a, .homepage .product-card .card-actions > form > button{
    font-size: 8px;
    padding: 7px 5px;
  }
}


/* ==========================================================
   FINAL HOMEPAGE MOBILE/TABLET POLISH
   - Mobile/tablet: logo LEFT + search RIGHT on the same row.
   - Hide mobile brand text; keep the logo clean.
   - Category + brand tiles stay compact in TWO columns.
   - Search matches partial words across product/code/category/brand.
   ========================================================== */
@media (max-width: 768px) {
  

  

  

  

  

  

  

  .homepage .category-grid, .homepage .brand-grid, .homepage .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .homepage .category-name-only{
    min-height: 58px !important;
    height: auto !important;
    padding: 12px 13px !important;
    border-radius: 9px !important;
  }

  .homepage .category-name-only strong{
    display: block;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .homepage .category-name-only .tile-arrow{
    display: none !important;
  }

  .homepage .section:has(.category-grid), .homepage .section:has(.brand-grid){
    margin-block: 28px !important;
  }

  .homepage .section-heading{
    margin-bottom: 12px !important;
  }
}

@media (max-width: 420px) {
  

  

  

  

  .homepage .category-grid, .homepage .brand-grid, .homepage .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .homepage .category-name-only{
    min-height: 52px !important;
    padding: 10px 11px !important;
  }

  .homepage .category-name-only strong{
    font-size: 10px !important;
  }
}


/* ==========================================================
   FINAL MOBILE HEADER + RESPONSIVE SLIDER IMAGES
   Mobile: logo | search | wishlist | cart in ONE ROW.
   Tablet: same compact single-row priority layout.
   ========================================================== */




/* Tablet keeps logo + search + wishlist + cart together in one compact row. */


/* Responsive slider images: natural height, no fixed crop. */
.hero-slide-picture{ display:block; width:100%; line-height:0; }
.hero-slide-picture img{ user-select:none; -webkit-user-drag:none; }
@media (max-width:768px) {
  .hero-slide-picture, .hero-slide-image{ width:100% !important; height:auto !important; max-width:100% !important; }
}

/* Casual image-saving deterrence. This is not a cryptographic protection: anything
   visible in a browser can ultimately be captured by screenshots/devtools/network tools. */
img, .hero-slide-image{ -webkit-user-drag:none; user-select:none; }

/* Admin responsive slider image manager */
.responsive-image-help{grid-column:1/-1;padding:12px 14px;border:1px solid #eadcf4;border-radius:12px;background:#faf6fd;color:#5d5365;font-size:13px;line-height:1.5}
.responsive-current-images{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.responsive-current-images>div{padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.responsive-current-images span{display:block;margin-bottom:7px;font-weight:700;font-size:12px;color:#4c1678}
.responsive-current-images img{display:block;width:100%;height:120px;object-fit:contain;border-radius:8px;background:#f7f7f8}
@media(max-width:700px){.responsive-current-images{grid-template-columns:1fr}.responsive-current-images img{height:auto;max-height:180px}}

/* ==========================================================
   MOBILE HEADER V2 - dedicated mobile layout
   Mobile only: quick actions left, compact logo right,
   full-width search on the next row, slide-out navigation.
   Desktop/tablet header remains unchanged.
   ========================================================== */








/* ==========================================================
   MOBILE HEADER FINAL CLEAN REBUILD
   - Completely hides the desktop/topbar header on phones.
   - One compact row: LOGO LEFT | CART | FAVOURITE | MENU RIGHT.
   - Full-width search is the second row.
   ========================================================== */




/* ==========================================================
   FINAL MOBILE HEADER + NAVIGATION OVERRIDE
   Purpose: remove every legacy mobile/desktop header rule from
   the phone layout and leave one clean, predictable header.
   ========================================================== */
@media (max-width: 768px) {
  /* Remove the legacy announcement/header completely on phones. */
  

  html, body{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  

  

  /* Row 1: LOGO LEFT | CART | WISHLIST | MENU RIGHT */
  

  

  

  

  

  

  

  

  

  

  /* Purple hamburger button using the existing theme. */
  

  

  

  

  /* Row 2: full-width search. */
  

  

  

  

  /* Keep the horizontal category overflow directly UNDER the search bar. */
  

  

  

  

  

  

  /* Compact text-width option cards used by category/brand/finder sections. */
  .compact-option-grid, .find-by-id-section .finder-grid, .find-by-category-section .finder-grid{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .compact-option-grid{
    justify-content: flex-start !important;
    align-content: flex-start !important;
  }

  .compact-option-grid > .category-tile, .find-by-id-section .finder-grid > *, .find-by-category-section .finder-grid > *{
    flex: 0 0 auto !important;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .compact-option-grid > .category-tile{
    min-height: 46px !important;
    padding: 10px 12px !important;
    border-radius: 9px !important;
  }

  .compact-option-grid > .category-tile strong, .find-by-id-section .finder-grid > *, .find-by-category-section .finder-grid > *{
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}



/* =========================================================
   HIDE OLD DESKTOP HEADER ON MOBILE + TABLET
   ========================================================= */

@media (max-width: 768px) {
    .container header-main desktop-header-inner{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    
}

/* ==========================================================
   CONWAY BRASSTECH — CLEAN RESPONSIVE HEADER SYSTEM
   Desktop: >= 1150px
   Tablet + Mobile: <= 1149px
   ========================================================== */

:root {
  --cb-purple: var(--brand-primary, #7026a8);
  --cb-purple-dark: var(--brand-dark, #4c1678);
  --cb-purple-soft: var(--brand-soft, #f0e4fa);
  --cb-ink: #101820;
  --cb-muted: #66727b;
  --cb-line: #eadcf4;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

body {
  overflow-x: hidden;
}

/* ==========================================================
   DESKTOP
   ========================================================== */
.cb-desktop-header {
  display: block;
  width: 100%;
}

.cb-desktop-topbar {
  width: 100%;
  min-height: 34px;
  padding: 7px max(20px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  background: var(--cb-purple-dark);
  color: #fff;
  font: 500 12px/1.2 "DM Sans", sans-serif;
  white-space: nowrap;
  overflow: hidden;
}

.cb-desktop-topbar > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-desktop-main {
  width: min(1240px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(300px, 1fr) auto;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}

.cb-desktop-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cb-desktop-logo {
  flex: 0 0 auto;
  display: block;
  width: min(var(--logo-width, 260px), 190px);
  height: min(var(--logo-height, 80px), 66px);
  max-width: 190px;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
}

.cb-desktop-brand-copy {
  flex: 0 0 auto;
  color: var(--cb-ink);
  font: 800 18px/1.12 "Manrope", sans-serif;
  letter-spacing: -.45px;
  white-space: nowrap;
}

.cb-desktop-brand-copy small {
  display: block;
  margin-top: 4px;
  color: #75817f;
  font: 500 9px/1.2 "DM Sans", sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.cb-desktop-search,
.cb-mobile-search {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d9e0e1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(16,24,32,.04);
}

.cb-desktop-search input,
.cb-mobile-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--cb-ink);
  font: 400 14px/1.2 "DM Sans", sans-serif;
}

.cb-desktop-search input {
  height: 50px;
  padding: 0 16px;
}

.cb-desktop-search button,
.cb-mobile-search button {
  flex: 0 0 auto;
  border: 0;
  background: var(--cb-purple);
  color: #fff;
  font: 800 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.cb-desktop-search button {
  width: 90px;
  height: 50px;
}

.cb-desktop-search button:hover,
.cb-mobile-search button:hover {
  background: var(--cb-purple-dark);
}

.cb-desktop-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  white-space: nowrap;
}

.cb-desktop-actions a {
  color: var(--cb-ink);
  text-decoration: none;
  font: 700 13px/1 "DM Sans", sans-serif;
}

.cb-desktop-actions a:hover {
  color: var(--cb-purple);
}

.cb-desktop-actions .cb-cart b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  margin-left: 3px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--cb-purple-soft);
  color: var(--cb-purple);
  font: 800 10px/1 "DM Sans", sans-serif;
}

/* ==========================================================
   TABLET + MOBILE
   Completely separate from desktop markup.
   ========================================================== */
.cb-responsive-header {
  display: none;
}

@media (max-width: 1149px) {
  .cb-desktop-header {
    display: none !important;
  }

  .cb-responsive-header {
    display: block;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--cb-line);
  }

  .cb-mobile-row {
    width: 100%;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-sizing: border-box;
  }

  .cb-mobile-logo-link {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
  }

  .cb-mobile-logo {
    display: block;
    width: auto;
    height: 52px;
    max-width: 210px;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
  }

  .cb-mobile-actions {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .cb-mobile-action,
  .cb-mobile-menu-button {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #dccde7;
    border-radius: 12px;
    background: #fff;
    color: var(--cb-purple);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(76,22,120,.09);
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
  }

  .cb-mobile-action:hover {
    background: var(--cb-purple-soft);
    border-color: var(--cb-purple);
  }

  .cb-mobile-action:active,
  .cb-mobile-menu-button:active {
    transform: scale(.95);
  }

  .cb-mobile-cart .cb-mobile-icon {
    font-size: 18px;
    line-height: 1;
  }

  .cb-mobile-wishlist .cb-mobile-icon {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
  }

  .cb-mobile-cart b {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--cb-purple);
    color: #fff;
    font: 800 9px/1 "DM Sans", sans-serif;
  }

  .cb-mobile-menu-button {
    border-color: var(--cb-purple);
    background: var(--cb-purple);
    color: #fff;
    cursor: pointer;
  }

  .cb-mobile-menu-button > span {
    width: 20px;
    height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .cb-mobile-menu-button i {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .cb-mobile-search-row {
    width: 100%;
    padding: 0 16px 12px;
    box-sizing: border-box;
  }

  .cb-mobile-search {
    height: 46px;
    box-shadow: 0 3px 12px rgba(16,24,32,.05);
  }

  .cb-mobile-search input {
    height: 46px;
    padding: 0 13px;
    font-size: 12px;
  }

  .cb-mobile-search button {
    width: 72px;
    height: 46px;
    padding: 0 8px;
    font-size: 10px;
  }
}

/* ==========================================================
   TABLET
   ========================================================== */
@media (min-width: 769px) and (max-width: 1149px) {
  .cb-mobile-row {
    min-height: 70px;
    padding: 11px 20px;
  }

  .cb-mobile-logo {
    height: 56px;
    max-width: 220px;
    max-height: 56px;
  }

  .cb-mobile-actions {
    gap: 10px;
  }

  .cb-mobile-action,
  .cb-mobile-menu-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .cb-mobile-search-row {
    padding: 0 20px 12px;
  }

  .cb-mobile-search {
    height: 48px;
  }

  .cb-mobile-search input,
  .cb-mobile-search button {
    height: 48px;
  }

  .cb-mobile-search input {
    font-size: 13px;
  }

  .cb-mobile-search button {
    width: 82px;
    font-size: 12px;
  }
}

/* ==========================================================
   PHONE
   ========================================================== */
@media (max-width: 768px) {
  .cb-mobile-row {
    min-height: 56px;
    padding: 7px 10px;
    gap: 8px;
  }

  .cb-mobile-logo {
    height: 39px;
    max-width: 130px;
    max-height: 39px;
  }

  .cb-mobile-actions {
    gap: 6px;
  }

  .cb-mobile-action,
  .cb-mobile-menu-button {
    width: 37px;
    height: 37px;
    min-width: 37px;
    border-radius: 10px;
  }

  .cb-mobile-search-row {
    padding: 0 10px 9px;
  }

  .cb-mobile-search {
    height: 42px;
    border-radius: 9px;
  }

  .cb-mobile-search input {
    height: 42px;
    padding: 0 10px;
    font-size: 11px;
  }

  .cb-mobile-search button {
    width: 64px;
    height: 42px;
    font-size: 10px;
  }
}

/* ==========================================================
   VERY SMALL PHONE
   ========================================================== */
@media (max-width: 420px) {
  .cb-mobile-row {
    min-height: 52px;
    padding: 6px 8px;
    gap: 6px;
  }

  .cb-mobile-logo {
    height: 34px;
    max-width: 108px;
    max-height: 34px;
  }

  .cb-mobile-actions {
    gap: 5px;
  }

  .cb-mobile-action,
  .cb-mobile-menu-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
  }

  .cb-mobile-cart .cb-mobile-icon {
    font-size: 15px;
  }

  .cb-mobile-wishlist .cb-mobile-icon {
    font-size: 19px;
  }

  .cb-mobile-menu-button > span,
  .cb-mobile-menu-button i {
    width: 16px;
  }

  .cb-mobile-search-row {
    padding-inline: 8px;
    padding-bottom: 8px;
  }

  .cb-mobile-search {
    height: 40px;
  }

  .cb-mobile-search input,
  .cb-mobile-search button {
    height: 40px;
  }

  .cb-mobile-search input {
    font-size: 10px;
  }

  .cb-mobile-search button {
    width: 58px;
    font-size: 9px;
  }
}

/* ==========================================================
   MOBILE / TABLET MENU
   ========================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,10,22,.48);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(88vw, 380px);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 14px 0 40px rgba(0,0,0,.18);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform .25s ease;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-head {
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--cb-purple-dark), var(--cb-purple));
  color: #fff;
  font: 800 19px/1 "Manrope", sans-serif;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-primary {
  padding: 8px 18px 16px;
}

.mobile-menu-primary > a,
.mobile-menu-primary summary {
  min-height: 48px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  border-bottom: 1px solid #f0ebf4;
  color: #15121a;
  text-decoration: none;
  font: 700 14px/1.2 "DM Sans", sans-serif;
  list-style: none;
  cursor: pointer;
}

.mobile-menu-primary > a:hover,
.mobile-menu-primary summary:hover {
  color: var(--cb-purple);
}

.mobile-menu-primary summary::-webkit-details-marker {
  display: none;
}

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 10px;
  padding: 6px 0 8px 10px;
}

.mobile-category-list a {
  padding: 10px 4px;
  border-bottom: 1px solid #f5f1f7;
  color: #5f5865;
  text-decoration: none;
  font: 500 12px/1.3 "DM Sans", sans-serif;
}

.mobile-menu-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  padding: 15px 18px 20px;
  border-top: 1px solid var(--cb-line);
  background: #faf8fc;
}

.mobile-menu-bottom a {
  min-height: 42px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #e5d8ed;
  border-radius: 9px;
  background: #fff;
  color: var(--cb-purple);
  text-decoration: none;
  text-align: center;
  font: 700 11px/1.15 "DM Sans", sans-serif;
}

@media (max-width: 1149px) {
  body.mobile-menu-open {
    overflow: hidden;
  }
}

@media (min-width: 1150px) {
  .mobile-menu,
  .cb-responsive-header {
    display: none !important;
  }
}

/* ==========================================================
   CATEGORY BAR / HORIZONTAL OVERFLOW
   It always sits immediately below the responsive search.
   ========================================================== */
.category-nav.category-marquee {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  border-top: 1px solid var(--cb-line);
  border-bottom: 1px solid var(--cb-line);
  background: #fff;
  overflow: hidden;
}

.category-marquee-viewport {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #cdb0df transparent;
}

.category-marquee-track {
  width: max-content;
  min-width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
}

.category-marquee-group {
  flex: 0 0 auto;
  width: max-content;
  height: 100%;
  padding-right: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.category-marquee-group a,
.category-marquee-separator {
  flex: 0 0 auto;
  white-space: nowrap;
}

.category-marquee-group a {
  color: #25303a;
  text-decoration: none;
  font: 600 13px/1 "DM Sans", sans-serif;
}

.category-marquee-group a:hover {
  color: var(--cb-purple);
}

.category-marquee-separator {
  color: #c29bdb;
  font-size: 11px;
}

@media (max-width: 768px) {
  .category-nav.category-marquee {
    height: 40px;
  }

  .category-marquee-group {
    gap: 15px;
    padding-right: 15px;
  }

  .category-marquee-group a {
    font-size: 10px;
  }
}

/* Keep images from being draggable; JS adds the right-click deterrent. */
img {
  -webkit-user-drag: none;
}


/* ==========================================================
   MOBILE CATEGORY / BRAND FILTER DROPDOWN
   Desktop/tablet layout remains unchanged; on phones the
   filter panel stays hidden until the user opens it.
   ========================================================== */
.mobile-filter-toggle-wrap{
  display:none;
}

@media (max-width: 768px){
  .mobile-filter-toggle-wrap{
    display:block;
    margin: 0 0 12px;
  }

  .mobile-filter-toggle{
    width:100%;
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 14px;
    border:1px solid var(--cb-line, #eadcf4);
    border-radius:10px;
    background:#fff;
    color:var(--cb-ink, #101820);
    font:800 13px/1 "DM Sans", sans-serif;
    cursor:pointer;
    box-shadow:0 3px 12px rgba(76,22,120,.06);
  }

  .mobile-filter-toggle:hover,
  .mobile-filter-toggle[aria-expanded="true"]{
    border-color:var(--cb-purple, #7026a8);
    color:var(--cb-purple, #7026a8);
  }

  .mobile-filter-chevron{
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:var(--cb-purple-soft, #f0e4fa);
    color:var(--cb-purple, #7026a8);
    font-size:16px;
    line-height:1;
    transition:transform .18s ease;
  }

  .mobile-filter-toggle[aria-expanded="true"] .mobile-filter-chevron{
    transform:rotate(180deg);
  }

  /* Category page: existing filter panel is collapsed by default. */
  .catalog-layout{
    display:block !important;
  }

  .catalog-layout > .filter-panel{
    display:none;
    margin:0 0 16px;
    padding:16px;
    border-radius:10px;
  }

  .catalog-layout > .filter-panel.mobile-filter-open{
    display:block;
  }


}
