:root {
  --primary: #e8281a;
  --secondary: #f6a623;
  --dark: #1a1a1a;
  --green: #2d6a4f;
  --cream: #fff8f0;
  --cream2: #fef0dc;
  --light: #f9f5f0;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: #444;
  background: #fff;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  color: var(--dark);
}
a {
  text-decoration: none;
  transition: all 0.3s;
}
img {
  max-width: 100%;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ===================== TOP BAR ===================== */
#topbar {
  background: #111;
  padding: 8px 0;
  font-size: 0.82rem;
}
#topbar span {
  color: #aaa;
  margin-right: 16px;
}
#topbar span i {
  color: var(--secondary);
  margin-right: 5px;
}
#topbar .tsoc a {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.75rem;
  margin-left: 5px;
  transition: 0.3s;
}
#topbar .tsoc a:hover {
  background: var(--primary);
  color: #fff;
}
.ttag {
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===================== NAVBAR ===================== */
#nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  transition: 0.4s;
}
#nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.14);
}
.blogo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 40, 26, 0.35);
}
.blogo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(232, 40, 26, 0.35);
}
.bname {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
}
.bname span {
  color: var(--primary);
}
.bsub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
}
.navbar-nav .nav-link {
  font-size: 0.87rem;
  font-weight: 500;
  color: #333 !important;
  padding: 26px 13px !important;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 55%;
}
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}
/* FIX 1 â€” Search btn in navbar */
#navSearchBtn {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.3s;
}
#navSearchBtn:hover {
  background: rgba(232, 40, 26, 0.08);
  color: var(--primary);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), #c01e12);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 20px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(232, 40, 26, 0.3);
  margin-left: 6px;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 40, 26, 0.4);
}

/* ===================== SECTION COMMONS ===================== */
section {
  padding: 88px 0;
}
.slbl {
  font-family: "Dancing Script", cursive;
  font-size: 1.35rem;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}
.stitle {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.stitle span {
  color: var(--primary);
}
.sline {
  width: 58px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto 12px;
}
.sline.lft {
  margin-left: 0;
}
.sdesc {
  color: #777;
  font-size: 0.93rem;
  line-height: 1.8;
}
.btn-red {
  background: linear-gradient(135deg, var(--primary), #c01e12);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.93rem;
  box-shadow: 0 8px 24px rgba(232, 40, 26, 0.35);
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}
.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(232, 40, 26, 0.45);
  color: #fff;
}

/* ===================== HERO ===================== */
#hero {
  background: var(--cream);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hbgtxt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 900;
  font-family: "Playfair Display", serif;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  white-space: nowrap;
}
.hs {
  position: absolute;
  border-radius: 50%;
}
.hs1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(232, 40, 26, 0.07), transparent 70%);
  top: -90px;
  right: -80px;
  animation: fsh 8s ease-in-out infinite;
}
.hs2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(246, 166, 35, 0.09),
    transparent 70%
  );
  bottom: -50px;
  left: 8%;
  animation: fsh 10s ease-in-out infinite reverse;
}
@keyframes fsh {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-28px);
  }
}
.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 30px;
  padding: 6px 16px 6px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 22px;
}
.hbadge .hbi {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
}
.hbadge span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--dark);
}
.htitle {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}
.htitle .hl {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.htitle .hl::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 7px;
  background: rgba(232, 40, 26, 0.14);
  border-radius: 4px;
  z-index: -1;
}
.hdesc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 470px;
  margin-bottom: 30px;
}
/* FIX 2 â€” Video play button */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  transition: 0.3s;
  cursor: pointer;
}
.btn-play .pico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: var(--primary);
  font-size: 0.95rem;
  transition: 0.3s;
  flex-shrink: 0;
}
.btn-play:hover .pico {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.btn-play:hover {
  color: var(--primary);
}
.hstats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hstat .snum {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--dark);
  display: block;
  line-height: 1;
}
.hstat .snum em {
  color: var(--primary);
  font-style: normal;
}
.hstat small {
  font-size: 0.7rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sdiv {
  width: 1px;
  background: #ddd;
  height: 38px;
  align-self: center;
}
.hcircle {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff8f0, #ffe5c8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 28px 76px rgba(232, 40, 26, 0.14);
}
.hcircle img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}
.fcard {
  position: absolute;
  background: #fff;
  border-radius: 11px;
  padding: 10px 15px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 9px;
}
.fcard.fc1 {
  top: 55px;
  left: -15px;
  animation: fltc 4s ease-in-out infinite;
}
.fcard.fc2 {
  bottom: 75px;
  right: -25px;
  animation: fltc 4s ease-in-out infinite 1.5s;
}
.fcard.fc3 {
  top: 38%;
  right: -45px;
  animation: fltc 4s ease-in-out infinite 0.8s;
}
@keyframes fltc {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
.fcoi {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.fcoi.r {
  background: rgba(232, 40, 26, 0.11);
  color: var(--primary);
}
.fcoi.y {
  background: rgba(246, 166, 35, 0.14);
  color: var(--secondary);
}
.fcoi.g {
  background: rgba(45, 106, 79, 0.11);
  color: var(--green);
}
.fcnum {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark);
  display: block;
  line-height: 1;
}
.fcsm {
  font-size: 0.66rem;
  color: #999;
}

/* ===================== MARQUEE ===================== */
.mqsec {
  background: var(--primary);
  padding: 13px 0;
  overflow: hidden;
}
.mqtrack {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: mqrun 22s linear infinite;
}
.mqitem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
}
.mqitem i {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.55rem;
}
@keyframes mqrun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===================== CATEGORY ===================== */
#category {
  background: var(--cream);
}
.catcard {
  background: #fff;
  border-radius: 15px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
}
.catcard:hover,
.catcard.active {
  transform: translateY(-7px);
  box-shadow: 0 14px 38px rgba(232, 40, 26, 0.14);
  border-color: var(--primary);
}
.catimg {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  transition: 0.4s;
}
.catcard:hover .catimg {
  transform: scale(1.1) rotate(-4deg);
}
.catnm {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
}
.catct {
  font-size: 0.73rem;
  color: #bbb;
}

/* Homepage "Shop by Category" cards — proper rectangular image card
   (not the round .catimg used elsewhere), so a non-square uploaded photo
   never looks squashed/cropped into a circle. */
.homecat-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: 0.4s;
  cursor: pointer;
}
.homecat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 38px rgba(232, 40, 26, 0.14);
  border-color: var(--primary);
}
.homecat-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.homecat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}
.homecat-card:hover .homecat-img {
  transform: scale(1.08);
}
.homecat-nm {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  padding: 12px 8px;
}

/* ===================== ABOUT ===================== */
#about {
  background: #fff;
}
.astack {
  position: relative;
}
.amain {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.amain img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.asm {
  position: absolute;
  bottom: -26px;
  right: -26px;
  width: 170px;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.asm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aexp {
  position: absolute;
  top: 28px;
  left: -16px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(232, 40, 26, 0.4);
}
.aexp .anum {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.aexp small {
  font-size: 0.7rem;
  opacity: 0.9;
}
.fti {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.ftico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: 0.3s;
}
.ftico.r {
  background: rgba(232, 40, 26, 0.1);
  color: var(--primary);
}
.ftico.y {
  background: rgba(246, 166, 35, 0.11);
  color: var(--secondary);
}
.ftico.g {
  background: rgba(45, 106, 79, 0.1);
  color: var(--green);
}
.fti:hover .ftico {
  transform: scale(1.1);
}
.fti h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  font-family: "Poppins", sans-serif;
}
.fti p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

/* ===================== MENU ===================== */
#menu {
  background: var(--light);
}
/* FIX 3 â€” Filter buttons */
.filtbtn {
  border: 2px solid #e5e5e5;
  background: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: 0.3s;
  margin: 3px;
  font-family: "Poppins", sans-serif;
}
.filtbtn.active,
.filtbtn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(232, 40, 26, 0.24);
}
.catfilt-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
}
/* "Shop by Category" cards reuse the pre-existing .catcard/.catimg/.catnm
   look (see the CATEGORY section above) — but as their OWN class name
   (.shopcat, not .catcard!), because main.js already binds a totally
   different click handler to plain ".catcard" (the homepage's old
   scroll-to-menu-and-filter tiles, which read a "data-filter" attribute
   that these buttons don't have). Reusing .catcard directly made BOTH
   handlers fire on click — the correct one from .filtbtn, then 480ms
   later the stale ".catcard" one calling filterMenu(null), which wiped
   the just-applied filter. .shopcat only carries the visual styling. */
.filtbtn.shopcat {
  border-radius: 15px;
  padding: 18px 14px;
  background: #fff;
  font-size: 0.86rem;
  border: 2px solid transparent;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.filtbtn.shopcat.active,
.filtbtn.shopcat:hover {
  background: #fff;
  color: var(--dark);
  border-color: var(--primary);
  box-shadow: 0 14px 38px rgba(232, 40, 26, 0.14);
}
.mwrap {
  transition: 0.35s;
}
.mwrap.gone {
  display: none !important;
}
/* Real DB-driven category filter links on menu.php (separate from legacy .filtbtn
   so the old static-demo JS in main.js never attaches to these) */
.mcatbtn {
  display: inline-block;
  border: 2px solid #e5e5e5;
  background: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: 0.3s;
  margin: 3px;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
.mcatbtn.active,
.mcatbtn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(232, 40, 26, 0.24);
  text-decoration: none;
}
.mcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.4s;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07);
  cursor: pointer;
}
.mcard:hover {
  transform: translateY(-9px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.13);
}
.mimg {
  position: relative;
  overflow: hidden;
  height: 215px;
  background: var(--cream2);
}
.mimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.mcard:hover .mimg img {
  transform: scale(1.09);
}
.mbdg {
  position: absolute;
  top: 13px;
  left: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  padding: 3px 11px;
  font-size: 0.7rem;
  font-weight: 700;
}
.mbdg.new {
  background: var(--green);
}
.mbdg.hot {
  background: var(--secondary);
  color: var(--dark);
}
.mbdg.out {
  background: #6c757d;
}
.mcard.outofstock {
  opacity: 0.6;
}
.mcard.outofstock .mimg img {
  filter: grayscale(60%);
}
/* FIX 4 â€” Heart & Plus buttons stop propagation */
.mhrt {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.1);
}
.mhrt:hover {
  color: var(--primary);
  transform: scale(1.18);
}
.mbody {
  padding: 18px;
}
.mcat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.mtit {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: "Playfair Display", serif;
}
.mprice-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  margin-bottom: 12px;
}

/* Custom-styled variant dropdown replacing the default browser <select> look */
.mselect-wrap {
  position: relative;
}
.mselect {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--cream2);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 9px 32px 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: 0.25s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3e%3cpath d='M1 1l5 5 5-5' stroke='%23e8281a' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.mselect:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 40, 26, 0.12);
}
.mselect:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Row holding the quantity stepper + add-to-cart button */
.mqty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mqty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--cream2);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}
.mqty-stepper.disabled {
  opacity: 0.55;
}
.mqty-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  background: var(--cream2);
  color: var(--dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.mqty-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}
.mqty-btn:disabled {
  cursor: not-allowed;
}
.mqty-input {
  width: 34px;
  border: none;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  -moz-appearance: textfield;
  background: transparent;
}
.mqty-input::-webkit-outer-spin-button,
.mqty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mqty-input:focus {
  outline: none;
}
.mdesc {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 13px;
  line-height: 1.5;
}
.mfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mprice {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  font-family: "Playfair Display", serif;
}
.mprice small {
  font-size: 0.72rem;
  font-weight: 400;
  color: #ccc;
  text-decoration: line-through;
  margin-left: 5px;
}
.mstars {
  font-size: 0.73rem;
  color: var(--secondary);
}
/* FIX 4 â€” Plus button opens detail popup */
.madd {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #c01e12);
  border: none;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 11px rgba(232, 40, 26, 0.28);
  flex-shrink: 0;
}
.madd:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.madd:hover {
  transform: scale(1.15) rotate(90deg);
}

/* Menu grid now shows 4 cards per row on large screens (col-lg-3) —
   scale image height and text down a touch so cards stay well-proportioned */
@media (min-width: 992px) {
  .mimg {
    height: 170px;
  }
  .mbody {
    padding: 14px;
  }
  .mtit {
    font-size: 0.95rem;
  }
}

/* ===================== SPECIAL OFFER ===================== */
#special {
  background: linear-gradient(135deg, #1a0000 0%, #2d0000 100%);
  position: relative;
  overflow: hidden;
}
.spbg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    45deg,
    #fff 0,
    #fff 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 40px 40px;
}
.sptag {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  border-radius: 6px;
  padding: 4px 15px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.sptitle {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.sptitle span {
  color: var(--secondary);
}
.spdesc {
  color: rgba(255, 255, 255, 0.62);
  margin: 18px 0;
  font-size: 0.93rem;
  line-height: 1.8;
}
.cdwrap {
  display: flex;
  gap: 14px;
  margin: 26px 0;
}
.cditem {
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  padding: 13px 18px;
  min-width: 72px;
}
.cdnum {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  display: block;
  line-height: 1;
}
.cdlbl {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 3px;
  display: block;
}
.spimgw {
  position: relative;
  text-align: center;
}
.spglow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(246, 166, 35, 0.24),
    transparent 70%
  );
}
.spimgw img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 28px 56px rgba(246, 166, 35, 0.28));
  animation: fltimg 5s ease-in-out infinite;
}
@keyframes fltimg {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-17px);
  }
}
.sppbdg {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: var(--primary);
  color: #fff;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(232, 40, 26, 0.5);
  animation: plsbdg 2.5s ease-in-out infinite;
}
@keyframes plsbdg {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 12px 34px rgba(232, 40, 26, 0.7);
  }
}
.sppbdg .old {
  font-size: 0.68rem;
  text-decoration: line-through;
  opacity: 0.7;
}
.sppbdg .np {
  font-size: 1.25rem;
  font-weight: 900;
}

/* ===================== GALLERY ===================== */
#gallery {
  background: var(--light);
}
.ggrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 215px);
  gap: 13px;
}
.gitem {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gitem:first-child {
  grid-row: span 2;
}
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gitem:hover img {
  transform: scale(1.08);
}
.gover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 60%);
  opacity: 0;
  transition: 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.gitem:hover .gover {
  opacity: 1;
}
.gover span {
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}
.gover i {
  color: var(--secondary);
  margin-right: 5px;
}

/* ===================== HISTORY â€” FIX 8 ===================== */
#history {
  background: var(--cream);
}
.timeline {
  position: relative;
  padding: 18px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  top: 0;
  bottom: 0;
}
/* Grid: left-col | dot-col | right-col */
.tli {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  margin-bottom: 50px;
  align-items: start;
}
.tl-left {
  padding-right: 32px;
  text-align: right;
}
.tl-center {
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.tl-right {
  padding-left: 32px;
  text-align: left;
}
/* ODD â†’ show LEFT text, hide RIGHT */
.tli:nth-child(odd) .tl-right {
  visibility: hidden;
}
/* EVEN â†’ hide LEFT, show RIGHT */
.tli:nth-child(even) .tl-left {
  visibility: hidden;
}
.tldot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px rgba(232, 40, 26, 0.3);
  flex-shrink: 0;
}
.tlyear {
  font-family: "Dancing Script", cursive;
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 3px;
}
.tl-left h5,
.tl-right h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 7px;
  font-family: "Playfair Display", serif;
  color: var(--dark);
}
.tl-left p,
.tl-right p {
  font-size: 0.83rem;
  color: #888;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 767px) {
  .timeline::before {
    left: 16px;
  }
  .tli {
    grid-template-columns: 32px 1fr;
    gap: 0;
  }
  .tl-left {
    display: none;
  }
  .tl-right {
    display: block !important;
    visibility: visible !important;
    padding-left: 18px;
    text-align: left;
  }
  .tl-center {
    padding-top: 5px;
  }
  .tli:nth-child(even) .tl-left {
    display: none;
  }
  .tli:nth-child(odd) .tl-right {
    visibility: visible !important;
  }
}

/* ===================== CHEFS ===================== */
#chefs {
  background: #fff;
}
.chcard {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: 0.4s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}
.chcard:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
}
.chimg {
  position: relative;
  overflow: hidden;
  height: 268px;
  background: var(--cream2);
}
.chimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: 0.5s;
}
.chcard:hover .chimg img {
  transform: scale(1.05);
}
.chsoc {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  transition: 0.4s;
  padding: 10px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}
.chcard:hover .chsoc {
  bottom: 0;
}
.chsoc a {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  transition: 0.3s;
}
.chsoc a:hover {
  background: var(--primary);
}
.chbody {
  padding: 18px;
  text-align: center;
}
.chnm {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.chrole {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.chexp {
  font-size: 0.76rem;
  color: #bbb;
  margin-top: 5px;
}

/* ===================== HOURS ===================== */
#hours {
  background: linear-gradient(135deg, var(--green), #1a4a35);
  position: relative;
  overflow: hidden;
}
.hrsbg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: repeating-linear-gradient(
    45deg,
    #fff 0,
    #fff 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 28px 28px;
}
.hrscard {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 28px;
}
.hrsrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.hrsrow:last-child {
  border: none;
}
.hrsday {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
}
.hrstime {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.hdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.hdot.on {
  background: #4ade80;
  box-shadow: 0 0 7px #4ade80;
}
.hdot.off {
  background: #ff6b6b;
}
.hrscta {
  background: var(--primary);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(232, 40, 26, 0.4);
}
.hrscta.hrscta-hasimg {
  padding-top: 0;
  overflow: hidden;
}
.hrscta-img {
  width: calc(100% + 56px);
  margin: 0 -28px 18px;
  height: 140px;
  object-fit: cover;
  display: block;
}
.hrscta h4 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}
.hrscta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  margin: 9px 0 18px;
}
.btnw {
  background: #fff;
  color: var(--primary);
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-block;
  transition: 0.3s;
}
.btnw:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

/* ===================== TESTIMONIALS ===================== */
#testimonials {
  background: #fff;
}
.tescard {
  background: var(--cream);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}
.tescard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.tesq {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 4.5rem;
  color: rgba(232, 40, 26, 0.07);
  font-family: "Playfair Display", serif;
  line-height: 1;
}
.tess {
  color: var(--secondary);
  font-size: 0.83rem;
  margin-bottom: 12px;
}
.testxt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 18px;
}
.tesauth {
  display: flex;
  align-items: center;
  gap: 11px;
}
.tesauth img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}
.tesnm {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 1px;
  font-family: "Poppins", sans-serif;
}
.tesrl {
  font-size: 0.73rem;
  color: #aaa;
}

/* ===================== RESERVATION â€” FIX 5 ===================== */
#reservation {
  background: var(--light);
}
.resico {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: rgba(232, 40, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.flbl {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
  display: block;
}
.fctrl {
  width: 100%;
  border: 2px solid #eee;
  border-radius: 9px;
  padding: 11px 15px;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: 0.3s;
  color: var(--dark);
  background: #fff;
  appearance: auto;
}
.fctrl:focus {
  border-color: var(--primary);
}
.fcard {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.sucmsg {
  display: none;
  text-align: center;
  padding: 16px;
  background: rgba(45, 106, 79, 0.07);
  border-radius: 11px;
  margin-top: 14px;
}
.sucmsg i {
  color: var(--green);
  font-size: 1.7rem;
  display: block;
  margin-bottom: 7px;
}
.sucmsg p {
  color: var(--green);
  font-weight: 600;
  margin: 0;
  font-size: 0.88rem;
}

/* ===================== BLOG ===================== */
#blog {
  background: var(--light);
}
.blcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.4s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.blcard:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}
.blimg {
  position: relative;
  height: 195px;
  overflow: hidden;
}
.blimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.blcard:hover .blimg img {
  transform: scale(1.06);
}
.bldatebdg {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  padding: 5px 11px;
  text-align: center;
  line-height: 1.2;
}
.bldatebdg .bd {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
}
.bldatebdg .bm {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.blbody {
  padding: 20px;
}
.bltag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
}
.bltit {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 9px;
  line-height: 1.4;
}
.bltit a {
  color: var(--dark);
}
.bltit a:hover {
  color: var(--primary);
}
.blmeta {
  display: flex;
  gap: 14px;
  font-size: 0.76rem;
  color: #bbb;
  margin-bottom: 13px;
}
.blmeta i {
  color: var(--primary);
  margin-right: 3px;
}
.blmore {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.blmore i {
  transition: 0.3s;
}
.blmore:hover {
  color: var(--dark);
}
.blmore:hover i {
  transform: translateX(5px);
}

/* ===================== NEWSLETTER ===================== */
#newsletter {
  background: linear-gradient(135deg, var(--primary), #8b0000);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.nlbg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='white' stroke-width='.4' opacity='.1'/%3E%3C/svg%3E");
  background-size: 75px;
}
.nlw {
  position: relative;
  z-index: 2;
}
.nlw h2 {
  color: #fff;
  font-size: 2.1rem;
}
/* Newsletter form â€” fixed layout */
.nl-form-wrap {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  align-items: center;
}
.nlinput {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-size: 0.9rem;
  outline: none;
  font-family: "Poppins", sans-serif;
  color: #333;
}
.nlbtn {
  flex-shrink: 0;
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
}
.nlbtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
@media (max-width: 540px) {
  .nl-form-wrap {
    flex-direction: column;
    padding: 0 10px;
  }
  .nlinput {
    width: 100%;
    border-radius: 12px;
  }
  .nlbtn {
    width: 100%;
    border-radius: 12px;
  }
}

/* ===================== CONTACT â€” FIX 6 ===================== */
#contact-section {
  background: #fff;
}
.ctdark {
  background: var(--dark);
  border-radius: 18px;
  padding: 38px;
  height: 100%;
}
.ctdark h4 {
  color: #fff;
  margin-bottom: 7px;
}
.ctdark .ctsub {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  margin-bottom: 26px;
}
.ctitem {
  display: flex;
  gap: 13px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.cticon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(232, 40, 26, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ctinfo strong {
  display: block;
  color: #aaa;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1px;
  font-family: "Poppins", sans-serif;
}
.ctinfo span {
  color: #fff;
  font-size: 0.87rem;
}
.ctsocrow {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.ctsocrow a {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  transition: 0.3s;
}
.ctsocrow a:hover {
  background: var(--primary);
  color: #fff;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--dark);
  padding: 68px 0 0;
}
.fnm {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
}
.fnm span {
  color: var(--primary);
}
.fdesc {
  color: #777;
  font-size: 0.86rem;
  line-height: 1.8;
  margin-top: 9px;
}
.fsoc {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}
.fsoc a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.88rem;
  transition: 0.3s;
}
.fsoc a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.ftit {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  font-family: "Poppins", sans-serif;
}
.flinks li {
  list-style: none;
  margin-bottom: 9px;
}
.flinks a {
  color: #777;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.3s;
}
.flinks a:hover {
  color: var(--secondary);
  padding-left: 5px;
}
.flinks a i {
  color: var(--primary);
  font-size: 0.68rem;
}
.fci {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}
.fciico {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(232, 40, 26, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.fciinfo {
  color: #777;
  font-size: 0.83rem;
  line-height: 1.6;
}
.fciinfo strong {
  color: #bbb;
  display: block;
  font-size: 0.77rem;
}
.fbot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  margin-top: 46px;
}
.fbot p {
  color: #555;
  font-size: 0.8rem;
  margin: 0;
}
.fbot span {
  color: var(--primary);
}
.fbot a {
  color: #555;
  font-size: 0.8rem;
  margin-left: 18px;
}
.fbot a:hover {
  color: var(--secondary);
}

/* ===================== UTILITIES ===================== */
#btt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #c01e12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(232, 40, 26, 0.38);
  opacity: 0;
  transform: translateY(18px);
  transition: 0.4s;
}
#btt.show {
  opacity: 1;
  transform: translateY(0);
}
#btt:hover {
  transform: translateY(-4px) !important;
}
.cartfl {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9990;
  background: var(--secondary);
  border-radius: 50px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 7px 22px rgba(246, 166, 35, 0.38);
  cursor: pointer;
  transition: 0.3s;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.88rem;
}
.cartfl:hover {
  transform: translateY(-4px);
}
.cartfl .ccount {
  background: var(--primary);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

/* ====================================================
   ALL POPUP / MODAL STYLES
==================================================== */

/* --- FIX 1: SEARCH POPUP --- */
#searchOv {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 5, 5, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 78px;
}
#searchOv.open {
  display: flex;
  animation: fadeov 0.28s ease;
}
@keyframes fadeov {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#searchOv .sovclose {
  position: absolute;
  top: 22px;
  right: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: 0.3s;
}
#searchOv .sovclose:hover {
  background: var(--primary);
}
.sovbox {
  width: 100%;
  max-width: 680px;
  padding: 0 18px;
}
.sovbox h4 {
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 26px;
  font-family: "Playfair Display", serif;
}
.sovinput {
  display: flex;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 60px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.sovinput input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 17px 24px;
  color: #fff;
  font-size: 1.05rem;
  font-family: "Poppins", sans-serif;
  outline: none;
}
.sovinput input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.sovinput button {
  background: var(--primary);
  border: none;
  padding: 0 26px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.sovinput button:hover {
  background: #c01e12;
}
.sovcats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 28px;
}
.sovcat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50px;
  padding: 7px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.83rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Poppins", sans-serif;
}
.sovcat img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.sovcat:hover,
.sovcat.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sovtrend {
  text-align: center;
  margin-top: 26px;
}
.sovtrend p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  margin-bottom: 9px;
}
.sovtrend .ttag {
  display: inline-block;
  margin: 3px;
  background: rgba(246, 166, 35, 0.13);
  border: 1px solid rgba(246, 166, 35, 0.28);
  color: var(--secondary);
  border-radius: 20px;
  padding: 3px 13px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: 0.3s;
}
.sovtrend .ttag:hover {
  background: var(--secondary);
  color: var(--dark);
}

/* --- FIX 4: MENU DETAIL POPUP --- */
#menuPop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 18px;
}
#menuPop.open {
  display: flex;
  animation: fadeov 0.28s ease;
}
.mpbox {
  background: #fff;
  border-radius: 22px;
  max-width: 800px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}
.mpbox::-webkit-scrollbar {
  width: 3px;
}
.mpbox::-webkit-scrollbar-thumb {
  background: var(--primary);
}
.mpbox .mpimg {
  width: 44%;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
  min-height: 400px;
}
.mpbox .mpimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mpbox .mpbody {
  width: 56%;
  padding: 34px 30px;
}
.mpclose {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 2;
}
.mpclose:hover {
  background: var(--primary);
  color: #fff;
}
#mpCat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 7px;
}
#mpTitle {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 9px;
  font-family: "Playfair Display", serif;
  color: var(--dark);
}
#mpStars {
  color: var(--secondary);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
#mpDesc {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.8;
  margin-bottom: 18px;
}
#mpPrice {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 14px;
  font-family: "Playfair Display", serif;
}
#mpPrice small {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: line-through;
  margin-left: 7px;
}
.mpmeta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mpm {
  text-align: center;
  background: var(--light);
  border-radius: 9px;
  padding: 9px 14px;
}
.mpmv {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark);
}
.mpml {
  font-size: 0.68rem;
  color: #bbb;
}
.mpqty {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
.mpqbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  font-weight: 700;
}
.mpqbtn:hover {
  background: var(--primary);
  color: #fff;
}
.mpqnum {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  min-width: 30px;
  text-align: center;
}
.mptags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}
.mptag {
  background: rgba(246, 166, 35, 0.11);
  color: var(--dark);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.73rem;
  font-weight: 600;
}
.mpaddcart {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #c01e12);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.mpaddcart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(232, 40, 26, 0.38);
}

/* --- FIX 7: GALLERY POPUP --- */
#galPop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
  padding: 18px;
}
#galPop.open {
  display: flex;
  animation: fadeov 0.28s ease;
}
.gpbox {
  max-width: 880px;
  width: 100%;
  position: relative;
  text-align: center;
}
.gpbox img {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 14px;
}
.gpclose {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.gpclose:hover {
  background: var(--primary);
}
.gpcap {
  color: #fff;
  margin-top: 18px;
}
.gpcap h5 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: #fff;
}
.gpcap p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}
.gpnav {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 14px;
}
.gpnav button {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 50px;
  padding: 7px 20px;
  cursor: pointer;
  font-size: 0.83rem;
  font-family: "Poppins", sans-serif;
  transition: 0.3s;
}
.gpnav button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Magnific video override */
.mfp-bg {
  background: #000 !important;
  opacity: 0.93 !important;
}
.mfp-close {
  color: #fff !important;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .hcircle {
    width: 320px;
    height: 320px;
  }
  .fc1,
  .fc2,
  .fc3 {
    transform: scale(0.82);
    transform-origin: center;
  }
  .ggrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gitem:first-child {
    grid-row: span 1;
  }
  .asm {
    display: none;
  }
  .mpbox .mpimg,
  .mpbox .mpbody {
    width: 100%;
  }
  .mpbox .mpimg {
    border-radius: 22px 22px 0 0;
    min-height: 240px;
  }
  .mpbox .mpbody {
    padding: 22px 18px;
  }
  /* Timeline mobile: collapse to single column */
  .timeline::before {
    left: 16px;
  }
  .tli {
    grid-template-columns: 32px 1fr !important;
  }
  .tl-left {
    display: none !important;
  }
  .tl-right {
    display: block !important;
    visibility: visible !important;
    padding-left: 18px !important;
    text-align: left !important;
  }
  .tl-center {
    padding-top: 5px;
  }
  .tli:nth-child(odd) .tl-right,
  .tli:nth-child(even) .tl-right {
    visibility: visible !important;
    display: block !important;
  }
}
@media (max-width: 767px) {
  section {
    padding: 55px 0;
  }
  #topbar .top-contact span:last-child {
    display: none;
  }
  .hcircle {
    width: 260px;
    height: 260px;
  }
  /* Hide only hero floating cards, NOT form cards */
  .fcard.fc1,
  .fcard.fc2,
  .fcard.fc3 {
    display: none !important;
  }
  .hstats {
    display: none !important;
  }
  .ggrid {
    grid-template-columns: 1fr 1fr;
  }
  .cdwrap {
    gap: 8px;
  }
  .cditem {
    min-width: 56px;
    padding: 9px;
  }
  .nl-form-wrap {
    flex-direction: column;
    padding: 0 8px;
  }
  .nlinput,
  .nlbtn {
    width: 100%;
    border-radius: 12px;
  }
  .fcard {
    padding: 22px 18px;
  }
}
@media (max-width: 480px) {
  .hcircle {
    width: 220px;
    height: 220px;
  }
  .htitle {
    font-size: 2.4rem;
  }
  .stitle {
    font-size: 1.8rem;
  }
}

/* Rich text content on the blog detail page, authored via the admin
   "Full Content" editor (Summernote). Basic readable defaults for the
   HTML it can output — headings, paragraphs, lists, links, images. */
.blog-rich-content {
  text-align: left;
  line-height: 1.8;
  color: #555;
}
.blog-rich-content h1,
.blog-rich-content h2,
.blog-rich-content h3,
.blog-rich-content h4 {
  font-family: "Playfair Display", serif;
  color: var(--dark);
  margin: 22px 0 12px;
}
.blog-rich-content p {
  margin-bottom: 16px;
}
.blog-rich-content ul,
.blog-rich-content ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
.blog-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}
.blog-rich-content a {
  color: var(--primary);
  text-decoration: underline;
}
/* ===================================================================
   Sort dropdown + real server-side pagination (menu.php / order.php)
=================================================================== */
.msort-form {
  display: flex;
  align-items: center;
}
.msort {
  border-radius: 50px;
  border: 2px solid #e5e5e5;
  font-size: 0.84rem;
  font-weight: 600;
  color: #666;
  padding: 6px 34px 6px 16px;
  min-width: 190px;
  cursor: pointer;
}
.msort:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.mpagination .page-link {
  border: 2px solid #e5e5e5;
  border-radius: 50px;
  margin: 0 4px;
  min-width: 42px;
  text-align: center;
  color: #666;
  font-weight: 600;
  font-size: 0.86rem;
}
.mpagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.mpagination .page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mpagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: #eee;
  background: transparent;
}

/* =====================================================================
   RESPONSIVE FIXES  (appended - purani styling ko touch nahi karta)
   Tested: 320px -> 1920px, portrait + landscape
   ===================================================================== */

/* 1) Mobile par poore page ka 12px side-scroll / zoom-out band.
      Bootstrap `.g-5` ka -24px margin phone ke 12px container padding se bada tha. */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
/* Safety net: koi bhi element ghalti se bahar nikle to page side me na hile
   (`clip` sticky/fixed ko break nahi karta, `hidden` kar sakta tha). */
@supports (overflow: clip) {
  html { overflow-x: clip; }
}
img, video, iframe { max-width: 100%; }

/* 2) `.fcard` naam do jagah use hua tha: hero ke floating cards (position:absolute)
      aur contact/reservation form card. Form card bhi absolute ban jaata tha, isliye
      tablet/mobile par footer ke upar chadh jaata tha. Ab form card normal flow me. */
.fcard:not(.fc1):not(.fc2):not(.fc3) {
  position: relative;
  display: block;
}

/* 3) Hero floating cards tablet par ek-doosre ke upar aa rahe the */
@media (max-width: 991.98px) {
  .fcard.fc3 { display: none; }
}

/* 4) Mobile / tablet navbar (hamburger menu) */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link { padding: 12px 4px !important; }
  .navbar-nav .nav-link::after { left: 4px; transform: none; bottom: 6px; }
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after { width: 28px; }
  #navmenu { padding-bottom: 14px; }
  #navmenu .d-flex { flex-wrap: wrap; row-gap: 8px; padding-top: 6px; }
  .navbar-toggler { padding: 10px 12px; }
}

/* 5) Search overlay: chhoti screen par content cut ho jaata tha aur scroll nahi hota tha */
#searchOv {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 24px;
}
@media (max-width: 575.98px) {
  #searchOv { padding-top: 66px; padding-left: 12px; padding-right: 12px; }
  #searchOv .sovclose { top: 12px; right: 12px; }
  .sovbox { width: 100%; }
}

/* 6) Cart table -> mobile par card layout (Qty / Subtotal / Remove pehle dikhte hi nahi the) */
@media (max-width: 767.98px) {
  #cartTableWrap .table-responsive { overflow: visible; }
  #cartTableWrap table,
  #cartTableWrap tbody { display: block; width: 100%; }
  #cartTableWrap thead { display: none; }
  #cartTableWrap tbody tr {
    display: block;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  }
  #cartTableWrap tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 6px 0;
    background: transparent;
    box-shadow: none;
    text-align: right;
  }
  #cartTableWrap tbody td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
  }
  #cartTableWrap tbody td:first-child {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
    margin-bottom: 4px;
  }
  #cartTableWrap tbody td:last-child { justify-content: flex-end; padding-top: 10px; }
  #cartTableWrap tfoot { display: block; }
  #cartTableWrap tfoot tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  }
  #cartTableWrap tfoot th { display: block; border: 0; padding: 0; background: transparent; box-shadow: none; }
  #cartTableWrap > .d-flex > .d-flex { width: 100%; }
  #cartTableWrap > .d-flex > .d-flex .btn { flex: 1 1 0; }
  #cartTableWrap #clearCartBtn { width: 100%; }
}

/* 7) Touch-friendly sizes + iOS "focus par zoom" band (input font >= 16px) */
@media (max-width: 767.98px) {
  .mqty-btn { width: 38px; height: 38px; }
  .mqty-input { height: 38px; width: 38px; }
  .flinks a { padding: 6px 0; }
  .fbot .d-flex { justify-content: center !important; text-align: center; }
  .fbot a { margin: 0 9px; display: inline-block; padding: 8px 0; }
  .blmore { display: inline-block; padding: 8px 0; }
  .mselect { font-size: 0.76rem; padding-left: 12px; padding-right: 28px; text-overflow: ellipsis; }
  .aexp { left: 8px; }
  input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="password"], textarea, .fctrl, .nlinput {
    font-size: 16px;
  }
}

/* 8) Bahut chhoti screen (<=359px, jaise Galaxy A01 / iPhone SE 1st gen) */
@media (max-width: 359.98px) {
  .bname { font-size: 1.25rem; }
  .bsub { letter-spacing: 1px; }
  .htitle { font-size: 2.05rem; }
  .stitle { font-size: 1.6rem; }
  .fcard:not(.fc1):not(.fc2):not(.fc3) { padding: 18px 14px; }
}

/* 9) Landscape phones (height kam) - hero ki 88vh min-height ki wajah se khali jagah */
@media (max-height: 520px) and (orientation: landscape) {
  #hero .row { min-height: 0 !important; padding-top: 24px; padding-bottom: 24px; }
  #searchOv { padding-top: 56px; }
}

/* 10) Jinko reduced-motion chahiye unke liye animations band */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   RESPONSIVE QA HARDENING — public storefront
   Kept last so these rules correct legacy widths without changing content.
   ===================================================================== */
html { width: 100%; max-width: 100%; }
body { width: 100%; max-width: 100%; min-width: 0; }

/* Let flex/grid children shrink instead of forcing the viewport wider. */
.container, .container-fluid, .row, [class*="col-"],
.navbar, .navbar-brand, .navbar-collapse, .navbar-nav,
.card, .card-body, .modal-content, .swiper, .swiper-wrapper,
.swiper-slide { min-width: 0; }

img, video, iframe, canvas, svg { max-width: 100%; }
img, video, canvas { height: auto; }
input, select, textarea, button { max-width: 100%; }
input, select, textarea { min-width: 0; }

/* Avoid long contact details and CMS-authored content breaking a row. */
#topbar .top-contact, #topbar .top-contact span,
.navbar-brand, .blogo > div:last-child, .bname, .bsub,
.blog-rich-content, .fdesc, .fciinfo, .sdesc,
.card-title, .card-text { overflow-wrap: anywhere; }

/* The nav's brand and toggler must remain visible on narrow devices. */
#nav .container { min-width: 0; }
#nav .navbar-brand { flex: 0 1 auto; max-width: calc(100% - 58px); margin-right: 0; }
#nav .navbar-toggler { flex: 0 0 auto; margin-left: auto; }
#navmenu { min-width: 0; max-width: 100%; }
#navmenu > .d-flex { min-width: 0; max-width: 100%; flex-wrap: wrap; }
#navmenu > .d-flex > a, #navmenu > .d-flex > button { flex: 0 0 auto; }

/* Wide tables scroll inside their own wrapper rather than widening the page. */
.table-responsive { max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-responsive > table { margin-bottom: 0; }

/* Form controls should not force desktop widths on phones. */
.form-control, .form-select, select, textarea,
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], input[type="search"] {
  max-width: 100%; min-width: 0;
}

@media (max-width: 991.98px) {
  #nav .container { flex-wrap: wrap; }
  #navmenu { flex: 0 0 100%; width: 100%; }
  #navmenu .navbar-nav { width: 100%; }
  #navmenu .navbar-nav .nav-link { display: block; padding: 11px 4px !important; }
  #navmenu .navbar-nav .nav-link::after { left: 4px; transform: none; bottom: 6px; }
  #navmenu .navbar-nav .nav-link:hover::after,
  #navmenu .navbar-nav .nav-link.active::after { width: 28px; }
  #navmenu > .d-flex { padding-top: 8px; padding-bottom: 8px; gap: 8px !important; }
  #navmenu .nav-cta { margin-left: 0; }
}

@media (max-width: 767.98px) {
  #topbar { font-size: .76rem; }
  #topbar .container > .d-flex { align-items: flex-start !important; gap: 8px; }
  #topbar .top-contact { gap: 5px 10px; min-width: 0; max-width: 100%; }
  #topbar .top-contact span { margin-right: 0; }
  #topbar .container > .d-flex > .d-flex { flex-wrap: wrap; min-width: 0; max-width: 100%; gap: 8px !important; }
  .container, .container-fluid { --bs-gutter-x: 1.5rem; }
  .row.g-5 { --bs-gutter-y: 2rem; }
  .blogo { gap: 7px; min-width: 0; }
  .blogo-img, .bico { flex: 0 0 40px; width: 40px; height: 40px; }
  .bname { font-size: clamp(1.1rem, 5vw, 1.4rem); line-height: 1.15; }
  .bsub { font-size: .58rem; letter-spacing: 1px; }
  h1, .htitle { font-size: clamp(1.85rem, 7vw, 3rem); overflow-wrap: anywhere; }
  section { scroll-margin-top: 76px; }
  .modal-dialog { width: auto; max-width: calc(100% - 16px); margin: 8px auto; }
  .modal-content { max-width: 100%; }
  .modal-body { overflow-wrap: anywhere; }
  footer .row { --bs-gutter-y: 1.75rem; }
  .fbot .container > .d-flex { justify-content: center !important; text-align: center; }
}

@media (max-width: 479.98px) {
  #nav .container { padding-left: 12px; padding-right: 12px; }
  #nav .navbar-brand { max-width: calc(100% - 54px); }
  .blogo-img, .bico { flex-basis: 36px; width: 36px; height: 36px; }
  .bname { font-size: clamp(1rem, 5vw, 1.2rem); }
  .bsub { letter-spacing: .6px; }
  .ttag { font-size: .64rem; letter-spacing: .02em; }
  .btn, .nav-cta { white-space: normal; }
  .mpagination { flex-wrap: wrap; gap: 6px; }
  .mpagination .page-link { margin: 0 2px; min-width: 36px; }
}

@media (max-width: 359.98px) {
  .container, .container-fluid { --bs-gutter-x: 1rem; padding-left: 12px; padding-right: 12px; }
  .bname { font-size: 1rem; }
  .bsub { font-size: .52rem; }
  #nav .navbar-toggler { padding: 8px; }
  .htitle { font-size: clamp(1.7rem, 8vw, 2rem); }
}

@media (max-height: 520px) and (orientation: landscape) {
  #hero { min-height: 0; }
  #hero .row { min-height: 0 !important; padding-top: 24px; padding-bottom: 24px; }
  #searchOv { padding-top: 56px; }
}

@supports (overflow: clip) {
  html { overflow-x: clip; }
}


/* Final responsive hardening for public pages and CMS-authored content. */
html, body { max-width: 100%; }
body, main, header, footer, section, nav, article, aside,
.container, .container-fluid, .row, [class*="col-"],
.d-flex, .card, .card-body, .swiper, .swiper-wrapper, .swiper-slide {
  min-width: 0;
}
img, picture, video, iframe, canvas, svg { max-width: 100%; }
img, video, canvas { height: auto; }
pre, code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; }
input, select, textarea, button { max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-width: 0; }

/* Keep content inside its column even when names, URLs or CMS text are long. */
#topbar, #nav, #navmenu, #hero, main, section, footer,
.blog-rich-content, .card-title, .card-text, .fdesc, .sdesc,
.product-title, .product-name, .menu-title { overflow-wrap: anywhere; }
.table-responsive { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive > table { max-width: none; }
.modal-dialog { width: auto; max-width: calc(100% - 16px); }
.modal-content { min-width: 0; max-width: 100%; }
.modal-body { overflow-wrap: anywhere; }

@media (max-width: 767.98px) {
  #topbar .container > .d-flex { align-items: flex-start; }
  #nav .navbar-brand { min-width: 0; }
  #navmenu .navbar-nav { min-width: 0; }
  .container, .container-fluid { max-width: 100%; }
  .row { --bs-gutter-x: 1.25rem; }
  .btn, .nav-cta { min-height: 40px; }
  .modal-dialog { margin: 8px auto; }
  .modal-dialog:not(.modal-dialog-scrollable) .modal-content {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
  }
  .form-control, .form-select, input, select, textarea { font-size: 16px; }
  .mpagination { justify-content: center; }
}

@media (max-width: 420px) {
  #topbar .ttag { max-width: 100%; white-space: normal; }
  #nav .navbar-brand { max-width: calc(100% - 52px); }
  .btn-group { flex-wrap: wrap; }
  .btn-group > .btn { min-width: 0; white-space: normal; }
  .modal-body { padding: 14px !important; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .modal-dialog { margin-top: 8px; margin-bottom: 8px; }
  .modal-dialog:not(.modal-dialog-scrollable) .modal-content { max-height: calc(100vh - 16px); overflow-y: auto; }
}
