/* =========================================================
   House of Metals - theme stylesheet
   Loaded AFTER styles.css (the DefaultClean base, which keeps every
   page we have not redesigned looking right). Mobile-first.
   All theme classes use the "ma-" prefix.

   PART A - Storefront (from prototype style.css)
     1. Variables (colors, fonts)   <- change the look here
     2. Base (global) + reset scoped to ma- components
     3. Layout helpers  4. Top bar  5. Header & multilevel nav
     6. Hero  7. Categories  8. Products  9. Promo  10. Features
     11. Testimonials  13. Footer  Icons  Rooms
     14. Tablet (min-width: 768px)  15. Desktop (min-width: 1024px)
   PART B - Shop pages (from prototype shop.css)
   ========================================================= */


/* ---------- 1. VARIABLES ---------- */
:root {
  --color-primary: #a9763d;      /* gold/brown buttons */
  --color-primary-dark: #8a5e2c;
  --color-dark: #26231f;         /* footer / dark buttons */
  --color-text: #3a3532;
  --color-muted: #7a716a;
  --color-bg: #fbf6ef;           /* page background */
  --color-bg-alt: #f2e4d3;       /* alternate sections */
  --color-white: #ffffff;
  --color-border: #e6d9ca;
  --color-star: #f5a623;
  --color-sale: #b8442f;

  /* Serif (headings) + Sans-serif (body) */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;

  --gap: 16px;                   /* grid gap */
  --radius: 12px;
  --container: 1200px;
  --shadow: 0 4px 18px rgba(60, 40, 20, .08);
}


/* ---------- 2. BASE ---------- */
/* Global: brand font, colors and background for the whole store. */
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Reset only inside ma- components, so default nopCommerce pages
   (account, orders, blog, topics...) keep their own list/link/image styles.
   :where() keeps specificity at element level, so component rules still win. */
:where([class^="ma-"], [class*=" ma-"]), :where([class^="ma-"], [class*=" ma-"]) *,
:where([class^="ma-"], [class*=" ma-"]) *::before, :where([class^="ma-"], [class*=" ma-"]) *::after { box-sizing: border-box; }
:where([class^="ma-"], [class*=" ma-"]) img, img:where([class^="ma-"], [class*=" ma-"]) { max-width: 100%; height: auto; display: block; }
:where([class^="ma-"], [class*=" ma-"]) a, a:where([class^="ma-"], [class*=" ma-"]) { color: inherit; text-decoration: none; }
:where([class^="ma-"], [class*=" ma-"]) ul, ul:where([class^="ma-"], [class*=" ma-"]) { list-style: none; margin: 0; padding: 0; }
:where([class^="ma-"], [class*=" ma-"]) :where(h1, h2, h3, h4) { margin: 0 0 8px; }
:where([class^="ma-"], [class*=" ma-"]) p { margin: 0 0 12px; }
:where([class^="ma-"], [class*=" ma-"]) button, button:where([class^="ma-"], [class*=" ma-"]) { cursor: pointer; }


/* ---------- 3. LAYOUT HELPERS ---------- */
.ma-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.ma-section { padding: 44px 0; }
.ma-section--alt { background: var(--color-bg-alt); }
.ma-center { text-align: center; margin: 28px 0 0; }

.ma-title { text-align: center; margin-bottom: 28px; }
.ma-title h2 { font-size: 28px; }
.ma-title h2::after {                      /* chhoti gold line */
  content: ""; display: block; width: 48px; height: 2px;
  background: var(--color-primary); margin: 10px auto 0;
}
.ma-title p { color: var(--color-muted); font-size: 14px; margin: 8px 0 0; }

.ma-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.ma-btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  letter-spacing: .3px;
  transition: background .2s, color .2s, transform .2s;
}
.ma-btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-1px); }
.ma-btn--dark { background: var(--color-dark); border-color: var(--color-dark); }
.ma-btn--dark:hover { background: #000; border-color: #000; }
.ma-btn--outline { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.ma-btn--outline:hover { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }

/* Grid base - columns har section me neeche set hain */
.ma-grid { display: grid; gap: var(--gap); }


/* ---------- 4. TOP BAR ---------- */
.ma-topbar { background: var(--color-dark); color: #e9e0d6; font-size: 12px; }
.ma-topbar__inner { display: flex; justify-content: center; padding-top: 7px; padding-bottom: 7px; }
.ma-topbar__list { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.ma-topbar__social { display: none; }


/* ---------- 5. HEADER & MULTILEVEL NAV ---------- */
.ma-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.ma-header__inner {
  display: grid;
  grid-template-columns: 40px 1fr auto;   /* menu | logo | icons */
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.ma-logo img { height: 40px; width: auto; margin: 0 auto; }

.ma-header__icons { display: flex; gap: 14px; font-size: 18px; }
.ma-cart { position: relative; }
.ma-cart em {
  position: absolute; top: -8px; right: -10px;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-style: normal;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger button */
.ma-menu-toggle {
  background: none; border: 0; padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.ma-menu-toggle span { width: 24px; height: 2px; background: var(--color-text); display: block; transition: transform .2s, opacity .2s; }
.ma-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ma-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ma-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Mobile menu (accordion) ----- */
.ma-nav {
  display: none;
  grid-column: 1 / -1;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.ma-nav.is-open { display: block; }

.ma-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--color-border); }
.ma-nav a.is-active { color: var(--color-primary); }

/* Arrow sirf jin items me submenu hai */
.ma-has-sub > a { position: relative; padding-right: 32px; }
.ma-has-sub > a::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.ma-has-sub.is-open > a::after { transform: rotate(-135deg); margin-top: -2px; }

/* Submenu (kisi bhi level par) - mobile me indent hota hai */
.ma-sub { display: none; padding-left: 16px; background: rgba(169, 118, 61, .05); }
.ma-sub a { font-size: 14px; color: var(--color-muted); }
.ma-has-sub.is-open > .ma-sub { display: block; }


/* ---------- 6. HERO ---------- */
.ma-hero { background: var(--color-bg-alt); }

/* Mobile: pehle image, uske neeche text */
.ma-hero__bg { width: 100%; height: 240px; object-fit: cover; }
.ma-hero__inner { padding-top: 28px; padding-bottom: 36px; text-align: center; }
.ma-hero__text h1 { font-size: 36px; }
.ma-hero__text p { font-size: 16px; color: var(--color-muted); }
.ma-hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-border);
}
.ma-hero__stats strong { display: block; font-family: var(--font-heading); font-size: 20px; }
.ma-hero__stats span { font-size: 12px; color: var(--color-muted); }


/* ---------- 7. CATEGORIES ---------- */
.ma-grid--categories { grid-template-columns: repeat(2, 1fr); }

.ma-cat {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.ma-cat:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(60, 40, 20, .14); }
.ma-cat__img { display: block; overflow: hidden; background: var(--color-bg-alt); }
.ma-cat__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s; }
.ma-cat:hover .ma-cat__img img { transform: scale(1.06); }
.ma-cat__name { display: block; padding: 12px 8px; font-size: 14px; font-weight: 500; }

/* last odd item mobile par full width */
.ma-grid--categories .ma-cat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ma-grid--categories .ma-cat:last-child:nth-child(odd) .ma-cat__img img { aspect-ratio: 2 / 1; }


/* ---------- 8. PRODUCTS ---------- */
.ma-grid--products { grid-template-columns: repeat(2, 1fr); }

.ma-product {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.ma-product:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(60, 40, 20, .15); }
.ma-product__img { display: block; overflow: hidden; background: var(--color-bg-alt); }
.ma-product__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s; }
.ma-product:hover .ma-product__img img { transform: scale(1.05); }

.ma-product__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--color-sale); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
}
.ma-product__wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.ma-product__wish.is-active { color: #d33; }

.ma-product__info { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 12px 14px; }
.ma-product__info h3 { font-family: var(--font-body); font-size: 14px; font-weight: 500; margin: 0; }
.ma-product__info h3 a:hover { color: var(--color-primary); }
.ma-price strong { font-size: 17px; }
.ma-price del { color: var(--color-muted); font-size: 12px; margin-left: 4px; }
.ma-stars { color: var(--color-star); font-size: 13px; }
.ma-stars small { color: var(--color-muted); }

.ma-product__btn {
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--color-dark); border-radius: 50px;
  background: transparent; color: var(--color-dark);
  font-size: 13px; font-weight: 500;
  transition: background .2s, color .2s;
}
.ma-product__btn:hover { background: var(--color-dark); color: #fff; }
.ma-price { margin-bottom: 8px; }


/* ---------- 9. PROMO BANNER ---------- */
.ma-promo { padding: 44px 0; }
.ma-promo__grid {
  display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch;
  background: var(--color-bg-alt); border-radius: var(--radius); overflow: hidden;
  padding: 0;
}
.ma-promo__image img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; }
.ma-promo__text { padding: 28px 20px 32px; text-align: center; align-self: center; }
.ma-promo__text h2 { font-size: 30px; }
.ma-promo__text p { color: var(--color-muted); }


/* ---------- 10. FEATURES STRIP ---------- */
.ma-features { padding: 24px 0 28px; border-bottom: 1px solid var(--color-border); }
.ma-grid--features { grid-template-columns: repeat(2, 1fr); }
.ma-feature { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.ma-feature__icon {
  font-size: 20px; flex: none; color: var(--color-primary);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.ma-feature p { margin: 0; line-height: 1.3; font-weight: 500; }


/* ---------- 11. TESTIMONIALS ---------- */
.ma-slider { position: relative; max-width: 800px; margin: 0 auto; padding: 0 28px; }
.ma-slider__track { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); }
.ma-review { display: none; margin: 0; padding: 24px 20px; gap: 16px; align-items: center; flex-direction: column; text-align: center; }
.ma-review.is-active { display: flex; }
.ma-review img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--color-bg-alt); }
.ma-review p { font-family: var(--font-heading); font-style: italic; font-size: 17px; }
.ma-review cite { font-style: normal; font-weight: 600; }

.ma-slider__btn {
  position: absolute; top: 40%;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-white); font-size: 20px; line-height: 1;
  box-shadow: var(--shadow);
}
.ma-slider__btn--prev { left: -4px; }
.ma-slider__btn--next { right: -4px; }
.ma-slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.ma-slider__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); cursor: pointer; }
.ma-slider__dots span.is-active { background: var(--color-primary); }


/* ---------- 13. FOOTER ---------- */
.ma-footer { background: var(--color-dark); color: #d8d2cb; font-size: 13px; }
.ma-footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding-top: 40px; padding-bottom: 36px; }
.ma-footer__brand { grid-column: 1 / -1; }
.ma-footer__brand img { height: 50px; width: auto; margin-bottom: 8px; }
.ma-footer h4 { font-size: 16px; color: #fff; margin-bottom: 14px; }
.ma-footer li { margin-bottom: 8px; }
.ma-footer a:hover { color: #e3b87a; }
.ma-footer__social { display: flex; gap: 10px; }
.ma-footer__social a {
  width: 34px; height: 34px; border: 1px solid #5a554f; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.ma-footer__bottom { background: #1a1816; padding: 14px 0; font-size: 12px; }
.ma-footer__bottom .ma-container { display: flex; flex-direction: column; gap: 4px; text-align: center; }



/* ---------- ICONS (Font Awesome) ---------- */
.ma-topbar i { margin-right: 6px; color: #e3b87a; }
.ma-topbar__social { align-items: center; }
.ma-topbar__social a { padding: 0 4px; }
.ma-topbar__social a:hover { color: #e3b87a; }
.ma-header__icons { align-items: center; }
.ma-header__icons a:hover { color: var(--color-primary); }
.ma-btn i, .ma-cat__name i, .ma-room__link i { font-size: .8em; margin-left: 4px; }
.ma-stars i { font-size: .8em; margin-right: 1px; }
.ma-hero__stats i { color: var(--color-star); font-size: .75em; }
.ma-footer__social a { font-size: 14px; }
.ma-footer__bottom i { color: #e3b87a; margin: 0 2px; }
.ma-footer__contact li { display: flex; gap: 10px; }
.ma-footer__contact i { color: #e3b87a; width: 14px; margin-top: 5px; flex: none; text-align: center; }
.ma-slider__btn { font-size: 13px; display: flex; align-items: center; justify-content: center; }


/* ---------- ROOMS SECTION ---------- */
.ma-grid--rooms { grid-template-columns: 1fr; gap: 20px; }
.ma-room { background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ma-room__img { position: relative; }
.ma-room__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ma-room__icon {
  position: absolute; left: 16px; bottom: -22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(60, 40, 20, .25);
}
.ma-room__body { padding: 34px 16px 18px; }
.ma-room__body h3 { font-size: 21px; }
.ma-room__body p { font-size: 13.5px; color: var(--color-muted); }
.ma-room__link { font-size: 13px; font-weight: 500; color: var(--color-primary); }
.ma-room__link:hover { color: var(--color-primary-dark); }

/* =========================================================
   14. TABLET  (768px and up)
   ========================================================= */
@media (min-width: 768px) {
  .ma-title h2 { font-size: 36px; }

  .ma-topbar__inner { justify-content: space-between; }
  .ma-topbar__social { display: flex; gap: 10px; }

  .ma-hero__bg { height: 340px; }
  .ma-hero__text h1 { font-size: 46px; }

  .ma-grid--categories { grid-template-columns: repeat(3, 1fr); }
  .ma-grid--categories .ma-cat:last-child:nth-child(odd) { grid-column: auto; }
  .ma-grid--categories .ma-cat:last-child:nth-child(odd) .ma-cat__img img { aspect-ratio: 1 / 1; }

  .ma-grid--products { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ma-grid--rooms { grid-template-columns: repeat(2, 1fr); }

  .ma-promo__grid { grid-template-columns: 1fr 1fr; }
  .ma-promo__image img { max-height: none; }
  .ma-promo__text { text-align: left; padding: 36px; }

  .ma-grid--features { grid-template-columns: repeat(4, 1fr); }

  .ma-review { flex-direction: row; text-align: left; padding: 28px; }


  .ma-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .ma-footer__bottom .ma-container { flex-direction: row; justify-content: space-between; }
}


/* =========================================================
   15. DESKTOP  (1024px and up)
   ========================================================= */
@media (min-width: 1024px) {
  .ma-section { padding: 64px 0; }

  /* ----- Header: logo | menu | icons ----- */
  .ma-header__inner { grid-template-columns: auto 1fr auto; gap: 32px; }
  .ma-menu-toggle { display: none; }
  .ma-logo { order: -1; }
  .ma-logo img { margin: 0; }

  .ma-nav { display: block; grid-column: auto; border: 0; background: none; max-height: none; overflow: visible; }
  .ma-nav__list { display: flex; gap: 30px; justify-content: center; }
  .ma-nav a { padding: 22px 0; border: 0; font-size: 14px; font-weight: 500; }
  .ma-nav a:hover { color: var(--color-primary); }

  /* ----- Dropdown (level 2) ----- */
  .ma-nav__list > .ma-has-sub > a { padding-right: 16px; }
  .ma-nav__list > .ma-has-sub > a::after { right: 0; }
  .ma-has-sub { position: relative; }

  .ma-sub {
    position: absolute; top: 100%; left: -16px;
    min-width: 220px; padding: 8px 0;
    background: var(--color-white);
    border-radius: 0 0 10px 10px;
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    z-index: 50;
  }
  .ma-sub li { position: relative; }
  .ma-sub a { padding: 10px 40px 10px 20px; font-size: 14px; color: var(--color-text); }
  .ma-sub a:hover { background: var(--color-bg); }

  /* ----- Flyout (level 3 aur uske aage): right side me khulta hai ----- */
  .ma-sub .ma-sub { top: -9px; left: 100%; border-top: 0; border-radius: 10px; }
  .ma-sub .ma-has-sub > a::after {
    right: 18px; margin-top: -4px; transform: rotate(-45deg);   /* "right" arrow */
  }

  /* Hover / keyboard focus par kholo */
  .ma-has-sub:hover > .ma-sub,
  .ma-has-sub:focus-within > .ma-sub { display: block; }
  .ma-has-sub.is-open > a::after { transform: rotate(45deg); margin-top: -5px; }
  .ma-sub .ma-has-sub.is-open > a::after { transform: rotate(-45deg); margin-top: -4px; }

  /* ----- Hero: image background, text left par ----- */
  .ma-hero { position: relative; display: flex; align-items: center; min-height: 560px; }
  .ma-hero__bg { position: absolute; inset: 0; height: 100%; }
  .ma-hero::before {                    /* text padhne ke liye soft gradient */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(251, 246, 239, .96) 0%, rgba(251, 246, 239, .75) 38%, rgba(251, 246, 239, 0) 65%);
  }
  .ma-hero__inner { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; text-align: left; }
  .ma-hero__text { max-width: 480px; }
  .ma-hero__text h1 { font-size: 58px; }
  .ma-hero__stats { max-width: 420px; }

  .ma-grid--categories { grid-template-columns: repeat(5, 1fr); }

  .ma-grid--products { grid-template-columns: repeat(4, 1fr); }
  .ma-grid--rooms { grid-template-columns: repeat(4, 1fr); }

  .ma-promo__text { padding: 48px; }
  .ma-promo__text h2 { font-size: 40px; }

  .ma-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .ma-footer__brand { grid-column: auto; }
}


/* =========================================================
   PART B - SHOP PAGES
   ========================================================= */


/* ---------- 1. PAGE HEADER + BREADCRUMB ---------- */
.ma-pagehead { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); padding: 26px 0 24px; text-align: center; }
.ma-pagehead h1 { font-size: 30px; margin: 6px 0 0; }
.ma-pagehead p { color: var(--color-muted); margin: 6px 0 0; font-size: 14px; }
.ma-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; font-size: 13px; color: var(--color-muted); }
.ma-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--color-border); }
.ma-crumbs a:hover { color: var(--color-primary); }
.ma-crumbs [aria-current] { color: var(--color-text); }
.ma-crumbs--left { justify-content: flex-start; padding: 16px 0 0; }

/* ---------- 2. SHARED ---------- */
.ma-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ma-noscroll { overflow: hidden; }
.ma-btn--block { display: block; width: 100%; text-align: center; }
.ma-btn[disabled] { opacity: .6; cursor: not-allowed; }
.ma-box { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); }
.ma-box h2 { font-size: 21px; margin-bottom: 14px; }
.ma-link { color: var(--color-primary); font-weight: 500; font-size: 14px; }
.ma-link:hover { color: var(--color-primary-dark); }
.ma-link--btn { background: none; border: 0; padding: 0; }
.ma-link i { font-size: .8em; margin-right: 4px; }
.ma-free { color: #2e7d4f; font-weight: 600; }

/* Form fields */
.ma-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0; }
.ma-field label { font-size: 13px; font-weight: 500; }
.ma-field input, .ma-field select, .ma-field textarea,
.ma-coupon input, .ma-pin__row input, .ma-sort select {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 15px;
  color: var(--color-text); background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: 10px;
}
.ma-field input:focus, .ma-field select:focus, .ma-coupon input:focus, .ma-pin__row input:focus, .ma-sort select:focus {
  outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(169, 118, 61, .18);
}
.ma-field__err { display: block; min-height: 20px; font-size: 12px; line-height: 20px; color: var(--color-sale); }  /* jagah reserve: error aane/jaane par layout nahi hilta */
.ma-field.has-error input, .ma-field.has-error select { border-color: var(--color-sale); }
.ma-field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

/* Qty stepper */
.ma-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); overflow: hidden; }
.ma-qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 18px; color: var(--color-text); }
.ma-qty button:hover { background: var(--color-bg-alt); }
.ma-qty input { width: 38px; text-align: center; border: 0; font: inherit; font-weight: 600; background: none; color: var(--color-text); padding: 0; -moz-appearance: textfield; }
.ma-qty input::-webkit-outer-spin-button, .ma-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ma-qty--sm button { width: 34px; height: 38px; font-size: 16px; }
.ma-qty--sm input { width: 30px; font-size: 14px; }

/* Toast */
.ma-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 300;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--color-dark); color: #fff; padding: 11px 20px; border-radius: 50px;
  font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: opacity .25s, transform .25s; white-space: nowrap;
}
.ma-toast i { color: #e3b87a; margin-right: 6px; }
.ma-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Empty state */
.ma-empty { text-align: center; padding: 56px 16px; max-width: 460px; margin: 0 auto; }
.ma-empty > i { font-size: 44px; color: var(--color-primary); margin-bottom: 14px; }
.ma-empty h2, .ma-empty h3 { font-size: 24px; }
.ma-empty p { color: var(--color-muted); }
.ma-empty--inline { grid-column: 1 / -1; }

/* ---------- 3. CATEGORY LISTING PAGE ---------- */
.ma-grid--cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ma-cat--lg { display: flex; flex-direction: column; }
.ma-cat--lg .ma-cat__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 16px; }
.ma-cat--lg .ma-cat__name { padding: 0; font-family: var(--font-heading); font-size: 17px; font-weight: 600; }
.ma-cat--lg .ma-cat__desc { font-size: 12.5px; color: var(--color-muted); line-height: 1.45; }
.ma-cat--lg .ma-cat__count { font-size: 12px; font-weight: 500; color: var(--color-primary); margin-top: 6px; }

.ma-room-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ma-room-strip a { padding: 10px 20px; border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); font-size: 14px; font-weight: 500; transition: .2s; }
.ma-room-strip a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.ma-room-strip i { color: var(--color-primary); margin-right: 8px; }
.ma-room-strip a:hover i { color: #fff; }

/* ---------- 4. PRODUCT LISTING ---------- */
.ma-shop { padding: 22px 0 56px; }
.ma-shop__layout { display: block; }

.ma-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-bottom: 14px; }
.ma-toolbar__count { font-size: 13px; color: var(--color-muted); flex: 1 1 100%; order: 3; margin: 0; }
.ma-filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--color-dark); border-radius: 50px; background: transparent; font-size: 14px; font-weight: 500; }
.ma-filter-btn span:empty { display: none; }
.ma-filter-btn span { background: var(--color-primary); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.ma-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; flex: 1; justify-content: flex-end; }
.ma-sort label { white-space: nowrap; color: var(--color-muted); display: none; }
.ma-sort select { min-height: 44px; width: auto; max-width: 100%; border-radius: 50px; padding: 8px 14px; font-size: 14px; }

.ma-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.ma-chips:empty { display: none; }
.ma-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 50px; border: 1px solid var(--color-border); background: var(--color-white); font-size: 12.5px; }
button.ma-chip:hover { border-color: var(--color-primary); }
.ma-chip i { font-size: 10px; color: var(--color-muted); }
.ma-chip-clear { background: none; border: 0; color: var(--color-primary); font-size: 13px; font-weight: 500; text-decoration: underline; padding: 0 4px; }

/* Filters: mobile par off-canvas drawer */
.ma-filters {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 210;
  width: min(86vw, 340px); background: var(--color-bg);
  transform: translateX(-102%); transition: transform .28s ease;
  display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(0, 0, 0, .18);
}
.ma-filters.is-open { transform: none; }
.ma-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--color-border); }
.ma-filters__head h2 { margin: 0; font-size: 20px; }
.ma-filters__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--color-bg-alt); font-size: 16px; }
.ma-filters__body { flex: 1; overflow-y: auto; padding: 6px 18px 18px; }
.ma-filters__foot { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--color-border); background: var(--color-white); }
.ma-filters__foot .ma-btn { flex: 1; padding: 11px 12px; text-align: center; }
.ma-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(38, 35, 31, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.ma-overlay.is-open { opacity: 1; pointer-events: auto; }

.ma-fgroup { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.ma-fgroup:last-child { border-bottom: 0; }
.ma-fgroup h3 { font-size: 16px; margin-bottom: 10px; }
.ma-check, .ma-rad { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.ma-check input, .ma-rad input { width: 18px; height: 18px; accent-color: var(--color-primary); flex: none; margin: 0; }
.ma-check small { margin-left: auto; color: var(--color-muted); font-size: 12px; }

.ma-grid--shop { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ma-grid--shop .ma-product__info { padding: 12px 10px; }

.ma-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.ma-pagination:empty { display: none; }
.ma-pagination button {
  min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 50%;
  background: var(--color-white); font-size: 14px; font-weight: 500; transition: .2s;
}
.ma-pagination button:hover:not([disabled]) { border-color: var(--color-primary); color: var(--color-primary); }
.ma-pagination button.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.ma-pagination button[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- 5. PRODUCT DETAIL ---------- */
.ma-pd { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 18px 0 40px; }
.ma-pd__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-alt); box-shadow: var(--shadow); }
.ma-pd__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ma-pd__main .ma-product__badge { font-size: 12px; padding: 3px 12px; }
.ma-pd__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.ma-pd__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--color-bg-alt); }
.ma-pd__thumbs button.is-active { border-color: var(--color-primary); }
.ma-pd__thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.ma-pd__info h1 { font-size: 28px; margin-bottom: 8px; }
.ma-pd__rating { margin-bottom: 10px; }
.ma-pd__rating small { margin-left: 4px; }
.ma-pd__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.ma-pd__price strong { font-size: 30px; font-family: var(--font-heading); }
.ma-pd__price del { color: var(--color-muted); }
.ma-pd__save { background: #e6f2ea; color: #2e7d4f; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.ma-pd__short { color: var(--color-muted); font-size: 14px; }

.ma-opt { margin: 16px 0; }
.ma-opt__label { display: block; font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }
.ma-opt__label b { color: var(--color-text); font-weight: 600; }
.ma-opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-pill { min-height: 42px; padding: 0 16px; border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); font-size: 14px; transition: .2s; }
.ma-pill:hover { border-color: var(--color-primary); }
.ma-pill.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.ma-swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--color-white); background: var(--sw); box-shadow: 0 0 0 1px var(--color-border); }
.ma-swatch.is-active { box-shadow: 0 0 0 2px var(--color-primary); }

.ma-pd__buy { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 20px 0 10px; }
.ma-pd__buy .ma-btn { padding: 13px 16px; text-align: center; }
.ma-pd__wish { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-white); font-size: 18px; }
.ma-pd__wish.is-active { color: #d33; border-color: #d33; }

.ma-pin { margin: 20px 0 0; padding: 14px; border: 1px dashed var(--color-border); border-radius: 10px; background: rgba(255, 255, 255, .55); }
.ma-pin label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.ma-pin label i { color: var(--color-primary); margin-right: 6px; }
.ma-pin__row { display: flex; gap: 8px; }
.ma-pin__row button { padding: 0 20px; border: 0; border-radius: 10px; background: var(--color-dark); color: #fff; font-weight: 500; }
.ma-pin__msg { margin: 8px 0 0; font-size: 13px; min-height: 0; }
.ma-pin__msg:empty { display: none; }
.ma-pin__msg.is-ok { color: #2e7d4f; }
.ma-pin__msg.is-bad { color: var(--color-sale); }

.ma-pd__perks { display: grid; gap: 10px; margin-top: 18px; font-size: 14px; }
.ma-pd__perks i { color: var(--color-primary); width: 22px; }

/* Tabs */
.ma-tabs { padding-bottom: 40px; }
.ma-tabs__nav { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--color-border); margin-bottom: 20px; scrollbar-width: none; }
.ma-tabs__nav::-webkit-scrollbar { display: none; }
.ma-tabs__nav button { flex: none; padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--color-muted); white-space: nowrap; margin-bottom: -1px; }
.ma-tabs__nav button.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.ma-tabs__panel { display: none; max-width: 760px; }
.ma-tabs__panel.is-active { display: block; }
.ma-ticks li { padding-left: 26px; margin-bottom: 8px; position: relative; }
.ma-ticks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--color-primary); font-size: 13px; top: 2px; }
.ma-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.ma-spec th, .ma-spec td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.ma-spec th { width: 34%; font-weight: 500; color: var(--color-muted); }
.ma-reviewsum { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ma-reviewsum strong { font-family: var(--font-heading); font-size: 44px; line-height: 1; }
.ma-rev { padding: 14px 0; border-top: 1px solid var(--color-border); }
.ma-rev p { margin: 4px 0; font-size: 14px; }
.ma-rev small { color: var(--color-muted); }

/* ---------- 6. CART ---------- */
.ma-cart-page { padding: 22px 0 56px; }
.ma-cart-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }

.ma-ship-bar { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 16px 16px; font-size: 14px; margin-bottom: 14px; }
.ma-ship-bar i.fa-solid { color: var(--color-primary); margin-right: 6px; }
.ma-ship-bar__track { display: block; height: 6px; border-radius: 6px; background: var(--color-bg-alt); margin-top: 10px; overflow: hidden; }
.ma-ship-bar__track i { display: block; height: 100%; background: var(--color-primary); border-radius: 6px; transition: width .3s; }

.ma-cart-list { display: grid; gap: 12px; }
.ma-cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: "img info rm" "img qty total";
  gap: 6px 14px; align-items: center;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px;
}
.ma-cart-item__img { grid-area: img; align-self: start; border-radius: 10px; overflow: hidden; background: var(--color-bg-alt); }
.ma-cart-item__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ma-cart-item__info { grid-area: info; min-width: 0; align-self: start; }
.ma-cart-item__info h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 500; margin: 0 0 2px; }
.ma-cart-item__info h3 a:hover { color: var(--color-primary); }
.ma-cart-item__meta { font-size: 12.5px; color: var(--color-muted); margin: 0; }
.ma-cart-item__unit { font-size: 13px; margin: 2px 0 0; }
.ma-cart-item .ma-qty { grid-area: qty; justify-self: start; }
.ma-cart-item__total { grid-area: total; justify-self: end; font-size: 16px; }
.ma-cart-item__rm { grid-area: rm; align-self: start; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--color-muted); font-size: 16px; }
.ma-cart-item__rm:hover { color: var(--color-sale); background: #fbeae6; }
.ma-cart-actions { display: flex; justify-content: space-between; margin-top: 14px; }

.ma-sum { margin: 0; }
.ma-sum > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14.5px; }
.ma-sum dt { color: var(--color-muted); }
.ma-sum dd { margin: 0; font-weight: 500; text-align: right; }
.ma-sum__disc dd { color: #2e7d4f; }
.ma-sum__total { border-top: 1px solid var(--color-border); margin-top: 6px; padding-top: 14px !important; font-size: 18px !important; }
.ma-sum__total dt, .ma-sum__total dd { color: var(--color-text); font-weight: 700; }
.ma-sum__note { font-size: 12px; color: var(--color-muted); margin: 2px 0 14px; }
.ma-coupon { display: flex; gap: 8px; margin-top: 4px; }
.ma-coupon button { padding: 0 20px; border: 1px solid var(--color-dark); border-radius: 10px; background: transparent; font-weight: 500; }
.ma-coupon button:hover { background: var(--color-dark); color: #fff; }
.ma-coupon__msg { font-size: 12.5px; color: var(--color-muted); margin: 8px 0 16px; }
.ma-coupon__msg.is-bad { color: var(--color-sale); }
.ma-secure { text-align: center; font-size: 12.5px; color: var(--color-muted); margin: 12px 0 0; }
.ma-secure i { color: var(--color-primary); margin-right: 4px; }

/* ---------- 7. CHECKOUT ---------- */
.ma-steps { display: flex; justify-content: center; gap: 8px; font-size: 13px; margin-top: 12px; color: var(--color-muted); }
.ma-steps li { display: flex; align-items: center; gap: 8px; }
.ma-steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--color-border); }
.ma-steps b { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--color-border); font-size: 12px; color: var(--color-text); }
.ma-steps .is-done b, .ma-steps .is-current b { background: var(--color-primary); color: #fff; }
.ma-steps .is-current { color: var(--color-text); font-weight: 500; }
.ma-steps span { display: none; }

.checkout-page { padding: 22px 0 56px; }
.ma-co-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.ma-co-form > .ma-box { margin-bottom: 16px; }
.ma-co-form h2 { display: flex; align-items: center; gap: 10px; }
.ma-co-form h2 b { width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: #fff; font: 600 14px var(--font-body); display: inline-flex; align-items: center; justify-content: center; flex: none; }

.ma-radio { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer; background: var(--color-white); transition: .2s; }
.ma-radio input { accent-color: var(--color-primary); width: 18px; height: 18px; margin: 0; flex: none; }
.ma-radio.is-active, .ma-radio:has(input:checked) { border-color: var(--color-primary); background: rgba(169, 118, 61, .06); }
.ma-radio__text { flex: 1; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.ma-radio__text small { display: block; font-weight: 400; color: var(--color-muted); font-size: 12.5px; }
.ma-radio > b { font-size: 14px; white-space: nowrap; }
.ma-radio > i { color: var(--color-primary); font-size: 18px; width: 22px; text-align: center; }
.ma-pay-extra { padding: 6px 2px 4px; }
.ma-pay-extra[hidden] { display: none; }
.ma-terms { display: flex; gap: 10px; font-size: 13.5px; align-items: flex-start; margin: 4px 0 4px; }
.ma-terms input { width: 18px; height: 18px; accent-color: var(--color-primary); margin-top: 2px; flex: none; }
.ma-terms a { color: var(--color-primary); text-decoration: underline; }
.ma-terms-err { color: var(--color-sale); font-size: 12.5px; margin: 0 0 12px; min-height: 0; }

.ma-co-side { align-self: start; }
.ma-co-items { margin-bottom: 8px; }
.ma-co-items li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 13.5px; }
.ma-co-items__img { position: relative; flex: none; width: 58px; }
.ma-co-items__img img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--color-bg-alt); }
.ma-co-items__img em { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; background: var(--color-dark); color: #fff; font-size: 11px; font-style: normal; display: flex; align-items: center; justify-content: center; }
.ma-co-items__name { flex: 1; min-width: 0; line-height: 1.35; }
.ma-co-items__name small { display: block; color: var(--color-muted); font-size: 12px; }
.ma-place { margin-top: 6px; }
.ma-place-note { text-align: center; font-size: 12.5px; color: var(--color-muted); margin: 12px 0 0; }

/* Order success */
.ma-done { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 16px; }
.ma-done__icon { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; background: #e6f2ea; color: #2e7d4f; font-size: 30px; align-items: center; justify-content: center; margin-bottom: 16px; }
.ma-done h2 { font-size: 30px; }
.ma-done__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 26px; padding: 16px 8px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); }
.ma-done__meta dt { font-size: 12px; color: var(--color-muted); }
.ma-done__meta dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.ma-done .ma-btn { margin: 4px; }


/* =========================================================
   8. TABLET  (768px and up)
   ========================================================= */
@media (min-width: 768px) {
  .ma-pagehead { padding: 38px 0 34px; }
  .ma-pagehead h1 { font-size: 40px; }

  .ma-grid--cats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ma-cat--lg .ma-cat__body { padding: 16px 16px 20px; }
  .ma-cat--lg .ma-cat__name { font-size: 20px; }
  .ma-cat--lg .ma-cat__desc { font-size: 13.5px; }

  .ma-grid--shop { gap: 20px; }
  .ma-toolbar__count { flex: none; order: 0; }
  .ma-sort label { display: block; }
  .ma-sort { flex: none; }
  .ma-toolbar { flex-wrap: nowrap; }

  .ma-pd { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .ma-pd__gallery { position: sticky; top: 90px; }
  .ma-pd__info h1 { font-size: 32px; }

  .ma-field-row { grid-template-columns: 1fr 1fr; }
  .ma-field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
  .ma-box { padding: 26px 24px; }

  .ma-cart-item { grid-template-columns: 110px 1fr auto auto auto; grid-template-areas: "img info qty total rm"; gap: 18px; padding: 16px; }
  .ma-cart-item__img { align-self: center; }
  .ma-cart-item__info { align-self: center; }
  .ma-cart-item__total { min-width: 90px; text-align: right; }
  .ma-cart-item__rm { align-self: center; }

  .ma-steps span { display: inline; }
  .ma-done h2 { font-size: 36px; }
}


/* =========================================================
   9. DESKTOP  (1024px and up)
   ========================================================= */
@media (min-width: 1024px) {
  .ma-grid--cats { grid-template-columns: repeat(3, 1fr); }

  /* Listing: sidebar + products */
  .ma-shop { padding: 36px 0 72px; }
  .ma-shop__layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
  .ma-filters {
    position: sticky; top: 90px; z-index: 1; width: auto; transform: none; transition: none; box-shadow: none;
    background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
    max-height: calc(100vh - 110px);
  }
  .ma-filters__close, .ma-filters__foot .ma-btn--dark, .ma-overlay, .ma-filter-btn { display: none; }
  .ma-filters__foot { padding: 14px 18px; }
  .ma-filters__foot .ma-btn { padding: 10px 12px; }
  .ma-grid--shop { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ma-grid--shop .ma-product__info { padding: 14px 14px 16px; }
  .ma-toolbar { justify-content: space-between; }

  .ma-pd { gap: 56px; padding: 26px 0 56px; }
  .ma-pd__info h1 { font-size: 36px; }
  .ma-pd__buy { grid-template-columns: auto 1fr auto; }

  .ma-cart-layout { grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
  .ma-cart-side { position: sticky; top: 90px; }

  .ma-co-layout { grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }
  .ma-co-side { position: sticky; top: 90px; }
}

@media (min-width: 1200px) {
  .ma-grid--shop { gap: 28px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* scroll offset (sticky header ke neeche na chhupe) */
#listTop, #pdTabs { scroll-margin-top: 90px; }


/* =========================================================
   10. CONTACT PAGE
   ========================================================= */
.ma-contact-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ma-ccard { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); }
.ma-ccard__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-primary); font-size: 20px; align-items: center; justify-content: center; margin-bottom: 10px; }
.ma-ccard h3 { font-size: 18px; margin-bottom: 6px; }
.ma-ccard p, .ma-ccard a { font-size: 14px; color: var(--color-muted); margin: 0; display: block; }
.ma-ccard a:hover { color: var(--color-primary); }

.ma-contact-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.ma-contact-form .ma-field textarea { min-height: 140px; resize: vertical; }
.ma-form-ok { display: none; background: #e6f2ea; color: #2e7d4f; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.ma-form-ok.is-show { display: block; }
.ma-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow); min-height: 280px; background: var(--color-bg-alt); }
.ma-map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
.ma-hours { margin-top: 16px; font-size: 14px; }
.ma-hours div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.ma-hours div:last-child { border-bottom: 0; }
.ma-hours dt { color: var(--color-muted); }
.ma-hours dd { margin: 0; font-weight: 500; }

.ma-faq { max-width: 760px; margin: 0 auto; }
.ma-faq details { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 10px; margin-bottom: 10px; }
.ma-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 500; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ma-faq summary::-webkit-details-marker { display: none; }
.ma-faq summary::after { content: "+"; font-size: 20px; color: var(--color-primary); flex: none; }
.ma-faq details[open] summary::after { content: "\2212"; }
.ma-faq details p { padding: 0 16px 14px; margin: 0; font-size: 14px; color: var(--color-muted); }

@media (min-width: 768px) {
  .ma-contact-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .ma-contact-layout { grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
  .ma-map, .ma-map iframe { min-height: 320px; }
}


/* Product detail extras: SKU/availability, WhatsApp, tags */
.ma-pd__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; margin: 0 0 4px; }
.ma-pd__meta span { color: var(--color-muted); }
.ma-instock { color: #2e7d4f; font-weight: 600; }
.ma-instock i { margin-right: 3px; }
.ma-btn--wa { background: #1f9d55; border-color: #1f9d55; margin-top: 10px; }
.ma-btn--wa:hover { background: #17803f; border-color: #17803f; }
.ma-btn--wa i { font-size: 1.1em; margin: 0 6px 0 0; }
.ma-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; }
.ma-tags span { color: var(--color-muted); }
.ma-tags a { padding: 4px 12px; border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); }
.ma-tags a:hover { border-color: var(--color-primary); color: var(--color-primary); }


/* =========================================================
   PART C - nopCommerce LAYOUT (header, menu, search, footer)
   Rules for markup that only exists in the nopCommerce views
   (account icon, counters, flyout cart, search panel...).
   ========================================================= */

/* ----- Header grid: keep icons on row 1 when the mobile menu opens ----- */
.ma-header__icons { grid-row: 1; grid-column: 3; }
.ma-nav { grid-row: 2; }

/* ----- Header icons ----- */
.ma-icon-btn {
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font-size: inherit; line-height: 1;
}
.ma-icon-link, .ma-icon-btn { display: inline-flex; align-items: center; }
.ma-icon-btn:hover, .ma-icon-btn[aria-expanded="true"] { color: var(--color-primary); }
.ma-hide-mobile { display: none !important; }

/* Count badges (cart / wishlist / inbox). JS hides them when the count is 0. */
.ma-badge-host { position: relative; }
.ma-badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-style: normal; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ma-badge[hidden] { display: none; }

/* ----- Mini cart flyout (nopCommerce shows it on hover from 1001px) ----- */
.ma-cart-wrap { position: relative; display: inline-flex; }
.ma-cart-wrap .flyout-cart {
  top: calc(100% + 12px);
  border-radius: var(--radius);
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
  font-size: 13px;
}
.ma-cart-wrap .flyout-cart::before {          /* invisible bridge so hover isn't lost in the gap */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.ma-cart-wrap .mini-shopping-cart button[type="button"] {
  border-radius: 50px; background: var(--color-primary); color: #fff;
}
.ma-cart-wrap .mini-shopping-cart button[type="button"]:hover { background: var(--color-primary-dark); }

/* ----- Menu: "All <category>" link only needed on mobile ----- */
.ma-sub__all a { font-weight: 600; color: var(--color-primary) !important; }

/* ----- Search panel ----- */
.ma-search { border-top: 1px solid var(--color-border); background: var(--color-bg); padding: 14px 0; }
.ma-search[hidden] { display: none; }
.ma-search .search-box { position: relative; }
.ma-search .search-box form { flex-wrap: nowrap; gap: 8px; justify-content: stretch; }
.ma-search .search-box input.search-box-text {
  flex: 1; width: auto; min-width: 0; height: 46px; margin: 0;
  padding: 0 20px; border: 1px solid var(--color-border); border-radius: 50px;
  background: var(--color-white); font: inherit; color: var(--color-text);
}
.ma-search .search-box input.search-box-text:focus { border-color: var(--color-primary); outline: none; }
.ma-search .search-box .search-box-category {
  height: 46px; max-width: 34%; padding: 0 12px;
  border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white);
}
.ma-search .search-box .search-box-button {
  height: 46px; min-width: 0; padding: 0 24px; border-radius: 50px;
  background: var(--color-primary); font-weight: 500; text-transform: none;
}
.ma-search .search-box .search-box-button:hover,
.ma-search .search-box .search-box-button:focus { background: var(--color-primary-dark); }
.ma-search .ui-autocomplete { border-radius: var(--radius); overflow: hidden; }

/* ----- Top bar: topic body may contain its own list ----- */
.ma-topbar__social > span { margin-right: 4px; }

/* ----- Footer extras ----- */
.ma-footer__desc { margin-bottom: 12px; }
.ma-footer__desc p { margin: 0 0 8px; }
.ma-footer__powered a, .ma-footer__tax a { text-decoration: underline; }
.ma-footer__bottom .theme-selector { margin-top: 8px; text-align: center; }

@media (min-width: 768px) {
  .ma-hide-mobile { display: inline-flex !important; }
}

@media (min-width: 1024px) {
  .ma-header__icons, .ma-nav { grid-row: auto; grid-column: auto; }
  .ma-header__icons { gap: 20px; }
  .ma-logo img { height: 48px; }
  .ma-sub__all { display: none; }
}


/* =========================================================
   PART D - HOMEPAGE + PRODUCT CARD (nopCommerce markup)
   ========================================================= */

/* nopCommerce centres .page text on mobile; the design is left aligned */
.ma-home, .ma-product { text-align: left; }
.ma-home .ma-title, .ma-home .ma-center, .ma-home .ma-cat { text-align: center; }

/* HomepageText topic */
.ma-home-text { padding-top: 32px; padding-bottom: 8px; text-align: center; }
.ma-home-text :where(p) { color: var(--color-muted); max-width: 760px; margin-left: auto; margin-right: auto; }

/* Hero slider (Swiper widget plugin) in brand colours */
.ma-home .nop-slider {
  --swiper-navigation-color: #fff;
  --swiper-navigation-size: 26px;
  --swiper-pagination-color: var(--color-primary);
  --swiper-pagination-bullet-inactive-color: #fff;
  --swiper-pagination-bullet-inactive-opacity: .7;
}
.ma-home .nop-slider .slider-img { display: block; width: 100%; }

/* Product card extras */
.ma-product__wish { color: var(--color-text); transition: color .2s, transform .2s; }
.ma-product__wish:hover { color: var(--color-sale); transform: scale(1.08); }
.ma-price__note { display: block; font-size: 11px; color: var(--color-muted); }
.ma-price__note a { text-decoration: underline; }
.ma-product__btn:disabled { opacity: .6; cursor: default; }


/* =========================================================
   PART E - CATALOG LISTING (category page, search, tags...)
   ========================================================= */
.ma-shop-page { text-align: left; }
.ma-section--tight { padding: 28px 0; }
.ma-cat-desc { padding-top: 24px; color: var(--color-muted); }

/* nopCommerce grid classes kept for "Load more": neutralise their float layout */
.ma-shop .product-grid, .ma-shop .product-list { margin: 0; }
.ma-grid.item-grid::after { content: none; display: none; }
.ma-grid > .item-box { display: flex; width: auto; float: none; margin: 0 !important; padding: 0; }
.ma-grid > .item-box > .ma-product { flex: 1; width: 100%; }

/* List view: one column, picture left */
.ma-grid--list { grid-template-columns: 1fr !important; }
.ma-grid--list .ma-product { flex-direction: row; }
.ma-grid--list .ma-product__img { width: 38%; max-width: 260px; flex: none; }
.ma-grid--list .ma-product__info { justify-content: center; }
.ma-grid--list .ma-product__btn { margin-top: 8px; align-self: flex-start; padding-left: 28px; padding-right: 28px; }

/* Toolbar: count (inside AJAX area), sort, view mode */
.products-wrapper .ma-toolbar__count { margin: 0 0 12px; font-size: 13px; color: var(--color-muted); }
.ma-selectors { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; flex: 1; }
.ma-sort select {
  border: 1px solid var(--color-border); background-color: var(--color-white);
  color: var(--color-text); font: inherit; font-size: 14px;
}
.ma-viewmode { display: flex; gap: 6px; }
.ma-viewmode .viewmode-icon {
  width: 40px; height: 40px; margin: 0; opacity: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); border-radius: 50%;
  background: var(--color-white) none; color: var(--color-muted); font-size: 15px;
}
.ma-viewmode .viewmode-icon.selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Sidebar: category navigation */
.ma-catnav h3 { font-size: 16px; margin-bottom: 8px; }
.ma-catnav ul ul { padding-left: 14px; border-left: 1px solid var(--color-border); margin: 2px 0 4px 2px; }
.ma-catnav a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 14px; }
.ma-catnav a:hover { color: var(--color-primary); }
.ma-catnav small { color: var(--color-muted); font-size: 12px; }
.ma-catnav .is-current > a { color: var(--color-primary); font-weight: 600; }

/* Sidebar: nopCommerce filter boxes (price slider / specs / manufacturers) */
.ma-fgroup .product-filter .filter-title strong { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--color-text); }
.ma-fgroup .product-filter .filter-title { margin-bottom: 10px; }
.ma-fgroup .product-filter .filter-content { display: block !important; padding: 0; margin: 0; color: var(--color-text); }
.ma-fgroup .product-filter .group { font-size: 14px; }
.ma-fgroup .product-filter .group .name { margin: 8px 0 2px; font-size: 13px; color: var(--color-muted); }
.ma-fgroup .product-filter li.item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ma-fgroup .product-filter li.item input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-primary); flex: none; }
.ma-fgroup .product-filter li.item label { cursor: pointer; }
.ma-fgroup .attribute-square { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--color-border); vertical-align: middle; margin-right: 6px; }
.ma-fgroup .selected-price-range { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 13px; font-weight: 500; }
.ma-fgroup .ui-slider { height: 4px; margin: 0 9px 8px; border: 0; border-radius: 4px; background: var(--color-border); }
.ma-fgroup .ui-slider .ui-slider-range { background: var(--color-primary); }
.ma-fgroup .ui-slider .ui-slider-handle {
  top: -8px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  border: 2px solid var(--color-primary); background: var(--color-white); cursor: grab;
}

/* Pagination (nopCommerce pager markup) */
.ma-pagination.pager { margin: 32px 0 0; }
.ma-pagination.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; text-align: center; }
.ma-pagination.pager li { margin: 0; }
.ma-pagination.pager li a, .ma-pagination.pager li span {
  min-width: 42px; height: 42px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); border-radius: 50%;
  background: var(--color-white) none; color: var(--color-text); font-size: 14px; font-weight: 500;
}
.ma-pagination.pager li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ma-pagination.pager li.current-page span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.ma-pagination.pager li.previous-page *, .ma-pagination.pager li.next-page *,
.ma-pagination.pager li.first-page *, .ma-pagination.pager li.last-page * { font-size: 0; color: var(--color-text); background-image: none; }
.ma-pagination.pager li.previous-page a::before, .ma-pagination.pager li.next-page a::before,
.ma-pagination.pager li.first-page a::before, .ma-pagination.pager li.last-page a::before {
  font: var(--fa-font-solid); font-size: 13px;
}
.ma-pagination.pager li.previous-page a::before { content: "\f104"; }
.ma-pagination.pager li.next-page a::before { content: "\f105"; }
.ma-pagination.pager li.first-page a::before { content: "\f100"; }
.ma-pagination.pager li.last-page a::before { content: "\f101"; }

/* Load more + empty result */
.ma-loadmore { margin: 32px 0 0; text-align: center; }
.ma-loadmore .load-more-info { margin: 0 0 12px; font-size: 13px; color: var(--color-muted); }
.ma-loadmore .load-more-button { font-size: 14px; text-transform: none; border-radius: 50px; background: transparent; color: var(--color-dark); border: 1px solid var(--color-dark); padding: 13px 30px; }
.ma-loadmore .load-more-button:hover { background: var(--color-dark); color: #fff; }
.ma-empty { padding: 48px 16px; text-align: center; color: var(--color-muted); }
.ma-empty i { font-size: 32px; color: var(--color-border); margin-bottom: 12px; display: block; }

body.ma-no-scroll { overflow: hidden; }

@media (min-width: 768px) {
  .ma-sort label { display: inline; }
}


/* =========================================================
   PART F - PRODUCT PAGE (nopCommerce product partials)
   ========================================================= */
.ma-pd-page { text-align: left; }
.ma-crumbs--left { justify-content: flex-start; padding-top: 16px; }

/* Gallery (_ProductDetailsPictures) */
.ma-pd__gallery .picture { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-alt); box-shadow: var(--shadow); margin: 0; }
.ma-pd__gallery .picture img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ma-pd__gallery .picture-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.ma-pd__gallery .thumb-item { display: block; width: auto; height: auto; margin: 0; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--color-bg-alt); cursor: pointer; }
.ma-pd__gallery .thumb-item.is-active, .ma-pd__gallery .thumb-item:hover { border-color: var(--color-primary); }
.ma-pd__gallery .thumb-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; position: static; max-width: none; }

/* Title, category, price */
.ma-pd__info > .ma-eyebrow { margin-bottom: 6px; }
.ma-pd__info .product-reviews-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 10px; font-size: 13px; }
.ma-pd__info .product-review-links a { color: var(--color-muted); text-decoration: underline; }
.ma-pd__price .prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 10px; }
.ma-pd__price .product-price { font-family: var(--font-heading); font-size: 30px; font-weight: 600; color: var(--color-text); }
.ma-pd__price .old-product-price { color: var(--color-muted); text-decoration: line-through; font-size: 16px; }
.ma-pd__price .old-product-price label, .ma-pd__price .product-price label { display: none; }
.ma-pd__price .tax-shipping-info, .ma-pd__price .base-price-pangv { flex-basis: 100%; font-size: 12px; color: var(--color-muted); }
.ma-pd__short { color: var(--color-muted); font-size: 14px; }
.ma-pd__short p:last-child { margin-bottom: 0; }

/* Availability, SKU, manufacturer, delivery */
.ma-pd__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; margin: 10px 0 4px; }
.ma-pd__meta > div, .ma-pd__meta .additional-details > div { margin: 0; }
.ma-pd__meta .additional-details { display: contents; }
.ma-pd__meta .label { color: var(--color-muted); font-weight: 400; }
.ma-pd__meta .value { font-weight: 500; }
.ma-pd__meta .stock .value { color: #2e7d4f; }

/* Product attributes: size = pills, finish = colour / image squares */
.ma-pd__info .attributes { margin: 16px 0; }
.ma-pd__info .attributes dl { margin: 0; }
.ma-pd__info .attributes dt { margin: 14px 0 8px; font-size: 13px; color: var(--color-muted); font-weight: 500; }
.ma-pd__info .attributes dt .required { color: var(--color-sale); }
.ma-pd__info .attributes dd { margin: 0; }
.ma-pd__info .attributes select, .ma-pd__info .attributes .textbox, .ma-pd__info .attributes textarea {
  min-height: 44px; width: 100%; max-width: 360px; padding: 8px 14px;
  border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-white); font: inherit;
}
.ma-pd__info .attributes .option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-pd__info .attributes .option-list:not(.attribute-squares) li { position: relative; margin: 0; }
.ma-pd__info .attributes .option-list:not(.attribute-squares) input[type="radio"],
.ma-pd__info .attributes .option-list:not(.attribute-squares) input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ma-pd__info .attributes .option-list:not(.attribute-squares) label {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; margin: 0;
  border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white);
  font-size: 14px; cursor: pointer; transition: .2s;
}
.ma-pd__info .attributes .option-list:not(.attribute-squares) label:hover { border-color: var(--color-primary); }
.ma-pd__info .attributes .option-list:not(.attribute-squares) input:checked + label { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.ma-pd__info .attributes .option-list:not(.attribute-squares) input:focus-visible + label { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.ma-pd__info .attributes .attribute-squares li { margin: 0; }
.ma-pd__info .attributes .attribute-squares label { margin: 0; cursor: pointer; }
.ma-pd__info .attributes .attribute-square-container { display: inline-block; padding: 3px; border-radius: 50%; box-shadow: 0 0 0 1px var(--color-border); }
.ma-pd__info .attributes .selected-value .attribute-square-container { box-shadow: 0 0 0 2px var(--color-primary); }
.ma-pd__info .attributes .color-squares .attribute-square { display: block; width: 32px !important; height: 32px !important; border-radius: 50%; border: 0; }
.ma-pd__info .attributes .image-squares .attribute-square { display: block; width: 44px !important; height: 44px !important; border-radius: 50%; background-size: cover; }
.ma-pd__info .attributes .attribute-squares input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ma-pd__info .attributes .attribute-description { font-size: 12px; color: var(--color-muted); }

/* Quantity + Add to cart + wishlist / compare / email buttons */
.ma-pd__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 10px; }
.ma-pd__buy .add-to-cart { flex: 1 1 260px; margin: 0; }
.ma-pd__buy .add-to-cart-panel { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; padding: 0; border: 0; background: none; }
.ma-pd__buy .qty-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ma-pd__buy .qty-dropdown { height: 48px; min-width: 76px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); }
.ma-qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); overflow: hidden; flex: none; }
.ma-qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--color-text); }
.ma-qty button:hover { color: var(--color-primary); }
.ma-qty input.qty-input { width: 44px; height: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: center; font: inherit; font-weight: 600; }
.ma-pd__buy .add-to-cart-button {
  flex: 1; height: 48px; min-width: 0; padding: 0 22px; margin: 0;
  border: 1px solid var(--color-primary); border-radius: 50px; background: var(--color-primary);
  color: #fff; font: inherit; font-weight: 500; text-transform: none;
}
.ma-pd__buy .add-to-cart-button:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.ma-pd__actions { display: flex; gap: 8px; flex: none; }
.ma-pd__actions > div { margin: 0; }
.ma-pd__actions .button-2 {
  width: 48px; height: 48px; padding: 0; margin: 0; border: 1px solid var(--color-border); border-radius: 50%;
  background: var(--color-white) none; font-size: 0; color: var(--color-text); text-indent: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.ma-pd__actions .button-2::before { font-family: "Font Awesome 6 Free"; font-weight: 400; font-size: 18px; line-height: 1; }
.ma-pd__actions .add-to-wishlist-button::before { content: "\f004"; }
.ma-pd__actions .add-to-compare-list-button::before { font: var(--fa-font-solid); font-size: 16px; content: "\f24e"; }
.ma-pd__actions .email-a-friend-button::before { content: "\f0e0"; }
.ma-pd__actions .button-2:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ma-pd__info .min-qty-notification, .ma-pd__info .pre-order-availability-date { font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }

/* Delivery estimate (opens the nopCommerce estimate popup) */
.ma-pd__info .product-estimate-shipping { margin: 16px 0 0; padding: 14px; border: 1px dashed var(--color-border); border-radius: 10px; background: rgba(255, 255, 255, .55); font-size: 14px; }
.ma-pd__info .open-estimate-shipping-popup { color: var(--color-primary); font-weight: 500; }

.ma-pd__info .product-share-button { margin-top: 14px; }

/* Tabs content from nopCommerce */
.ma-tabs__panel .product-specs-box .title, .ma-tabs__panel .product-tags-box .title { display: none; }
.ma-tabs__panel .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ma-tabs__panel .data-table td, .ma-tabs__panel .data-table th { text-align: left; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--color-border); background: none; vertical-align: top; }
.ma-tabs__panel .data-table .spec-name { width: 34%; font-weight: 500; color: var(--color-muted); }
.ma-tabs__panel .data-table .spec-group-name { font-family: var(--font-heading); font-weight: 600; padding-top: 18px; }
.ma-tabs__panel .product-tags-box { margin-top: 20px; }
.ma-tabs__panel .product-tags-list ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-tabs__panel .product-tags-list .separator { display: none; }
.ma-tabs__panel .product-tags-list a { display: inline-block; padding: 5px 14px; border: 1px solid var(--color-border); border-radius: 50px; font-size: 13px; background: var(--color-white); }
.ma-tabs__panel .product-tags-list a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Reviews (_ProductReviews) */
.ma-tabs__panel .product-reviews .title strong { font-family: var(--font-heading); font-size: 20px; font-weight: 600; }
.ma-tabs__panel .product-review-item { padding: 16px 0; border-top: 1px solid var(--color-border); margin: 0; }
.ma-tabs__panel .review-title strong { font-weight: 600; }
.ma-tabs__panel .review-info, .ma-tabs__panel .review-info a { font-size: 12px; color: var(--color-muted); }
.ma-tabs__panel .write-review { margin-bottom: 24px; padding: 18px; border-radius: var(--radius); background: var(--color-white); box-shadow: var(--shadow); }
.ma-tabs__panel .write-review .inputs { margin-bottom: 12px; }
.ma-tabs__panel .write-review input[type="text"], .ma-tabs__panel .write-review textarea {
  width: 100%; max-width: none; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 10px; font: inherit;
}
.ma-tabs__panel .write-product-review-button { border-radius: 50px; background: var(--color-primary); border: 0; color: #fff; padding: 12px 28px; text-transform: none; }

/* Star ratings (product page + reviews): Font Awesome stars instead of the sprite image */
.ma-pd-page .rating { position: relative; display: inline-block; width: auto; height: auto; background: none; line-height: 1; font-size: 14px; }
.ma-pd-page .rating::before { content: "\f005\f005\f005\f005\f005"; font: var(--fa-font-solid); font-size: 14px; letter-spacing: 2px; color: var(--color-border); }
.ma-pd-page .rating > div { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; white-space: nowrap; background: none; }
.ma-pd-page .rating > div::before { content: "\f005\f005\f005\f005\f005"; font: var(--fa-font-solid); font-size: 14px; letter-spacing: 2px; color: var(--color-star); }

@media (min-width: 1024px) {
  .ma-crumbs--left { padding-top: 24px; }
}


/* =========================================================
   PART G - CART (nopCommerce order summary markup)
   The item cards also apply on checkout (.checkout-page), where the
   same order summary is shown read-only.
   ========================================================= */
.ma-cart-page { text-align: left; }

/* Items table -> cards */
:is(.ma-cart-page, .checkout-page) .table-wrapper { overflow: visible; }
:is(.ma-cart-page, .checkout-page) table.cart,
:is(.ma-cart-page, .checkout-page) table.cart tbody { display: block; width: 100%; border: 0; }
:is(.ma-cart-page, .checkout-page) table.cart colgroup,
:is(.ma-cart-page, .checkout-page) table.cart thead { display: none; }
:is(.ma-cart-page, .checkout-page) table.cart tbody tr {
  display: grid; grid-template-columns: 84px 1fr auto;
  grid-template-areas: "img info rm" "img price price" "img qty total";
  gap: 4px 14px; align-items: center; margin: 0 0 12px; padding: 12px;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
}
:is(.ma-cart-page, .checkout-page) table.cart td { display: block; padding: 0; border: 0; background: none; text-align: left; }
:is(.ma-cart-page, .checkout-page) table.cart td.sku,
:is(.ma-cart-page, .checkout-page) table.cart td.vendor,
:is(.ma-cart-page, .checkout-page) table.cart .td-title { display: none; }
:is(.ma-cart-page, .checkout-page) table.cart td.product-picture { grid-area: img; align-self: start; border-radius: 10px; overflow: hidden; background: var(--color-bg-alt); }
:is(.ma-cart-page, .checkout-page) table.cart td.product-picture img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
:is(.ma-cart-page, .checkout-page) table.cart td.product { grid-area: info; min-width: 0; align-self: start; }
:is(.ma-cart-page, .checkout-page) table.cart td.product .product-name { font-size: 14.5px; font-weight: 500; }
:is(.ma-cart-page, .checkout-page) table.cart td.product .product-name:hover { color: var(--color-primary); }
:is(.ma-cart-page, .checkout-page) table.cart td.product .attributes,
:is(.ma-cart-page, .checkout-page) table.cart td.product .edit-item { font-size: 12.5px; color: var(--color-muted); margin-top: 2px; }
:is(.ma-cart-page, .checkout-page) table.cart td.product .edit-item a { text-decoration: underline; }
:is(.ma-cart-page, .checkout-page) table.cart td.unit-price { grid-area: price; font-size: 13px; color: var(--color-muted); }
:is(.ma-cart-page, .checkout-page) table.cart td.quantity { grid-area: qty; justify-self: start; font-size: 13px; }
:is(.ma-cart-page, .checkout-page) table.cart td.subtotal { grid-area: total; justify-self: end; text-align: right; }
:is(.ma-cart-page, .checkout-page) table.cart .product-subtotal { font-size: 16px; font-weight: 600; color: var(--color-text); }
:is(.ma-cart-page, .checkout-page) table.cart .discount,
:is(.ma-cart-page, .checkout-page) table.cart .discount-additional-info { font-size: 12px; color: #2e7d4f; }
:is(.ma-cart-page, .checkout-page) table.cart td.remove-from-cart { grid-area: rm; align-self: start; }
:is(.ma-cart-page, .checkout-page) table.cart .message-error { font-size: 12.5px; color: var(--color-sale); }

/* Read-only quantity on checkout */
.checkout-page table.cart td.quantity::before { content: "Qty: "; color: var(--color-muted); }

/* Quantity stepper built from the core up / down elements */
.ma-cart-page table.cart .product-quantity {
  display: inline-flex; align-items: center; height: 40px; width: auto;
  border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); overflow: hidden;
}
.ma-cart-page table.cart .product-quantity .quantity {
  order: 0; width: 36px; height: 100%; margin: 0; padding: 0; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 17px; color: var(--color-text);
}
.ma-cart-page table.cart .product-quantity .quantity.down { order: -1; }
.ma-cart-page table.cart .product-quantity .quantity.up::before { content: "+"; }
.ma-cart-page table.cart .product-quantity .quantity.down::before { content: "\2212"; }
.ma-cart-page table.cart .product-quantity .quantity:hover { color: var(--color-primary); }
.ma-cart-page table.cart .product-quantity .qty-input {
  width: 40px; height: 100%; margin: 0; padding: 0; border: 0; background: none;
  text-align: center; font: inherit; font-weight: 600;
}
.ma-cart-page table.cart .qty-dropdown { height: 40px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 50px; background: var(--color-white); }

/* Remove: hidden checkbox + round x button */
.ma-cart-page table.cart td.remove-from-cart input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ma-cart-page table.cart .remove-btn {
  width: 34px; height: 34px; padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: none; color: var(--color-muted); font-size: 0; cursor: pointer;
}
.ma-cart-page table.cart .remove-btn::before { content: "\f2ed"; font-family: "Font Awesome 6 Free"; font-weight: 400; font-size: 16px; }
.ma-cart-page table.cart .remove-btn:hover { color: var(--color-sale); background: #fbeae6; }

/* Under the items: tax note, continue shopping, estimate shipping, checkout attributes */
.ma-cart-page .tax-shipping-info { font-size: 12.5px; color: var(--color-muted); margin: 0 0 12px; }
.ma-cart-page .cart-options { margin: 0; text-align: left; }
.ma-cart-page .cart-options .common-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ma-cart-page .cart-options .button-2 {
  height: auto; padding: 11px 22px; margin: 0; border: 1px solid var(--color-dark); border-radius: 50px;
  background: transparent; color: var(--color-dark); font: inherit; font-size: 14px; font-weight: 500; text-transform: none;
}
.ma-cart-page .cart-options .button-2:hover { background: var(--color-dark); color: #fff; }
.ma-cart-page .checkout-attributes dl { margin: 0 0 14px; }
.ma-cart-page .checkout-attributes dt { margin: 10px 0 6px; font-size: 13px; color: var(--color-muted); }
.ma-cart-page .checkout-attributes dd { margin: 0; }

/* Summary column: coupon / gift card + totals + checkout */
.ma-cart-page .cart-footer {
  margin: 0; padding: 20px; border-radius: var(--radius);
  background: var(--color-white); border: 1px solid var(--color-border); box-shadow: var(--shadow);
}
.ma-cart-page .cart-collaterals, .ma-cart-page .totals { width: auto; float: none; margin: 0; padding: 0; border: 0; background: none; }
.ma-cart-page .deals > div { margin: 0 0 16px; }
.ma-cart-page .deals .title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.ma-cart-page .deals .title strong { font-weight: 600; }
.ma-cart-page .deals .hint { font-size: 12.5px; color: var(--color-muted); margin: 0 0 8px; }
.ma-cart-page .deals .coupon-code { display: flex; gap: 8px; }
.ma-cart-page .deals .coupon-code input[type="text"] {
  flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 14px;
  border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-white); font: inherit;
}
.ma-cart-page .deals .coupon-code .button-2 {
  height: 44px; padding: 0 18px; margin: 0; border: 1px solid var(--color-dark); border-radius: 10px;
  background: transparent; color: var(--color-dark); font: inherit; font-weight: 500; text-transform: none;
}
.ma-cart-page .deals .coupon-code .button-2:hover { background: var(--color-dark); color: #fff; }
.ma-cart-page .deals .current-code, .ma-cart-page .deals .message-success { font-size: 12.5px; color: #2e7d4f; margin-top: 6px; }
.ma-cart-page .deals .message-failure { font-size: 12.5px; color: var(--color-sale); margin-top: 6px; }

:is(.ma-cart-page, .checkout-page) .totals .total-info { margin: 0; padding: 0; border: 0; background: none; }
:is(.ma-cart-page, .checkout-page) .cart-total { width: 100%; border-collapse: collapse; font-size: 14.5px; }
:is(.ma-cart-page, .checkout-page) .cart-total td { padding: 8px 0; border: 0; }
:is(.ma-cart-page, .checkout-page) .cart-total .cart-total-left { text-align: left; color: var(--color-muted); }
:is(.ma-cart-page, .checkout-page) .cart-total .cart-total-right { text-align: right; font-weight: 500; color: var(--color-text); }
:is(.ma-cart-page, .checkout-page) .cart-total .discount-total .cart-total-right,
:is(.ma-cart-page, .checkout-page) .cart-total .order-subtotal-discount .cart-total-right { color: #2e7d4f; }
:is(.ma-cart-page, .checkout-page) .cart-total .order-total td { padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 18px; }
:is(.ma-cart-page, .checkout-page) .cart-total .order-total .cart-total-left,
:is(.ma-cart-page, .checkout-page) .cart-total .order-total .cart-total-right { color: var(--color-text); font-weight: 700; }
:is(.ma-cart-page, .checkout-page) .cart-total .order-total strong { font-weight: 700; color: inherit; font-size: inherit; }

.ma-cart-page .min-amount-warning { margin: 12px 0 0; font-size: 13px; color: var(--color-sale); }
.ma-cart-page .terms-of-service { margin: 14px 0 0; font-size: 13px; }
.ma-cart-page .terms-of-service input { accent-color: var(--color-primary); }
.ma-cart-page .terms-of-service .read { color: var(--color-primary); text-decoration: underline; cursor: pointer; }
.ma-cart-page .checkout-buttons { margin: 16px 0 0; }
.ma-cart-page .checkout-button {
  width: 100%; height: auto; padding: 15px 20px; margin: 0;
  border: 0; border-radius: 50px; background: var(--color-dark); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; text-transform: none;
}
.ma-cart-page .checkout-button:hover { background: #000; }
.ma-cart-page .checkout-buttons::after {
  content: "Safe & secure checkout"; display: block; margin-top: 10px; text-align: center;
  font-family: var(--font-body); font-size: 12.5px; color: var(--color-muted);
}
.ma-cart-page .addon-buttons { margin-top: 10px; }

/* Cross-sells and empty cart */
.ma-cart-page .ma-cross-sells { grid-column: 1 / -1; padding-bottom: 0; }
.ma-cart-page .ma-cross-sells .ma-container { padding: 0; }
.ma-cart-page .no-data { padding: 48px 16px 8px; text-align: center; font-size: 16px; color: var(--color-muted); }

@media (min-width: 1024px) {
  .ma-cart-page #shopping-cart-form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 32px; align-items: start; }
  .ma-cart-page #shopping-cart-form > .table-wrapper,
  .ma-cart-page #shopping-cart-form > .tax-shipping-info,
  .ma-cart-page #shopping-cart-form > .cart-options { grid-column: 1; }
  .ma-cart-page #shopping-cart-form > .cart-footer { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 90px; }
  :is(.ma-cart-page, .checkout-page) table.cart tbody tr {
    grid-template-columns: 96px 1fr 130px 110px 44px;
    grid-template-areas: "img info qty total rm" "img price qty total rm";
    padding: 14px 16px;
  }
  :is(.ma-cart-page, .checkout-page) table.cart td.quantity { justify-self: center; }
}


/* =========================================================
   PART H - CHECKOUT (one page checkout, CSS only) + CONTACT
   Markup and scripts are the nopCommerce core views; only restyled.
   ========================================================= */
.checkout-page { text-align: left; }
.checkout-page .page-title { padding: 26px 16px 24px; margin: 0 0 24px; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); text-align: center; }
.checkout-page .page-title h1 { font-size: 30px; margin: 0; }
.checkout-page .page-body { max-width: 860px; margin: 0 auto; padding: 0 16px 56px; }

/* Steps (accordion: li.tab-section, current step = .active) */
.checkout-page .opc { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checkout-page .opc .tab-section {
  margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-white); overflow: hidden;
}
.checkout-page .opc .tab-section.active { box-shadow: var(--shadow); border-color: var(--color-primary); }
.checkout-page .opc .step-title {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 18px;
  background: none; border: 0; cursor: default;
}
.checkout-page .opc .allow .step-title { cursor: pointer; }
.checkout-page .opc .step-title .number {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt); color: var(--color-muted); font-size: 14px; font-weight: 600; float: none; margin: 0;
}
.checkout-page .opc .allow .step-title .number { background: var(--color-dark); color: #fff; }
.checkout-page .opc .active .step-title .number { background: var(--color-primary); color: #fff; }
.checkout-page .opc .step-title .title { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--color-text); float: none; }
.checkout-page .opc .tab-section:not(.allow) .step-title .title { color: var(--color-muted); }
.checkout-page .opc .step { margin: 0; padding: 4px 18px 20px; border-top: 1px solid var(--color-border); text-align: left; }

/* Sections and forms inside steps */
.checkout-page .section { margin: 16px 0; }
.checkout-page .section > .title, .checkout-page .order-summary .title { margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 600; color: var(--color-text); text-align: left; }
.checkout-page .section > .title strong { font-weight: 600; }
.checkout-page .select-billing-address select, .checkout-page .select-shipping-address select,
.checkout-page .address-select {
  width: 100%; max-width: none; height: 46px; padding: 0 14px;
  border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-white); font: inherit;
}
.checkout-page .ship-to-same-address .selector { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checkout-page input[type="checkbox"], .checkout-page input[type="radio"] { accent-color: var(--color-primary); width: 18px; height: 18px; }

.checkout-page .edit-address { display: grid; grid-template-columns: 1fr; gap: 12px 16px; margin: 0; }
.checkout-page .edit-address .inputs { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; text-align: left; white-space: normal; }
.checkout-page .edit-address .inputs label { width: auto; margin: 0; text-align: left; font-size: 13px; font-weight: 500; color: var(--color-text); }
.checkout-page .edit-address .inputs input[type="text"], .checkout-page .edit-address .inputs input[type="email"],
.checkout-page .edit-address .inputs input[type="tel"], .checkout-page .edit-address .inputs select,
.checkout-page .edit-address .inputs textarea {
  width: 100%; max-width: none; height: 46px; padding: 0 14px;
  border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-white); font: inherit; color: var(--color-text);
}
.checkout-page .edit-address .inputs textarea { height: 96px; padding: 10px 14px; }
.checkout-page .edit-address .inputs input:focus, .checkout-page .edit-address .inputs select:focus { border-color: var(--color-primary); outline: none; }
.checkout-page .inputs .required { position: absolute; margin: 0; color: var(--color-sale); }
.checkout-page .edit-address .inputs { position: relative; }
.checkout-page .edit-address .inputs .required { top: 0; right: 0; }
.checkout-page .field-validation-error, .checkout-page .message-error { font-size: 12.5px; color: var(--color-sale); }

/* Shipping / payment method lists */
.checkout-page .method-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checkout-page .method-list li {
  margin: 0; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-white); text-align: left; transition: border-color .2s;
}
.checkout-page .method-list li:hover { border-color: var(--color-primary); }
.checkout-page .method-list li:has(input:checked) { border-color: var(--color-primary); background: rgba(169, 118, 61, .06); }
.checkout-page .method-list .method-name, .checkout-page .method-list .payment-details { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.checkout-page .method-list label { font-size: 14px; font-weight: 500; cursor: pointer; }
.checkout-page .method-list .method-description, .checkout-page .method-list .payment-description { margin: 6px 0 0 28px; font-size: 13px; color: var(--color-muted); }
.checkout-page .method-list .payment-logo { margin-left: auto; }
.checkout-page .method-list .payment-logo img { max-height: 28px; width: auto; }
.checkout-page .use-reward-points { margin: 12px 0; font-size: 14px; }

/* Step buttons */
.checkout-page .opc .buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; text-align: left; }
.checkout-page .opc .button-1 {
  height: auto; min-width: 0; padding: 13px 30px; margin: 0;
  border: 1px solid var(--color-primary); border-radius: 50px; background: var(--color-primary);
  color: #fff; font: inherit; font-weight: 500; text-transform: none;
}
.checkout-page .opc .button-1:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.checkout-page .opc .confirm-order-next-step-button { background: var(--color-dark); border-color: var(--color-dark); padding: 15px 40px; font-weight: 600; }
.checkout-page .opc .confirm-order-next-step-button:hover { background: #000; border-color: #000; }
.checkout-page .back-link { order: -1; margin: 0; }
.checkout-page .back-link a { color: var(--color-muted); font-size: 14px; }
.checkout-page .back-link a:hover { color: var(--color-primary); }
.checkout-page .please-wait { font-size: 13px; color: var(--color-muted); }
.checkout-page .terms-of-service { margin: 14px 0 0; font-size: 13px; }
.checkout-page .terms-of-service .read { color: var(--color-primary); text-decoration: underline; cursor: pointer; }

/* Confirm step: order review (addresses, methods) above the item cards */
.checkout-page .order-review-data { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 16px; }
.checkout-page .order-review-data > div { padding: 14px; border-radius: 10px; background: var(--color-bg); border: 1px solid var(--color-border); font-size: 13.5px; text-align: left; }
.checkout-page .order-review-data .title strong { font-size: 14px; font-weight: 600; }
.checkout-page .order-review-data ul { margin: 0; padding: 0; list-style: none; }
.checkout-page .order-review-data li { margin: 2px 0; }
.checkout-page .totals { margin: 12px 0 0 auto; max-width: 380px; float: none; width: auto; padding: 0; border: 0; background: none; }

/* Order completed */
.order-completed-page .section.order-completed { max-width: 560px; margin: 0 auto; padding: 32px 24px; text-align: center; border-radius: var(--radius); background: var(--color-white); box-shadow: var(--shadow); }
.order-completed-page .section.order-completed .title strong { font-family: var(--font-heading); font-size: 22px; }
.order-completed-page .order-number { margin: 10px 0; font-size: 15px; }
.order-completed-page .details-link a { color: var(--color-primary); text-decoration: underline; }
.order-completed-page .order-completed-continue-button {
  margin-top: 16px; padding: 13px 30px; border: 0; border-radius: 50px; background: var(--color-primary); color: #fff; font: inherit; font-weight: 500; text-transform: none;
}

/* ---------- Contact page extras ---------- */
.ma-contact-page { text-align: left; }
.ma-contact-form .field-validation-error, .ma-contact-form .message-error { font-size: 12.5px; color: var(--color-sale); }
.ma-contact-form .ma-field { margin-bottom: 14px; }
.ma-contact-form .ma-btn { border: 0; }
.ma-contact-aside .topic-block { margin: 0; }
.ma-contact-aside .topic-block-title h2 { font-size: 22px; text-align: left; }
.ma-contact-aside iframe { width: 100%; min-height: 280px; border: 0; border-radius: var(--radius); }
.ma-contact-faq:not(:has(.topic-block)) { display: none; }
.ma-contact-faq .topic-block-title h2 { text-align: center; }

@media (min-width: 768px) {
  .checkout-page .edit-address { grid-template-columns: 1fr 1fr; }
  .checkout-page .order-review-data { grid-template-columns: 1fr 1fr; }
}


/* =========================================================
   PART I - FIXES FROM VISUAL QA (Phase 6)
   ========================================================= */
/* Prices: never break inside an amount ("Rs" on one line, digits on the next) */
.ma-price strong, .ma-price del { white-space: nowrap; }

/* HomepageText topic (Bootstrap markup from the old theme):
   keep icons centred - the ma- image reset would make them left-aligned blocks */
.ma-home-text img { display: inline-block; }
@media (max-width: 575px) {
  /* 3 items per row on phones instead of one tall column */
  .ma-home-text .row { row-gap: 18px; }
  .ma-home-text .row > [class*="col-"] { flex: 0 0 33.3333%; max-width: 33.3333%; padding-left: 6px; padding-right: 6px; }
  .ma-home-text h3 { font-size: 13px; }
  .ma-home-text img { width: 40px; height: auto; }
}

/* Product page: .ma-pd is both the container and the grid, so restore the side gutter,
   and cancel the base theme's fixed gallery width (550px) and 46% / 52% floats */
.ma-container.ma-pd { padding-left: 16px; padding-right: 16px; margin-bottom: 0; border-bottom: 0; }
.ma-pd > .ma-pd__gallery, .ma-pd > .ma-pd__info { width: auto; max-width: none; float: none; margin: 0; min-width: 0; }

/* Grid / list toggle: the base theme's sprite rules are more specific than ours */
.product-selectors .ma-viewmode a.viewmode-icon { width: 40px; height: 40px; margin: 0; opacity: 1; background-image: none; background-color: var(--color-white); }
.product-selectors .ma-viewmode a.viewmode-icon.selected { background-color: var(--color-primary); }

/* Category grid: the base theme resets every button inside .item-box (border: 0; height: 40px) */
.item-box .ma-product .ma-product__btn { height: auto; border: 1px solid var(--color-dark); }
.item-box .ma-product .ma-product__wish { height: 32px; border: 0; }

/* Toolbar: drop the base selector borders; keep Filters + sort on one row on phones */
.ma-toolbar .product-selectors { margin: 0; padding: 0; border: 0; }
.ma-toolbar { flex-wrap: nowrap; }
.ma-toolbar .ma-filter-btn { flex: none; }
.ma-selectors { flex-wrap: nowrap; min-width: 0; }
.ma-selectors .ma-sort select { max-width: 100%; }
@media (max-width: 767px) {
  .ma-selectors .product-page-size, .ma-selectors .ma-viewmode { display: none; }
}

/* Closed filter drawer: hide its shadow, which otherwise peeks in at the left edge */
.ma-filters:not(.is-open) { box-shadow: none; }

/* Product page price: hide the "Old price:" text, keep the struck-through amount */
.ma-pd__price .old-product-price span:not(:last-child) { display: none; }
.product-selectors .ma-viewmode { display: flex; gap: 6px; float: none; margin: 0; }
.product-selectors .ma-viewmode a.viewmode-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-muted); font-size: 15px;
}
.product-selectors .ma-viewmode a.viewmode-icon.selected { border-color: var(--color-primary); color: #fff; }

/* Base theme gives the content wrappers z-index: 0, which traps the fixed filter drawer
   (z-index 210) underneath the sticky header (z-index 100) */
.ma-page .master-wrapper-content, .ma-page .master-column-wrapper { z-index: auto; }

/* Contact form: base inputs are 400px wide and labels centred; let grid items shrink */
.ma-contact-layout > * { min-width: 0; }
.ma-contact-form .inputs { text-align: left; }
.ma-contact-form .inputs label { width: auto; text-align: left; margin: 0; }
.ma-contact-form .inputs input, .ma-contact-form .inputs textarea { width: 100%; max-width: 100%; }

/* Base theme hides .block-category-navigation on small screens; the drawer needs it */
.ma-filters .ma-catnav.block-category-navigation { display: block; }

/* Cart polish */
.ma-cart-page table.cart .product-quantity .quantity.up { order: 1; }          /* reads  -  1  +  */
.ma-cart-page .cart-options .common-buttons { background: none; padding: 0; }
.ma-cart-page .cart-options .estimate-shipping-button {
  height: auto; padding: 11px 22px; margin: 0; border: 1px solid var(--color-dark); border-radius: 50px;
  background: transparent; color: var(--color-dark); font: inherit; font-size: 14px; font-weight: 500; text-transform: none;
}
.ma-cart-page .cart-options .estimate-shipping-button:hover { background: var(--color-dark); color: #fff; }
.ma-cart-page .deals .coupon-code .button-2 { flex: none; white-space: nowrap; line-height: 1.2; }
.ma-cart-page .deals, .ma-cart-page .deals .title, .ma-cart-page .deals .hint { text-align: left; }
.ma-cart-page .terms-of-service { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 8px; text-align: left; }
.ma-cart-page .terms-of-service input { margin: 3px 0 0; }
.ma-cart-page .terms-of-service label { flex: 1; margin: 0; }
.ma-cart-page .cart-options .common-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.ma-cart-page .cart-options .common-buttons > * { float: none; margin: 0; }
.ma-cart-page .checkout-attributes { clear: both; display: block; margin-top: 4px; }
:is(.ma-cart-page, .checkout-page) table.cart td.product .edit-item a { color: var(--color-primary); }

/* =========================================================
   PART J - DEFAULT nopCommerce PAGES (search, login, register, account, wishlist...)
   Pages that keep the core markup get the theme's gutter, width and buttons.
   ========================================================= */
.master-column-wrapper:not(:has(.ma-home, .ma-shop-page, .ma-pd-page, .ma-contact-page, .shopping-cart-page, .checkout-page)) {
  max-width: var(--container); margin: 0 auto; padding: 24px 16px 48px;
}
.master-wrapper-content .button-1:not(.ma-btn) {
  height: auto; min-width: 0; padding: 12px 30px; border: 1px solid var(--color-primary); border-radius: 50px;
  background: var(--color-primary); color: #fff; font: inherit; font-weight: 500; text-transform: none;
}
.master-wrapper-content .button-1:not(.ma-btn):hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.master-wrapper-content .button-2:not(.ma-btn) { border-radius: 50px; text-transform: none; }

/* jQuery UI price slider anywhere: keep the round handles inside their box */
.product-filter .ui-slider { margin-left: 10px; margin-right: 10px; }

/* =========================================================
   PART K - PRODUCT ENQUIRY PLUGIN (Misc.ProductEnquiry)
   The plugin ships theme-neutral Bootstrap markup; this gives its
   buttons and enquiry modal the House of Metals look. Selectors are
   doubled where needed because the plugin's own styles.css loads later.
   ========================================================= */
.product-enquiry-box { margin: 18px 0 0; }
.product-enquiry-box .btn {
  justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--color-dark); border-radius: 50px; background: transparent; color: var(--color-dark);
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .3px; box-shadow: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.product-enquiry-box .btn:hover, .product-enquiry-box .btn:focus-visible { background: var(--color-dark); border-color: var(--color-dark); color: #fff; transform: translateY(-1px); }
.product-enquiry-box .btn.product-enquiry-whatsapp { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.product-enquiry-box .btn.product-enquiry-whatsapp:hover,
.product-enquiry-box .btn.product-enquiry-whatsapp:focus-visible { background: #17803f; border-color: #17803f; }
.product-enquiry-box .btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(169, 118, 61, .3); }

/* Modal shell */
body.product-enquiry-open .modal-backdrop { --bs-backdrop-bg: #26231f; --bs-backdrop-opacity: .55; }
.product-enquiry-modal.modal { --bs-modal-width: 540px; --bs-modal-border-radius: 18px; font-family: var(--font-body); color: var(--color-text); }
.product-enquiry-modal .modal-content {
  border: 1px solid var(--color-border); border-radius: 18px; overflow: hidden;
  background: var(--color-bg); box-shadow: 0 24px 60px rgba(38, 35, 31, .28);
}
.product-enquiry-modal .modal-header {
  position: relative; align-items: flex-start; gap: 12px; padding: 22px 56px 18px 22px;
  border-bottom: 1px solid var(--color-border); background: var(--color-bg-alt);
}
.product-enquiry-modal .modal-header::before {
  content: "\f4ad"; font-family: "Font Awesome 6 Free"; font-weight: 900; flex: none;
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-white); color: var(--color-primary); font-size: 18px; box-shadow: var(--shadow);
}
.product-enquiry-modal .modal-header > div { min-width: 0; }
.product-enquiry-modal .modal-title { margin: 2px 0 4px; font-family: var(--font-heading); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--color-dark); text-transform: none; letter-spacing: 0; }
.product-enquiry-modal .modal-header .text-muted { color: var(--color-muted) !important; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.product-enquiry-modal .modal-header .btn-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; margin: 0; padding: 0; box-sizing: border-box;
  border-radius: 50%; background-color: var(--color-white); background-size: 11px; opacity: .8; box-shadow: 0 0 0 1px var(--color-border);
}
.product-enquiry-modal .modal-header .btn-close:hover { opacity: 1; }
.product-enquiry-modal .modal-header .btn-close:focus { box-shadow: 0 0 0 3px rgba(169, 118, 61, .3); }
.product-enquiry-modal .modal-body { padding: 20px 22px 6px; background: var(--color-white); }
.product-enquiry-modal .modal-footer { gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--color-border); background: var(--color-white); }
.product-enquiry-modal .modal-footer > * { margin: 0; }

/* Fields - same look as .ma-field */
.product-enquiry-modal.modal .mb-3 { margin-bottom: 16px !important; }
.product-enquiry-modal.modal .form-label { margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--color-text); }
.product-enquiry-modal .form-label .text-danger { color: var(--color-sale) !important; }
.product-enquiry-modal.modal .form-control {
  min-height: 46px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--color-text);
  background-color: var(--color-white); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: none;
}
.product-enquiry-modal.modal textarea.form-control { min-height: 92px; resize: vertical; }
.product-enquiry-modal .form-control::placeholder { color: #b3a89d; }
.product-enquiry-modal.modal .form-control:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(169, 118, 61, .18); }
.product-enquiry-modal.modal .form-control.is-invalid { border-color: var(--color-sale); }
.product-enquiry-modal.modal .form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(184, 68, 47, .15); }
.product-enquiry-modal.modal .form-control.is-valid { border-color: #2e7d4f; }
.product-enquiry-modal .invalid-feedback { font-size: 12px; color: var(--color-sale); margin-top: 5px; }
.product-enquiry-modal .form-text { margin-top: 5px; font-size: 12px; color: var(--color-muted); }
.product-enquiry-modal .input-group-text {
  min-height: 46px; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--color-text);
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 10px 0 0 10px;
}
.product-enquiry-modal.modal .input-group > .form-control { border-radius: 0 10px 10px 0; }
.product-enquiry-modal.modal .input-group > .form-control.is-invalid { z-index: 3; }

/* Result message */
.product-enquiry-modal .alert { margin: 4px 0 14px !important; padding: 12px 14px; border: 0; border-radius: 10px; font-size: 14px; }
.product-enquiry-modal .alert-success { background: #e6f2ea; color: #2e7d4f; }
.product-enquiry-modal .alert-danger { background: #f8e7e3; color: var(--color-sale); }

/* Footer buttons - .ma-btn look */
.product-enquiry-modal .modal-footer .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 26px;
  border-radius: 50px; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .3px; box-shadow: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.product-enquiry-modal .modal-footer .btn-secondary { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.product-enquiry-modal .modal-footer .btn-secondary:hover { background: var(--color-bg-alt); border-color: var(--color-border); color: var(--color-dark); }
.product-enquiry-modal .modal-footer .btn-primary { background: var(--color-primary); border: 1px solid var(--color-primary); color: #fff; }
.product-enquiry-modal .modal-footer .btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-1px); }
.product-enquiry-modal .modal-footer .btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(169, 118, 61, .3); }
.product-enquiry-modal .modal-footer .btn:disabled { opacity: .65; transform: none; }

/* Phones: the modal becomes a bottom sheet with full-width buttons */
@media (max-width: 575.98px) {
  .product-enquiry-modal .modal-dialog { display: flex; align-items: flex-end; min-height: 100%; height: 100%; margin: 0; }
  .product-enquiry-modal .modal-content { max-height: 92vh; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .product-enquiry-modal.modal.fade .modal-dialog { transform: translateY(40px); }
  .product-enquiry-modal.modal.show .modal-dialog { transform: none; }
  .product-enquiry-modal .modal-header { padding: 18px 54px 14px 18px; }
  .product-enquiry-modal .modal-header::before { width: 38px; height: 38px; font-size: 16px; }
  .product-enquiry-modal .modal-title { font-size: 20px; }
  .product-enquiry-modal .modal-body { padding: 18px 18px 4px; }
  .product-enquiry-modal .modal-footer { display: grid; grid-template-columns: 1fr 1.4fr; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
}
