@import 'variables.css';

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3) var(--spacing-6);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-text-main);
  color: var(--color-bg-main);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
}

.btn-brand {
  background-color: var(--color-brand-orange);
  color: var(--color-bg-main);
}

.btn-brand:hover {
  background-color: #e66000;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-bg-main);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.btn-outline:hover {
  background-color: var(--color-bg-alt);
}

/* Top Bar */
.top-bar {
  background-color: #F8FAFC;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.75rem;
  color: #4B5563;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.top-bar-item:hover {
  color: #111827;
}

.top-bar-item svg {
  color: #FF5E14;
  flex-shrink: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: var(--color-bg-main);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

/* Brand Logo Image */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.logo:hover {
  opacity: 0.92;
}

.logo-img {
  height: 46px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

@media (max-width: 767px) {
  .logo-img {
    height: 38px;
    max-width: 140px;
  }
}

/* Promo Cards Content Overlay */
.promo-card-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.promo-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-orange);
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-1);
}

.promo-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: var(--spacing-1);
}

.promo-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-4);
}

.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 0.8125rem;
  width: fit-content;
}

.promo-summer {
  background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
}

.promo-trends {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: var(--spacing-4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-main);
}

/* Search Bar & Category Selector Base */
.search-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  gap: 10px;
}

@media (min-width: 768px) {
  .search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 340px);
    max-width: 760px;
    margin: 0;
    gap: 1rem;
  }
  .header-main {
    position: relative;
  }
}

.search-icon-btn {
  display: none !important;
}

/* Universal Rule: Product pages must never show search bar or category dropdown in header */
body.product-page .search-container,
body.product-page .category-dropdown-wrapper,
body.product-page .category-dropdown,
.header[data-header-type="product"] .search-container,
.header[data-header-type="product"] .category-dropdown-wrapper,
.header[data-header-type="product"] .category-dropdown,
.product-page .header .search-container,
.product-page .header .category-dropdown-wrapper,
.product-page .header .category-dropdown {
  display: none !important;
}

.header-right .mobile-search-icon {
  display: none;
}

@media (min-width: 768px) {
  .header-right .mobile-search-icon {
    display: flex;
  }
}

.search-box {
  display: flex;
  align-items: center;
  height: 44px;
  width: 100%;
}

@media (min-width: 1025px) {
  .search-box {
    flex: 1;
  }
}

.search-input {
  flex: 1;
  height: 100%;
  padding: 0 16px;
  border: 1px solid #E5E7EB;
  border-right: none;
  border-radius: 10px 0 0 10px;
  outline: none;
  font-size: 0.875rem;
  color: #111827;
  background-color: #FFFFFF;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: #6B7280;
}

.search-btn {
  height: 100%;
  width: 52px;
  background-color: var(--color-brand-orange);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0 10px 10px 0;
  transition: background-color var(--transition-fast);
}

.search-btn:hover {
  background-color: #e24900;
}

.category-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 0 14px;
  min-width: 160px;
  transform: translateX(2cm);
}

.category-dropdown {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #111827;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  padding-right: 20px;
}

.category-dropdown-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid #111827;
  border-bottom: 2px solid #111827;
  pointer-events: none;
}

/* Nav Icons */
.menu-icon, .mobile-search-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-icon, .mobile-search-icon {
    display: none;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: var(--color-brand-orange);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}

.header-action-item:hover {
  color: #FF5E14;
}

.header-action-item .badge {
  position: absolute;
  top: -4px;
  right: 4px;
  background-color: #FF5E14;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Navigation Bar */
.nav-bar {
  background-color: #FFFFFF;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  display: none;
}

@media (min-width: 768px) {
  .nav-bar {
    display: block;
  }
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  height: 44px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-bar-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.2s;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: #FF5E14;
  border-bottom-color: #FF5E14;
}

/* Feature Badges (Trust indicators) */
.features-bar {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-4) var(--spacing-6);
  margin-top: var(--spacing-6);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-4);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: var(--spacing-3);
}

.feature-icon {
  width: 38px;
  height: 38px;
  background-color: #FFF0E6;
  color: var(--color-brand-orange);
  border: 1px solid var(--color-brand-orange-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text-main);
  line-height: 1.2;
}

.feature-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Category Cards */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
  gap: var(--spacing-2);
  text-decoration: none;
  color: inherit;
  
  /* GLOBAL RULE: Reserve safe space to prevent hover/active clipping */
  padding: 16px 8px 32px 8px;
  box-sizing: content-box;
}

@media (min-width: 1024px) {
  .category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
    gap: 0;
  }
  .category-card {
    width: 100%;
    flex: none;
  }
}

.category-img-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: translateZ(0); /* Hardware acceleration */
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

@media (min-width: 768px) {
  .category-img-wrapper {
    width: 120px;
    height: 120px;
  }
}

.category-card:hover .category-img-wrapper {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.category-card.active .category-img-wrapper {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  background-color: #FFFFFF;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.category-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text-main);
  line-height: 1.2;
}

.category-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Product Cards */
/* ═══ Product Grid — 2→3→6 columns ═══ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    overflow: visible;
  }
}

/* ═══ Carousel Container — wraps product-grid with arrow buttons ═══ */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-container .product-grid {
  flex: 1;
  min-width: 0;
}

.carousel-arrow {
  flex-shrink: 0;
  display: none; /* hidden on mobile — swipe works */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #E5E7EB;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, box-shadow 200ms ease;
  color: #374151;
}

.carousel-arrow:hover {
  background: #F9FAFB;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.carousel-arrow:active {
  background: #F3F4F6;
}

@media (min-width: 951px) {
  .carousel-arrow {
    display: flex;
  }
}


/* ═══ Star Ratings — gold stars + count ═══ */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.stars {
  color: #F59E0B;
  font-size: clamp(0.75rem, 1vw + 0.45rem, 0.9375rem);
  letter-spacing: 0.15rem;
  line-height: 1;
}

.rating-count {
  color: #6B7280;
  font-size: clamp(0.7rem, 1vw + 0.4rem, 0.875rem);
  font-weight: 400;
}

.star-icon {
  color: #F59E0B;
  width: 12px;
  height: 12px;
}

/* Footer */
/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
  background-color: var(--color-text-main);
  color: var(--color-text-light);
  padding: 3.5rem 0 0 0;
}

/* ─── FOOTER GRID: mobile-first (stacked) ─── */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-12);
}

/* ─── MOBILE (<768px): reorder stacked columns ─── */
@media (max-width: 767px) {
  .footer-col-contact { order: 1; }
  .footer-nav-group   { order: 2; }
  .footer-col-logo    { order: 3; }

  .footer-grid {
    gap: var(--spacing-12);
  }

  /* ── Contact section ── */
  .footer-col-contact {
    padding-bottom: var(--spacing-4);
  }

  /* ── Nav group: balanced side-by-side ── */
  .footer-nav-group {
    gap: var(--spacing-6);
    padding: 0 var(--spacing-2);
  }

  .footer-col-categories {
    padding-right: var(--spacing-4);
  }

  .footer-col-links {
    padding-left: var(--spacing-4);
  }

  /* ── Branding: perfectly centered ── */
  .footer-col-logo {
    text-align: center;
    padding-top: var(--spacing-4);
  }

  .footer-col-logo .footer-logo {
    justify-content: center;
  }

  .footer-col-logo .footer-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* ─── Contact Us heading: visible only on mobile ─── */
.footer-contact-heading {
  display: none;
}

@media (max-width: 767px) {
  .footer-contact-heading {
    display: block;
    margin-bottom: var(--spacing-6);
  }
}

/* ─── NAV GROUP: side-by-side on all screens ─── */
.footer-nav-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-8);
}

/* ─── TABLET (768–950px): 2-col grid ─── */
@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-12);
  }
  .footer-col-contact, .footer-nav-group, .footer-col-logo {
    order: unset;
  }
  .footer-col-logo {
    text-align: left;
  }
}

/* ─── DESKTOP (951px+): 4-visual-column layout ─── */
@media (min-width: 951px) {
  .footer {
    padding: 4.5rem 0 0 0;
  }

  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3rem;
    margin-bottom: var(--spacing-8);
    align-items: start;
  }

  .footer-col-logo {
    padding-left: 0;
  }

  /* Nav group becomes 2 separate side-by-side columns
     that span grid columns 2 and 3 */
  .footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 2 / 4;
    gap: 3rem;
  }
}

/* ─── LOGO ─── */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  margin-bottom: var(--spacing-4);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-logo {
    justify-content: flex-start;
  }
}

/* ─── FOOTER LOGO ─── */
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--spacing-4);
  justify-content: center;
  transition: opacity 150ms ease;
}

.footer-logo:hover {
  opacity: 0.92;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 185px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .footer-logo {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .footer-logo-img {
    height: 44px;
    max-width: 155px;
  }
}

/* ─── DESCRIPTION ─── */
.footer-desc {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .footer-desc {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ─── NAV TITLES ─── */
.footer-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

/* ─── NAV LINKS ─── */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

@media (min-width: 951px) {
  .footer-links li {
    margin-bottom: 0.75rem;
  }
}

.footer-links a {
  color: #CBD5E1;
  transition: all 180ms ease;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

/* ─── CONTACT LIST ─── */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item:hover .footer-contact-icon {
  color: #FF5A1F;
}

.footer-contact-item:hover .footer-contact-val {
  color: #FFFFFF;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: #64748B;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  transition: color 150ms ease;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
}

.footer-contact-val {
  color: #CBD5E1;
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 150ms ease;
  line-height: 1.5;
}

/* ─── BOTTOM BAR ─── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  color: #64748B;
  font-size: 0.85rem;
}

.footer-credits {
  font-size: 0.85rem;
  color: #64748B;
}

.footer-credits a {
  color: #E2E8F0;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-credits a:hover {
  color: #FF5A1F !important;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #64748B;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-legal a:hover {
  color: #F1F5F9;
}

@media (min-width: 768px) and (max-width: 950px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }

  .footer-bottom p {
    margin: 0;
    padding-left: 0;
    text-align: left;
    flex-shrink: 0;
  }

  .footer-credits {
    text-align: center;
  }

  .footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
  }
}

@media (min-width: 951px) {
  .footer-bottom {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-bottom > p {
    grid-column: 1;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .footer-credits {
    grid-column: 2 / 4;
    text-align: center;
  }

  .footer-legal {
    grid-column: 4;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════════════
   MASTER BREADCRUMB COMPONENT (.site-breadcrumb & universal aliases)
   ══════════════════════════════════════════════════════════════════ */
.site-breadcrumb,
.breadcrumb,
.breadcrumbs,
.putty-breadcrumbs,
.waterproofing-breadcrumbs,
.texture-breadcrumbs,
.tools-breadcrumbs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #64748B !important;
  padding: 14px 0 10px !important;
  margin: 0 0 8px 0 !important;
  list-style: none !important;
  font-family: var(--font-family, 'Poppins', sans-serif) !important;
  letter-spacing: -0.1px !important;
  white-space: normal !important;
}

.site-breadcrumb a,
.breadcrumb a,
.breadcrumbs a,
.putty-breadcrumbs a,
.waterproofing-breadcrumbs a,
.texture-breadcrumbs a,
.tools-breadcrumbs a {
  color: #1E293B !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: color 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

.site-breadcrumb a:hover,
.breadcrumb a:hover,
.breadcrumbs a:hover,
.putty-breadcrumbs a:hover,
.waterproofing-breadcrumbs a:hover,
.texture-breadcrumbs a:hover,
.tools-breadcrumbs a:hover {
  color: var(--color-brand-orange, #FF5722) !important;
  text-decoration: none !important;
}

.site-breadcrumb .sep,
.site-breadcrumb span:not(.current),
.breadcrumb .sep,
.breadcrumbs .sep,
.breadcrumbs span:not(.current),
.putty-breadcrumbs .sep,
.waterproofing-breadcrumbs .sep,
.texture-breadcrumbs .sep,
.tools-breadcrumbs .sep {
  color: #94A3B8 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  user-select: none !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.site-breadcrumb .current,
.site-breadcrumb strong,
.breadcrumb .current,
.breadcrumb span:last-child:not(.sep),
.breadcrumbs .current,
.breadcrumbs strong,
.breadcrumbs span:last-child:not(.sep),
.putty-breadcrumbs .current,
.waterproofing-breadcrumbs .current,
.texture-breadcrumbs .current,
.tools-breadcrumbs .current {
  color: #64748B !important;
  font-weight: 400 !important;
  font-size: 13px !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-whatsapp, #25D366);
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  animation: none;
  background-color: var(--color-whatsapp-hover, #128C7E);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: #fff;
  color: var(--color-text-main);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(10px);
  white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}




/* --- MOBILE FIX #1 – Search Section (<1025px) --- */
/* ROOT CAUSE FIX: The breakpoint was 950px, but phones in landscape have
   viewport widths of 900-1100px, which triggered the desktop inline layout
   and made the search bar appear as a compact pill next to the logo.
   Fix: raised breakpoint to 1024px so ALL phones (portrait + landscape)
   get the full-width stacked mobile layout. */
@media (max-width: 1024px) {
  .header-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 12px 16px !important;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    /* max-width: 100vw; (Causing layout breakage) */
  }
  .header-left {
    width: 100%;
    justify-content: flex-start;
  }
  .menu-icon {
    display: none !important;
  }

  /* ── Search Container: viewport-independent ── */
  .search-container {
    display: flex !important;
    flex-direction: column;
    /* Break out of .header-main 16px padding using negative margins */
    width: auto;
    max-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
    min-width: 0;
    gap: 10px;
    align-self: stretch;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  /* ── Search Box: single continuous pill ── */
  .search-box {
    flex: none;
    width: 100%;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
  }

  /* ── Search Input: fills remaining space ── */
  .search-input {
    flex: 1 1 0%;
    min-width: 0;
    height: 100%;
    font-size: 0.875rem;
    padding: 0 16px;
    color: #111827;
    border: 1px solid #E5E7EB;
    border-right: none;
    border-radius: 10px 0 0 10px;
    outline: none;
    background-color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }
  .search-input::placeholder {
    color: #6B7280;
  }

  /* ── Orange Button: fixed-width, attached right ── */
  .search-btn {
    width: 50px;
    min-width: 50px;
    height: 100%;
    flex: 0 0 50px;
    background-color: var(--color-brand-orange);
    color: white;
    border: none;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
  }

  /* ── Category Dropdown Wrapper: same width as search ── */
  .category-dropdown-wrapper {
    width: 100%;
    height: 46px;
    min-width: unset;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    padding: 0 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    transform: none !important;
  }

  /* ── Category Dropdown Select ── */
  .category-dropdown {
    width: 100%;
    height: 100%;
    font-size: 0.875rem;
    color: #111827;
    font-weight: 500;
    border: none;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 24px;
    box-sizing: border-box;
  }

  /* ── Category Grid (unrelated but inside same breakpoint) ── */
  .category-grid {
    display: flex;
    overflow-x: auto;
    gap: 0; /* Compensate for card padding */
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .category-grid::-webkit-scrollbar {
    display: none;
  }
  .category-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 110px;
    gap: 8px;
  }
  .category-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
  }
  .category-title {
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
  }
}

/* --- Landscape phone safety net (wide viewport but short height) --- */
/* Catches phones with >1024px landscape width (e.g. iPhone Pro Max, Samsung Ultra) */
@media (orientation: landscape) and (max-height: 500px) {
  .header-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    padding: 12px 16px !important;
    gap: 10px !important;
    box-sizing: border-box;
    width: 100% !important;
    /* max-width: 100vw !important; (Causing layout breakage) */
  }
  .search-container {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    max-width: none !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding: 0 16px !important;
    min-width: 0 !important;
    gap: 10px !important;
    align-self: stretch !important;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .search-box {
    width: 100% !important;
    height: 46px !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .search-input {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    height: 100% !important;
    font-size: 0.875rem;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    border-right: none;
    border-radius: 10px 0 0 10px !important;
    background-color: #FFFFFF;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }
  .search-btn {
    width: 50px !important;
    min-width: 50px !important;
    height: 100% !important;
    flex: 0 0 50px !important;
    border-radius: 0 10px 10px 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .category-dropdown-wrapper {
    width: 100% !important;
    height: 46px !important;
    min-width: unset !important;
    border-radius: 10px !important;
    border: 1px solid #E5E7EB;
    padding: 0 16px;
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
    transform: none !important;
  }
  .header-left {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   GLOBAL STANDARDIZED PRODUCT HIGHLIGHT PILLS (TEXT ONLY)
   ========================================================= */
.product-highlights-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}

.product-highlight-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #FFFFFF !important;
  border: 1px solid #F97316 !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #F97316 !important;
  letter-spacing: 0.01em !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.product-highlight-pill:hover {
  background-color: #FFF7ED !important;
  border-color: #EA580C !important;
  color: #EA580C !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Smart Owner Experience Modal / Autocomplete Widget */
.owner-highlight-bar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.owner-highlight-input-group {
  position: relative;
  display: flex;
  gap: 8px;
}

.owner-highlight-input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.875rem;
  outline: none;
}

.owner-highlight-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.owner-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.owner-autocomplete-item {
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
}

.owner-autocomplete-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* =========================================================
   GLOBAL STANDARDIZED COVERAGE GUIDE COMPONENT
   ========================================================= */
.coverage-section {
  background-color: #FDFDFD !important;
  border: 1px solid #F1F5F9 !important;
  border-radius: 12px !important;
  padding: 18px 24px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  margin-top: 24px !important;
}

.coverage-section .section-heading {
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  line-height: 1.2 !important;
}

.coverage-cards {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 48px !important;
  flex-wrap: wrap !important;
}

.cov-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cov-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 36px !important;
}

.cov-icon svg {
  width: 28px !important;
  height: 34px !important;
  display: block !important;
}

.cov-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.cov-title {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.2 !important;
}

.cov-val {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #64748B !important;
  margin-top: 3px !important;
  line-height: 1.2 !important;
}

@media (max-width: 480px) {
  .coverage-section {
    padding: 16px 18px !important;
  }
  .coverage-cards {
    gap: 24px !important;
  }
}

/* =========================================================
   PAGINATION (Universal Sliding Window Component)
   ========================================================= */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 32px;
  width: 100%;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
}

.page-btn:hover:not(:disabled) {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.page-btn:active:not(:disabled) {
  transform: translateY(0);
}

.page-btn-num {
  min-width: 42px;
  font-variant-numeric: tabular-nums;
}

.page-btn-nav {
  color: #475569;
  font-size: 0.88rem;
  padding: 0 14px;
}

.page-btn-prev, .page-btn-next {
  width: 42px;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.page-btn.active {
  border: 2px solid #EA580C;
  color: #EA580C;
  background: #FFF7ED;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.12);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #94A3B8;
  border-color: #E2E8F0;
  background: #F8FAFC;
  box-shadow: none;
  transform: none;
}

@media (max-width: 640px) {
  .pagination {
    gap: 6px;
  }
  
  .page-btn {
    height: 38px;
    min-width: 38px;
    font-size: 0.85rem;
    padding: 0 8px;
  }
  
  .page-btn-nav {
    padding: 0 10px;
    font-size: 0.82rem;
  }
  
  .page-btn-prev, .page-btn-next {
    width: 38px;
  }
}
