.gamh{
  --orange:#ff6900;
  --ink:#181a20;
  --muted:#747780;
  --line:#e8e8e5;
  --soft:#f5f5f3;
  --gamh-gap:16px;
  width:min(1600px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  margin:0 0 70px 50%;
  padding:0;
  transform:translateX(-50%);
  clear:both;
  position:relative;
  isolation:isolate;
  overflow-x:clip;
  color:var(--ink);
  font-family:inherit;
}
.gamh,.gamh *{box-sizing:border-box}
.gamh a{text-decoration:none}
.gamh img{display:block;max-width:100%;height:auto}
.gajed-basic-page:has(.gamh),
.gajed-basic-page>article:has(.gamh),
.entry-content:has(.gamh){max-width:none!important;width:100%!important;min-width:0!important}
.gajed-basic-page:has(.gamh){padding-top:0!important;padding-bottom:0!important}
.gajed-basic-page>article:has(.gamh){font-size:inherit!important;line-height:normal!important;color:inherit!important}

.gamh-section{padding-top:36px;min-width:0}
.gamh-image-slot{height:var(--slot-height);max-width:100%;overflow:hidden;border-radius:22px;background:#f4f4f4;min-width:0}
.gamh-image-slot>a,.gamh-image-slot img{display:block;width:100%;height:100%}
.gamh-image-slot img{object-fit:cover}
.gamh-hero-slot{margin-top:20px}
.gamh-wide-banner{margin-top:36px}

/* Five-box promotional mosaic. Grid children are explicitly allowed to shrink. */
.gamh-promo-mosaic{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:36px;min-width:0}
.gamh-promo-mosaic>div{min-width:0;min-height:0;overflow:hidden}
.gamh-promo-promo_1{grid-column:1;grid-row:1/3}
.gamh-promo-promo_2{grid-column:2;grid-row:1}
.gamh-promo-promo_3{grid-column:2;grid-row:2;width:50%;padding-right:7px}
.gamh-promo-promo_4{grid-column:2;grid-row:2;margin-left:50%;padding-left:7px}
.gamh-promo-promo_5{grid-column:3;grid-row:1/3}
.gamh-promo-mosaic .gamh-image-slot{height:100%;min-height:240px;border-radius:18px}
.gamh-split-banners{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:36px;min-width:0}
.gamh-split-banners>*{min-width:0}
.gamh-split-banners .gamh-image-slot{height:var(--slot-height)}

/* Category rail */
.gamh-category-section{padding-top:32px}
.gamh-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:14px;min-width:0}
.gamh-categories>a{display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--ink);min-width:0;max-width:100%}
.gamh-cat-image{display:block;width:88px;height:88px;aspect-ratio:1;border:0;border-radius:18px;background:transparent;margin:0 auto 9px;overflow:hidden}
.gamh-cat-image img{width:100%;height:100%;padding:0;object-fit:cover;border-radius:18px;transition:.35s}
.gamh-categories>a:hover img{transform:scale(1.07)}
.gamh-categories strong{display:block;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.gamh-categories small{color:#96989e;font-size:10px}

/* Product rows: never depend on a theme-set card width. */
.gamh-theme-products{display:grid;grid-template-columns:repeat(var(--gamh-cols,6),minmax(0,1fr));gap:16px;width:100%;min-width:0;align-items:stretch}
.gamh-theme-products>*{min-width:0}
/* Theme-owned product cards keep their own dimensions, padding, brand/rating row,
   wishlist heart and compact CTA. AI Homepage controls only the surrounding grid. */
.gamh-theme-products>.gajed-product-card{min-width:0}
.gamh-theme-products>.gamh-product-card{min-width:0;max-width:100%;width:100%;overflow:hidden}
.gamh-product-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;min-width:0;display:flex;flex-direction:column;transition:.22s}
.gamh-product-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(25,25,30,.09);border-color:transparent}
.gamh-product-image{display:block;aspect-ratio:1.04;background:#f8f8f6;position:relative;overflow:hidden}
.gamh-product-image img{width:100%;height:100%;object-fit:contain;padding:13px;transition:.35s}
.gamh-product-card:hover .gamh-product-image img{transform:scale(1.04)}
.gamh-discount{position:absolute;z-index:2;top:11px;left:11px;padding:7px 9px;border-radius:8px;background:var(--orange);color:#fff;font-size:10px;font-weight:700}
.gamh-product-info{padding:15px;display:flex;flex-direction:column;flex:1;min-width:0}
.gamh-product-category{font-size:9px;color:#92949a;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gamh-product-category a{color:inherit}
.gamh-product-card h3{font-size:13px;line-height:1.43;font-weight:400;margin:8px 0 10px;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gamh-product-card h3 a{color:var(--ink)}
.gamh-rating{display:flex;gap:6px;align-items:center;min-height:19px}
.gamh-rating span{color:#ff9d00;letter-spacing:-1px;font-size:11px}
.gamh-rating small{font-size:9px;color:#92949a}
.gamh-card-bottom{display:flex;justify-content:space-between;gap:8px;align-items:end;margin-top:auto;padding-top:9px;min-width:0}
.gamh-price{font-size:18px;color:var(--orange);line-height:1.15;min-width:0;overflow-wrap:anywhere}
.gamh-price del{display:block;font-size:10px;color:#92949a}
.gamh-price ins{text-decoration:none}
.gamh-cart{width:35px;height:35px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;flex:0 0 35px;font-size:19px;transition:.2s}
.gamh-cart:hover{background:var(--orange);color:#fff}

/* AJAX brands */
.gamh-brands{margin-top:36px;padding:24px;background:#f5f5f5;border-radius:18px;min-width:0;overflow:hidden}
.gamh-brands.gamh-section{padding-top:24px}
.gamh-brand-tabs{display:flex;justify-content:center;align-items:center;gap:15px;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:0 8px 18px;scrollbar-width:thin}
.gamh-brand-tabs button,.gamh-brand-tabs button:hover,.gamh-brand-tabs button.is-active{display:flex;align-items:center;justify-content:center;min-width:92px;max-width:110px;padding:0;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;color:#6d7380;cursor:pointer;font:inherit;overflow:visible!important;flex:0 0 auto}
.gamh-brand-tabs button.is-active{color:var(--ink)}
.gamh-brand-logo,.gamh-brand-tabs button.is-active .gamh-brand-logo{width:92px;height:74px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible!important;display:flex;align-items:center;justify-content:center}
.gamh-brand-logo img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;overflow:visible!important}
.gamh-brand-fallback{font-size:22px;font-weight:700;color:var(--orange);overflow:visible!important}
.gamh-brand-results{padding:16px;background:transparent;border-radius:0;min-height:250px;min-width:0;transition:opacity .2s}
.gamh-brand-results.is-loading{opacity:.4;pointer-events:none}
.gamh-brand-results>.gamh-theme-products{width:100%;min-width:0}

.gamh-compact-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
.gamh-compact-groups>div{padding:10px;background:#f5f5f5;border-radius:14px;min-width:0;overflow:hidden}
.gamh-theme-products.is-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.gamh-theme-products.is-compact .gamh-product-card{font-size:85%}

.gamh-video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;min-width:0}
.gamh-video-grid article{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;min-width:0}
.gamh-video-grid article>a{color:inherit}
.gamh-video-grid video{width:100%;aspect-ratio:6/7;display:block;object-fit:cover;background:#111}
.gamh-video-grid h3{font-size:13px;line-height:1.35;color:var(--ink);margin:12px 13px 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gamh-video-grid article>a>div{padding:0 13px 14px;color:var(--orange)}

/* Large tablet / small desktop */
@media(max-width:1250px){
  .gamh{width:min(1000px,calc(100vw - 28px));max-width:calc(100vw - 28px)}
  .gamh-theme-products{grid-template-columns:repeat(5,minmax(0,1fr))}
  .gamh-compact-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Tablet */
@media(max-width:1024px){
  .gamh{width:calc(100vw - 24px);max-width:calc(100vw - 24px);--gamh-gap:12px}
  .gamh-section{padding-top:30px}
  .gamh-theme-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .gamh-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gamh-promo-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:12px;margin-top:30px}
  .gamh-promo-promo_1,.gamh-promo-promo_5{grid-column:auto;grid-row:auto;width:auto;margin:0;padding:0}
  .gamh-promo-promo_2{grid-column:1/3;grid-row:auto;width:auto;margin:0;padding:0}
  .gamh-promo-promo_3,.gamh-promo-promo_4{grid-column:auto;grid-row:auto;width:auto;margin:0;padding:0}
  .gamh-promo-promo_1 .gamh-image-slot,.gamh-promo-promo_5 .gamh-image-slot{height:auto;aspect-ratio:1/1;min-height:0}
  .gamh-promo-promo_2 .gamh-image-slot{height:auto;aspect-ratio:1200/280;min-height:0}
  .gamh-promo-promo_3 .gamh-image-slot,.gamh-promo-promo_4 .gamh-image-slot{height:auto;aspect-ratio:580/300;min-height:0}
  .gamh-split-banners{gap:12px;margin-top:30px}
  .gamh-split-banners .gamh-image-slot{height:auto;aspect-ratio:950/360}
  .gamh-wide-banner{height:auto;aspect-ratio:1920/260;margin-top:30px}
  .gamh-hero-slot{height:auto;aspect-ratio:1920/520}
}

@media(max-width:820px){
  .gamh-theme-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gamh-categories{grid-template-columns:repeat(5,minmax(0,1fr))}
  .gamh-brand-tabs{justify-content:flex-start}
  .gamh-compact-groups{grid-template-columns:1fr}
  .gamh-theme-products.is-compact{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Phones */
@media(max-width:640px){
  .gamh{width:calc(100vw - 12px);max-width:calc(100vw - 12px);margin-bottom:40px}
  .gamh-section{padding-top:24px}
  .gamh-image-slot{border-radius:12px}
  .gamh-hero-slot{margin-top:8px;height:auto;aspect-ratio:1920/520}
  .gamh-wide-banner{margin-top:24px;height:auto;aspect-ratio:1920/260}
  .gamh-promo-mosaic{grid-template-columns:1fr;gap:10px;margin-top:24px}
  .gamh-promo-promo_1,.gamh-promo-promo_2,.gamh-promo-promo_3,.gamh-promo-promo_4,.gamh-promo-promo_5{grid-column:1;grid-row:auto;width:auto;margin:0;padding:0}
  .gamh-promo-promo_1 .gamh-image-slot,.gamh-promo-promo_5 .gamh-image-slot{height:auto;aspect-ratio:1/1;min-height:0}
  .gamh-promo-promo_2 .gamh-image-slot{height:auto;aspect-ratio:1200/280;min-height:0}
  .gamh-promo-promo_3 .gamh-image-slot,.gamh-promo-promo_4 .gamh-image-slot{height:auto;aspect-ratio:580/300;min-height:0}
  .gamh-split-banners{grid-template-columns:1fr;gap:10px;margin-top:24px}
  .gamh-split-banners .gamh-image-slot{height:auto;aspect-ratio:950/360}
  .gamh-category-section{padding-top:22px}
  .gamh-categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .gamh-categories>a{min-width:0}
  .gamh-cat-image{width:min(18vw,68px);height:min(18vw,68px);margin-bottom:6px;border-radius:14px}
  .gamh-categories strong{font-size:10px}
  .gamh-categories small{font-size:8px}
  .gamh-theme-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;padding-bottom:0}
  .gamh-theme-products>*{min-width:0!important;width:100%!important}
  .gamh-product-card{border-radius:12px}
  .gamh-product-info{padding:10px}
  .gamh-product-card h3{font-size:11px;min-height:32px;margin:6px 0 8px}
  .gamh-price{font-size:14px}
  .gamh-cart{width:30px;height:30px;flex-basis:30px;font-size:16px}
  .gamh-brands{margin-top:24px;padding:14px 8px;border-radius:14px}
  .gamh-brands.gamh-section{padding-top:14px}
  .gamh-brand-tabs{gap:8px;padding:0 4px 12px}
  .gamh-brand-tabs button{min-width:70px;max-width:78px}
  .gamh-brand-logo,.gamh-brand-tabs button.is-active .gamh-brand-logo{width:70px;height:54px}
  .gamh-brand-results{padding:6px 0;min-height:0}
  .gamh-theme-products.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gamh-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .gamh-video-grid article{border-radius:12px}
  .gamh-video-grid h3{font-size:11px;margin:8px 9px 5px}
  .gamh-video-grid article>a>div{padding:0 9px 10px;font-size:12px}
}

@media(max-width:380px){
  .gamh{width:calc(100vw - 8px);max-width:calc(100vw - 8px)}
  .gamh-theme-products{gap:6px}
  .gamh-categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .gamh-product-info{padding:8px}
  .gamh-product-card h3{font-size:10px}
  .gamh-price{font-size:13px}
  .gamh-video-grid{grid-template-columns:1fr 1fr}
}

@media(prefers-reduced-motion:reduce){.gamh *{transition:none!important;animation:none!important}}
