/**
 * East Bengal Dry Fish - Custom Brand Design System & Stylesheet
 * FILE: assets/css/style.css
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --eb-green-primary: #0B4935;
  --eb-green-deep: #063B2B;
  --eb-green-dark: #04271D;
  --eb-green-light: #126349;
  --eb-gold-primary: #B77924;
  --eb-gold-light: #D6A84F;
  --eb-gold-pale: #FBF4E2;
  --eb-gold-border: rgba(214, 168, 79, 0.4);
  --eb-cream: #FFFBF2;
  --eb-cream-soft: #F7F3E8;
  --eb-text-dark: #202623;
  --eb-text-body: #3B4440;
  --eb-text-muted: #6E7974;
  --eb-white: #FFFFFF;
  --eb-whatsapp: #25D366;
  --eb-whatsapp-hover: #1EBE5D;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  --shadow-sm: 0 2px 8px rgba(6, 59, 43, 0.06);
  --shadow-md: 0 6px 20px rgba(6, 59, 43, 0.09);
  --shadow-lg: 0 12px 32px rgba(6, 59, 43, 0.14);
  --shadow-gold: 0 6px 20px rgba(183, 121, 36, 0.25);
  --transition: all 0.25s ease-in-out;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--eb-text-body);
  background-color: var(--eb-cream);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  color: var(--eb-green-deep);
  font-weight: 700;
  line-height: 1.25;
}

h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--eb-green-deep);
  font-weight: 600;
}

a {
  color: var(--eb-green-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--eb-gold-primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* Top Announcement / Info Bar */
.top-bar {
  background-color: var(--eb-green-dark);
  color: #D6E3DD;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(214, 168, 79, 0.25);
}
.top-bar a {
  color: #D6E3DD;
}
.top-bar a:hover {
  color: var(--eb-gold-light);
}
.top-bar .separator {
  opacity: 0.35;
  margin: 0 8px;
}

/* Main Navigation */
.navbar-brand img {
  height: 58px;
  width: auto;
  transition: var(--transition);
}
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--eb-gold-light);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  transition: var(--transition);
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--eb-green-deep) !important;
  padding: 8px 16px !important;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background: var(--eb-gold-primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link:hover,
.nav-link.active {
  color: var(--eb-gold-primary) !important;
}

/* WhatsApp Buttons */
.btn-whatsapp {
  background-color: var(--eb-whatsapp);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background-color: var(--eb-whatsapp-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp-outline {
  background-color: transparent;
  color: var(--eb-whatsapp) !important;
  border: 2px solid var(--eb-whatsapp);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.btn-whatsapp-outline:hover {
  background-color: var(--eb-whatsapp);
  color: #FFFFFF !important;
}

/* Floating WhatsApp Quick Action */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  background-color: var(--eb-whatsapp);
  color: #FFFFFF !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  animation: pulse-ring 2.5s infinite;
}
.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-3px);
  color: #FFFFFF !important;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Custom Buttons */
.btn-eb-primary {
  background: linear-gradient(135deg, var(--eb-green-primary), var(--eb-green-deep));
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  padding: 11px 26px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.btn-eb-primary:hover {
  background: linear-gradient(135deg, var(--eb-green-light), var(--eb-green-primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-eb-gold {
  background: linear-gradient(135deg, var(--eb-gold-light), var(--eb-gold-primary));
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  padding: 11px 26px;
  border: none;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}
.btn-eb-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-eb-outline {
  border: 2px solid var(--eb-green-deep);
  color: var(--eb-green-deep) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  padding: 9px 24px;
  background: transparent;
  transition: var(--transition);
}
.btn-eb-outline:hover {
  background: var(--eb-green-deep);
  color: #FFFFFF !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(4, 39, 29, 0.94), rgba(6, 59, 43, 0.88)),
              url('../images/hero-banner-1.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 110px 0 90px;
  overflow: hidden;
  border-bottom: 3px solid var(--eb-gold-primary);
}
.hero-badge {
  display: inline-block;
  background: rgba(214, 168, 79, 0.2);
  border: 1px solid var(--eb-gold-light);
  color: var(--eb-gold-light);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
}
.hero-title span {
  color: var(--eb-gold-light);
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #E2ECE8;
  max-width: 650px;
  margin-bottom: 32px;
  font-weight: 300;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #E2ECE8;
}
.hero-feature-item i {
  color: var(--eb-gold-light);
  font-size: 1.2rem;
}

/* Page Header / Subpage Banner */
.page-header {
  background: linear-gradient(135deg, rgba(4, 39, 29, 0.92), rgba(6, 59, 43, 0.88)),
              url('../images/hero-banner-2.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 60px 0 50px;
  text-align: center;
  border-bottom: 3px solid var(--eb-gold-primary);
}
.page-header h1 {
  color: #FFFFFF;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.page-header p {
  color: #D6E3DD;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-top: 15px;
  color: var(--eb-gold-light);
}
.breadcrumb-custom a {
  color: #D6E3DD;
}
.breadcrumb-custom a:hover {
  color: var(--eb-gold-light);
}

/* Section Headings */
.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}
.section-subtitle {
  font-family: var(--font-heading);
  color: var(--eb-gold-primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.25rem;
  color: var(--eb-green-deep);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--eb-green-primary), var(--eb-gold-primary));
  border-radius: 2px;
}
.section-description {
  color: var(--eb-text-muted);
  max-width: 650px;
  margin: 12px auto 0;
  font-size: 1rem;
}

/* Feature & Trust Badges */
.feature-card {
  background: var(--eb-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--eb-gold-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--eb-gold-primary);
}
.feature-icon-box {
  width: 70px;
  height: 70px;
  background: var(--eb-gold-pale);
  color: var(--eb-gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
  transition: var(--transition);
  border: 1px dashed var(--eb-gold-light);
}
.feature-card:hover .feature-icon-box {
  background: var(--eb-green-deep);
  color: var(--eb-gold-light);
  transform: rotate(10deg);
}
.feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--eb-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Product Card */
.product-card {
  background: var(--eb-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(214, 168, 79, 0.3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--eb-gold-primary);
}
.product-img-wrap {
  position: relative;
  background: #F2EFE8;
  height: 230px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}
.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--eb-gold-light), var(--eb-gold-primary));
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.badge-stock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 59, 43, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--eb-gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.product-title {
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.product-title a {
  color: var(--eb-green-deep);
}
.product-title a:hover {
  color: var(--eb-gold-primary);
}
.product-desc {
  color: var(--eb-text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
  flex-grow: 1;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.spec-pill {
  background: var(--eb-cream);
  border: 1px solid var(--eb-gold-border);
  color: var(--eb-green-primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-footer {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.product-footer .btn-view {
  flex: 1;
  background: var(--eb-cream);
  border: 1px solid var(--eb-gold-border);
  color: var(--eb-green-deep);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 8px 12px;
  text-align: center;
  transition: var(--transition);
}
.product-footer .btn-view:hover {
  background: var(--eb-green-deep);
  color: #FFFFFF;
}
.product-footer .btn-whatsapp-sm {
  flex: 1.3;
  background: var(--eb-whatsapp);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 8px 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.product-footer .btn-whatsapp-sm:hover {
  background: var(--eb-whatsapp-hover);
  transform: translateY(-1px);
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 35px;
}
.filter-pill-btn {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--eb-gold-light);
  background: var(--eb-white);
  color: var(--eb-green-deep);
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill-btn:hover,
.filter-pill-btn.active {
  background: var(--eb-green-deep);
  color: #FFFFFF;
  border-color: var(--eb-green-deep);
  box-shadow: var(--shadow-sm);
}

/* Single Product Detail Page */
.product-gallery-main {
  position: relative;
  background: var(--eb-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--eb-gold-border);
  overflow: hidden;
  /* Square frame — matches typical 1:1 product photos */
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 15px;
}
/* Blurred fill behind the photo, so the frame is never blank on any side.
   Uses a pseudo-element (not a second <img>) — if this stylesheet is ever
   cached or fails to load, nothing extra can appear on the page. */
.product-gallery-main::before {
  content: '';
  position: absolute;
  inset: -10%;
  background-image: var(--gallery-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(24px) saturate(1.1) brightness(0.9);
  z-index: 0;
  pointer-events: none;
}
.product-gallery-main img,
.product-gallery-main .gallery-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  /* contain = full product photo, nothing cropped.
     The blurred layer above fills whatever space is left over. */
  object-fit: contain;
  object-position: center;
  display: block;
}
/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .product-gallery-main {
    height: 480px;
  }
}
.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.product-thumb {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--eb-white);
  transition: var(--transition);
  flex-shrink: 0;
}
.product-thumb.active,
.product-thumb:hover {
  border-color: var(--eb-gold-primary);
  transform: scale(1.04);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-specs {
  background: var(--eb-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--eb-gold-border);
  padding: 24px;
  margin: 25px 0;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
}
.spec-row:last-child {
  border-bottom: none;
}
.spec-label {
  font-weight: 600;
  color: var(--eb-green-deep);
}
.spec-value {
  color: var(--eb-text-body);
}

.weight-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0 25px;
}
.weight-btn {
  border: 2px solid var(--eb-gold-light);
  background: var(--eb-white);
  color: var(--eb-green-deep);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.weight-btn.active,
.weight-btn:hover {
  background: var(--eb-green-deep);
  color: #FFFFFF;
  border-color: var(--eb-green-deep);
}

.trust-badges-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.trust-badge-item {
  text-align: center;
  font-size: 0.8rem;
  color: var(--eb-green-deep);
  font-weight: 600;
}
.trust-badge-item i {
  font-size: 1.5rem;
  color: var(--eb-gold-primary);
  display: block;
  margin-bottom: 4px;
}

/* Process Flow Section */
.process-step {
  text-align: center;
  position: relative;
}
.process-step-number {
  width: 48px;
  height: 48px;
  background: var(--eb-green-deep);
  color: var(--eb-gold-light);
  border: 2px solid var(--eb-gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.process-step h5 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--eb-text-muted);
}

/* Clean Form Controls */
.form-control, .form-select {
  border: 1px solid rgba(214, 168, 79, 0.4);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #FFFFFF;
}
.form-control:focus, .form-select:focus {
  border-color: var(--eb-gold-primary);
  box-shadow: 0 0 0 4px rgba(183, 121, 36, 0.15);
}

/* Global Footer */
.site-footer {
  background-color: #063B2B;
  color: #D6E3DD;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--eb-gold-primary);
  margin-top: auto;
}

/* Background Waves Artwork with Adjustable Opacity */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/footer-waves.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  opacity: 0.70; /* Opacity: 0.5 to 1.0 (easily adjustable) */
  pointer-events: none;
  z-index: 0;
}

.footer-main {
  padding: 65px 0 50px;
  position: relative;
  z-index: 1;
}
.footer-logo {
  max-height: 65px;
  margin-bottom: 20px;
}
.footer-about {
  font-size: 0.9rem;
  color: #B5C6BF;
  line-height: 1.7;
}
.footer-title {
  color: var(--eb-gold-light);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--eb-gold-primary);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #D6E3DD;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--eb-gold-light);
  transform: translateX(4px);
}
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #D6E3DD;
}
.footer-contact-item i {
  color: var(--eb-gold-light);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-bottom {
  background: rgba(1, 35, 22, 0.45);
  backdrop-filter: blur(4px);
  padding: 18px 0;
  border-top: 1px solid rgba(214, 168, 79, 0.2);
  font-size: 0.85rem;
  color: #B5C6BF;
  position: relative;
  z-index: 1;
}


/* ========================================================
   GLOBAL OVERFLOW GUARDS  (fixes horizontal scroll on mobile)
   ======================================================== */
img, svg, video, canvas, iframe, embed, object {
  max-width: 100%;
}
iframe {
  display: block;
  border: 0;
}
pre, code, table {
  max-width: 100%;
  overflow-x: auto;
}
h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, label, strong, em {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* NOTE: never set max-width on .container — Bootstrap uses that property to
   centre the layout (540/720/960/1140/1320px). Overriding it makes every page
   go full-bleed edge to edge. Only .container-fluid is capped here. */
.container-fluid {
  max-width: 100%;
}
/* Flex/grid children need min-width:0 or long content forces the track wider
   than the viewport — this is the real cause of side-scroll, not the container */
.row > * {
  min-width: 0;
}
main, section, footer {
  max-width: 100%;
}

/* Utility classes used across the site */
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-md) !important; }

/* ========================================================
   RESPONSIVE — TABLET (<= 991.98px)
   ======================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-section {
    padding: 70px 0 60px;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .navbar-nav {
    padding: 12px 0;
  }
  .nav-link {
    padding: 10px 0 !important;
  }
  .nav-link::after {
    left: 0;
    right: auto;
    width: 34px;
  }
  /* WhatsApp button inside the collapsed menu should be full width */
  .navbar-collapse .d-flex {
    width: 100%;
  }
  .navbar-collapse .btn-whatsapp {
    width: 100%;
    justify-content: center;
    margin-bottom: 6px;
  }
  .product-gallery-main {
    max-height: 480px;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .page-header {
    padding: 45px 0 40px;
  }
  .page-header h1 {
    font-size: 2rem;
  }
}

/* ========================================================
   RESPONSIVE — MOBILE (<= 767.98px)
   ======================================================== */
@media (max-width: 767.98px) {
  body {
    font-size: 0.95rem;
  }
  .hero-section {
    padding: 48px 0 44px;
    background-attachment: scroll;
  }
  .hero-title {
    font-size: 2.05rem;
    line-height: 1.2;
  }
  .hero-badge {
    font-size: 0.68rem;
    letter-spacing: 1.6px;
    padding: 5px 13px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero-section .btn,
  .hero-section .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .hero-features {
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
  }
  .hero-feature-item {
    font-size: 0.84rem;
    width: 100%;
  }

  .page-header {
    padding: 36px 0 32px;
  }
  .page-header h1 {
    font-size: 1.65rem;
  }
  .page-header p {
    font-size: 0.94rem;
  }
  .breadcrumb-custom {
    flex-wrap: wrap;
    font-size: 0.78rem;
  }

  .section-title-wrap {
    margin-bottom: 30px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-description {
    font-size: 0.92rem;
  }

  .feature-card {
    padding: 24px 18px;
  }
  .feature-icon-box {
    width: 60px;
    height: 60px;
    font-size: 25px;
  }

  .product-img-wrap {
    height: 200px;
  }
  .product-body {
    padding: 16px;
  }
  .product-title {
    font-size: 1.1rem;
  }
  .product-footer {
    flex-wrap: wrap;
  }
  .product-footer .btn-view,
  .product-footer .btn-whatsapp-sm {
    flex: 1 1 100%;
    font-size: 0.82rem;
  }

  /* Product detail page */
  .product-gallery-main {
    max-height: none;
  }
  .product-detail-specs {
    padding: 18px;
  }
  .spec-row {
    flex-direction: column;
    gap: 2px;
  }
  .spec-value {
    font-size: 0.88rem;
  }
  .trust-badges-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .trust-badge-item {
    font-size: 0.68rem;
    line-height: 1.3;
  }
  .trust-badge-item i {
    font-size: 1.25rem;
  }
  .weight-btn {
    padding: 7px 14px;
    font-size: 0.88rem;
  }

  /* Tabs on the product page must scroll, not overflow the page */
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tabs .nav-link {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 8px 12px !important;
  }

  /* Category filter pills */
  .filter-pills {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 22px;
  }
  .filter-pill-btn {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  /* Footer */
  .footer-main {
    padding: 42px 0 34px;
  }
  .footer-title {
    margin-bottom: 14px;
    font-size: 0.98rem;
  }
  .footer-bottom {
    text-align: center;
  }
  .footer-bottom .text-md-start,
  .footer-bottom .text-md-end {
    text-align: center !important;
  }

  /* Floating WhatsApp button — smaller so it doesn't overlap content */
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 16px;
    right: 16px;
  }

  /* Google map embed */
  .map-embed {
    height: 280px;
  }
}

/* ========================================================
   RESPONSIVE — SMALL PHONES (<= 575.98px)
   ======================================================== */
@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 46px;
  }
  .navbar {
    padding: 8px 0;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.42rem;
  }
  .display-4, .display-5, .display-6 {
    font-size: 1.6rem !important;
  }
  .lead {
    font-size: 1rem;
  }
  .product-img-wrap {
    height: 185px;
  }
  .btn-eb-primary,
  .btn-eb-gold,
  .btn-eb-outline,
  .btn-whatsapp,
  .btn-whatsapp-outline {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
  /* Stop over-large paddings from creating side scroll */
  .p-5 { padding: 1.5rem !important; }
  .px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .rounded-4 { border-radius: 12px !important; }
}
