:root {
  --color-primary:        #e76f51;
  --color-primary-dark:   #c05621;
  --color-primary-light:  #fde8d8;
  --color-secondary:      #123c2d;
  --color-secondary-light:#e1ebe6;
  --color-accent-blue:    #1a56db;
  --color-accent-blue-light:#e8f0fe;
  --color-accent-gold:    #dfb887;
  --color-bg:             #fcf9f5;
  --color-white:          #ffffff;
  --color-border:         #f0e6d8;
  --color-text:           #1b202e;
  --color-muted:          #686d7e;
  --font-serif:           'Lora', Georgia, serif;
  --font-sans:            'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm:            10px;
  --radius-md:            18px;
  --radius-lg:            24px;
  --shadow-card:          0 8px 24px rgba(27,32,46,0.04);
  --shadow-hover:         0 16px 40px rgba(18,60,45,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-serif); }
a { color: var(--color-primary); }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 60, 45, 0.22);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: var(--font-sans);
  border: 2px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(18, 60, 45, 0.35);
  background: #1b4332;
  color: #fff;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-sans);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-outline:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(18, 60, 45, 0.15);
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-sans);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.badge-green  { background: var(--color-secondary-light); color: var(--color-secondary); }
.badge-orange { background: #fde8d8; color: var(--color-primary-dark); }
.badge-blue   { background: var(--color-accent-blue-light); color: var(--color-accent-blue); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 249, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 60, 45, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 48px;
}
.site-nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-secondary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
}
.site-nav__logo span {
  color: var(--color-primary);
  font-weight: 500;
  margin-left: 6px;
}
@keyframes logoGlow {
  0% { text-shadow: 0 0 4px rgba(223, 184, 135, 0.2); }
  100% { text-shadow: 0 0 12px rgba(223, 184, 135, 0.6); }
}
.logo-dot {
  color: var(--color-accent-gold);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 0;
  margin-left: 2px;
  display: inline-block;
  animation: logoGlow 3s ease infinite alternate;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.site-nav__links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}
.site-nav__links a:hover { color: var(--color-primary); }
.site-nav__links .nav-cta {
  padding: 8px 20px;
  font-size: 13px;
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-right: 1px solid var(--color-border);
}
.trust-strip__item:last-child { border-right: none; }
.trust-strip__icon { font-size: 22px; }
.trust-strip__text strong { display: block; font-size: 14px; font-weight: 700; }
.trust-strip__text p { font-size: 12px; color: var(--color-muted); }

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  background: var(--color-primary-light);
}
.product-card__body { padding: 14px; }
.product-card__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-sans);
}
.product-card__title a { text-decoration: none; color: var(--color-text); }
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.product-card__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary);
}
.product-card__buy {
  background: var(--color-secondary);
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
}
.product-card__buy:hover {
  background: #1b4332;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(18,60,45,0.15);
  color: #fff;
}
@keyframes pulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes successPop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.product-card__buy.loading {
  font-size: 0 !important;
  opacity: 0.85;
  background: var(--color-muted) !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
}
.product-card__buy.loading::after {
  content: "Kraunama...";
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  animation: pulse 0.8s infinite alternate;
}

.product-card__buy.added {
  background: #2a9d8f !important;
  font-size: 0 !important;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.35) !important;
  animation: successPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none;
}
.product-card__buy.added::after {
  content: "Pridėta! ✓";
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
}
a.added_to_cart {
  display: none !important;
}

.page-content {
  padding: 48px;
}

.hamburger { display: none; }

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.cart-icon:hover { color: var(--color-primary); }
.cart-icon__count {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-icon__count.is-hidden { display: none; }

.terms-content h2 {
  font-size: 18px;
  margin: 32px 0 10px;
  color: var(--color-text);
}
.terms-content h2:first-child { margin-top: 0; }
.terms-content p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 12px;
}
.terms-content ul {
  margin: 8px 0 12px 24px;
}
.terms-content ul li {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 4px;
}
.terms-content a { color: var(--color-accent-blue); }

.wc-terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--color-accent-blue-light);
  border: 2px solid #c3d9fa;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
}
.wc-terms-checkbox input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent-blue);
}
.wc-terms-checkbox a { color: var(--color-accent-blue); font-weight: 600; }

/* Cart page */
.vs-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border: 2px solid var(--color-border, #e0d8cc);
  border-radius: 35px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #2b2520);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.vs-continue-shopping:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* Cart toast notification */
#vs-cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--color-primary, #f5a623);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text, #2b2520);
  z-index: 99999;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
#vs-cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#vs-cart-toast a {
  color: var(--color-primary, #f5a623);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}
#vs-cart-toast a:hover {
  text-decoration: underline;
}

/* Blog Archive (home.php) Styles */
.blog-archive {
  padding: 64px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-header {
  text-align: center;
  margin-bottom: 56px;
}
.blog-title {
  font-size: 36px;
  font-weight: 800;
  margin: 12px 0 16px;
  color: var(--color-secondary);
  font-family: var(--font-serif);
}
.blog-desc {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(240, 230, 216, 0.8);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-gold);
}
.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 600;
  align-items: center;
}
.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card-icon {
  font-size: 28px;
  background: #f0e6d8;
  color: var(--color-primary-dark);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.blog-card:hover .blog-card-icon {
  transform: rotate(-10deg) scale(1.1);
}
.blog-card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  font-family: var(--font-serif);
}
.blog-card-title a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
}
.blog-card-title a:hover {
  color: var(--color-primary);
}
.blog-card-text {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.blog-card-more {
  display: inline-block;
  margin-top: auto;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-card-more:hover {
  color: var(--color-primary-dark);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-archive {
    padding: 40px 20px;
  }
}
