/* CDS Design Guard — visual system for Carpets Dubai Store.
   Locks layout proportions so Elementor content edits stay tidy.
   Palette: deep green #14532d, hover #0e3d21, tint #e8f2ec, ink #1f2937. */

/* ---------- Header (site-wide) ---------- */
.ast-custom-button-link { white-space: nowrap !important; }
.ast-header-button-1 .ast-custom-button {
  min-width: 118px;
  text-align: center;
  padding-left: 18px;
  padding-right: 18px;
}

/* ---------- Homepage frame ---------- */
.page-id-592 .elementor-592 .e-con-inner {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.page-id-592 .elementor-592 h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  color: #1f2937;
}
.page-id-592 .elementor-592 h2:not(.woocommerce-loop-product__title) {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
/* Section intro paragraphs share the same 1240 frame as the grids */
.page-id-592 .elementor-592 .e-paragraph-base {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Homepage buttons: natural width, one style ---------- */
.page-id-592 a.e-button-base {
  width: auto !important;
  max-width: 100%;
  padding: 13px 26px !important;
  border-radius: 8px !important;
  font-weight: 600;
  text-align: center;
}
/* Hero buttons sit at the start of the text column, side by side when room allows */
.page-id-592 .elementor-element-68ca311 a.e-button-base { align-self: flex-start; }
/* Buttons on the green bands are centred in their band */
.page-id-592 .elementor-element-8c3c258 a.e-button-base,
.page-id-592 .elementor-element-7f61690 a.e-button-base { align-self: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero image ---------- */
.page-id-592 .elementor-592 .elementor-element-517d282 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------- Tiles (category + room image boxes) ---------- */
.page-id-592 .elementor-widget-image-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 12px 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  height: 100%;
}
.page-id-592 .elementor-image-box-wrapper { text-align: center; }
.page-id-592 .elementor-image-box-img { margin: 0 0 10px; }
.page-id-592 .elementor-image-box-img img {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.page-id-592 .elementor-image-box-title { font-size: 17px; line-height: 1.3; margin: 0; }
.page-id-592 .elementor-image-box-title a { color: #1f2937 !important; text-decoration: none; }
.page-id-592 .elementor-image-box-title a:hover { color: #14532d !important; }

/* ---------- Icon boxes (Why Choose Us + How It Works) ---------- */
.page-id-592 .elementor-widget-icon-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 16px;
  height: 100%;
}
.page-id-592 .elementor-icon-box-icon { margin-bottom: 12px; }
.page-id-592 .elementor-widget-icon-box .elementor-icon {
  color: #14532d !important;
  background: #e8f2ec;
  border-radius: 50%;
  padding: 14px;
  font-size: 26px;
}
.page-id-592 .elementor-icon-box-title { color: #1f2937 !important; font-size: 18px; line-height: 1.3; }
.page-id-592 .elementor-icon-box-description { color: #4b5563; font-size: 15px; line-height: 1.55; }

/* ---------- Areas chips (built by guard.js from the areas paragraph) ---------- */
.cds-area-chips { margin-top: 6px; }
.cds-area-chip {
  display: inline-block;
  background: #eef4f0;
  border: 1px solid #cfe0d4;
  color: #14532d;
  border-radius: 999px;
  padding: 4px 12px;
  margin: 3px 4px 3px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Footer (site-wide) ---------- */
.site-footer .site-footer-section-2 .footer-widget-area::before {
  content: "Carpet Categories";
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 10px;
}
.site-footer .site-footer-section-2 ul { text-align: left; }
.site-footer .site-footer-section-2 li { display: block; margin-bottom: 4px; text-align: left; }

/* ---------- v1.0.1 targeted fixes ---------- */
/* Hero: guaranteed two balanced columns, stacking only when truly narrow */
.page-id-592 .elementor-592 .elementor-element-517d282 {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.page-id-592 .elementor-592 .elementor-element-517d282 > * {
  flex: 1 1 340px;
  min-width: min(340px, 100%);
}
/* Tile photos fill their card, no small centred thumbnails */
.page-id-592 figure.elementor-image-box-img { width: 100% !important; max-width: 100% !important; }
.page-id-592 .elementor-image-box-img a { display: block; }
/* Icon colour with enough weight to beat per-widget styles, incl. the SVG fill */
body.page-id-592 .elementor-592 .elementor-widget-icon-box span.elementor-icon { color: #14532d !important; }
body.page-id-592 .elementor-592 .elementor-widget-icon-box svg path { fill: #14532d; }
/* Header menu: tighter links so all items fit on one row */
.main-header-menu .menu-item .menu-link { padding-left: 9px; padding-right: 9px; }
@media (min-width: 922px) { .main-header-menu .menu-link { font-size: 15px; } }
/* Final CTA: the Call button centres in its band like the WhatsApp one */
.page-id-592 .elementor-element-813a693 a.e-button-base { align-self: center; margin-left: auto; margin-right: auto; }

/* ---------- v1.0.2 targeted fixes ---------- */
/* Header: widen the header row and stop the primary menu wrapping */
.ast-primary-header-bar .ast-builder-grid-row { max-width: 1440px; }
ul.main-header-menu { flex-wrap: nowrap; }
.main-header-menu .menu-item .menu-link { padding-left: 7px; padding-right: 7px; }
@media (min-width: 922px) { .main-header-menu .menu-link { font-size: 14px; } }
/* Footer categories: Astra renders this menu as a horizontal flex strip;
   force a proper left-aligned single column */
.site-footer-section-2 ul#astra-footer-menu { display: block !important; text-align: left; }
.site-footer-section-2 ul#astra-footer-menu li { display: block; text-align: left; margin: 0 0 6px; }
.site-footer-section-2 ul#astra-footer-menu .menu-link { padding: 0; }

/* ---------- v1.0.3 targeted fixes ---------- */
/* Menu labels must never wrap inside their own item */
.main-header-menu .menu-item .menu-link { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 922px) {
  .main-header-menu .menu-link { font-size: 13px; }
  .main-header-menu .menu-item .menu-link { padding-left: 6px; padding-right: 6px; }
}

/* ---------- v1.0.4 targeted fixes ---------- */
/* Sticky header on desktop (and mobile), clear of the admin bar when logged in */
#masthead { position: sticky; top: 0; z-index: 999; background: #ffffff; box-shadow: 0 1px 6px rgba(16, 24, 40, 0.07); }
body.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar #masthead { top: 46px; } }
/* USP boxes: equal title heights so the descriptions start on one line */
@media (min-width: 768px) {
  .page-id-592 .elementor-icon-box-title { min-height: 2.6em; }
  .page-id-592 .elementor-icon-box-wrapper { height: 100%; }
}
/* Footer logo in column 1 */
.site-footer img.cds-footer-logo { width: 176px; max-width: 100%; height: auto; display: block; margin-bottom: 12px; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  .page-id-592 a.e-button-base { padding: 12px 20px !important; }
  .page-id-592 .elementor-image-box-title { font-size: 16px; }
  .ast-header-button-1 .ast-custom-button { min-width: 104px; padding-left: 12px; padding-right: 12px; }
}
