/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL BASE STYLES
   ========================================================================== */
:root {
  --red: #ed1c24;
  --darkred: #a80712;
  --deep: #c8101e;
  --ink: #171717;
  --muted: #666;
  --soft: #fafafa;
  --line: #e8e8e8;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Helper Utility */
.center {
  text-align: center;
}

/* ==========================================================================
   2. HEADER & NAVIGATION BAR
   ========================================================================== */
.topbar {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.header {
  height: 82px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #eee;
}

.logo {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.menu {
  display: none;
}

/* ==========================================================================
   3. HERO SECTION & HERO ARTWORK
   ========================================================================== */
.hero {
  min-height: 640px;
  background: linear-gradient(120deg, #fff 0%, #fff7f7 55%, #ffecef 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 70px 8%;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
}

.eyebrow,
.page-hero span,
.section-head span,
.red-section span,
.offer span {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 800;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.03;
  margin: 15px 0;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
}

.actions {
  display: flex;
  gap: 14px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 800;
  transition: 0.25s;
}

.btn.primary {
  background: var(--red);
  color: #fff;
}

.btn.primary:hover {
  background: var(--darkred);
  transform: translateY(-2px);
}

.btn.light {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
}

.btn.white {
  background: #fff;
  color: var(--red);
}

.btn.outline {
  background: #fff;
  border: 1px solid var(--red);
  color: var(--red);
}

.btn.full {
  width: 100%;
  margin-top: 10px;
}

.trust-row {
  display: flex;
  gap: 22px;
  color: #777;
  font-size: 12px;
  align-items: center;
}

.trust-row b {
  color: var(--ink);
  font-size: 14px;
}

.hero-art {
  height: 430px;
  display: grid;
  place-items: center;
}

.bed-shape {
  width: 80%;
  height: 230px;
  background: #fff;
  border-radius: 45px 45px 25px 25px;
  box-shadow: 0 30px 70px #ed1c2430;
  transform: rotate(-8deg);
  position: relative;
}

.bed-shape:before {
  content: "";
  position: absolute;
  top: -60px;
  left: 7%;
  right: 7%;
  height: 85px;
  background: #fff;
  border-radius: 30px 30px 8px 8px;
  box-shadow: 0 10px 30px #00000012;
}

.bed-shape:after {
  content: "MOTHER'S LAP";
  position: absolute;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.12em;
  left: 15%;
  top: 90px;
  font-size: 22px;
}

/* ==========================================================================
   4. SECTIONS & LAYOUT CONTAINERS
   ========================================================================== */
.section {
  padding: 90px 8%;
}

.soft {
  background: var(--soft);
}

.section-head {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 45px;
}

.section-head h2 {
  font-size: 42px;
  margin: 8px 0;
}

.section-head p {
  color: var(--muted);
}

/* ==========================================================================
   5. INTERACTIVE TOOLS & FINDERS
   ========================================================================== */
.quiz-section {
    padding: 50px 20px;
}

.quiz-question {
    margin-bottom: 25px;
}

.quiz-question h2 {
    font-size: 22px;
    margin-bottom: 22px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quiz-option {
    height: 50px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.quiz-option:hover {
    border-color: #ed1c24;
    background: #fff5f5;
}

.quiz-option:focus {
    background: #ed1c24;
    color: #ffffff;
    border-color: #ed1c24;
}


/* See My Recommendation - Different Colour */
.recommend-btn {
    margin-top: 5px;
    padding: 15px 25px;

    background: #111111;
    color: #ffffff;

    border: none;
    border-radius: 7px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.2s ease;
}

.recommend-btn:hover {
    background: #333333;
}


/* Mobile */
@media (max-width: 600px) {
    .quiz-options {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. PRODUCTS & CARDS (UPDATED FOR DYNAMIC FIT & RESPONSIVE RATIOS)
   ========================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

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

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px #0000000d;
  border-color: #f2b0b3;
}

/* IMAGE BOX */
.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGE */
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.product h3 {
  margin: 18px 0 8px;
  min-height: 54px;
}

.product p {
  color: var(--muted);
  font-size: 13px;
  min-height: 40px;
  margin: 0 0 10px;
}

.product strong {
  display: block;
  font-size: 20px;
  margin-top: auto;
  margin-bottom: 15px;
}

.text-link {
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
}

/* ==========================================================================
   7. PROMOTIONAL SECTIONS & BANNERS
   ========================================================================== */
.red-section,
.offer {
  background: var(--red);
  color: #fff;
  padding: 85px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.red-section h2,
.offer h2 {
  font-size: 48px;
  line-height: 1.1;
  margin: 10px 0;
}

.red-section p,
.offer p {
  max-width: 650px;
  opacity: 0.9;
}

.builder-mini {
  border: 1px solid #ffffff55;
  background: #ffffff18;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
}

.builder-mini b {
  font-size: 70px;
  line-height: 1;
}

.builder-mini span {
  font-weight: 900;
  letter-spacing: 0.1em;
}

.builder-mini small {
  opacity: 0.8;
}

.offer-card {
  max-width: 800px;
  margin: auto;
  background: var(--red);
  color: #fff;
  padding: 60px;
  border-radius: 25px;
  text-align: center;
}

.offer-card span {
  color: #fff;
}

.offer-card h2 {
  font-size: 60px;
  margin: 10px;
}

/* ==========================================================================
   8. FEATURE, CATEGORY & STORE GRIDS
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-grid b {
  color: var(--red);
  font-size: 14px;
}

.feature-grid h3 {
  font-size: 20px;
}

.feature-grid p {
  color: var(--muted);
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.category-grid a {
  min-height: 240px;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, #222, #666);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.category-grid a:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #000b);
}

.category-grid b,
.category-grid span {
  position: relative;
  z-index: 1;
}

.category-grid b {
  font-size: 22px;
}

.category-grid span {
  opacity: 0.8;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stores > div {
  border: 1px solid var(--line);
  padding: 35px;
  border-radius: 18px;
}

/* ==========================================================================
   9. SECONDARY PAGES & PRODUCT DETAILS
   ========================================================================== */
.page-hero {
  padding: 100px 8%;
  background: #fff7f7;
  text-align: center;
}

.page-hero.red {
  background: var(--red);
  color: #fff;
}

.page-hero.red span {
  color: #fff;
}

.page-hero h1 {
  font-size: 52px;
  margin: 10px;
}

.page-hero p {
  color: var(--muted);
}

.page-hero.red p {
  color: #fff;
  opacity: 0.85;
}

.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
}

.detail h1 {
  font-size: 44px;
  line-height: 1.1;
}

.detail > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.rating {
  color: #f2a900;
  margin: 15px 0;
}

.rating small {
  color: #666;
}

.price {
  font-size: 32px;
  font-weight: 900;
  margin: 20px 0;
}

.price del {
  font-size: 16px;
  color: #999;
  margin-left: 10px;
}

.choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.choices button {
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.choices button:hover {
  border-color: var(--red);
  color: var(--red);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.benefits b {
  font-size: 11px;
  background: #fafafa;
  padding: 12px;
  border-radius: 8px;
}

.layers {
  max-width: 900px;
  margin: auto;
  display: grid;
  gap: 12px;
}

.layers div {
  padding: 25px;
  border-left: 5px solid var(--red);
  background: #fff;
  border-radius: 10px;
  display: grid;
  gap: 5px;
}

.layers small {
  color: #777;
}

/* ==========================================================================
   10. FORMS, ESTIMATES & TABLES
   ========================================================================== */
.detail label,
.custom-form label,
.checkout label,
.contact label {
  display: block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: 18px 0 8px;
}

.custom-form,
.checkout form,
.contact form {
  max-width: 700px;
  margin: auto;
}

.custom-form input,
.custom-form select,
.checkout input,
.checkout textarea,
.contact input,
.contact textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.custom-form textarea,
.checkout textarea,
.contact textarea {
  min-height: 130px;
}

.estimate {
  background: #fff7f7;
  border: 1px solid #f2b0b3;
  padding: 22px;
  border-radius: 12px;
  margin: 25px 0;
  font-size: 20px;
}

.estimate b {
  color: var(--red);
}

.compare {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  max-width: 900px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.compare > * {
  padding: 20px;
  border-right: 1px solid var(--line);
  margin: 0;
}

.compare p {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  margin: 0;
  color: #555;
}

/* ==========================================================================
   11. CART, SHOPPING & CHECKOUT
   ========================================================================== */
.cart {
  max-width: 900px;
  margin: auto;
}

.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
}

.cart-item strong {
  margin-left: auto;
}

.cart-total {
  max-width: 420px;
  margin: 30px 0 0 auto;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cart-total p {
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   12. MISCELLANEOUS (STEPS, REVIEWS, QUOTES)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps > div {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.steps b {
  color: var(--red);
}

.warranty-number {
  font-size: 180px;
  color: var(--red);
  font-weight: 900;
  line-height: 1;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.review-grid article:first-letter {
  color: #f2a900;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.quote {
  background: var(--red);
  color: #fff;
  padding: 70px;
  border-radius: 25px;
  font-size: 38px;
  font-weight: 900;
}

/* ==========================================================================
   13. FOOTER & FLOATING WIDGETS
   ========================================================================== */
.footer {
  background: var(--darkred);
  color: #fff;
  padding: 60px 8% 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 35px;
}

.footer h4 {
  margin: 0 0 15px;
}

.footer a {
  display: block;
  color: #fff9;
  margin: 8px 0;
  font-size: 13px;
}

.footer .logo {
  background: #fff;
  padding: 6px;
  border-radius: 4px;
}

.copyright {
  border-top: 1px solid #ffffff33;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12px;
  color: #fff9;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 60;
  box-shadow: 0 10px 25px #0003;
}

/* ==========================================================================
   14. MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 6%;
  }
  .hero-art {
    display: none;
  }
  .products.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .finder-grid,
  .product-detail,
  .two-col {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .topbar {
    font-size: 9px;
  }
  .header {
    height: 68px;
    padding: 0 4%;
  }
  .logo {
    width: 145px;
  }
  .header-actions {
    display: none;
  }
  .hero {
    min-height: 580px;
    padding: 50px 5%;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    font-size: 15px;
  }
  .actions {
    flex-direction: column;
  }
  .trust-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .section {
    padding: 60px 5%;
  }
  .section-head h2 {
    font-size: 32px;
  }
  .products,
  .products.four,
  .category-grid,
  .stores,
  .review-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .product-img {
    aspect-ratio: 4 / 3;
    padding: 12px;
  }
  .product-img.large {
    aspect-ratio: 4 / 3;
    padding: 16px;
  }
  .red-section,
  .offer {
    padding: 60px 5%;
    display: block;
  }
  .red-section h2,
  .offer h2 {
    font-size: 36px;
  }
  .builder-mini {
    margin: 30px auto 0;
  }
  .page-hero {
    padding: 70px 5%;
  }
  .page-hero h1 {
    font-size: 40px;
  }
  .product-detail {
    gap: 35px;
  }
  .detail h1 {
    font-size: 34px;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .compare {
    font-size: 13px;
  }
  .footer {
    padding: 50px 5%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .whatsapp {
    right: 15px;
    bottom: 15px;
    padding: 12px 16px;
  }
  .finder-grid {
    gap: 15px;
  }
}