/*
Theme Name: Varanbo
Theme URI: https://varanbo.ir
Author: Varanbo Team
Description: پوسته اختصاصی، مینیمال و فوق‌سریع فروشگاه چای و برنج وارانبو
Version: 1.0.0
*/

/* ===================================================
   ۱. تنظیمات پایه و ریست (Base & Reset)
   =================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #212523;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

.site-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   ۲. هدر و منوی اصلی (Header & Navigation)
   =================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

.site-title {
  font-size: 24px;
  font-weight: 800;
  color: #486955;
  text-decoration: none;
}

.site-branding img {
  max-height: 48px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #212523;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #486955;
}

.header-cart {
  position: relative;
}

.cart-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #212523;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.cart-link:hover {
  background-color: #F8F9F6;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  background-color: #486955;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   ۳. صفحه اصلی (Hero & Categories Showcase)
   =================================================== */
.hero-intro {
  text-align: center;
  padding: 65px 0 45px 0;
  background-color: #ffffff;
}

.hero-badge {
  display: inline-block;
  background-color: #F8F9F6;
  color: #486955;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid #e2e8e4;
  margin-bottom: 18px;
}

.hero-heading {
  font-size: 32px;
  font-weight: 800;
  color: #212523;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.hero-subtext {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  color: #6B726F;
  line-height: 1.8;
}

.categories-showcase {
  padding: 20px 0 80px 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #212523;
  margin: 0 0 8px 0;
}

.section-subtitle {
  font-size: 14px;
  color: #6B726F;
  margin: 0;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cat-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: #ffffff;
  border: 1.5px solid #ecefe9;
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: #486955;
  box-shadow: 0 12px 24px rgba(72, 105, 85, 0.08);
}

.cat-icon-container {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background-color: #F8F9F6;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.cat-card:hover .cat-icon-container {
  background-color: #eaf1ed;
}

.cat-details {
  flex-grow: 1;
}

.cat-name {
  font-size: 20px;
  font-weight: 700;
  color: #212523;
  margin: 0 0 8px 0;
}

.cat-desc {
  font-size: 13.5px;
  color: #6B726F;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.cat-btn {
  font-size: 13px;
  font-weight: 700;
  color: #486955;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.cat-card:hover .cat-btn {
  gap: 10px;
}

/* ===================================================
   ۴. صفحه اختصاصی محصول (Single Product)
   =================================================== */
.product-page-wrapper {
  padding-top: 25px;
  padding-bottom: 60px;
}

.varanbo-breadcrumbs {
  margin: 20px 0;
  font-size: 13px;
}

.breadcrumb-nav,
.breadcrumb-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
  color: #6B726F;
}

.breadcrumb-nav a,
.breadcrumb-list a {
  color: #6B726F;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover,
.breadcrumb-list a:hover {
  color: #486955;
}

.breadcrumb-nav .sep,
.breadcrumb-list .sep {
  color: #c7cbd1;
}

.varanbo-product-layout,
.varanbo-single-product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
  background: #ffffff;
}

.product-gallery-section .woocommerce-product-gallery,
.product-media-col .woocommerce-product-gallery {
  background: #fafafa;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #f0f0f0;
}

.product-gallery-section img,
.product-media-col img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-badge,
.product-tag-nature {
  display: inline-block;
  background-color: #ebf3ee;
  color: #486955;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.product-main-title,
.product-page-title {
  font-size: 28px;
  font-weight: 800;
  color: #212523;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.product-pricing-wrap .price,
.product-price-box .price {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #486955 !important;
  margin-bottom: 18px;
  display: block;
}

.product-brief-desc,
.product-short-desc {
  font-size: 14.5px;
  color: #6B726F;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* متغیرها و دکمه‌های وزن (Pill Swatches) */
.variations {
  width: 100%;
  border: none;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.variations tr {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variations td.label label {
  font-size: 14px;
  font-weight: 700;
  color: #212523;
}

.varanbo-pills-group,
.varanbo-swatches-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pill-choice,
.swatch-button {
  background-color: #ffffff;
  border: 1.5px solid #d5dbd7;
  color: #212523;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-choice:hover,
.swatch-button:hover {
  border-color: #486955;
  background-color: #F8F9F6;
}

.pill-choice.is-active,
.swatch-button.selected {
  background-color: #486955;
  border-color: #486955;
  color: #ffffff;
}

/* تعداد و دکمه خرید ووکامرس */
.single_variation_wrap {
  margin-top: 24px;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quantity {
  margin-left: 14px;
  display: inline-block;
}

.quantity .qty {
  width: 65px;
  height: 48px;
  border: 1.5px solid #d5dbd7;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.single_add_to_cart_button.button {
  background-color: #486955 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 12px 28px !important;
  font-weight: bold !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.single_add_to_cart_button.button:hover {
  background-color: #385343 !important;
}

/* باکس اعتماد و اصالت */
.varanbo-trust-box,
.tea-trust-features {
  margin-top: 36px;
  padding: 18px 22px;
  background: #F8F9F6;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-item,
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon,
.feature-icon {
  font-size: 22px;
}

.trust-item strong,
.feature-text strong {
  display: block;
  font-size: 13.5px;
  color: #212523;
}

.trust-item span,
.feature-text span {
  font-size: 12px;
  color: #6B726F;
}

/* تب‌های توضیحات تکمیلی و نظرات */
.product-bottom-details,
.product-extra-details {
  border-top: 1px solid #eeeeee;
  padding-top: 40px;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-bottom: 2px solid #eef0f2;
  gap: 30px;
}

.woocommerce-tabs ul.tabs li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #6B726F;
  padding-bottom: 12px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li.active a {
  color: #486955;
  border-bottom-color: #486955;
}

/* ===================================================
   ۵. فوتر (Footer)
   =================================================== */
.site-footer {
  background-color: #F8F9F6;
  border-top: 1px solid #eaeaea;
  margin-top: 60px;
  padding-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-title {
  color: #486955;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 4px;
}

.footer-slogan {
  font-size: 13px;
  color: #486955;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
}

.footer-col-title {
  font-size: 16px;
  color: #212523;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #6B726F;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #486955;
}

.footer-text {
  font-size: 14px;
  color: #6B726F;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #6B726F;
}

/* ===================================================
   ۶. واکنش‌گرایی در تبلت و موبایل (Responsive)
   =================================================== */
@media (max-width: 820px) {
  .varanbo-product-layout,
  .varanbo-single-product {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cat-card {
    padding: 22px 20px;
    gap: 16px;
  }

  .hero-heading {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nav-menu {
    gap: 16px;
  }
}