/* Responsive behavior */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  .site-main { padding-top: var(--header-height-mobile); }
  section[id], main [id] { scroll-margin-top: calc(var(--header-height-mobile) + 20px); }
}

@media (max-width: 1180px) {
  .desktop-nav, .header-actions .desktop-cta { display: none; }
  .mobile-toggle, .mobile-menu-toggle { display: inline-grid; }
  .header-inner { min-height: var(--header-height-mobile); }
  .page-hero-grid, .product-hero-grid { grid-template-columns: 1fr; width: 100%; max-width: 100%; min-width: 0; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1025px) {
  .home-hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding-block: clamp(72px, 8vw, 120px);
  }
  .home-hero .container,
  .hero-container {
    width: min(100% - 48px, var(--container-xl));
    max-width: var(--container-xl);
    margin-inline: auto;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .hero-copy,
  .hero-content {
    max-width: 680px;
    min-width: 0;
  }
  .home-hero .hero-title {
    font-size: clamp(3.4rem, 5.2vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 720px;
    overflow-wrap: normal;
  }
  html[dir="rtl"] .home-hero .hero-title {
    letter-spacing: -0.02em;
  }
  .home-hero .hero-subtitle {
    max-width: 620px;
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
    line-height: 1.8;
  }
  .hero-visual {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    min-height: 560px;
    margin-inline-start: auto;
    overflow: visible;
  }
  .dashboard-card,
  .hero-panel {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    overflow: visible;
  }
}
@media (max-width: 1024px) {
  .home-hero .container,
  .hero-container {
    width: min(100% - 24px, 100%);
    max-width: 100%;
    margin-inline: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .hero-copy, .hero-content, .hero-visual, .dashboard-card, .hero-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-grid {
    gap: 1.8rem;
  }
  .hero-visual {
    min-height: 520px;
    margin-inline: auto;
    overflow: hidden;
  }
}
@media (max-width: 920px) {
  .section-head, .cta-band, .filter-row, .footer-bottom { display: grid; align-items: start; }
  .section-actions { justify-content: start; }
  .trust-grid, .four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-grid, .two-grid, .split-layout, .contact-layout, .article-layout, .product-detail-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .hero-metrics { grid-template-columns: repeat(3, minmax(180px, 1fr)); max-width: 100%; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x proximity; }
  .hero-metrics .metric { min-width: 180px; scroll-snap-align: start; }
  .form-grid { grid-template-columns: 1fr; }
  .newsletter-mini, .search-filter { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; max-width: 680px; }
  .dashboard-card { inset: 6% 3% auto 3%; min-height: 360px; padding: 1rem; }
  .floating-card { margin-top: 0; padding: .78rem .88rem; max-width: 176px; }
}
@media (max-width: 720px) {
  .container, .container-narrow { width: min(100% - 1.25rem, var(--container-xl)); }
  .brand-subtitle { display: none; }
  .brand-logo { width: 38px; height: 38px; }
  .header-actions { gap: .4rem; }
  .header-actions .icon-button { width: 40px; height: 40px; }
  .hero, .home-hero { padding-top: 2.8rem; overflow: hidden; }
  .hero-grid { gap: 1.25rem; grid-template-columns: 1fr; width: 100%; max-width: 100%; min-width: 0; }
  .hero-copy, .hero-content, .hero-visual, .hero-metrics, .visual-grid, .visual-list, .dashboard-card, .hero-panel, .floating-card { max-width: 100%; min-width: 0; }
  .hero h1, .home-hero .hero-title, .page-hero h1, .article-hero h1, .category-hero h1, .product-hero h1 { font-size: clamp(2.2rem, 10vw, 3.25rem); overflow-wrap: anywhere; word-break: normal; }
  .hero-lead, .hero-subtitle { max-width: 100%; overflow-wrap: anywhere; }
  .hero-actions, .card-actions { display: grid; width: 100%; }
  .hero-actions .btn, .card-actions .btn, .cta-band .btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  .four-grid, .three-grid, .two-grid, .auto-grid { grid-template-columns: 1fr; }
  .trust-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 78vw); overflow-x: auto; padding-bottom: .3rem; }
  .filter-chips, .search-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; scroll-snap-type: x proximity; }
  .filter-chip, .search-chip { scroll-snap-align: start; }
  .hero-metrics { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; gap: .75rem; }
  .hero-metrics .metric { min-width: 0; }
  .hero-visual { min-height: 0; padding: .2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
  .dashboard-card { position: relative; inset: auto; min-height: 0; grid-column: 1 / -1; padding: .92rem; }
  .floating-card { position: relative; inset: auto; max-width: 100%; padding: .68rem .75rem; }
  .float-c { grid-column: 1 / -1; }
  .visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
  .visual-panel { min-height: 118px; padding: .85rem; }
  .visual-panel strong { font-size: 1.02rem; }
  .visual-row { flex-wrap: wrap; }
  .category-body, .product-body, .news-body { padding: 1rem; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { justify-items: start; }
  .product-gallery { gap: .75rem; }
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-note-grid, .featured-news-card { grid-template-columns: 1fr; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: .35rem; }
  .spec-table td { padding-top: .35rem; }
  .search-modal { padding: .75rem; place-items: end center; }
  .search-dialog { max-height: calc(100dvh - 1.5rem); overflow: auto; }
  .floating-actions { inset-block-end: .75rem; }
}
@media (max-width: 460px) {
  .header-inner { gap: .5rem; }
  .brand-name { font-size: .98rem; }
  .icon-button { width: 40px; height: 40px; }
  .header-actions .language { display: none; }
  .mobile-drawer { width: calc(100vw - 1rem); inset-block: .5rem; max-height: calc(100dvh - 1rem); }
  html[dir="ltr"] .mobile-drawer { right: .5rem; }
  html[dir="rtl"] .mobile-drawer { left: .5rem; }
  .mobile-actions { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr; min-height: 0; }
  .dashboard-card { min-height: 0; }
  .visual-grid { grid-template-columns: 1fr; }
  .floating-card { max-width: 100%; padding: .58rem .62rem; }
  .floating-card span { display: none; }
  .hero-metrics .metric { padding: .9rem; min-width: 0; }
  .page-hero, .article-hero, .category-hero, .product-hero { padding-top: 3rem; }
  .hero h1, .home-hero .hero-title, .page-hero h1, .article-hero h1, .category-hero h1, .product-hero h1 { font-size: clamp(2rem, 12vw, 2.7rem); line-height: 1.08; max-width: 100%; overflow-wrap: anywhere; }
  .cta-band { padding: 1.2rem; }
  .gallery-thumbs { gap: .45rem; }
  .whatsapp-button, .back-to-top { width: 46px; height: 46px; }
}
.whatsapp-button{
  padding: 8px;
}
