.age-modal {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(201, 31, 54, 0.2), transparent 34%),
    rgba(5, 10, 22, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 9999;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.age-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

body.age-modal-open {
  overflow: hidden;
}

.age-box {
  position: relative;
  overflow: hidden;
  width: min(100%, 460px);
  padding: 34px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(13, 30, 72, 0.96), rgba(29, 42, 80, 0.94) 55%, rgba(150, 28, 61, 0.94)),
    #0d1e48;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.age-modal.is-visible .age-box {
  transform: translateY(0) scale(1);
}

.age-box::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

.age-box > * {
  position: relative;
  z-index: 1;
}

.age-logo {
  display: block;
  width: 92px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.age-box h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.age-box p {
  margin: 0 auto 22px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.age-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.age-points span {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.age-points i {
  color: #fff;
}

.age-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.age-buttons button {
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.age-buttons button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

#enterSite {
  background: linear-gradient(135deg, #c91f36, #233f8c);
  color: white;
  box-shadow: 0 14px 32px rgba(201, 31, 54, 0.28);
}

#exitSite {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 520px) {
  .age-box {
    padding: 26px 18px;
  }

  .age-logo {
    width: 78px;
  }

  .age-points {
    grid-template-columns: 1fr;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  background: #0a1f44;
  color: white;

  padding: 15px 20px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  width: 90%;
  max-width: 600px;

  z-index: 9999;
}

/* TEXT */
.cookie-banner p {
  font-size: 14px;
  flex: 1;
}

/* BUTTONS */
.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  white-space: nowrap;
}

#acceptCookies {
  background: var(--red);
  color: white;
}

#rejectCookies {
  background: white;
  color: black;
}

/* ===== MOBILE FIX  ===== */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-buttons button {
    flex: 1;
  }
}

/* ===== GLOBAL DESKTOP LAYOUT FIX ===== */

:root {
  --site-max-width: 1180px;
  --site-padding: 24px;
}

/* Main page wrapper */
body {
  background: #f8faff;
}

/* Make common page containers wider */
.container,
.page-container,
.section-container,
.home-container,
.shop-container,
.products-container,
.contact-container,
.admin-container {
  width: min(100% - 48px, var(--site-max-width));
  margin-left: auto;
  margin-right: auto;
}

/* Make sections breathe better */
section {
  margin-left: auto;
  margin-right: auto;
}

/* Desktop spacing */
@media (min-width: 1024px) {
  main {
    width: min(100% - 48px, var(--site-max-width));
    margin-left: auto;
    margin-right: auto;
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Mobile safety */
@media (max-width: 768px) {
  main,
  .container,
  .page-container,
  .section-container,
  .home-container,
  .shop-container,
  .products-container,
  .contact-container,
  .admin-container {
    width: min(100% - 28px, var(--site-max-width));
  }
} /* ===== GLOBAL DESKTOP LAYOUT FIX ===== */

:root {
  --site-max-width: 1180px;
  --site-padding: 24px;
}

/* Main page wrapper */
body {
  background: #f8faff;
}

/* Make common page containers wider */
.container,
.page-container,
.section-container,
.home-container,
.shop-container,
.products-container,
.contact-container,
.admin-container {
  width: min(100% - 48px, var(--site-max-width));
  margin-left: auto;
  margin-right: auto;
}

/* Make sections breathe better */
section {
  margin-left: auto;
  margin-right: auto;
}

/* Desktop spacing */
@media (min-width: 1024px) {
  main {
    width: min(100% - 48px, var(--site-max-width));
    margin-left: auto;
    margin-right: auto;
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Mobile safety */
@media (max-width: 768px) {
  main,
  .container,
  .page-container,
  .section-container,
  .home-container,
  .shop-container,
  .products-container,
  .contact-container,
  .admin-container {
    width: min(100% - 28px, var(--site-max-width));
  }
}

/* ===== CONTACT PAGE FIX ===== */

.contact-page {
  width: min(100% - 48px, 1180px);
  margin: 48px auto 80px;
}

.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 42px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(9, 31, 77, 0.9), rgba(180, 18, 50, 0.78)),
    url("/images/logo/snus-village-logo.webp");
  background-size: 360px, 260px;
  background-position:
    center,
    right 40px center;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: 0 24px 70px rgba(9, 31, 77, 0.16);
}

.contact-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.contact-copy p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #123b8a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130px;
  padding: 24px;
  border-radius: 24px;
  color: #061633;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(9, 31, 77, 0.08);
}

.contact-card span {
  margin-bottom: 10px;
  color: #123b8a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 20px;
}

.contact-alert {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 800;
}

.contact-alert.success {
  color: #14532d;
  background: #dcfce7;
}

.contact-alert.error {
  color: #7f1d1d;
  background: #fee2e2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 32px;
}

.contact-form,
.store-locations {
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(9, 31, 77, 0.09);
  border: 1px solid rgba(9, 31, 77, 0.08);
}

.contact-form h2,
.store-locations h2 {
  margin: 14px 0 22px;
  color: #061633;
  font-size: 32px;
  line-height: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #061633;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(9, 31, 77, 0.16);
  border-radius: 14px;
  font: inherit;
  background: #f8faff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #123b8a;
  box-shadow: 0 0 0 4px rgba(18, 59, 138, 0.08);
}

.contact-form button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  color: #fff;
  background: linear-gradient(135deg, #123b8a, #b41232);
  font-weight: 900;
  cursor: pointer;
}

.store-locations {
  display: grid;
  gap: 18px;
}

.store-card {
  overflow: hidden;
  border-radius: 22px;
  background: #f8faff;
  border: 1px solid rgba(9, 31, 77, 0.08);
}

.store-card iframe {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
}

.store-card div {
  padding: 18px;
}

.store-card h3 {
  margin: 0 0 6px;
  color: #061633;
}

.store-card p {
  margin: 0;
  color: #465a7a;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact-page {
    width: min(100% - 28px, 1180px);
    margin-top: 24px;
  }

  .contact-hero,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding: 26px;
  }

  .contact-copy h1 {
    font-size: 46px;
  }
}

/* ===== GLOBAL RESPONSIVE SCALE FIX ===== */

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

/* Stop sections from stretching or collapsing weirdly */
main,
section,
.container,
.page-container,
.section-container,
.contact-page,
.product-page,
.products-page,
.home-page {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Give all main content safe desktop padding */
main {
  width: min(100% - 48px, 1180px);
}

/* Prevent images/cards from forcing bad widths */
img,
video,
iframe {
  max-width: 100%;
}

/* Better desktop scaling */
@media (min-width: 1200px) {
  main {
    width: min(100% - 64px, 1180px);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  main {
    width: min(100% - 36px, 100%);
  }
}

/* Mobile */
@media (max-width: 768px) {
  main {
    width: min(100% - 24px, 100%);
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }
}
/* ===== STABLE CONTACT PAGE FIX ===== */

.contact-page,
main .contact-page {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin: 48px auto 90px !important;
  padding: 0 !important;
  display: block !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.contact-page * {
  box-sizing: border-box;
}

.contact-hero {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border-radius: 32px !important;
  background: #ffffff !important;
  border: 1px solid rgba(9, 31, 77, 0.08) !important;
  box-shadow: 0 24px 70px rgba(9, 31, 77, 0.12) !important;
}

.contact-copy {
  min-width: 0 !important;
  padding: 54px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #071f52, #b51234) !important;
}

.contact-copy .eyebrow {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #123b8a !important;
}

.contact-copy h1 {
  margin: 18px 0 20px !important;
  color: #ffffff !important;
  font-size: clamp(48px, 5vw, 76px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.06em !important;
  max-width: 520px !important;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  max-width: 520px !important;
}

.contact-cards {
  min-width: 0 !important;
  width: 100% !important;
  padding: 34px !important;
  display: grid !important;
  gap: 18px !important;
  background: #ffffff !important;
}

.contact-card {
  width: 100% !important;
  min-height: 120px !important;
  padding: 26px !important;
  border-radius: 24px !important;
  background: #f8faff !important;
  border: 1px solid rgba(9, 31, 77, 0.1) !important;
  color: #061633 !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.contact-card span {
  display: block !important;
  margin-bottom: 10px !important;
  color: #123b8a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.contact-card strong {
  color: #061633 !important;
  font-size: 21px !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
}

.contact-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) !important;
  gap: 28px !important;
  margin-top: 32px !important;
}

.contact-form,
.store-locations {
  width: 100% !important;
  padding: 34px !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  border: 1px solid rgba(9, 31, 77, 0.08) !important;
  box-shadow: 0 18px 55px rgba(9, 31, 77, 0.08) !important;
}

.contact-form h2,
.store-locations h2 {
  margin: 14px 0 24px !important;
  color: #061633 !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

.form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

.contact-form label {
  display: grid !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  color: #061633 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.contact-form input,
.contact-form textarea {
  width: 100% !important;
  padding: 14px 15px !important;
  border: 1px solid rgba(9, 31, 77, 0.16) !important;
  border-radius: 14px !important;
  background: #f8faff !important;
  font: inherit !important;
  outline: none !important;
}

.contact-form button {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 15px 24px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #123b8a, #b41232) !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.store-locations {
  display: grid !important;
  gap: 18px !important;
}

.store-card {
  overflow: hidden !important;
  border-radius: 22px !important;
  background: #f8faff !important;
  border: 1px solid rgba(9, 31, 77, 0.08) !important;
}

.store-card iframe {
  width: 100% !important;
  height: 210px !important;
  border: 0 !important;
  display: block !important;
}

.store-card div {
  padding: 18px !important;
}

.store-card h3 {
  margin: 0 0 6px !important;
  color: #061633 !important;
}

.store-card p {
  margin: 0 !important;
  color: #465a7a !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .contact-page,
  main .contact-page {
    width: min(100% - 28px, 1180px) !important;
    margin-top: 24px !important;
  }

  .contact-hero,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-copy,
  .contact-cards,
  .contact-form,
  .store-locations {
    padding: 26px !important;
  }

  .contact-copy h1 {
    font-size: 44px !important;
  }
}
/* ===== PRODUCT DETAIL PAGE FIX ===== */

.product-detail-page {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin: 48px auto 90px !important;
}

.product-detail-page * {
  box-sizing: border-box;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 44px;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(9, 31, 77, 0.08);
  box-shadow: 0 24px 70px rgba(9, 31, 77, 0.1);
}

.product-gallery {
  min-width: 0;
}

.product-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(18, 59, 138, 0.08), transparent 58%), #f8faff;
}

.product-main-image img {
  width: min(100%, 520px);
  max-height: 520px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 35px rgba(9, 31, 77, 0.14));
}

.product-image-placeholder {
  color: #6b7893;
  font-weight: 900;
}

.product-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.product-thumbnails img {
  width: 72px;
  height: 72px;
  padding: 6px;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid #d71234;
  background: #ffffff;
}

.product-info-panel {
  min-width: 0;
}

.product-brand {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #123b8a;
  background: rgba(18, 59, 138, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-info-panel h1 {
  margin: 0 0 12px;
  color: #061633;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: capitalize;
}

.product-rating {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #f5b400;
  font-size: 20px;
  font-weight: 900;
}

.product-rating small {
  color: #123b8a;
  font-size: 14px;
}

.product-description {
  margin: 0 0 22px;
  max-width: 520px;
  color: #465a7a;
  font-size: 16px;
  line-height: 1.7;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.product-meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #f8faff;
  border: 1px solid rgba(9, 31, 77, 0.08);
}

.product-meta-grid span {
  display: block;
  margin-bottom: 7px;
  color: #6b7893;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-meta-grid strong {
  color: #061633;
  font-size: 15px;
}

.product-buy-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 59, 138, 0.06), rgba(180, 18, 50, 0.06));
  border: 1px solid rgba(9, 31, 77, 0.08);
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.product-price {
  color: #d71234;
  font-size: 34px;
  font-weight: 950;
}

.product-old-price {
  margin-left: 8px;
  color: #8a93a6;
  text-decoration: line-through;
  font-size: 18px;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.in-stock {
  color: #14532d;
  background: #dcfce7;
}

.out-stock {
  color: #991b1b;
  background: #fee2e2;
}

.add-cart-form {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: end;
}

.add-cart-form label {
  display: grid;
  gap: 7px;
  color: #061633;
  font-size: 13px;
  font-weight: 900;
}

.add-cart-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(9, 31, 77, 0.16);
  background: #ffffff;
}

.add-cart-form button,
.disabled-cart-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #123b8a, #b41232);
  font-weight: 950;
  cursor: pointer;
}

.disabled-cart-btn {
  cursor: not-allowed;
  background: #b7bcc8;
}

.product-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.product-trust-row div {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(9, 31, 77, 0.08);
}

.product-trust-row strong,
.product-trust-row span {
  display: block;
}

.product-trust-row strong {
  color: #061633;
  margin-bottom: 5px;
}

.product-trust-row span {
  color: #6b7893;
  font-size: 13px;
  line-height: 1.4;
}

.product-extra-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.product-extra-section > div {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(9, 31, 77, 0.08);
  box-shadow: 0 18px 55px rgba(9, 31, 77, 0.07);
}

.product-extra-section h2 {
  margin: 0 0 12px;
  color: #061633;
  font-size: 28px;
}

.product-extra-section p {
  margin: 0;
  color: #465a7a;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .product-detail-page {
    width: min(100% - 28px, 1180px) !important;
    margin-top: 24px !important;
  }

  .product-detail-card,
  .product-extra-section {
    grid-template-columns: 1fr;
  }

  .product-detail-card {
    padding: 24px;
  }

  .product-main-image {
    min-height: 320px;
  }

  .product-info-panel h1 {
    font-size: 44px;
  }

  .product-meta-grid,
  .product-trust-row,
  .add-cart-form {
    grid-template-columns: 1fr;
  }
}
/* ===== SHOP PAGE FIX ===== */

.shop-page {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin: 48px auto 90px !important;
}

.shop-page * {
  box-sizing: border-box;
}

.shop-hero {
  text-align: center;
  padding: 40px 24px 34px;
}

.shop-hero h1 {
  margin: 14px 0 12px;
  color: #061633;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.shop-hero p {
  margin: 0 auto;
  max-width: 620px;
  color: #465a7a;
  font-size: 17px;
  line-height: 1.7;
}

.shop-filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.shop-filter-row button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #123b8a, #b41232);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(18, 59, 138, 0.18);
}

.shop-filter-row button:first-child {
  background: #061633;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.shop-product-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(9, 31, 77, 0.08);
  box-shadow: 0 18px 55px rgba(9, 31, 77, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.shop-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(9, 31, 77, 0.14);
}

.shop-product-image {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: radial-gradient(circle at center, rgba(18, 59, 138, 0.08), transparent 60%), #f8faff;
  text-decoration: none;
}

.shop-product-image img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(9, 31, 77, 0.12));
}

.shop-product-image span {
  color: #6b7893;
  font-weight: 900;
}

.shop-product-body {
  padding: 20px;
}

.shop-product-top,
.shop-product-bottom,
.shop-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.strength-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #d71234;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-stock {
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-stock.in {
  color: #15803d;
}

.shop-stock.out {
  color: #dc2626;
}

.shop-product-body h2 {
  margin: 16px 0 8px;
  font-size: 22px;
  line-height: 1.05;
  text-transform: capitalize;
}

.shop-product-body h2 a {
  color: #061633;
  text-decoration: none;
}

.shop-product-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #465a7a;
  font-size: 14px;
  line-height: 1.55;
}

.shop-product-meta {
  padding-top: 12px;
  border-top: 1px solid rgba(9, 31, 77, 0.08);
  color: #6b7893;
  font-size: 12px;
  font-weight: 800;
}

.shop-product-bottom {
  margin-top: 16px;
}

.shop-product-bottom strong {
  color: #d71234;
  font-size: 24px;
  font-weight: 950;
}

.shop-product-bottom button,
.shop-product-bottom a {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #123b8a, #b41232);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.empty-shop {
  max-width: 620px;
  margin: 40px auto;
  padding: 34px;
  text-align: center;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(9, 31, 77, 0.08);
  box-shadow: 0 18px 55px rgba(9, 31, 77, 0.08);
}

.empty-shop h2 {
  margin: 0 0 10px;
  color: #061633;
}

.empty-shop p {
  margin: 0;
  color: #465a7a;
}

@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .shop-page {
    width: min(100% - 28px, 1180px) !important;
    margin-top: 24px !important;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-product-image {
    min-height: 210px;
  }
}
/* ===== CENTER SHOP GRID ITEMS WHEN FEW PRODUCTS ===== */

.shop-grid {
  justify-content: center !important;
}

.shop-product-card {
  width: 100% !important;
  max-width: 280px !important;
}
/* ===== SHOP GRID FINAL ALIGNMENT FIX ===== */

.shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 280px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
}

.shop-product-card {
  width: 100% !important;
  max-width: 280px !important;
}
