/* SMART KIDS — SHARED HEADER THEME */

.sk-announcement-bar {
  background: #3f0448;
  color: #fff;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 800;
}

.sk-header {
  background: #fff;
  min-height: 84px;
  display: grid;
  grid-template-columns: 58px 1fr 104px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sk-header-icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.sk-header-icon-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.sk-menu-toggle {
  justify-self: start;
}

.sk-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.sk-header-logo img {
  width: 320px;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.sk-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #5b1970;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1190;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 400px);
  height: 100vh;
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(0,0,0,.08);
  box-shadow: -12px 0 30px rgba(0,0,0,.18);
  z-index: 1200;
  transform: translateX(105%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}

body.menu-open .side-menu {
  transform: translateX(0);
}

.side-menu__head {
  min-height: 82px;
  display: grid;
  grid-template-columns: 52px 1fr 100px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
  background: #fff;
}

.side-menu__close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #3160e0;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.side-menu__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.side-menu__logo img {
  width: 300px;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.side-menu__icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.side-menu__body {
  flex: 1;
  overflow: auto;
  padding: 8px 0 0;
  background: #4a064f;
  color: #fff;
}

.side-menu__nav a {
  display: block;
  padding: 18px 26px;
  font-size: 1.08rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: #fff;
  text-decoration: none;
}

.side-menu__dropdown {
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.side-menu__dropdown-btn {
  width: 100%;
  min-height: 58px;
  padding: 18px 26px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  text-align: right;
}

.side-menu__dropdown-arrow {
  font-size: 1.05rem;
  transition: transform .22s ease;
  line-height: 1;
}

.side-menu__dropdown.open .side-menu__dropdown-arrow {
  transform: rotate(180deg);
}

.side-menu__dropdown-list {
  display: none;
  background: rgba(255,255,255,.045);
  padding: 4px 0 8px;
  max-height: 44vh;
  overflow: auto;
}

.side-menu__dropdown.open .side-menu__dropdown-list {
  display: block;
}

.side-menu__dropdown-list a {
  padding: 13px 34px;
  color: rgba(255,255,255,.92);
  font-size: .98rem;
  line-height: 1.5;
}

.side-menu__footer {
  padding: 18px 22px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #4a064f;
  color: #fff;
}

.side-menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.side-menu__social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.side-menu__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Shared product shapes */
.product-image,
.related-image {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 20px rgba(25,0,45,.16);
  overflow: hidden;
}

.product-offer-badge,
.related-offer-badge {
  border-radius: 999px;
  background: rgba(255,213,74,.16);
  color: #fff1b8;
  border: 1px solid rgba(255,213,74,.26);
  font-weight: 900;
}

.product-stock-badge,
.related-stock-badge,
.stock-alert {
  border-radius: 999px;
  background: rgba(217,48,37,.16);
  color: #ffd8d4;
  border: 1px solid rgba(217,48,37,.24);
  font-weight: 900;
}

@media (max-width: 768px) {
  .sk-announcement-bar {
    min-height: 42px;
    font-size: .9rem;
    padding: 8px 12px;
  }

  .sk-header {
    grid-template-columns: 52px 1fr 96px;
    min-height: 78px;
    padding: 9px 12px;
  }

  .sk-header-icon-btn {
    width: 40px;
    height: 40px;
  }

  .sk-header-icon-btn img {
    width: 35px;
    height: 35px;
  }

  .sk-header-logo img {
    max-height: 52px;
  }

  .side-menu__head {
    min-height: 78px;
    grid-template-columns: 48px 1fr 92px;
    padding: 9px 12px;
  }

  .side-menu__logo img {
    max-height: 52px;
  }
}

/* =========================================================
   SMART KIDS — SHARED SIMPLE PAGES THEME
   Thank-you / Policy / Contact pages
   ========================================================= */

:root {
  --sk-brand-purple: #4a064f;
  --sk-brand-purple-2: #5b1970;
  --sk-soft-gold: #fff1b8;

  --policy-bg: #f3eadc;
  --policy-card: #fffaf2;
  --policy-border: #5a351f;
  --policy-text: #3f2a1d;
  --policy-muted: #7a5c47;
  --policy-accent: #5a351f;
  --policy-link-bg: #ead8c3;
}

/* Generic simple page layout */

.sk-page {
  width: min(100% - 28px, 980px);
  margin: 0 auto;
  padding: 28px 0 44px;
}

.sk-page-card {
  border-radius: 24px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: 0 18px 42px rgba(25, 8, 45, .16);
}

.sk-page-title {
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.35;
  font-weight: 950;
  margin-bottom: 12px;
}

.sk-page-subtitle {
  font-size: 1rem;
  line-height: 1.8;
  opacity: .86;
}

.sk-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sk-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

/* Thank-you page polish */

body:has(.hero):has(#orderSection) {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 118, 224, .18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(106, 151, 255, .13), transparent 26%),
    linear-gradient(180deg, #5a2581 0%, #7b3fa8 48%, #58156a 100%);
}

.container:has(#orderSection) {
  max-width: 980px;
  padding: 28px 14px 44px;
}

.container:has(#orderSection) .hero {
  background:
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,250,255,.92));
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 28px;
  box-shadow:
    0 24px 58px rgba(35, 5, 58, .25),
    inset 0 1px 0 rgba(255,255,255,.78);
  margin: 22px 0 18px;
}

.container:has(#orderSection) .hero-icon {
  background: rgba(16, 185, 129, .12);
  color: #0f9f6e;
  box-shadow: 0 12px 30px rgba(16,185,129,.16);
}

.container:has(#orderSection) .hero h1 {
  color: #2f1640;
  font-weight: 950;
}

.container:has(#orderSection) .hero p {
  color: #6b5774;
  font-weight: 650;
}

.container:has(#orderSection) .card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 18px 42px rgba(35, 5, 58, .18);
}

.container:has(#orderSection) .card h2 {
  color: #4a064f;
  font-weight: 950;
}

.container:has(#orderSection) .info-box,
.container:has(#orderSection) .item {
  border-radius: 16px;
  border-color: #eee4f3;
  background: #fffafd;
}

.container:has(#orderSection) .summary {
  background:
    radial-gradient(circle at 14% 10%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, #4a064f, #7b3fa8);
  border: 1px solid rgba(255,255,255,.18);
}

.container:has(#orderSection) .btn.primary {
  background: #4a064f;
  color: #fff;
}

.container:has(#orderSection) .btn.primary:hover {
  background: #5b1970;
}

/* Policy pages: beige + dark brown */

.sk-policy-page {
  background: var(--policy-bg);
  color: var(--policy-text);
  min-height: 100vh;
}

.sk-policy-wrap {
  width: min(100% - 28px, 980px);
  margin: 0 auto;
  padding: 32px 0 46px;
}

.sk-policy-card {
  background: var(--policy-card);
  color: var(--policy-text);
  border: 2px solid var(--policy-border);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow:
    0 18px 38px rgba(90, 53, 31, .14),
    inset 0 1px 0 rgba(255,255,255,.60);
}

.sk-policy-title {
  color: var(--policy-accent);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.35;
  font-weight: 950;
  margin-bottom: 16px;
}

.sk-policy-subtitle,
.sk-policy-date {
  color: var(--policy-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.sk-policy-content {
  color: var(--policy-text);
  font-size: 1rem;
  line-height: 2;
}

.sk-policy-content h2,
.sk-policy-content h3,
.sk-policy-content h4 {
  color: var(--policy-accent);
  margin: 24px 0 10px;
  line-height: 1.55;
  font-weight: 950;
}

.sk-policy-content p {
  margin: 0 0 14px;
}

.sk-policy-content ul,
.sk-policy-content ol {
  margin: 0 22px 16px 0;
  padding: 0;
}

.sk-policy-content li {
  margin-bottom: 8px;
}

.sk-policy-content a {
  color: var(--policy-accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sk-policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 16px;
}

.sk-policy-content th,
.sk-policy-content td {
  border: 1px solid rgba(90, 53, 31, .25);
  padding: 12px;
  text-align: right;
}

.sk-policy-content th {
  background: var(--policy-link-bg);
  color: var(--policy-accent);
  font-weight: 950;
}

.sk-policy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(90, 53, 31, .22);
}

.sk-policy-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--policy-accent);
  color: #fffaf2;
  border: 1px solid var(--policy-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  text-decoration: none;
}

.sk-policy-btn.secondary {
  background: var(--policy-link-bg);
  color: var(--policy-accent);
}

body.policy-page,
body.refund-policy,
body.privacy-policy,
body.terms-policy,
body.shipping-policy {
  background: var(--policy-bg);
  color: var(--policy-text);
}

/* Contact page */

.sk-contact-page {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 118, 224, .14), transparent 28%),
    linear-gradient(180deg, #5a2581 0%, #7b3fa8 100%);
  color: #fff;
  min-height: 100vh;
}

.sk-contact-wrap {
  width: min(100% - 28px, 980px);
  margin: 0 auto;
  padding: 32px 0 46px;
}

.sk-contact-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 22px 52px rgba(35, 5, 58, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.sk-contact-title {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.35;
  font-weight: 950;
  margin-bottom: 12px;
}

.sk-contact-text {
  color: rgba(255,255,255,.84);
  line-height: 1.9;
  font-weight: 650;
}

.sk-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.sk-contact-item {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
}

.sk-contact-item strong {
  display: block;
  color: var(--sk-soft-gold);
  margin-bottom: 4px;
}

.sk-contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.sk-contact-btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #4a064f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  text-decoration: none;
}

.sk-contact-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

/* Mobile tuning */

@media (max-width: 768px) {
  .sk-page,
  .sk-policy-wrap,
  .sk-contact-wrap {
    width: min(100% - 22px, 980px);
    padding: 22px 0 34px;
  }

  .sk-page-card,
  .sk-policy-card,
  .sk-contact-card {
    border-radius: 20px;
    padding: 18px;
  }

  .sk-actions,
  .sk-policy-actions,
  .sk-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sk-btn,
  .sk-policy-btn,
  .sk-contact-btn {
    width: 100%;
  }

  .container:has(#orderSection) {
    padding: 20px 11px 34px;
  }

  .container:has(#orderSection) .hero,
  .container:has(#orderSection) .card {
    border-radius: 20px;
  }
}

/* =========================================================
   SMART KIDS — POLISH PATCH
   Header logo / hidden stock / policy spacing / footer mobile
   ========================================================= */

/* Header logo clarity */
.sk-header {
  grid-template-columns: 58px minmax(190px, 1fr) 104px;
  min-height: 92px;
}

.sk-header-logo img {
  width: min(390px, 100%);
  max-height: 72px;
}

.side-menu__logo img {
  width: min(330px, 100%);
  max-height: 64px;
}

/* Hide stock badges globally */
.product-stock-badge,
.related-stock-badge,
.stock-alert,
.stock-badge,
.inventory-badge,
.product-inventory,
.product-stock,
.related-stock,
.available-badge,
.availability-badge,
[class*="stock"],
[class*="inventory"],
[class*="available"] {
  display: none !important;
}

/* Keep cart badge visible even though it contains badge */
.cart-badge {
  display: none;
}

/* Product / collection buttons cleaner */
.add-to-cart,
.view-details,
.open-collection,
.collection-btn,
.hero-cta,
.slide-cta,
.product-card button,
.product-card .btn,
.collection-card button,
.collection-card .btn {
  border-radius: 18px;
  min-height: 48px;
  font-weight: 900;
  letter-spacing: 0;
}

.add-to-cart,
.collection-btn,
.open-collection {
  background: linear-gradient(145deg, #ffffff, #f6f1fa);
  color: #4a064f;
  border: 1px solid rgba(74, 6, 79, .16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 10px 22px rgba(26,0,45,.16);
}

.view-details {
  background: rgba(255,255,255,.94);
  color: #4a064f;
  border: 1px solid rgba(74, 6, 79, .14);
}

/* Policy page spacing */
.sk-policy-wrap {
  padding-bottom: 72px;
}

.sk-policy-card {
  overflow: hidden;
}

.sk-policy-actions {
  margin: 30px -4px 0;
  padding: 22px 4px 0;
}

.sk-policy-btn {
  min-height: 54px;
  padding: 0 24px;
  box-shadow: 0 10px 22px rgba(90,53,31,.14);
}

.sk-policy-btn.secondary {
  box-shadow: inset 0 0 0 1px rgba(90,53,31,.18);
}

/* Footer breathing room and mobile polish */
.site-footer {
  margin-top: 0;
}

.site-footer__inner {
  padding-top: 38px;
}

.site-footer__bottom {
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

.site-footer__links {
  padding-bottom: 18px;
}

.site-footer__links a {
  white-space: nowrap;
}

/* Slider arrows and CTA soft global tuning */
.slider-arrow,
.hero-arrow,
.carousel-arrow,
.swiper-button-prev,
.swiper-button-next {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.92) !important;
  color: #2f063a !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.22) !important;
}

.hero-button,
.shop-now,
.order-now,
.slide-button {
  min-height: 48px !important;
  border-radius: 16px !important;
  padding: 0 22px !important;
  font-weight: 950 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .sk-header {
    grid-template-columns: 50px minmax(170px, 1fr) 92px;
    min-height: 88px;
    padding: 9px 10px;
  }

  .sk-header-logo img {
    width: min(310px, 100%);
    max-height: 66px;
  }

  .sk-header-icon-btn {
    width: 40px;
    height: 40px;
  }

  .sk-header-icon-btn img {
    width: 37px;
    height: 37px;
  }

  .side-menu__logo img {
    width: min(270px, 100%);
    max-height: 58px;
  }

  .sk-policy-wrap {
    width: min(100% - 22px, 980px);
    padding-bottom: 58px;
  }

  .sk-policy-card {
    padding: 20px 18px 24px;
    border-radius: 22px;
  }

  .sk-policy-actions {
    margin-top: 26px;
    padding-top: 18px;
    gap: 12px;
  }

  .sk-policy-btn {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
  }

  .site-footer__inner {
    padding: 30px 14px 18px;
  }

  .site-footer__social {
    display: grid !important;
    grid-template-columns: repeat(3, 42px);
    justify-content: center;
    gap: 12px;
  }

  .site-footer__social a {
    width: 42px;
    height: 42px;
  }

  .site-footer__bottom {
    padding-bottom: max(86px, calc(env(safe-area-inset-bottom) + 54px));
  }

  .site-footer__links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .site-footer__links a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .add-to-cart,
  .view-details,
  .open-collection,
  .collection-btn {
    min-height: 46px;
    border-radius: 16px;
    font-size: .92rem;
  }
}

/* =========================================================
   SMART KIDS — POLICY BUTTON ALIGNMENT FIX
   ========================================================= */

.sk-policy-card[dir="ltr"] .sk-policy-content {
  text-align: left;
}

.sk-policy-card[dir="ltr"] .sk-policy-content ul,
.sk-policy-card[dir="ltr"] .sk-policy-content ol {
  margin: 0 0 16px 22px;
  padding: 0;
}

.sk-policy-actions {
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

.sk-policy-btn {
  text-align: center;
  min-width: 180px;
}

@media (max-width: 768px) {
  .sk-policy-actions {
    justify-content: stretch !important;
  }

  .sk-policy-btn {
    width: 100%;
    min-width: 0;
  }
}

