/* ============================================================
   Sarweshwar Industries — final responsive and no-crop fixes
   Loaded last on every page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; width: 100%; max-width: 100%; overflow-x: hidden; background: #fff; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
button, .menu-toggle { touch-action: manipulation; }

/* Long text must never force horizontal scrolling. */
.top-email, .top-email span, .top-email a,
.si-footer__contact-item, .si-footer__contact-item a,
.info-content, .info-content a, .contact-panel-desc,
.pd-name, .related-card__name { overflow-wrap: anywhere; word-break: break-word; }

/* Header */
.top-bar { width: 100%; padding-inline: clamp(14px, 3vw, 36px); gap: 14px; flex-wrap: wrap; }
.main-header { width: 100%; padding-inline: clamp(14px, 3vw, 34px); }
.main-header-inner { width: 100%; max-width: 1240px; min-width: 0; }
.logo-placeholder { min-width: 0; }
.logo-placeholder img { width: auto; max-width: min(260px, 34vw); object-fit: contain; }
.nav-right { min-width: 0; margin-left: auto; }
.nav { margin: 0; padding: 0; }
.menu-toggle { border-radius: 6px; }
.menu-toggle:focus-visible { outline: 3px solid rgba(198,40,40,.25); outline-offset: 3px; }

/* Home banner: preserve the complete original artwork on every screen. */
.slider-wrapper { width: 100%; background: #171717; }
.slider-track { align-items: flex-start; }
.slide { min-width: 100%; width: 100%; background: #171717; }
.slide img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 1920 / 700;
  object-fit: contain !important;
  object-position: center;
  opacity: 1;
  background: #171717;
}
.slider-btn { top: 50%; }

/* Inner page banner: complete Aboutpage.jpg visible without side crop. */
.sh-backimage, .ab-backimage {
  width: 100%;
  height: clamp(150px, 16.92vw, 300px) !important;
  min-height: 150px;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #efe8de;
}
.sh-container, .ab-container { min-width: 0; }
.sh-h1-wrap h1, .ab-h1-wrap h1 {
  font-size: clamp(24px, 3.4vw, 48px) !important;
  padding: clamp(9px, 1.2vw, 16px) clamp(18px, 3vw, 48px) !important;
  margin-left: clamp(12px, 3.5vw, 50px) !important;
  max-width: calc(100vw - 24px);
  line-height: 1.2;
}

/* Home about section */
.about-section { width: 100%; max-width: 1248px; margin: 40px auto; padding-inline: clamp(16px, 3vw, 24px); }
.about-wrapper { width: 100%; min-width: 0; align-items: stretch; }
.about-image-panel {
  height: auto !important;
  min-height: 520px;
  margin-top: 0 !important;
  background: #f4f1ec;
}
.about-image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  padding: clamp(10px, 2vw, 22px);
  opacity: 1;
}
.about-content-panel { min-width: 0; }
.stats-row, .brands-row { flex-wrap: wrap; }

/* Every product/artwork image stays fully visible. */
.si-product-card__img-wrap,
.card-img,
.si-dfm-card__img-wrap,
.img-wrap,
.related-card__img,
.pd-main-img-wrap,
.pd-thumb,
.ab-aboutimage {
  background: #f7f5f1;
}
.si-product-card__img-wrap img,
.card-img img,
.si-dfm-card__img-wrap img,
.img-wrap img,
.related-card__img img,
.pd-main-img-wrap img,
.pd-thumb img,
.ab-aboutimage img {
  object-fit: contain !important;
  object-position: center !important;
}
.si-product-card__img-wrap img, .card-img img { padding: 12px; }
.si-product-card__img-wrap { height: auto; aspect-ratio: 1 / 1; }
.card-img { aspect-ratio: 1 / 1; }
.si-dfm-card__img-wrap { height: auto; aspect-ratio: 3 / 4; }

/* Decorative section backgrounds should not distort. */
.si-dfm1, .si-dfm2 {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Dealers map */
.dealers {
  width: 100%;
  height: auto !important;
  min-height: 0;
  margin-top: 0;
  padding: clamp(32px, 5vw, 64px) 20px;
}
.dealers img { width: min(100%, 800px); height: auto; max-height: none; object-fit: contain; }

/* Shop */
.shop-section { width: 100%; padding-inline: clamp(12px, 2.5vw, 24px); }
.grid { width: 100%; min-width: 0; }
.card, .card-body { min-width: 0; }
.img-wrap img { position: absolute; inset: 0; }

/* Product detail */
.breadcrumb { width: 100%; }
.breadcrumb-inner { padding-inline: clamp(16px, 4vw, 24px); min-width: 0; flex-wrap: wrap; }
.product-detail {
  width: calc(100% - 32px);
  max-width: 1200px;
  min-width: 0;
  overflow: hidden;
}
.pd-gallery, .pd-info { min-width: 0; }
.pd-main-img-wrap { width: 100%; aspect-ratio: 1 / 1; height: auto; }
.pd-main-img-wrap img { width: 100%; height: 100%; padding: clamp(12px, 3vw, 28px); }
.pd-thumbs, .pd-tab-btns, .pd-trust, .pd-price-row, .pd-total-row { min-width: 0; flex-wrap: wrap; }
.pd-actions button { width: 100%; }
.related-section { width: 100%; max-width: 1248px; padding-inline: clamp(16px, 3vw, 24px); }
.related-grid { min-width: 0; }

/* About page */
.ab-row { min-width: 0; }
.ab-col-6 { min-width: 0; }
.ab-aboutimage { height: auto !important; min-height: 0; aspect-ratio: 4 / 3; }
.ab-aboutimage img { width: 100%; height: 100% !important; min-height: 0; padding: 10px; }

/* Contact */
.contact-grid, .contact-info-panel, .contact-form-panel, .form-row { min-width: 0; }
.form-group input, .form-group textarea { max-width: 100%; }
.map-section iframe { width: 100%; min-height: 320px; }

/* Footer */
.si-footer { width: 100%; overflow: hidden; }
.si-footer__main { padding-inline: clamp(20px, 5vw, 48px); }
.si-footer__grid { width: 100%; min-width: 0; }
.si-footer__bg { background-position: center; }

@media (max-width: 1100px) {
  .btn-login { display: none; }
  .nav li a { padding-inline: 9px; }
}

@media (max-width: 900px) {
  .about-wrapper { grid-template-columns: 1fr; }
  .about-image-panel { min-height: clamp(300px, 70vw, 520px); }
  .si-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
  .si-footer__grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-header { position: sticky; top: 0; }
  .main-header-inner { height: 72px !important; }
  .logo-placeholder img,
  .main-header.scrolled .logo-placeholder img { height: 54px; max-width: min(230px, 62vw); }
  .nav-right { margin-left: auto; }
  .nav, .nav-icons, .btn-login { display: none; }
  .menu-toggle { display: flex; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 3px solid #c62828;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 8px 0;
    z-index: 999;
  }
  .nav.active li { width: 100%; }
  .nav.active li a { width: 100%; padding: 12px 22px; white-space: normal; border-bottom: 1px solid #f2f2f2; }
  .nav.active .dropdown { display: none; position: static; min-width: 0; padding-left: 0; background: #fff8f8; box-shadow: none; border: 0; }
  .nav.active li.submenu-open .dropdown { display: block; }
  .nav.active li.submenu-open > a > i { transform: rotate(180deg); }
  .nav.active li > a > i { margin-left: auto; transition: transform .2s ease; }
}

@media (max-width: 768px) {
  .top-bar { justify-content: center; text-align: center; padding-block: 7px; }
  .top-email { width: 100%; justify-content: center; }
  .slider-btn { width: 36px; height: 36px; }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .slider-dots { bottom: 8px; gap: 7px; }
  .dot { width: 8px; height: 8px; }
  .about-content-panel { padding: 32px 22px; }
  .stats-row { justify-content: center; }
  .stat-divider { display: none; }
  .products-grid { padding-inline: 14px; }
  .si-dfm__grid { padding-inline: 14px; }
  .si-dfm-card__img-wrap { max-height: 620px; }
  .dealers { padding-inline: 14px; }
  .contact-container { padding-inline: 14px; }
  .product-detail { width: calc(100% - 24px); margin: 18px auto; }
  .pd-gallery, .pd-info { padding: 22px 16px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .si-footer__main { padding-top: 48px; padding-bottom: 40px; }
}

@media (max-width: 560px) {
  .top-social { display: none; }
  .main-header-inner { height: 66px !important; }
  .logo-placeholder img,
  .main-header.scrolled .logo-placeholder img { height: 48px; max-width: 72vw; }
  .nav.active { max-height: calc(100vh - 66px); }
  .slide img { min-height: 0; }
  .slider-btn { width: 30px; height: 30px; font-size: 13px; }
  .about-section { margin-block: 24px; }
  .about-image-panel { min-height: 300px; }
  .about-title { font-size: clamp(1.7rem, 8vw, 2rem); }
  .stats-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .brands-row { align-items: flex-start; }
  .brand-title { width: 100%; }
  .si-products { padding: 42px 14px; }
  .si-product-card__img-wrap { aspect-ratio: 1 / 1; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .card-title h3 { font-size: 12px; overflow-wrap: anywhere; }
  .si-dfm__topbar { margin-bottom: 28px; padding-inline: 14px; }
  .si-dfm__topbar h2 { font-size: 1.15rem; }
  .si-testimonials { padding-inline: 8px; }
  .si-testimonials__slider-outer { gap: 2px; }
  .si-testimonials__arrow { width: 34px; height: 34px; flex: 0 0 34px; }
  .sh-h1-wrap h1, .ab-h1-wrap h1 { margin-left: 10px !important; }
  .ab-container { padding-inline: 14px; }
  .ab-aboutimage, .ab-aboutimage img { min-height: 0; }
  .pd-trust { grid-template-columns: 1fr; }
  .pd-tab-btn { padding-inline: 12px; }
  .related-card__body { padding-inline: 10px; }
  .si-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .si-footer__grid > :last-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .top-email { font-size: 11px; }
  .top-email a { font-size: 12px; }
  .products-grid, .grid { grid-template-columns: 1fr; }
  .card-img, .img-wrap { aspect-ratio: 1 / 1; }
  .related-grid { grid-template-columns: 1fr; }
  .pd-name { font-size: 20px; }
  .pd-price-new { font-size: 24px; }
  .pd-tab-btns { gap: 0; }
  .pd-tab-btn { flex: 1; padding-inline: 6px; }
  .contact-info-panel, .contact-form-panel { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
