/*
Theme Name: Shishu Sansar Lite
Theme URI: https://shishusansar.in/
Author: Shishu Sansar
Description: Lightweight custom theme for Shishu Sansar content, resources, and affiliate WooCommerce products.
Version: 1.0.4
Text Domain: shishu-sansar-lite
*/

:root {
  --ss-bg: #fff8f4;
  --ss-surface: #fff1e6;
  --ss-card: #ffffff;
  --ss-primary: #865046;
  --ss-primary-soft: #ffdad3;
  --ss-secondary: #50634d;
  --ss-text: #231a10;
  --ss-muted: #624f4b;
  --ss-border: #d7c2be;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.ss-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(215, 194, 190, .62);
  background: rgba(255, 248, 244, .94);
  backdrop-filter: blur(14px);
}
.admin-bar .ss-site-header { top: 32px; }
.ss-nav {
  position: relative;
  max-width: 1200px;
  min-height: 82px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ss-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ss-primary);
  font-family: "Literata", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}
.ss-brand img { width: 48px; height: 48px; object-fit: contain; }
.ss-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--ss-muted);
  font-size: 14px;
  font-weight: 700;
}
.ss-menu > a,
.ss-nav-dropdown summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--ss-muted);
  cursor: pointer;
  line-height: 1;
}
.ss-menu a:hover,
.ss-nav-dropdown summary:hover { color: var(--ss-primary); }
.ss-nav-dropdown {
  position: relative;
}
.ss-nav-dropdown summary {
  gap: 6px;
  list-style: none;
}
.ss-nav-dropdown summary::-webkit-details-marker { display: none; }
.ss-nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.ss-dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  min-width: 246px;
  padding: 8px;
  border: 1px solid var(--ss-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(83, 49, 41, .16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}
.ss-nav-dropdown[open] .ss-dropdown-menu,
.ss-nav-dropdown:hover .ss-dropdown-menu,
.ss-nav-dropdown:focus-within .ss-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.ss-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ss-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.ss-dropdown-menu a:hover {
  background: var(--ss-surface);
  color: var(--ss-primary);
}
.ss-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.ss-lang { position: relative; }
.ss-lang summary {
  min-width: 52px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--ss-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ss-muted);
  font-size: 13px;
  font-weight: 800;
}
.ss-lang summary::-webkit-details-marker { display: none; }
.ss-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 156px;
  overflow: hidden;
  border: 1px solid var(--ss-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(83, 49, 41, .14);
}
.ss-lang-menu a {
  display: block;
  padding: 11px 14px;
  color: var(--ss-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.ss-lang-menu a:hover { background: var(--ss-surface); color: var(--ss-primary); }
.ss-guide,
.ss-button,
.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--ss-primary) !important;
  color: #fff !important;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.ss-button.secondary {
  border: 1px solid var(--ss-border);
  background: #fff !important;
  color: var(--ss-text) !important;
}
.ss-mobile-toggle,
.ss-mobile-panel {
  display: none;
}
.ss-mobile-toggle {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--ss-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ss-primary);
  cursor: pointer;
}
.ss-mobile-toggle span {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.ss-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ss-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.ss-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ss-mobile-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% + 8px);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border: 1px solid var(--ss-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 60px rgba(83, 49, 41, .17);
  padding: 12px;
}
.ss-mobile-panel.is-open {
  display: block;
}
.ss-mobile-section {
  padding: 8px 0;
}
.ss-mobile-section + .ss-mobile-section,
.ss-mobile-actions {
  border-top: 1px solid rgba(215, 194, 190, .72);
}
.ss-mobile-title {
  display: block;
  padding: 8px 10px 6px;
  color: var(--ss-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ss-mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ss-muted);
  font-size: 15px;
  font-weight: 800;
}
.ss-mobile-link:hover {
  background: var(--ss-surface);
  color: var(--ss-primary);
}
.ss-mobile-dropdown summary {
  list-style: none;
}
.ss-mobile-dropdown summary::-webkit-details-marker {
  display: none;
}
.ss-mobile-parent {
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}
.ss-mobile-parent::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease, margin-top .18s ease;
}
.ss-mobile-dropdown[open] .ss-mobile-parent::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.ss-mobile-submenu {
  display: grid;
  gap: 4px;
  padding: 2px 0 8px 10px;
}
.ss-mobile-child {
  min-height: 40px;
  padding-left: 16px;
  font-weight: 800;
}
.ss-mobile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 8px;
}
.ss-mobile-actions .ss-lang-menu {
  position: static;
  margin-top: 8px;
}

.ss-main { min-height: 62vh; }
.ss-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.ss-hero {
  padding: 84px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 48px;
}
.ss-kicker {
  display: inline-flex;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--ss-primary-soft);
  color: #351009;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ss-hero h1,
.ss-page-title {
  margin: 0 0 18px;
  color: var(--ss-text);
  font-family: "Literata", Georgia, serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}
.ss-hero p,
.ss-lede {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--ss-muted);
  font-size: 18px;
}
.ss-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid rgba(255,255,255,.75);
  border-radius: 34px 34px 0 34px;
  box-shadow: 0 34px 90px -55px rgba(83, 49, 41, .65);
}
.ss-section { padding: 58px 0; }
.ss-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ss-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(215, 194, 190, .72);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px -42px rgba(83, 49, 41, .45);
}
.ss-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.ss-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ss-card h2,
.ss-card h3 {
  margin: 8px 0 10px;
  font-family: "Literata", Georgia, serif;
  font-size: 25px;
  line-height: 1.25;
}
.ss-card p { color: var(--ss-muted); margin: 0 0 20px; }
.ss-card .ss-button { margin-top: auto; align-self: flex-start; }
.ss-resource-help-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

.ss-article {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}
.ss-article h1 {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
}
.ss-article-content { font-size: 18px; color: #30241d; }
.ss-article-content h2,
.ss-article-content h3 { font-family: "Literata", Georgia, serif; line-height: 1.25; }
.ss-about-page {
  display: grid;
  gap: 34px;
}
.ss-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  align-items: center;
  gap: 34px;
  margin-top: 10px;
}
.ss-about-hero h2 {
  margin-top: 0;
  color: var(--ss-text);
  font-size: clamp(34px, 5vw, 54px);
}
.ss-about-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid rgba(255,255,255,.76);
  border-radius: 30px 30px 0 30px;
  box-shadow: 0 28px 70px -48px rgba(83, 49, 41, .65);
}
.ss-about-band {
  border: 1px solid rgba(215, 194, 190, .72);
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 22px 55px -46px rgba(83, 49, 41, .45);
}
.ss-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ss-about-mini {
  border: 1px solid rgba(215, 194, 190, .64);
  border-radius: 18px;
  background: var(--ss-bg);
  padding: 22px;
}
.ss-about-mini h3 {
  margin-top: 0;
  color: var(--ss-primary);
  font-size: 22px;
}
.ss-about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ss-about-pill-row span {
  border: 1px solid var(--ss-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ss-muted);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
}

.ss-site-footer {
  border-top: 1px solid rgba(215, 194, 190, .62);
  background: var(--ss-surface);
  padding: 56px 32px 28px;
}
.ss-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 36px;
}
.ss-site-footer h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ss-site-footer p,
.ss-site-footer a {
  color: var(--ss-muted);
  font-size: 14px;
}
.ss-site-footer ul { list-style: none; padding: 0; margin: 0; }
.ss-site-footer li { margin-bottom: 10px; }
.ss-footer-bottom {
  max-width: 1200px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(215, 194, 190, .55);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #796864;
  font-size: 14px;
}

.ss-not-found {
  min-height: 70vh;
}
.ss-404-number {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(78px, 13vw, 156px);
  line-height: .9;
  color: var(--ss-primary);
}
.ss-actions-row { display: flex; flex-wrap: wrap; gap: 12px; }

.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  border: 1px solid rgba(215, 194, 190, .72);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.woocommerce ul.products li.product img { aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 18px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { margin-left: 20px !important; margin-right: 20px !important; }
.woocommerce div.product {
  width: min(1200px, calc(100% - 40px));
  margin: 56px auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 48px;
}
.woocommerce div.product .product_title {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
}
.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.woocommerce div.product div.images img {
  width: 100%;
  border-radius: 28px 28px 0 28px;
}
.woocommerce div.product div.summary {
  padding: 20px 0;
}
.woocommerce div.product .price {
  color: var(--ss-primary);
  font-size: 22px;
  font-weight: 900;
}
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-product-details__short-description p {
  color: var(--ss-muted);
  font-size: 17px;
}
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
  grid-column: 1 / -1;
  width: 100%;
  clear: both;
}
.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 {
  margin: 28px 0 20px;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
}
.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ss-product-page {
  padding: 66px 0 44px;
}
.ss-product-hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 52px;
  align-items: center;
}
.ss-product-media {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, .78);
  border-radius: 34px 34px 0 34px;
  background: #fff;
  box-shadow: 0 34px 90px -55px rgba(83, 49, 41, .65);
}
.ss-product-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ss-product-summary {
  max-width: 620px;
}
.ss-product-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--ss-primary-soft);
  color: #351009;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.ss-product-title {
  margin: 0 0 14px;
  color: var(--ss-text);
  font-family: "Literata", Georgia, serif;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.07;
}
.ss-product-price {
  margin-bottom: 20px;
  color: var(--ss-primary);
  font-size: 24px;
  font-weight: 900;
}
.ss-product-description,
.ss-product-description p {
  margin: 0 0 22px;
  color: var(--ss-muted);
  font-size: 18px;
}
.ss-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 28px 0 16px;
}
.ss-product-buy {
  min-width: 158px;
  min-height: 48px;
}
.ss-product-note {
  max-width: 560px;
  margin: 0;
  color: #796864;
  font-size: 13px;
}
.ss-product-related-section {
  width: 100%;
  padding: 18px 0 74px;
}
.ss-product-related-inner {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}
.ss-product-related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.ss-product-related-heading h2 {
  margin: 0;
  color: var(--ss-text);
  font-family: "Literata", Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}
.ss-carousel-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.ss-carousel-control {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ss-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ss-primary);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.ss-carousel-control:hover {
  background: var(--ss-primary);
  color: #fff;
}
.ss-related-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 310px);
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}
.ss-related-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(215, 194, 190, .72);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px -42px rgba(83, 49, 41, .45);
}
.ss-related-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.ss-related-card-body {
  padding: 20px;
}
.ss-related-card h3 {
  min-height: 58px;
  margin: 0 0 12px;
  font-family: "Literata", Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
}
.ss-related-price {
  margin-bottom: 16px;
  color: var(--ss-primary);
  font-size: 18px;
  font-weight: 900;
}
.ss-related-buy {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ss-primary);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .ss-nav { padding: 12px 18px; }
  .ss-menu,
  .ss-desktop-actions { display: none; }
  .ss-mobile-toggle { display: inline-flex; }
  .ss-brand { font-size: 21px; }
  .ss-hero { grid-template-columns: 1fr; padding-top: 56px; }
  .ss-about-hero,
  .ss-about-grid { grid-template-columns: 1fr; }
  .ss-product-hero { grid-template-columns: 1fr; gap: 32px; }
  .ss-product-summary { max-width: none; }
  .ss-grid,
  .ss-resource-help-grid,
  .woocommerce div.product,
  .woocommerce .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce div.product { gap: 30px; }
  .woocommerce div.product .related.products,
  .woocommerce div.product .upsells.products,
  .woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
  .woocommerce div.product .related.products ul.products,
  .woocommerce div.product .upsells.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-bar .ss-site-header { top: 46px; }
  .ss-nav { min-height: 72px; gap: 8px; padding-left: 12px; padding-right: 12px; }
  .ss-brand img { width: 40px; height: 40px; }
  .ss-brand { gap: 8px; font-size: 19px; }
  .ss-brand span { max-width: none; overflow: visible; text-overflow: clip; }
  .ss-mobile-panel { left: 12px; right: 12px; max-height: calc(100vh - 96px); }
  .ss-mobile-actions { align-items: stretch; flex-direction: column; }
  .ss-mobile-actions .ss-guide { width: 100%; }
  .ss-actions { gap: 8px; }
  .ss-lang summary { min-width: 44px; min-height: 40px; font-size: 12px; }
  .ss-guide { min-height: 40px; padding: 10px 14px; font-size: 13px; }
  .ss-product-page { padding-top: 42px; }
  .ss-product-related-heading { align-items: start; flex-direction: column; }
  .ss-carousel-controls { align-self: flex-start; }
  .ss-related-carousel { grid-auto-columns: minmax(235px, 82vw); }
  .ss-grid,
  .ss-resource-help-grid,
  .woocommerce div.product,
  .woocommerce .products,
  .ss-footer-grid { grid-template-columns: 1fr; }
  .woocommerce div.product .related.products ul.products,
  .woocommerce div.product .upsells.products ul.products { grid-template-columns: 1fr; }
  .ss-footer-bottom { flex-direction: column; }
}
