:root {
  --th-primary: #2E7D32;
  --th-primary-light: #66BB6A;
  --th-primary-dark: #1B5E20;
  --th-secondary: #FFA726;
  --th-bg: #FAF8F5;
  --th-bg-gray: #F0EDE8;
  --th-card: #FFFFFF;
  --th-text: #212121;
  --th-text-secondary: #757575;
  --th-text-white: #FFFFFF;
  --th-success: #43A047;
  --th-error: #E53935;
  --th-warning: #FB8C00;
  --th-info: #1E88E5;
  --th-border: #E0E0E0;
  --th-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --th-shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.12);
  --th-radius: 14px;
  --th-radius-sm: 8px;
  --th-radius-pill: 999px;
  --th-star: #FFC107;
  --th-star-muted: #E0E0E0;
}

body {
  background: var(--th-bg);
  color: var(--th-text);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.th-section,
.th-hero,
.th-trend,
.th-trustbar {
  max-width: 1360px;
  margin: 32px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =========================
   Announcement strip
   ========================= */
.th-announce {
  background: linear-gradient(90deg, var(--th-primary-dark), var(--th-primary), var(--th-primary-light));
  color: var(--th-text-white);
  overflow: hidden;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.th-announce__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: th-marquee 30s linear infinite;
  width: max-content;
}
.th-announce__track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.th-announce__track i { color: var(--th-secondary); }
@keyframes th-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

/* =========================
   Hero
   ========================= */
.th-hero__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: stretch;
}
.th-hero__slider {
  position: relative;
  border-radius: var(--th-radius);
  overflow: hidden;
  box-shadow: var(--th-shadow);
  background: var(--th-bg-gray);
  min-height: 380px;
}
.th-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}
.th-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 650ms ease, transform 8s linear;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  text-decoration: none;
  color: var(--th-text-white);
  pointer-events: none;
}
.th-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.th-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(27,94,32,0.55) 100%);
}
.th-slide__caption {
  position: relative;
  z-index: 2;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.25);
  padding: 8px 16px;
  border-radius: var(--th-radius-pill);
  backdrop-filter: blur(6px);
}
.th-slide,
.th-slide:hover,
.th-slide:focus,
.th-slide:active {
  color: #fff;
}
.th-slide:hover .th-slide__caption,
.th-slide:focus .th-slide__caption {
  color: #fff;
}
.th-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: var(--th-primary-dark);
  box-shadow: var(--th-shadow);
  transition: background 180ms, transform 180ms;
  font-size: 16px;
}
.th-slider__nav:hover {
  background: var(--th-primary);
  color: var(--th-text-white);
  transform: translateY(-50%) scale(1.08);
}
.th-slider__nav--prev { left: 16px; }
.th-slider__nav--next { right: 16px; }
.th-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.th-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.55);
  transition: background 200ms, width 200ms;
  padding: 0;
}
.th-slider__dot.is-active {
  background: var(--th-secondary);
  width: 26px;
  border-radius: 5px;
}

/* Side card */
.th-side-card {
  background: var(--th-card);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--th-border);
}
.th-side-card__head {
  background: linear-gradient(135deg, var(--th-primary) 0%, var(--th-primary-dark) 100%);
  color: var(--th-text-white);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.th-side-card__badge {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.th-side-card__badge i { color: var(--th-secondary); }
.th-side-card__all {
  color: var(--th-text-white);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.th-side-card__all:hover { opacity: 1; color: var(--th-secondary); }
.th-side-card__body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.th-mini-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--th-radius-sm);
  transition: background 180ms, transform 180ms;
}
.th-mini-product:hover {
  background: var(--th-bg-gray);
  transform: translateX(3px);
}
.th-mini-product__img {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--th-radius-sm);
  background: var(--th-bg-gray);
  overflow: hidden;
}
.th-mini-product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.th-discount {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--th-error);
  color: var(--th-text-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--th-radius-pill);
}
.th-mini-product__info {
  flex: 1;
  min-width: 0;
}
.th-mini-product__info h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--th-text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.th-mini-product__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.th-mini-product__old-price {
  font-size: 11px;
  color: var(--th-text-secondary);
  text-decoration: line-through;
  font-weight: 400;
}
.th-mini-product__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--th-primary);
}
.th-mini-product__price .woocommerce-Price-amount,
.th-mini-product__price ins {
  color: var(--th-primary);
  text-decoration: none;
  font-weight: 700;
}
.th-mini-product__price del {
  color: var(--th-text-secondary);
  font-size: 11px;
  font-weight: 400;
  margin-right: 4px;
}

/* =========================
   Section headings
   ========================= */
.th-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.th-section__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--th-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.th-section__title i {
  color: var(--th-primary);
  background: var(--th-bg-gray);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.th-section__subtitle {
  margin: 6px 0 0;
  color: var(--th-text-secondary);
  font-size: 14px;
}
.th-section__more {
  color: var(--th-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--th-primary);
  border-radius: var(--th-radius-pill);
  transition: all 180ms;
}
.th-section__more:hover {
  background: var(--th-primary);
  color: var(--th-text-white);
}

/* =========================
   Categories
   ========================= */
.th-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.th-cat-card {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 20px 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.th-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--th-primary), var(--th-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms;
}
.th-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--th-shadow-lg);
  border-color: var(--th-primary-light);
}
.th-cat-card:hover::before { transform: scaleX(1); }
.th-cat-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--th-bg-gray), var(--th-card));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}
.th-cat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.th-cat-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  transition: transform 260ms, background 260ms;
}
.th-cat-card:hover .th-cat-placeholder {
  transform: scale(1.08);
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}
.th-cat-placeholder svg {
  opacity: 0.7;
  transition: opacity 260ms;
}
.th-cat-card:hover .th-cat-placeholder svg {
  opacity: 1;
}
.th-cat-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--th-text);
}
.th-cat-card__cta {
  font-size: 11px;
  color: var(--th-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms, transform 220ms;
}
.th-cat-card:hover .th-cat-card__cta {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Trend tags
   ========================= */
.th-trend {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--th-card);
  border-radius: var(--th-radius);
  padding: 16px 20px;
  box-shadow: var(--th-shadow);
  border: 1px solid var(--th-border);
  flex-wrap: wrap;
}
.th-trend__label {
  font-weight: 700;
  color: var(--th-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 2px solid var(--th-border);
  flex-shrink: 0;
}
.th-trend__label i {
  color: var(--th-secondary);
  background: var(--th-primary);
  color: var(--th-text-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.th-trend__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.th-tag {
  text-decoration: none;
  color: var(--th-text);
  background: var(--th-bg-gray);
  padding: 6px 14px;
  border-radius: var(--th-radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: all 180ms;
}
.th-tag:hover {
  background: var(--th-primary);
  color: var(--th-text-white);
  transform: translateY(-2px);
}

/* =========================
   Campaign banners
   ========================= */
.th-banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.th-banner {
  display: block;
  border-radius: var(--th-radius);
  overflow: hidden;
  box-shadow: var(--th-shadow);
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--th-bg-gray);
  transition: transform 260ms, box-shadow 260ms;
}
.th-banner:hover {
  transform: translateY(-6px);
  box-shadow: var(--th-shadow-lg);
}
.th-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms;
}
.th-banner:hover img { transform: scale(1.05); }

/* =========================
   Product grid / cards
   ========================= */
.th-products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.th-product-card {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
  position: relative;
}
.th-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--th-shadow-lg);
  border-color: var(--th-primary-light);
}
.th-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--th-bg-gray);
  overflow: hidden;
}
.th-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  transition: transform 400ms;
}
.th-product-card:hover .th-product-card__media img { transform: scale(1.06); }
/* Labels & Badges System */
.th-product-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* Unified Label System */
.th-label {
  background: rgba(255, 255, 255, 0.98) !important;
  color: var(--th-primary-dark) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: var(--th-radius-sm) !important;
  border: 1px solid var(--th-border) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1 !important;
}
.th-label i {
  color: var(--th-primary) !important;
}
.th-label--discount {
  color: var(--th-error) !important; /* İndirim oranını kırmızı bırakmak isterseniz bu kalabilir, ama yeşil isterseniz primary-dark yapabiliriz. */
}

.th-product-card__alode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #fff9e6 0%, #fff4d1 100%);
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: var(--th-radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(245, 189, 25, 0.08);
}

.th-product-card__alode i {
  color: #f5bd19;
  font-size: 14px;
}

.th-product-card__shipping {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--th-primary-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--th-radius-sm);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--th-border);
}
.th-product-card__shipping i { color: var(--th-secondary); }
.th-product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.th-product-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.th-product-card__title a {
  color: var(--th-text);
  text-decoration: none;
  transition: color 180ms;
}
.th-product-card__title a:hover { color: var(--th-primary); }
.th-product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--th-primary-dark);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.th-product-card__price ins,
.th-product-card__price .woocommerce-Price-amount {
  color: var(--th-primary-dark);
  text-decoration: none;
  font-weight: 700;
}
.th-product-card__price del {
  color: var(--th-text-secondary);
  font-size: 13px;
  font-weight: 400;
}
.th-product-card__deal {
  font-size: 12px;
  color: var(--th-secondary);
  background: rgba(255, 167, 38, 0.12);
  padding: 4px 10px;
  border-radius: var(--th-radius-pill);
  align-self: flex-start;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.th-product-card__cta { margin-top: auto; }

/* Buttons */
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 0 0 var(--th-radius) var(--th-radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 180ms;
  box-sizing: border-box;
}
.th-btn--primary {
  background: var(--th-primary);
  color: var(--th-text-white);
  width: 100%;
}
.th-btn--primary:hover {
  background: var(--th-primary-dark);
}

/* =========================
   Rating stars (CSS-only)
   ========================= */
.th-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.th-rating__stars {
  position: relative;
  display: inline-flex;
  color: var(--th-star-muted);
  font-size: 13px;
  letter-spacing: 2px;
}
.th-rating__stars::before {
  content: '\f005 \f005 \f005 \f005 \f005';
  font-family: 'FontAwesome';
  position: absolute;
  top: 0;
  left: 0;
  color: var(--th-star);
  white-space: nowrap;
  overflow: hidden;
  width: calc(var(--rating, 0) / 5 * 100%);
  letter-spacing: 2px;
}
.th-rating__stars i { opacity: 0; }
.th-rating__count {
  font-size: 12px;
  color: var(--th-text-secondary);
}

/* =========================
   Trust bar
   ========================= */
.th-trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--th-primary) 0%, var(--th-primary-dark) 100%);
  border-radius: var(--th-radius);
  color: var(--th-text-white);
  margin: 40px auto;
}
.th-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}
.th-trust__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--th-secondary);
  flex-shrink: 0;
}
.th-trust strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.th-trust span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1200px) {
  .th-products { grid-template-columns: repeat(4, 1fr); }
  .th-categories { grid-template-columns: repeat(4, 1fr); }
  .th-banners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .th-hero__grid { grid-template-columns: 1fr; }
  .th-hero__side { order: 2; }
  .th-products { grid-template-columns: repeat(3, 1fr); }
  .th-categories { grid-template-columns: repeat(3, 1fr); }
  .th-banners { grid-template-columns: repeat(2, 1fr); }
  .th-trustbar { grid-template-columns: repeat(2, 1fr); }
  .th-section__title { font-size: 20px; }
}
@media (max-width: 640px) {
  .th-hero__slider, .th-slider { min-height: 260px; }
  .th-slide__caption { font-size: 16px; padding: 6px 12px; }
  .th-products { grid-template-columns: repeat(2, 1fr); }
  .th-categories { grid-template-columns: repeat(2, 1fr); }
  .th-banners { grid-template-columns: repeat(2, 1fr); }
  .th-trustbar { grid-template-columns: 1fr; }
  .th-section, .th-hero, .th-trend, .th-trustbar { margin: 20px auto; padding: 0 12px; }
  .th-trend { flex-direction: column; align-items: flex-start; gap: 10px; }
  .th-trend__label { border-right: none; padding-right: 0; border-bottom: 2px solid var(--th-border); padding-bottom: 8px; width: 100%; }
  .th-product-card__price { font-size: 16px; }
}
