/* Reeha storefront refinements: compact premium home, accurate shop alignment,
   stable filter controls and mobile-first corrections. */
:root{
  --content:1240px;
  --wide:1320px;
}

/* Shared product card corrections */
.server-product-card .product-media{
  aspect-ratio:1 / 1.08;
  background:var(--cream);
  overflow:hidden;
}
.server-product-card .product-image{
  display:grid;
  width:100%;
  height:100%;
  place-items:center;
}
.server-product-card .product-image img{
  width:100%;
  height:100%;
  padding:16px;
  object-fit:contain;
  mix-blend-mode:multiply;
  transition:transform .35s ease;
}
.server-product-card:hover .product-image img{transform:scale(1.025)}
.server-product-card .product-actions{
  grid-template-columns:minmax(0,1fr) 54px;
  gap:6px;
  left:8px;
  right:8px;
  bottom:8px;
}
.server-product-card .product-action-form{margin:0;min-width:0}
.server-product-card .product-action-form button,
.server-product-card .product-quick-link{
  width:100%;
  min-height:42px;
  border:0;
  background:var(--solid);
  color:var(--on-solid);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:8px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.server-product-card .product-quick-link{background:var(--paper);color:var(--ink)}
.server-product-card .product-info{padding-top:13px}
.server-product-card .product-name{
  min-height:34px;
  max-width:none;
  margin:7px auto 5px;
  font-size:10px;
  line-height:1.55;
}
.server-product-card .price{font-size:11px}
.server-product-card .wishlist-form button{font-family:Arial,sans-serif}

/* Home page: follows the dense, clean editorial rhythm of the supplied reference. */
.home-page{background:var(--paper)}
.home-intro-section{padding:30px 0 20px}
.home-banner{
  min-height:270px;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}
.home-banner:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(14,12,9,.76),rgba(14,12,9,.34) 53%,rgba(14,12,9,.05));
}
.home-banner-copy{
  position:relative;
  z-index:1;
  width:min(560px,70%);
  padding:42px 50px;
  color:var(--on-solid);
}
.home-banner-copy h1{
  margin:12px 0 18px;
  font-family:var(--font-display);
  font-size:clamp(38px,4.5vw,63px);
  font-weight:500;
  line-height:.98;
}
.home-banner-link{
  display:inline-block;
  padding-bottom:4px;
  border-bottom:1px solid currentColor;
  font-size:9px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.home-quick-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:20px;
}
.home-quick-card{
  min-height:190px;
  position:relative;
  overflow:hidden;
  background:var(--cream);
}
.home-quick-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.home-quick-card:hover img{transform:scale(1.03)}
.home-quick-card:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(12,10,8,.62),transparent 60%)}
.home-quick-card>span{
  position:absolute;
  left:20px;
  right:20px;
  bottom:18px;
  z-index:1;
  color:var(--on-solid);
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.home-section{padding:54px 0}
.home-editorial-section{padding-top:20px}
.home-editorial-grid{display:grid;grid-template-columns:1.1fr .85fr .85fr;gap:14px}
.home-editorial-card{
  min-height:350px;
  position:relative;
  overflow:hidden;
  background:var(--cream);
}
.home-editorial-card img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.home-editorial-card:hover img{transform:scale(1.025)}
.home-editorial-card:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(12,10,8,.68),transparent 67%)}
.home-editorial-copy{position:absolute;left:24px;right:24px;bottom:24px;z-index:1;color:var(--on-solid);text-align:center}
.home-editorial-copy span,.home-editorial-copy b{font-size:8px;letter-spacing:.16em;text-transform:uppercase}
.home-editorial-copy h2{margin:7px 0 13px;font-family:var(--font-display);font-size:30px;line-height:1;font-weight:500}
.home-editorial-copy b{display:inline-block;padding:7px 12px;border:1px solid rgba(255,255,255,.75)}
.home-section-heading{margin-bottom:28px}
.home-section-heading h2{
  margin:7px 0 0;
  font-family:var(--font-display);
  font-size:clamp(34px,4vw,49px);
  line-height:1;
  font-weight:500;
}
.home-section-heading-centered{text-align:center}
.home-section-heading-row{display:flex;align-items:end;justify-content:space-between;gap:24px}
.home-text-link{font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;border-bottom:1px solid currentColor;padding-bottom:3px}
.home-mosaic-section{padding-top:40px}
.home-mosaic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.home-mosaic-card{aspect-ratio:1.12/1;position:relative;overflow:hidden;background:var(--cream)}
.home-mosaic-card img{width:100%;height:100%;padding:12px;object-fit:contain;mix-blend-mode:multiply;transition:transform .35s ease}
.home-mosaic-card:hover img{transform:scale(1.03)}
.home-mosaic-card:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(12,10,8,.54),transparent 54%)}
.home-mosaic-overlay{position:absolute;left:18px;right:18px;bottom:17px;z-index:1;color:var(--on-solid);text-align:center}
.home-mosaic-overlay h3{margin:0 0 5px;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.home-mosaic-overlay span{font-size:8px;letter-spacing:.18em;text-transform:uppercase}
.home-products-section{padding-top:60px}
.home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 18px}
.home-sample-section{padding:42px 0;background:var(--paper)}
.home-sample-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center}
.home-sample-copy h2{margin:9px 0 13px;font-family:var(--font-display);font-size:42px;line-height:1;font-weight:500}
.home-sample-copy p{max-width:630px;color:var(--muted);margin:0 0 22px}
.home-sample-images{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.home-sample-images img{width:100%;aspect-ratio:1.25/1;object-fit:contain;background:var(--paper);padding:10px;mix-blend-mode:multiply}
.home-lifestyle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-lifestyle-card{min-height:300px;position:relative;overflow:hidden;background:var(--cream)}
.home-lifestyle-card img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.home-lifestyle-card:hover img{transform:scale(1.025)}
.home-lifestyle-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,10,8,.62),rgba(12,10,8,.12))}
.home-lifestyle-card>div{position:absolute;left:32px;bottom:30px;z-index:1;color:var(--on-solid);max-width:70%}
.home-lifestyle-card h3{margin:8px 0 12px;font-family:var(--font-display);font-size:36px;line-height:1;font-weight:500}
.home-lifestyle-card b{font-size:8px;letter-spacing:.16em;text-transform:uppercase;border-bottom:1px solid currentColor;padding-bottom:3px}
.home-category-footer-section{padding-top:35px;padding-bottom:75px}
.compact-heading h2{font-size:38px}
.home-category-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-category-footer-grid a{position:relative;min-height:170px;overflow:hidden;background:var(--cream)}
.home-category-footer-grid img{width:100%;height:100%;object-fit:cover}
.home-category-footer-grid a:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(12,10,8,.5),transparent 55%)}
.home-category-footer-grid span{position:absolute;left:15px;right:15px;bottom:14px;z-index:1;color:var(--on-solid);text-align:center;font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}

/* Shop page and category filter corrections */
.shop-hero{padding:48px 0 36px;background:var(--paper)}
.shop-hero h1{font-family:var(--font-sans);font-size:34px;letter-spacing:-.02em;font-weight:500;text-transform:uppercase}
.shop-section{padding:20px 0 90px}
.shop-layout{grid-template-columns:210px minmax(0,1fr);gap:34px}
.shop-filters{top:136px;min-width:0}
.shop-filter-mobile-head{display:none}
.filter-group{padding:16px 0;border-bottom:1px solid var(--line)}
.filter-group:first-of-type{padding-top:0}
.filter-title{margin-bottom:12px}
.filter-category-list{display:grid;grid-template-columns:1fr;gap:0}
.control-check,
.filter-option{
  display:flex!important;
  width:100%;
  align-items:center;
  gap:9px;
  margin:0!important;
  padding:5px 0;
  line-height:1.35;
}
.filter-child-option{padding-left:22px}
.filter-label-text{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0}
.filter-label-text>span{min-width:0;overflow-wrap:anywhere}
.filter-label-text small{flex:0 0 auto;color:var(--muted);font-size:10px}
.shop-search-field{min-height:42px;font-size:11px}
.custom-price-filter{margin-top:9px}
.custom-price-filter summary{cursor:pointer;color:var(--muted);font-size:10px}
.price-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.price-fields .field-control{min-height:42px;padding:0 10px}
.shop-filter-apply{min-height:44px;margin-top:18px}
.shop-clear-link{display:block;margin-top:11px;padding-bottom:8px;border-bottom:1px solid var(--ink);font-size:10px}
.shop-results{min-width:0}
.shop-toolbar{margin-bottom:22px}
.shop-toolbar-count span{font-size:11px;color:var(--muted)}
.shop-toolbar-count strong{color:var(--ink)}
.shop-sort-form select{min-height:42px;border:1px solid var(--line);background:var(--paper);padding:0 38px 0 13px;font-size:10px;outline:none}
.active-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-6px 0 20px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.active-filter-chips{display:flex;flex-wrap:wrap;gap:6px}
.active-filter-chips span{padding:5px 8px;background:var(--cream);font-size:9px}
.active-filter-bar>a{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.shop-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:38px 16px}
.shop-product-grid .server-product-card .product-media{aspect-ratio:1/1.03}
.pagination-wrap{margin-top:48px}

/* Admin product category checklist: aligned roots and children. */
.category-tree .tree{
  display:flex!important;
  width:100%;
  align-items:center;
  gap:8px;
  padding:5px 3px!important;
  margin:0;
  line-height:1.25;
}
.category-tree .tree.child{padding-left:24px!important;color:var(--muted)}
.category-tree .tree .check{margin:0;flex:0 0 16px}

@media(max-width:1180px){
  .shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-editorial-grid{grid-template-columns:1.15fr 1fr}
  .home-editorial-card:last-child{grid-column:1/-1;min-height:280px}
}

@media(max-width:960px){
  .home-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-sample-grid{grid-template-columns:1fr}
  .shop-layout{grid-template-columns:1fr}
  .shop-filter-mobile-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
  .shop-filter-mobile-head strong{display:block;margin-top:3px;font-family:var(--font-display);font-size:28px;font-weight:500}
  .shop-filters{padding:24px 24px 35px}
}

@media(max-width:720px){
  .home-intro-section{padding-top:16px}
  .home-banner{min-height:420px;background-position:62% center}
  .home-banner-copy{width:100%;padding:40px 26px;align-self:flex-end}
  .home-quick-grid{gap:8px;margin-top:10px}
  .home-quick-card{min-height:150px}
  .home-editorial-grid{grid-template-columns:1fr;gap:10px}
  .home-editorial-card,.home-editorial-card:last-child{grid-column:auto;min-height:330px}
  .home-mosaic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 10px}
  .home-lifestyle-grid{grid-template-columns:1fr}
  .home-lifestyle-card{min-height:330px}
  .home-category-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-section-heading-row{align-items:flex-start;flex-direction:column}
  .shop-section{padding-top:8px}
  .shop-toolbar{align-items:center}
  .shop-toolbar-count{width:auto}
  .shop-sort-form{margin-left:auto}
  .shop-sort-form select{max-width:175px}
  .shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 10px}
  .server-product-card .product-actions{position:absolute;left:6px;right:6px;bottom:6px;transform:none;margin:0;grid-template-columns:1fr 48px}
  .server-product-card .product-action-form button,.server-product-card .product-quick-link{min-height:38px;font-size:7px}
  .server-product-card .product-name{font-size:9px;min-height:40px}
}

@media(max-width:480px){
  .home-banner{min-height:360px}
  .home-banner-copy h1{font-size:39px}
  .home-quick-card{min-height:125px}
  .home-quick-card>span{left:10px;right:10px;bottom:10px;font-size:8px}
  .home-section{padding:43px 0}
  .home-mosaic-card{aspect-ratio:1/1.12}
  .home-mosaic-overlay{left:8px;right:8px;bottom:10px}
  .home-mosaic-overlay h3{font-size:10px}
  .home-sample-copy h2{font-size:35px}
  .home-sample-images{gap:6px}
  .home-category-footer-grid a{min-height:125px}
  .shop-hero{padding:35px 0 25px}
  .shop-hero h1{font-size:28px}
  .shop-toolbar{display:flex;gap:8px}
  .shop-toolbar-count span{display:none}
  .shop-sort-form select{max-width:155px;font-size:9px;padding-left:9px}
  .shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .server-product-card .product-image img{padding:8px}
  .server-product-card .product-info{padding-top:9px}
  .server-product-card .product-category{font-size:7px}
  .server-product-card .price{font-size:10px;white-space:normal}
  .server-product-card .price-old{display:block;margin:0 0 1px}
}

@media(max-width:350px){
  .shop-product-grid,.home-product-grid{grid-template-columns:1fr}
}
