/*
Theme Name: SODOSIELA Lite
Theme URI: https://sodosiela.lt/
Author: SODOSIELA.lt
Description: Lightweight mobile-first WooCommerce theme for SODOSIELA.lt.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: sodosiela
*/

:root {
  --green-950: #062f1d;
  --green-900: #0b4228;
  --green-800: #176637;
  --green-700: #1f7a45;
  --green-100: #e8f5ec;
  --amber: #f5c542;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #e6e9ee;
  --surface: #ffffff;
  --soft: #f6f8f6;
  --shadow: 0 10px 28px rgba(17, 24, 39, .08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 1000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  clip: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(230, 233, 238, .9);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--green-800);
}

.brand img {
  max-height: 48px;
  width: auto;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--green-800);
}

.brand-mark svg,
.cart-button svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.brand-text {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  white-space: nowrap;
}

.primary-nav {
  display: none;
}

.menu,
.mobile-menu,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.menu a {
  color: #334155;
  font-weight: 650;
}

.menu a:hover {
  color: var(--green-800);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
}

.cart-button svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--green-950);
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
}

.menu-toggle {
  display: inline-grid;
  gap: 5px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-menu {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 16px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  color: #334155;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 68px));
  display: flex;
  align-items: center;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 47, 29, .94), rgba(23, 102, 55, .78), rgba(6, 47, 29, .9));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 72px;
  color: #fff;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #bde8ca;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: min(760px, 100%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 10vw, 6.4rem);
  line-height: .95;
  white-space: nowrap;
  overflow-wrap: normal;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 680px;
  color: #e9f7ed;
  font-size: clamp(1.25rem, 5.5vw, 2rem);
  overflow-wrap: break-word;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 620px;
  color: #f4fbf6;
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green-800);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.button-light {
  background: #fff;
  color: var(--green-950);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.benefits,
.category-section,
.featured-products,
.page-main,
.shop-main {
  padding-block: 42px;
}

.woocommerce-products-header {
  width: min(980px, 100%);
  margin: 0 auto 22px;
}

.woocommerce-products-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.benefit-grid,
.static-categories {
  display: grid;
  gap: 16px;
}

.benefit-grid article,
.static-category,
.content-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.benefit-grid article,
.static-category {
  padding: 20px;
}

.benefit-grid strong {
  display: block;
  color: var(--green-900);
  font-size: 1.06rem;
}

.benefit-grid p,
.static-category p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading-center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.shop-hero h1,
.entry-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.05;
}

.category-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0;
  transition: opacity .2s ease;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-800);
  transition: background .2s ease, color .2s ease;
}

.category-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.category-title {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
  transition: color .2s ease;
}

.category-description {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.55;
  transition: color .2s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, .14);
}

.category-card:hover::before,
.category-card:focus-visible::before {
  opacity: 1;
}

.category-card:hover .category-icon,
.category-card:focus-visible .category-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.category-card:hover .category-title,
.category-card:hover .category-description,
.category-card:focus-visible .category-title,
.category-card:focus-visible .category-description {
  color: #fff;
}

.category-card-orange::before { background: linear-gradient(135deg, #f97316, #dc2626); }
.category-card-amber::before { background: linear-gradient(135deg, #b7791f, #78350f); }
.category-card-blue::before { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.category-card-teal::before { background: linear-gradient(135deg, #14b8a6, #059669); }
.category-card-green::before { background: linear-gradient(135deg, #22c55e, #15803d); }

.shop-hero {
  position: relative;
  overflow: hidden;
  padding-block: 58px;
  background-image: var(--shop-hero-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 47, 29, .92), rgba(23, 102, 55, .78), rgba(6, 47, 29, .9));
}

.shop-hero-content {
  position: relative;
  z-index: 1;
}

.shop-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.shop-hero p:not(.eyebrow) {
  max-width: 640px;
  color: #dff4e6;
}

.content-card {
  padding: clamp(22px, 5vw, 42px);
}

.entry-content {
  color: #263241;
}

.entry-content a {
  color: var(--green-800);
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(135deg, var(--green-950), var(--green-900));
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding-block: 44px;
}

.footer-grid-original {
  align-items: start;
}

.brand-footer {
  color: #fff;
}

.footer-brand p,
.footer-tagline,
.footer-small,
.contact-list,
.footer-menu a,
.footer-bottom {
  color: #cfe9d7;
}

.footer-tagline {
  margin: 14px 0 8px;
  font-size: 1.02rem;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-menu li + li,
.contact-list li + li {
  margin-top: 8px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mini-icon {
  display: inline-grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: #bde8ca;
  font-weight: 800;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.social-links a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background .2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, .2);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: 18px;
  font-size: .92rem;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}

.woocommerce .woocommerce-result-count {
  float: none !important;
}

.woocommerce .woocommerce-ordering {
  float: none !important;
  display: flex;
  justify-content: flex-start;
}

.woocommerce .woocommerce-ordering select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-inline: 12px;
  background: #fff;
}

.woocommerce-notices-wrapper,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  max-width: 980px;
}

.woocommerce .woocommerce-result-count {
  clear: both;
}

.shop-controls {
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto 18px;
  gap: 14px;
}

.shop-controls .woocommerce-result-count,
.shop-controls .woocommerce-ordering {
  width: auto;
  max-width: none;
  margin: 0;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  clear: both;
  width: min(980px, 100%);
  margin: 0 auto;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  clear: none !important;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .07);
}

.woocommerce ul.products li.product a img {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: cover;
  margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.8em;
  padding: 12px 12px 0;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 6px 12px 0;
  color: var(--green-900);
  font-size: 1rem;
  font-weight: 800;
}

.woocommerce ul.products li.product .button {
  width: calc(100% - 24px);
  min-height: 38px;
  margin: 10px 12px 14px;
  padding: 9px 12px;
  font-size: .88rem;
}

.woocommerce span.onsale {
  min-width: 0;
  min-height: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--green-950);
  font-weight: 800;
  line-height: 1;
}

.woocommerce div.product {
  display: grid;
  gap: 28px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none !important;
  width: 100% !important;
}

.woocommerce div.product .product_title {
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.08;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--green-900);
  font-size: 1.6rem;
  font-weight: 800;
}

.woocommerce .quantity .qty {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.woocommerce-cart table.cart img {
  width: 76px;
}

.woocommerce table.shop_table {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--green-800);
  background: #fff;
  box-shadow: var(--shadow);
}

@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
  }

  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
  }

  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    font-size: 1.12rem;
  }

  .cart-button,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: calc(100svh - 66px);
    align-items: center;
  }

  .hero-content {
    padding-block: 52px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.8vw, 3.45rem);
    line-height: 1;
    letter-spacing: 0;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 1.32rem;
    line-height: 1.25;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
  }

  .button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce #respond input#submit {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.25rem, 10.8vw, 4.25rem);
    max-width: 100%;
  }
}

@media (min-width: 820px) {
  .primary-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .category-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 230px));
    justify-content: center;
  }

  .woocommerce .woocommerce-result-count {
    float: none !important;
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
  }

  .woocommerce .woocommerce-ordering {
    float: none !important;
    display: flex;
    justify-content: flex-end;
    width: auto;
    margin: 0;
  }

  .woocommerce .woocommerce-result-count + .woocommerce-ordering {
    margin-left: auto;
  }

  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering {
    position: relative;
  }

  .shop-controls {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .woocommerce div.product {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  }
}

@media (min-width: 1080px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 230px));
    justify-content: center;
  }

  .category-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
