/*
Theme Name: Mahbub House
Theme URI: https://mahbubhouse.com
Author: Mahbub House
Author URI: https://mahbubhouse.com
Description: Custom WooCommerce theme for MAHBUB HOUSE — Premium Clothing Brand in Bangladesh. Fully customizable via Appearance > Customize (colors, logo, hero text, contact info) without breaking the design.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mahbub-house
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, one-column
*/

/* ==========================================================================
   1. DESIGN TOKENS (editable live from Appearance > Customize > Brand Colors)
   ========================================================================== */
:root {
  --mh-primary-dark: #001437;
  --mh-deep-navy: #00193D;
  --mh-navy: #002043;
  --mh-dark-blue: #00325B;
  --mh-blue: #064985;
  --mh-cyan: #00C9E8;
  --mh-gold: #FDC500;
  --mh-gold-light: #FFE066;
  --mh-red: #C90130;
  --mh-green: #00D492;
  --mh-mint: #54D1A6;
  --mh-light-cyan: #9EEFF9;
  --mh-white: #F8FAFC;
  --mh-light-blue: #DBEAFE;
  --mh-whatsapp: #25D366;
  --mh-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mh-font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mh-font-body);
  color: var(--mh-white);
  background-color: var(--mh-primary-dark);
  margin: 0;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.55;
}

body.mh-light-page {
  background-color: #ffffff;
  color: #0f172a;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mh-font-heading);
  color: var(--mh-white);
  margin: 0 0 .5em;
  line-height: 1.15;
}

body.mh-light-page h1,
body.mh-light-page h2,
body.mh-light-page h3,
body.mh-light-page h4 { color: #0f172a; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

.mh-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .mh-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .mh-container { padding: 0 2rem; } }

.mh-visually-hidden {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--mh-primary-dark); }
::-webkit-scrollbar-thumb { background: var(--mh-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mh-cyan); }

.bg-gradient-hero { background: linear-gradient(135deg, var(--mh-primary-dark) 0%, var(--mh-deep-navy) 50%, var(--mh-dark-blue) 100%); }
.bg-gradient-premium { background: linear-gradient(180deg, var(--mh-primary-dark) 0%, var(--mh-deep-navy) 100%); }
.bg-gradient-card { background: linear-gradient(145deg, var(--mh-navy) 0%, var(--mh-deep-navy) 100%); }

/* ==========================================================================
   3. ANNOUNCEMENT BAR + HEADER
   ========================================================================== */
.mh-announcement {
  background: var(--mh-primary-dark);
  color: var(--mh-white);
  font-size: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(6,73,133,.6);
  flex-wrap: wrap;
}
.mh-announcement__left { display: none; align-items: center; gap: 16px; color: rgba(219,234,254,.8); }
.mh-announcement__left a { font-weight: 700; color: var(--mh-white); }
.mh-announcement__left .mh-dot-sep { color: var(--mh-blue); }
.mh-announcement__center {
  flex: 1;
  text-align: center;
  font-weight: 500;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mh-pulse-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--mh-cyan); animation: mh-pulse 1.6s infinite; }
@keyframes mh-pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.mh-cod-badge {
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 10px;
  padding: 2px 10px; background: rgba(253,197,0,.1); color: var(--mh-gold);
  border: 1px solid rgba(253,197,0,.3); border-radius: 999px; display: none;
}
.mh-announcement__right { display: flex; align-items: center; gap: 10px; }
.mh-announcement__right button, .mh-announcement__right a.mh-track-link {
  background: none; border: none; color: var(--mh-light-blue); font-size: 12px; font-weight: 700; display: none;
}
.mh-announcement__close { color: rgba(219,234,254,.6); background: none; border: none; padding: 4px; display: inline-flex !important; }
.mh-announcement__close:hover { color: var(--mh-white); }

@media (min-width: 768px) {
  .mh-announcement__left { display: flex; }
  .mh-announcement__right .mh-track-link { display: inline-block; }
  .mh-cod-badge { display: inline-block; }
}

.mh-header {
  position: sticky; top: 0; z-index: 999;
  width: 100%;
  background: var(--mh-deep-navy);
  border-bottom: 1px solid rgba(6,73,133,.8);
  box-shadow: 0 4px 25px rgba(0,20,55,.6);
}

.mh-header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  gap: 12px;
}
@media (min-width: 640px) { .mh-header__row { height: 80px; } }

.mh-mobile-trigger { display: flex; align-items: center; gap: 2px; }
.mh-icon-btn {
  padding: 8px; color: var(--mh-light-blue); background: none; border: none; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.mh-icon-btn:hover { color: var(--mh-cyan); background: var(--mh-navy); }

.mh-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.mh-logo img { height: 44px; width: auto; object-fit: contain; }
@media (min-width: 640px) { .mh-logo img { height: 54px; } }
.mh-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.mh-logo__brand { font-family: var(--mh-font-heading); font-weight: 900; font-size: 16px; letter-spacing: .03em; color: var(--mh-white); }
.mh-logo__tag { font-size: 9px; letter-spacing: .12em; color: var(--mh-gold); text-transform: uppercase; font-weight: 700; }

.mh-nav-desktop { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .mh-nav-desktop { display: flex; } }
.mh-nav-link {
  padding: 8px 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--mh-light-blue); background: none; border: none; border-radius: 8px; transition: .15s;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.mh-nav-link:hover { color: var(--mh-white); background: rgba(0,32,67,.6); }
.mh-nav-link.is-active { color: var(--mh-cyan); background: var(--mh-navy); }
.mh-nav-link.mh-accent-rose { }
.mh-nav-link.mh-accent-rose:hover { color: #fb7185; }

.mh-nav-item { position: relative; }
.mh-dropdown {
  position: absolute; top: 100%; left: 0; width: 250px;
  background: var(--mh-deep-navy); border: 1px solid var(--mh-blue); border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.mh-nav-item:hover .mh-dropdown,
.mh-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mh-dropdown__title { font-size: 10px; font-weight: 900; text-transform: uppercase; color: var(--mh-cyan); padding: 6px 12px; border-bottom: 1px solid rgba(6,73,133,.7); }
.mh-dropdown__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--mh-light-blue);
  background: none; border: none; border-radius: 8px;
}
.mh-dropdown__link:hover { color: var(--mh-primary-dark); background: var(--mh-gold); }
.mh-dropdown__viewall { display: block; text-align: center; padding: 6px 0; font-size: 11px; font-weight: 800; color: var(--mh-gold); border-top: 1px solid rgba(6,73,133,.7); margin-top: 4px; }

.mh-header__actions { display: flex; align-items: center; gap: 6px; }
@media (min-width: 640px) { .mh-header__actions { gap: 12px; } }

.mh-search-pill {
  display: none; align-items: center; gap: 10px; padding: 8px 12px; font-size: 12px; font-weight: 500;
  color: rgba(219,234,254,.8); background: var(--mh-navy); border: 1px solid var(--mh-blue); border-radius: 999px;
}
@media (min-width: 1280px) { .mh-search-pill { display: inline-flex; } }
.mh-search-pill kbd { padding: 2px 6px; font-size: 10px; font-weight: 700; color: var(--mh-cyan); background: var(--mh-primary-dark); border-radius: 4px; border: 1px solid var(--mh-blue); }

.mh-badge-count {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 999px;
  background: var(--mh-gold); color: var(--mh-primary-dark); font-weight: 900; font-size: 10px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--mh-deep-navy);
}

.mh-cart-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 14px;
  background: var(--mh-gold); color: var(--mh-primary-dark); font-weight: 900; border-radius: 999px;
  box-shadow: 0 2px 12px rgba(253,197,0,.3); border: none;
}
.mh-cart-pill:hover { background: var(--mh-gold-light); }
.mh-cart-pill span.mh-cart-label { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; display: none; }
@media (min-width: 640px) { .mh-cart-pill span.mh-cart-label { display: inline; } }

/* Mobile drawer */
.mh-mobile-drawer {
  position: fixed; inset: 0; top: 64px; z-index: 998; display: none;
  background: rgba(0,20,55,.85); backdrop-filter: blur(4px);
}
.mh-mobile-drawer.is-open { display: flex; }
.mh-mobile-drawer__panel {
  background: var(--mh-deep-navy); width: 85%; max-width: 380px; height: calc(100vh - 64px);
  padding: 20px; overflow-y: auto; border-right: 1px solid var(--mh-blue);
}
.mh-mobile-quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.mh-mobile-quicklinks a {
  padding: 10px; text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase;
  border-radius: 12px; border: 1px solid var(--mh-blue); color: #fff; background: var(--mh-navy);
}
.mh-mobile-quicklinks a.mh-shop-all { background: var(--mh-gold); color: var(--mh-primary-dark); border: none; }
.mh-accordion { border-radius: 12px; background: rgba(0,32,67,.6); border: 1px solid var(--mh-blue); overflow: hidden; margin-bottom: 8px; }
.mh-accordion__head { width: 100%; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; background: none; border: none; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.mh-accordion__body { display: none; padding: 8px; background: rgba(0,20,55,.6); border-top: 1px solid rgba(6,73,133,.6); }
.mh-accordion__body.is-open { display: block; }
.mh-accordion__body a { display: block; padding: 8px 12px; font-size: 12px; color: var(--mh-light-blue); border-radius: 8px; }
.mh-accordion__body a:hover { background: var(--mh-navy); color: var(--mh-cyan); }
.mh-mobile-direct { display: block; width: 100%; padding: 12px 16px; margin-bottom: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: #fff; background: rgba(0,32,67,.6); border: 1px solid var(--mh-blue); border-radius: 12px; }

/* ==========================================================================
   4. HERO
   ========================================================================== */
.mh-hero { position: relative; background: var(--mh-primary-dark); color: var(--mh-white); overflow: hidden; border-bottom: 1px solid var(--mh-blue); }
.mh-hero__bg { position: absolute; inset: 0; z-index: 0; }
.mh-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; filter: brightness(.95) contrast(1.1); }
.mh-hero__overlay-1 { position: absolute; inset: 0; background: linear-gradient(90deg, var(--mh-primary-dark) 0%, rgba(0,20,55,.9) 55%, rgba(0,20,55,.6) 100%); }
.mh-hero__overlay-2 { position: absolute; inset: 0; background: linear-gradient(0deg, var(--mh-primary-dark) 0%, transparent 45%, rgba(0,20,55,.7) 100%); }
.mh-hero__inner { position: relative; z-index: 1; padding: 56px 0; }
@media (min-width: 640px) { .mh-hero__inner { padding: 80px 0; } }
@media (min-width: 1024px) { .mh-hero__inner { padding: 96px 0; } }
.mh-hero__content { max-width: 720px; }
.mh-hero__brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.mh-hero__brandrow img { height: 48px; width: auto; filter: drop-shadow(0 4px 20px rgba(0,201,232,.3)); }
@media (min-width: 640px) { .mh-hero__brandrow img { height: 64px; } }
.mh-hero__pill {
  display: none; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,32,67,.9); border: 1px solid rgba(0,201,232,.4); font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .12em; color: var(--mh-cyan);
}
@media (min-width: 640px) { .mh-hero__pill { display: inline-flex; } }
.mh-hero h1 { font-size: 40px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
@media (min-width: 640px) { .mh-hero h1 { font-size: 64px; } }
@media (min-width: 1024px) { .mh-hero h1 { font-size: 76px; } }
.mh-hero h1 .mh-accent { color: var(--mh-gold); }
.mh-hero__subtitle { margin-top: 12px; font-size: 18px; font-weight: 600; color: var(--mh-light-blue); }
@media (min-width: 640px) { .mh-hero__subtitle { font-size: 24px; } }
.mh-hero__desc { margin-top: 12px; font-size: 14px; color: #93C5FD; max-width: 640px; }
@media (min-width: 640px) { .mh-hero__desc { font-size: 16px; } }
.mh-hero__cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.mh-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; border: none; transition: .15s;
}
.mh-btn-primary { background: var(--mh-gold); color: var(--mh-primary-dark); box-shadow: 0 4px 20px rgba(253,197,0,.3); }
.mh-btn-primary:hover { background: var(--mh-gold-light); }
.mh-btn-outline { background: var(--mh-navy); color: var(--mh-white); border: 1px solid var(--mh-blue); padding: 11px 18px; }
.mh-btn-outline:hover { background: var(--mh-dark-blue); color: var(--mh-cyan); }
.mh-hero__trust { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(6,73,133,.8); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 640px) { .mh-hero__trust { grid-template-columns: repeat(4,1fr); } }
.mh-hero__trust-item { display: flex; align-items: center; gap: 10px; }
.mh-hero__trust-item strong { display: block; font-size: 13px; color: #fff; }
.mh-hero__trust-item span { font-size: 11px; color: rgba(219,234,254,.7); }

/* ==========================================================================
   5. SECTIONS / CATEGORY BENTO
   ========================================================================== */
.mh-section { padding: 64px 0; }
.mh-section--light { background: #fff; color: #0f172a; border-bottom: 1px solid #e2e8f0; }
.mh-section--dark { background: var(--mh-primary-dark); border-bottom: 1px solid var(--mh-blue); }
.mh-section__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
@media (min-width: 768px) { .mh-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.mh-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; color: var(--mh-blue); }
.mh-eyebrow .mh-eyebrow-dash { width: 24px; height: 2px; background: var(--mh-primary-dark); }
.mh-section--dark .mh-eyebrow { color: var(--mh-cyan); }
.mh-section--dark .mh-eyebrow .mh-eyebrow-dash { background: var(--mh-cyan); }
.mh-section h2 { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
@media (min-width: 640px) { .mh-section h2 { font-size: 36px; } }
.mh-section__desc { font-size: 13px; max-width: 420px; color: #475569; }
.mh-section--dark .mh-section__desc { color: rgba(219,234,254,.75); }

.mh-bento { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .mh-bento { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .mh-bento { grid-template-columns: repeat(3,1fr); } }
.mh-bento__card { position: relative; height: 300px; border-radius: 16px; overflow: hidden; cursor: pointer; border: 1px solid var(--mh-blue); background: var(--mh-navy); box-shadow: 0 4px 20px rgba(0,20,55,.7); transition: .4s; }
@media (min-width: 640px) { .mh-bento__card { height: 380px; } }
.mh-bento__card:hover { border-color: var(--mh-cyan); box-shadow: 0 8px 30px rgba(0,201,232,.2); }
.mh-bento__card.mh-span-2 { grid-column: span 1; }
@media (min-width: 640px) { .mh-bento__card.mh-span-2 { grid-column: span 2; } }
.mh-bento__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .7s, opacity .4s; }
.mh-bento__card:hover img { transform: scale(1.05); opacity: .78; }
.mh-bento__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--mh-primary-dark) 0%, rgba(0,25,61,.6) 55%, transparent 100%); }
.mh-bento__content { position: absolute; inset: 0; padding: 20px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.mh-bento__top { display: flex; align-items: center; justify-content: space-between; }
.mh-bento__count { padding: 4px 12px; background: rgba(0,25,61,.9); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--mh-cyan); border: 1px solid var(--mh-blue); }
.mh-bento__arrow { width: 36px; height: 36px; border-radius: 999px; background: rgba(0,25,61,.9); display: flex; align-items: center; justify-content: center; color: var(--mh-light-blue); border: 1px solid var(--mh-blue); }
.mh-bento__card:hover .mh-bento__arrow { background: var(--mh-gold); color: var(--mh-primary-dark); }
.mh-bento__brand { display: block; font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; color: var(--mh-gold); margin-bottom: 4px; }
.mh-bento__title { font-size: 20px; font-weight: 900; text-transform: uppercase; color: #fff; }
.mh-bento__sub { font-size: 12px; color: var(--mh-light-blue); margin-top: 6px; max-width: 320px; }

/* ==========================================================================
   6. PRODUCT GRID / CARD (WooCommerce)
   ========================================================================== */
.mh-product-grid, ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 !important; padding: 0 !important;
}
@media (min-width: 640px) { .mh-product-grid, ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: 22px !important; } }
@media (min-width: 1024px) { .mh-product-grid, ul.products { grid-template-columns: repeat(4, 1fr) !important; } }

ul.products li.product, .mh-product-card {
  background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: .3s; position: relative; margin: 0 !important; padding: 0 !important; width: auto !important;
}
ul.products li.product:hover, .mh-product-card:hover { border-color: var(--mh-cyan); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
ul.products li.product a { text-decoration: none; }
ul.products li.product img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 0; }
.mh-product-card__img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f1f5f9; }
.mh-product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.mh-badge { padding: 2px 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.mh-badge--sale { background: var(--mh-gold); color: var(--mh-primary-dark); }
.mh-badge--new { background: var(--mh-primary-dark); color: var(--mh-cyan); border: 1px solid rgba(0,201,232,.3); }
.mh-badge--top { background: #059669; color: #fff; }

ul.products li.product .price, .mh-product-card__price {
  font-weight: 900 !important; color: var(--mh-primary-dark) !important;
}
ul.products li.product .price ins { color: var(--mh-primary-dark) !important; text-decoration: none; font-weight: 900; }
ul.products li.product .price del { color: #94a3b8 !important; font-weight: 500; margin-right: 6px; }
ul.products li.product h2, ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px !important; font-weight: 700 !important; color: #0f172a !important; padding: 0 12px !important; margin: 10px 0 4px !important;
}
ul.products li.product .price { padding: 0 12px 14px !important; }

.mh-add-cart-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--mh-primary-dark);
  color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 999px; border: none;
}
.mh-add-cart-pill:hover { background: var(--mh-gold); color: var(--mh-primary-dark); }

/* Star ratings */
.star-rating { color: var(--mh-gold) !important; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.mh-footer { background: var(--mh-deep-navy); color: var(--mh-light-blue); border-top: 1px solid var(--mh-blue); padding-top: 56px; position: relative; overflow: hidden; }
.mh-footer__values { padding-bottom: 48px; border-bottom: 1px solid var(--mh-blue); }
.mh-values-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .mh-values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mh-values-grid { grid-template-columns: repeat(4, 1fr); } }
.mh-value-item { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: var(--mh-navy); border: 1px solid rgba(6,73,133,.6); }
.mh-value-item__icon { padding: 10px; background: var(--mh-primary-dark); border-radius: 12px; border: 1px solid var(--mh-blue); flex-shrink: 0; }
.mh-value-item h4 { font-size: 13px; font-weight: 800; margin: 0; color: #fff; }
.mh-value-item p { font-size: 11px; color: rgba(219,234,254,.7); margin: 4px 0 0; }

.mh-footer__main { padding: 48px 0; }
.mh-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .mh-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mh-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.mh-footer-brand p { font-size: 13px; color: rgba(219,234,254,.8); max-width: 340px; }
.mh-footer-tagline { color: var(--mh-gold); font-weight: 900; font-size: 14px; }
.mh-footer-domain { font-size: 12px; color: rgba(219,234,254,.6); }
.mh-footer-domain span { color: var(--mh-cyan); font-weight: 700; }

.mh-whatsapp-box { margin-top: 12px; max-width: 340px; }
.mh-whatsapp-box h5 { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--mh-cyan); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mh-whatsapp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--mh-whatsapp); }
.mh-whatsapp-box p { font-size: 12px; color: rgba(219,234,254,.8); }
.mh-whatsapp-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; background: var(--mh-whatsapp); color: #fff; border-radius: 12px; font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 10px 25px rgba(37,211,102,.2); }
.mh-whatsapp-btn:hover { background: #20ba59; }
.mh-whatsapp-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11px; color: rgba(219,234,254,.7); }
.mh-whatsapp-meta strong { color: var(--mh-gold); }

.mh-footer h4.mh-footer-heading { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--mh-cyan); margin-bottom: 16px; }
.mh-footer ul.mh-footer-links li { margin-bottom: 10px; }
.mh-footer ul.mh-footer-links a { font-size: 12px; color: rgba(219,234,254,.8); }
.mh-footer ul.mh-footer-links a:hover { color: var(--mh-gold); }

.mh-contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.mh-contact-list .mh-contact-label { display: block; font-size: 10px; text-transform: uppercase; font-weight: 800; color: rgba(219,234,254,.6); }
.mh-contact-list a, .mh-contact-list p { font-size: 12px; color: #fff; font-weight: 600; margin: 0; }

.mh-footer__logistics { padding: 24px 0; border-top: 1px solid var(--mh-blue); }
.mh-logistics-row { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .mh-logistics-row { flex-direction: row; } }
.mh-chip-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mh-chip { padding: 4px 10px; background: var(--mh-navy); border-radius: 8px; border: 1px solid var(--mh-blue); font-size: 11px; font-weight: 700; }
.mh-chip--gold { background: var(--mh-gold); color: var(--mh-primary-dark); font-weight: 900; }
.mh-chip--outline { background: var(--mh-navy); color: var(--mh-cyan); border: 1px solid var(--mh-blue); font-weight: 700; }
.mh-chip-label { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-right: 4px; }

.mh-footer__bottom { background: var(--mh-primary-dark); padding: 20px 0; text-align: center; font-size: 11px; color: rgba(219,234,254,.7); border-top: 1px solid var(--mh-blue); }
.mh-footer__bottom-row { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .mh-footer__bottom-row { flex-direction: row; } }

/* ==========================================================================
   8. WHATSAPP FLOAT BUTTON
   ========================================================================== */
.mh-float-whatsapp {
  position: fixed; bottom: 22px; right: 22px; z-index: 500; width: 56px; height: 56px; border-radius: 999px;
  background: var(--mh-whatsapp); display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 25px rgba(37,211,102,.4); animation: mh-float-bounce 2.4s infinite;
}
@keyframes mh-float-bounce { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-6px);} }

/* ==========================================================================
   9. GENERIC PAGE / WOOCOMMERCE PAGE STYLING (light background)
   ========================================================================== */
.mh-page-header { background: var(--mh-primary-dark); color: #fff; padding: 48px 0; text-align: center; border-bottom: 4px solid var(--mh-gold); }
.mh-page-header h1 { font-size: 30px; text-transform: uppercase; font-weight: 900; }
.mh-page-content { max-width: 900px; margin: 0 auto; padding: 48px 1.5rem; color: #1e293b; }
.mh-page-content h2 { color: var(--mh-primary-dark); font-size: 22px; margin-top: 32px; }
.mh-page-content a { color: var(--mh-blue); text-decoration: underline; }

body.woocommerce, body.woocommerce-page { background: #f8fafc; color: #0f172a; }
.woocommerce-breadcrumb { max-width: 1280px; margin: 20px auto; padding: 0 1.5rem; font-size: 12px; color: #64748b; }
.woocommerce-breadcrumb a { color: var(--mh-blue); }

.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--mh-primary-dark); font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce input.button, .woocommerce-page a.button {
  background: var(--mh-gold) !important; color: var(--mh-primary-dark) !important; font-weight: 900 !important;
  text-transform: uppercase; letter-spacing: .05em; border-radius: 999px !important; border: none !important; padding: 12px 24px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #respond input#submit:hover { background: var(--mh-gold-light) !important; }
.woocommerce span.onsale { background: var(--mh-primary-dark) !important; color: var(--mh-gold) !important; font-weight: 900; }
.woocommerce ul.products li.product .onsale { border-radius: 6px; }

.woocommerce-cart table.cart, .woocommerce-checkout-review-order-table { background: #fff; border-radius: 12px; overflow: hidden; }
.woocommerce-checkout #payment { background: #fff !important; border-radius: 12px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border-radius: 8px; border: 1px solid #cbd5e1; padding: 10px 12px;
}

.mh-plain-page main.mh-container { background: #fff; }

/* Responsive helpers */
@media (max-width: 1023px) {
  .mh-header__admin-link { display: none; }
}

/* ======================================================================
   MAHBUB HOUSE v1.1 — RESPONSIVE STABILITY PATCH
   Designed for WooCommerce + phones/tablets/desktops.
   ====================================================================== */

html, body { max-width: 100%; overflow-x: hidden; }
body { min-width: 320px; }
img { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }
.mh-container { width: 100%; }

/* Header: never allow navigation/actions to push the page sideways. */
.mh-header__row { min-width: 0; }
.mh-logo { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.mh-logo img, .mh-logo .custom-logo { width: auto !important; max-width: 72px; height: 42px !important; object-fit: contain; flex: 0 0 auto; }
.mh-logo__text { min-width: 0; overflow: hidden; }
.mh-logo__brand { font-size: clamp(12px, 2vw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-logo__tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-header__actions { flex: 0 0 auto; }
.mh-mobile-trigger { flex: 0 0 auto; }

/* Mobile header is deliberately compact. */
@media (max-width: 639px) {
  .mh-container { padding-left: 14px; padding-right: 14px; }
  .mh-header__row { height: 62px; gap: 4px; }
  .mh-logo { gap: 6px; }
  .mh-logo img, .mh-logo .custom-logo { max-width: 50px; height: 34px !important; }
  .mh-logo__brand { font-size: 12px; letter-spacing: .02em; }
  .mh-logo__tag { font-size: 7px; letter-spacing: .08em; }
  .mh-mobile-trigger { gap: 0; }
  .mh-icon-btn { padding: 7px; font-size: 16px; }
  .mh-header__actions { gap: 2px; }
  .mh-header__actions > a[title="Wishlist"],
  .mh-header__actions > a[title="My Account"] { display: none; }
  .mh-cart-pill { padding: 8px 10px; border-radius: 10px; font-size: 14px; }
  .mh-announcement { padding: 7px 10px; min-height: 34px; }
  .mh-announcement__center { font-size: 10px; line-height: 1.3; }
  .mh-announcement__close { padding: 2px; font-size: 11px; }
}

/* Mobile drawer: full-height, scrollable, no clipped text. */
.mh-mobile-drawer { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mh-mobile-drawer__panel { max-height: calc(100dvh - 62px); overflow-y: auto; padding-bottom: 28px; }
.mh-accordion__head, .mh-mobile-direct, .mh-mobile-quicklinks a { min-height: 46px; }

/* Hero: stable image crop + readable text at every width. */
.mh-hero__inner { padding-left: 0; padding-right: 0; }
.mh-hero__content { width: 100%; }
.mh-hero__bg img { object-position: center center; }
@media (max-width: 639px) {
  .mh-hero__inner { padding-top: 44px; padding-bottom: 44px; }
  .mh-hero__brandrow { margin-bottom: 18px; }
  .mh-hero__brandrow img { height: 44px; width: auto; }
  .mh-hero__pill { display: inline-flex; font-size: 9px; letter-spacing: .06em; padding: 5px 9px; }
  .mh-hero h1 { font-size: clamp(34px, 11vw, 46px); line-height: 1.02; }
  .mh-hero__subtitle { font-size: 17px; line-height: 1.3; }
  .mh-hero__desc { font-size: 13px; line-height: 1.65; }
  .mh-hero__cta-row { margin-top: 22px; gap: 8px; }
  .mh-btn { min-height: 44px; padding: 10px 14px; font-size: 10px; letter-spacing: .04em; }
  .mh-hero__trust { margin-top: 28px; padding-top: 22px; gap: 12px 10px; }
  .mh-hero__trust-item { align-items: flex-start; gap: 7px; }
  .mh-hero__trust-item strong { font-size: 11px; }
  .mh-hero__trust-item span { font-size: 9px; line-height: 1.35; }
}

/* Sections: consistent vertical rhythm; no accidental giant gaps. */
.mh-section { padding: clamp(42px, 6vw, 72px) 0; }
.mh-section__head { margin-bottom: 26px; }
@media (max-width: 639px) {
  .mh-section__head { margin-bottom: 22px; }
  .mh-section h2 { font-size: 25px; line-height: 1.12; }
  .mh-section__desc { font-size: 12px; line-height: 1.6; }
}

/* Bento cards: predictable heights and text that never disappears. */
.mh-bento { gap: 14px; }
.mh-bento__card { min-width: 0; }
.mh-bento__content { padding: 16px; }
.mh-bento__title { overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .mh-bento__card { height: 260px; border-radius: 13px; }
  .mh-bento__card.mh-span-2 { grid-column: span 1; }
  .mh-bento__title { font-size: 18px; }
  .mh-bento__sub { font-size: 11px; line-height: 1.45; }
  .mh-bento__count { font-size: 9px; padding: 4px 8px; }
}

/* WooCommerce archive/product grid: remove default floats, widths and margins. */
.woocommerce .site-main, .woocommerce-page .site-main { min-width: 0; }
.woocommerce .mh-woo-main { width: 100%; max-width: 1280px; margin: 0 auto; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { float: none !important; clear: none !important; }
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last { clear: none !important; }
.woocommerce ul.products li.product .button { margin: 0 12px 14px !important; width: calc(100% - 24px); text-align: center; }
.woocommerce ul.products li.product .star-rating { margin: 8px 12px 0 !important; }
.woocommerce ul.products li.product .price { display: block; min-height: 24px; }

@media (max-width: 479px) {
  .woocommerce ul.products, .mh-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  ul.products li.product, .mh-product-card { border-radius: 11px; }
  ul.products li.product h2, ul.products li.product .woocommerce-loop-product__title { font-size: 12px !important; line-height: 1.35; padding: 0 9px !important; margin-top: 8px !important; }
  ul.products li.product .price { font-size: 13px !important; padding: 0 9px 10px !important; }
  .woocommerce ul.products li.product .button { margin: 0 9px 10px !important; width: calc(100% - 18px); padding: 9px 8px !important; font-size: 10px !important; }
  .mh-product-card__badges { top: 7px; left: 7px; gap: 4px; }
  .mh-badge { font-size: 8px; padding: 2px 6px; }
}

/* Archive controls */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count { margin-bottom: 20px !important; }
.woocommerce .woocommerce-ordering select { border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; padding: 9px 30px 9px 10px; }
@media (max-width: 639px) {
  .woocommerce .woocommerce-result-count { float: none !important; margin: 0 0 10px !important; font-size: 11px; }
  .woocommerce .woocommerce-ordering { float: none !important; margin: 0 0 20px !important; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
}

/* Single product: responsive two-column -> one-column layout. */
.woocommerce div.product { max-width: 1280px; margin-left: auto; margin-right: auto; }
.woocommerce div.product div.images img { width: 100%; height: auto; border-radius: 14px; }
.woocommerce div.product div.summary { min-width: 0; }
.woocommerce div.product .product_title { color: var(--mh-primary-dark); font-size: clamp(26px, 4vw, 42px); line-height: 1.08; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--mh-primary-dark); font-weight: 900; font-size: 22px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.woocommerce div.product form.cart .quantity { margin: 0 !important; }
.woocommerce div.product form.cart .quantity input { min-height: 44px; border: 1px solid #cbd5e1; border-radius: 10px; }
@media (max-width: 767px) {
  .woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: 100% !important; margin-right: 0 !important; }
  .woocommerce div.product div.images { margin-bottom: 22px !important; }
  .woocommerce div.product form.cart .button { flex: 1 1 180px; }
}

/* Woo notices, forms, cart and checkout. */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error { border-top-color: var(--mh-gold); border-radius: 10px; background: #fff; }
.woocommerce table.shop_table { border-collapse: separate; border-spacing: 0; border: 1px solid #e2e8f0; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 12px; }
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.woocommerce form .form-row { margin-bottom: 12px; }
.woocommerce form .form-row label { color: #334155; font-weight: 700; font-size: 13px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { width: 100%; min-height: 44px; background: #fff; }

/* Footer: prevent columns/long contact lines from causing overflow. */
.mh-footer-grid > *, .mh-values-grid > * { min-width: 0; }
.mh-footer-brand p, .mh-contact-list p, .mh-footer-links a { overflow-wrap: anywhere; }
.mh-whatsapp-meta { flex-wrap: wrap; gap: 6px 12px; }
@media (max-width: 639px) {
  .mh-footer { padding-top: 38px; }
  .mh-footer__values { padding-bottom: 32px; }
  .mh-footer__main { padding: 34px 0; }
  .mh-footer-grid { gap: 26px; }
  .mh-value-item { padding: 13px; }
  .mh-footer__bottom-row { padding-left: 14px; padding-right: 14px; }
}

/* Floating WhatsApp stays inside the viewport and above Woo notices. */
.mh-float-whatsapp { width: 52px; height: 52px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }

/* Keyboard/focus accessibility and touch targets. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(253,197,0,.65); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body.mh-menu-open { overflow: hidden; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .mh-nav-desktop { display: none !important; }
}
@media (min-width: 1200px) {
  .mh-mobile-trigger { display: none; }
}
