/* ============================================================
   XeĐạpThểThao.vn — Inner Pages CSS
   Forest Green #2E7D32 | Amber #F9A825 | Deep Forest #1B3A1B
   ============================================================ */

/* ============== PAGE BANNER ============== */
.xd-page-banner {
  background: linear-gradient(135deg, var(--xd-forest) 0%, var(--xd-green-dark) 50%, var(--xd-green) 100%);
  padding: 130px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.xd-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.xd-page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}
.xd-page-banner h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.xd-page-banner h1 em {
  font-style: normal;
  color: var(--xd-amber-light);
}
.xd-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}
.xd-breadcrumb a,
.xd-breadcrumb span {
  white-space: nowrap;
}
.xd-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}
.xd-breadcrumb a:hover {
  color: var(--xd-amber-light);
}
.xd-breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.4);
}
.xd-breadcrumb span {
  color: var(--xd-amber-light);
}

/* ============== PAGINATION ============== */
.xd-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.xd-pagination a,
.xd-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--xd-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--xd-border);
  background: var(--xd-card);
  color: var(--xd-text-muted);
  transition: all 0.3s;
}
.xd-pagination a:hover {
  border-color: var(--xd-green);
  color: var(--xd-green);
}
.xd-pagination .xd-pg-active {
  background: var(--xd-green);
  border-color: var(--xd-green);
  color: #fff;
}
.xd-pagination svg {
  width: 16px;
  height: 16px;
}

/* ============== SIDEBAR ============== */
.xd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.xd-sidebar-widget {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(27, 58, 27, 0.05);
}
.xd-sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--xd-border);
  position: relative;
}
.xd-sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--xd-green);
}
.xd-sidebar-search {
  display: flex;
  gap: 8px;
}
.xd-sidebar-search input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
  background: var(--xd-bg);
}
.xd-sidebar-search input:focus {
  border-color: var(--xd-green);
}
.xd-sidebar-search button {
  padding: 10px 16px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: var(--xd-radius-sm);
  cursor: pointer;
  transition: background 0.3s;
}
.xd-sidebar-search button:hover {
  background: var(--xd-green-dark);
}
.xd-sidebar-search button svg {
  width: 18px;
  height: 18px;
}
.xd-sidebar-cats li {
  margin-bottom: 0;
}
.xd-sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--xd-border);
  font-size: 0.88rem;
  color: var(--xd-text-muted);
  font-weight: 500;
  transition: all 0.3s;
}
.xd-sidebar-cats a:hover {
  color: var(--xd-green);
}
.xd-sidebar-cats .xd-cat-count-badge {
  background: var(--xd-bg);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--xd-text-muted);
}
.xd-sidebar-cats li:last-child a {
  border-bottom: none;
}
.xd-sidebar-cats li.xd-active a {
  color: var(--xd-green);
  font-weight: 700;
}
.xd-sidebar-cats li.xd-active .xd-cat-count-badge {
  background: var(--xd-green);
  color: #fff;
}
/* Price filter */
.xd-price-range {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.xd-price-range input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  background: var(--xd-bg);
}
.xd-price-range span {
  color: var(--xd-text-muted);
  font-size: 0.82rem;
}
/* Filter checkboxes */
.xd-filter-group {
  margin-bottom: 16px;
}
.xd-filter-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 10px;
  display: block;
}
.xd-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.84rem;
  color: var(--xd-text-muted);
  cursor: pointer;
}
.xd-filter-check input[type="checkbox"] {
  accent-color: var(--xd-green);
  width: 16px;
  height: 16px;
}
/* Filter toggle button (mobile) */
.xd-filter-toggle {
  display: none;
  padding: 12px 24px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.xd-filter-toggle svg {
  width: 18px;
  height: 18px;
}

/* ============== PRODUCT ARCHIVE ============== */
.xd-archive {
  padding: 60px 0 80px;
}
.xd-archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}
.xd-archive .xd-prod-grid {
  grid-template-columns: repeat(3, 1fr);
}
.xd-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.xd-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  box-shadow: 0 2px 8px rgba(27, 58, 27, 0.04);
}
.xd-sort-bar span {
  font-size: 0.88rem;
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-sort-bar strong {
  color: var(--xd-forest);
}
.xd-sort-select {
  padding: 8px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.84rem;
  background: var(--xd-bg);
  color: var(--xd-text);
  outline: none;
  cursor: pointer;
}
.xd-sort-select:focus {
  border-color: var(--xd-green);
}
/* WC result count + ordering inside sort bar */
.xd-sort-bar .woocommerce-result-count {
  font-size: 0.88rem;
  color: var(--xd-text-muted);
  font-weight: 500;
  margin: 0;
}
.xd-sort-bar .woocommerce-ordering {
  margin: 0;
}
.xd-sort-bar .woocommerce-ordering select.orderby {
  padding: 8px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.84rem;
  background: var(--xd-bg);
  color: var(--xd-text);
  outline: none;
  cursor: pointer;
  appearance: auto;
}
.xd-sort-bar .woocommerce-ordering select.orderby:focus {
  border-color: var(--xd-green);
}

/* ============== PRODUCT DETAIL ============== */
.xd-detail {
  padding: 40px 0 80px;
}
.xd-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.xd-detail-gallery {
  position: sticky;
  top: 100px;
}
.xd-detail-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--xd-radius);
  overflow: hidden;
  background: var(--xd-bg-warm);
  margin-bottom: 12px;
}
.xd-detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xd-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.xd-detail-thumb {
  aspect-ratio: 1;
  border-radius: var(--xd-radius-sm);
  overflow: hidden;
  border: 2px solid var(--xd-border);
  cursor: pointer;
  transition: border-color 0.3s;
}
.xd-detail-thumb.xd-on {
  border-color: var(--xd-green);
}
.xd-detail-thumb:hover {
  border-color: var(--xd-green-light);
}
.xd-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xd-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xd-detail-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--xd-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--xd-bg);
  padding: 6px 14px;
  border-radius: 50px;
  align-self: flex-start;
}
.xd-detail-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--xd-forest);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.xd-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.xd-detail-stars {
  display: flex;
  gap: 2px;
}
.xd-detail-stars .xd-star {
  width: 16px;
  height: 16px;
  fill: #FFB300;
}
.xd-detail-stars .xd-star-e {
  width: 16px;
  height: 16px;
  fill: var(--xd-border);
}
.xd-detail-rating-text {
  font-size: 0.84rem;
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-detail-price-box {
  background: var(--xd-bg);
  padding: 20px;
  border-radius: var(--xd-radius);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.xd-detail-price-old {
  font-size: 1rem;
  color: var(--xd-text-muted);
  text-decoration: line-through;
}
.xd-detail-price-new {
  font-size: 2rem;
  font-weight: 900;
  color: var(--xd-green-dark);
}
.xd-detail-discount {
  background: var(--xd-amber);
  color: var(--xd-forest);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
.xd-detail-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xd-detail-option-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--xd-forest);
}
.xd-detail-colors {
  display: flex;
  gap: 8px;
}
.xd-detail-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--xd-border);
  cursor: pointer;
  transition: all 0.3s;
}
.xd-detail-color:hover,
.xd-detail-color.xd-on {
  border-color: var(--xd-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}
.xd-detail-sizes {
  display: flex;
  gap: 8px;
}
.xd-detail-size {
  padding: 8px 20px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--xd-card);
  color: var(--xd-text-muted);
  transition: all 0.3s;
}
.xd-detail-size:hover,
.xd-detail-size.xd-on {
  border-color: var(--xd-green);
  background: var(--xd-green);
  color: #fff;
}
.xd-detail-qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.xd-detail-qty button {
  width: 48px;
  height: 58px;
  border: 2px solid var(--xd-border);
  background: var(--xd-card);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--xd-forest);
  cursor: pointer;
  transition: all 0.3s;
}
.xd-detail-qty button:first-child {
  border-radius: var(--xd-radius-sm) 0 0 var(--xd-radius-sm);
}
.xd-detail-qty button:last-child {
  border-radius: 0 var(--xd-radius-sm) var(--xd-radius-sm) 0;
}
.xd-detail-qty button:hover {
  background: var(--xd-green);
  color: #fff;
  border-color: var(--xd-green);
}
.xd-detail-qty input {
  width: 60px;
  height: 58px;
  border: 2px solid var(--xd-border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--xd-forest);
  outline: none;
}
.xd-detail-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.xd-detail-actions .xd-detail-qty {
  flex-shrink: 0;
}
.xd-detail-actions .xd-btn-shopee,
.xd-detail-actions .xd-btn-add-cart {
  flex: 1;
  min-height: 48px;
  padding: 0 20px;
  font-size: 1rem;
  border-radius: var(--xd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.xd-detail-actions .cart { display: contents; }
.xd-detail-qty button {
  width: 44px;
  height: 48px;
}
.xd-detail-qty input {
  width: 52px;
  height: 48px;
}
.xd-detail-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.xd-detail-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-detail-trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--xd-green);
}
/* Product tabs */
.xd-detail-tabs {
  margin-top: 60px;
}
.xd-detail-tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--xd-border);
  margin-bottom: 30px;
}
.xd-detail-tab {
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--xd-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: all 0.3s;
  font-family: inherit;
}
.xd-detail-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--xd-green);
  opacity: 0;
  transition: opacity 0.3s;
}
.xd-detail-tab:hover {
  color: var(--xd-green);
}
.xd-detail-tab.xd-on {
  color: var(--xd-green);
}
.xd-detail-tab.xd-on::after {
  opacity: 1;
}
.xd-detail-panel {
  display: none;
}
.xd-detail-panel.xd-on {
  display: block;
}
.xd-detail-content {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--xd-text);
}
.xd-detail-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin: 24px 0 12px;
}
.xd-detail-content p {
  margin-bottom: 16px;
}
.xd-detail-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.xd-detail-content ul li {
  margin-bottom: 6px;
}
/* Specs table */
.xd-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.xd-specs-table tr:nth-child(even) {
  background: var(--xd-bg);
}
.xd-specs-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--xd-border);
}
.xd-specs-table td:first-child {
  font-weight: 600;
  color: var(--xd-forest);
  width: 200px;
}
.xd-specs-table td:last-child {
  color: var(--xd-text-muted);
}

/* Related products */
.xd-related {
  padding: 60px 0 80px;
  background: var(--xd-bg-warm);
}

/* ============== BLOG ARCHIVE ============== */
.xd-blog-archive {
  padding: 60px 0 80px;
}
.xd-blog-archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.xd-blog-featured {
  margin-bottom: 40px;
}
.xd-blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  overflow: hidden;
  box-shadow: var(--xd-shadow);
  transition: all 0.3s var(--xd-ease);
}
.xd-blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--xd-shadow-lg);
}
.xd-blog-featured-img {
  overflow: hidden;
}
.xd-blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.xd-blog-featured-card:hover .xd-blog-featured-img img {
  transform: scale(1.05);
}
.xd-blog-featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.xd-blog-featured-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--xd-green);
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.xd-blog-featured-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--xd-forest);
  line-height: 1.3;
  margin-bottom: 12px;
}
.xd-blog-featured-excerpt {
  font-size: 0.92rem;
  color: var(--xd-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
/* Sidebar popular posts */
.xd-sidebar-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--xd-border);
}
.xd-sidebar-post:last-child {
  border-bottom: none;
}
.xd-sidebar-post-img {
  width: 70px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.xd-sidebar-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xd-sidebar-post-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--xd-forest);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xd-sidebar-post-date {
  font-size: 0.72rem;
  color: var(--xd-text-muted);
  margin-top: 2px;
}

/* ============== BLOG SINGLE (ARTICLE) ============== */
.xd-article {
  padding: 40px 0 80px;
}
.xd-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.xd-article-header {
  margin-bottom: 32px;
}
.xd-article-cat {
  display: inline-flex;
  background: var(--xd-green);
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.xd-article-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--xd-forest);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.xd-article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--xd-text-muted);
}
.xd-article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.xd-article-meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--xd-green);
}
.xd-article-featured-img {
  width: 100%;
  border-radius: var(--xd-radius);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/8;
}
.xd-article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xd-article-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--xd-text);
}
.xd-article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin: 32px 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--xd-green);
}
.xd-article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin: 24px 0 10px;
}
.xd-article-content p {
  margin-bottom: 18px;
}
.xd-article-content ul,
.xd-article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.xd-article-content li {
  margin-bottom: 8px;
}
.xd-article-content img {
  border-radius: var(--xd-radius);
  margin: 24px 0;
}
.xd-article-content blockquote {
  background: var(--xd-bg);
  border-left: 4px solid var(--xd-green);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--xd-radius) var(--xd-radius) 0;
  font-style: italic;
  color: var(--xd-text-muted);
}
.xd-article-author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--xd-card);
  padding: 24px;
  border-radius: var(--xd-radius);
  box-shadow: var(--xd-shadow);
  margin-top: 40px;
}
.xd-article-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xd-green), var(--xd-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.xd-article-author-name {
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 4px;
}
.xd-article-author-bio {
  font-size: 0.84rem;
  color: var(--xd-text-muted);
  line-height: 1.6;
}

/* ============== CONTACT ============== */
.xd-contact {
  padding: 60px 0 80px;
}
.xd-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.xd-contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xd-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--xd-card);
  padding: 24px;
  border-radius: var(--xd-radius);
  box-shadow: 0 2px 12px rgba(27, 58, 27, 0.05);
  transition: all 0.3s var(--xd-ease);
}
.xd-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--xd-shadow);
}
.xd-contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xd-contact-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--xd-green);
}
.xd-contact-card-label {
  font-size: 0.78rem;
  color: var(--xd-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}
.xd-contact-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xd-forest);
}
.xd-contact-map {
  margin-top: 16px;
  border-radius: var(--xd-radius);
  overflow: hidden;
  height: 200px;
  background: var(--xd-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xd-text-muted);
  font-size: 0.88rem;
  border: 2px dashed var(--xd-border);
}
.xd-contact-form {
  background: var(--xd-card);
  padding: 32px;
  border-radius: var(--xd-radius);
  box-shadow: var(--xd-shadow);
}
.xd-contact-form h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 24px;
}
.xd-form-group {
  margin-bottom: 18px;
}
.xd-form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--xd-forest);
  margin-bottom: 6px;
}
.xd-form-input,
.xd-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
  background: var(--xd-bg);
}
.xd-form-input:focus,
.xd-form-textarea:focus {
  border-color: var(--xd-green);
}
.xd-form-textarea {
  height: 120px;
  resize: vertical;
}
.xd-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--xd-ease);
}
.xd-form-submit:hover {
  background: var(--xd-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.35);
}
.xd-form-submit svg {
  width: 18px;
  height: 18px;
}
.xd-contact-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.xd-contact-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--xd-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.xd-contact-social a:hover {
  background: var(--xd-green);
}
.xd-contact-social svg {
  width: 18px;
  height: 18px;
  stroke: var(--xd-green);
}
.xd-contact-social a:hover svg {
  stroke: #fff;
}

/* ============== ABOUT ============== */
.xd-about {
  padding: 60px 0 80px;
}
.xd-about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.xd-about-story-img {
  border-radius: var(--xd-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.xd-about-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xd-about-story-text h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--xd-forest);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.xd-about-story-text h2 em {
  font-style: normal;
  color: var(--xd-green);
}
.xd-about-story-text p {
  font-size: 0.95rem;
  color: var(--xd-text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.xd-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.xd-about-stat {
  text-align: center;
  background: var(--xd-card);
  padding: 32px 20px;
  border-radius: var(--xd-radius);
  box-shadow: var(--xd-shadow);
  transition: all 0.3s var(--xd-ease);
}
.xd-about-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--xd-shadow-lg);
}
.xd-about-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--xd-green);
  margin-bottom: 4px;
}
.xd-about-stat-label {
  font-size: 0.84rem;
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-about-values {
  margin-bottom: 60px;
}
.xd-about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.xd-about-value {
  background: var(--xd-card);
  padding: 32px 24px;
  border-radius: var(--xd-radius);
  box-shadow: 0 2px 12px rgba(27, 58, 27, 0.05);
  text-align: center;
  transition: all 0.3s var(--xd-ease);
}
.xd-about-value:hover {
  transform: translateY(-4px);
  box-shadow: var(--xd-shadow);
}
.xd-about-value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.xd-about-value-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--xd-green);
}
.xd-about-value h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 8px;
}
.xd-about-value p {
  font-size: 0.84rem;
  color: var(--xd-text-muted);
  line-height: 1.6;
}

/* ============== POLICY ============== */
.xd-policy {
  padding: 60px 0 80px;
}
.xd-policy-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--xd-border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.xd-policy-tab {
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--xd-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: all 0.3s;
  font-family: inherit;
}
.xd-policy-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--xd-green);
  opacity: 0;
  transition: opacity 0.3s;
}
.xd-policy-tab:hover {
  color: var(--xd-green);
}
.xd-policy-tab.xd-on {
  color: var(--xd-green);
}
.xd-policy-tab.xd-on::after {
  opacity: 1;
}
.xd-policy-panel {
  display: none;
}
.xd-policy-panel.xd-on {
  display: block;
}
.xd-policy-content {
  max-width: 800px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--xd-text);
}
.xd-policy-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin: 28px 0 12px;
}
.xd-policy-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin: 20px 0 8px;
}
.xd-policy-content p {
  margin-bottom: 14px;
}
.xd-policy-content ul,
.xd-policy-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.xd-policy-content li {
  margin-bottom: 6px;
}
.xd-policy-content strong {
  color: var(--xd-forest);
}

/* ============== 404 ============== */
.xd-404 {
  padding: 60px 24px 80px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xd-404-inner {
  max-width: 500px;
}
.xd-404-illustration {
  margin-bottom: 24px;
}
.xd-404-illustration svg {
  width: 180px;
  height: 180px;
  margin: 0 auto;
}
.xd-404-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--xd-green);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -4px;
}
.xd-404-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 12px;
}
.xd-404-desc {
  font-size: 0.95rem;
  color: var(--xd-text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.xd-404-search {
  display: flex;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 20px;
}
.xd-404-search input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  background: var(--xd-card);
}
.xd-404-search input:focus {
  border-color: var(--xd-green);
}
.xd-404-search button {
  padding: 12px 16px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: var(--xd-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.xd-404-search button:hover { background: var(--xd-green-dark); }
.xd-404-search button svg { width: 20px; height: 20px; }

/* ============== SEARCH RESULTS ============== */
.xd-search {
  padding: 60px 0 80px;
}
.xd-search-bar {
  max-width: 600px;
  margin: 0 auto 40px;
}
.xd-search-bar-inner {
  display: flex;
  gap: 8px;
}
.xd-search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--xd-border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--xd-card);
}
.xd-search-bar input:focus {
  border-color: var(--xd-green);
}
.xd-search-bar button {
  padding: 14px 28px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.xd-search-bar button:hover {
  background: var(--xd-green-dark);
}
.xd-search-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 24px;
}
.xd-search-heading span {
  color: var(--xd-green);
}
.xd-search-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--xd-border);
}
.xd-search-group-title svg { stroke: var(--xd-green); }
.xd-search-group-title span { color: var(--xd-text-muted); font-weight: 500; font-size: 0.9rem; }
.xd-search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.xd-search-posts {
  grid-template-columns: repeat(3, 1fr);
}

/* ============== CART ============== */
.xd-cart {
  padding: 60px 0 80px;
}
.xd-cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}
.xd-cart-main {
  min-width: 0;
}
.xd-cart-table {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  box-shadow: 0 2px 12px rgba(27, 58, 27, 0.05);
  overflow: hidden;
}
.xd-cart-header {
  display: grid;
  grid-template-columns: 70px 1fr 100px 100px 100px 36px;
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
  background: var(--xd-bg);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--xd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.xd-cart-item {
  display: grid;
  grid-template-columns: 70px 1fr 100px 100px 100px 36px;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--xd-border);
  transition: background 0.2s;
}
.xd-cart-item:last-child {
  border-bottom: none;
}
.xd-cart-item:hover {
  background: var(--xd-bg);
}
.xd-cart-col-img img {
  width: 80px;
  height: 80px;
  border-radius: var(--xd-radius-sm);
  object-fit: cover;
}
.xd-cart-product-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 4px;
  transition: color 0.3s;
}
.xd-cart-product-name:hover {
  color: var(--xd-green);
}
.xd-cart-product-meta {
  font-size: 0.78rem;
  color: var(--xd-text-muted);
}
.xd-cart-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--xd-text);
}
.xd-cart-qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.xd-cart-qty-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--xd-border);
  background: var(--xd-card);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xd-forest);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.xd-cart-qty-minus {
  border-radius: var(--xd-radius-sm) 0 0 var(--xd-radius-sm);
  border-right: none;
}
.xd-cart-qty-plus {
  border-radius: 0 var(--xd-radius-sm) var(--xd-radius-sm) 0;
  border-left: none;
}
.xd-cart-qty-btn:hover {
  background: var(--xd-green);
  color: #fff;
  border-color: var(--xd-green);
}
.xd-cart-qty-input {
  width: 48px;
  height: 36px;
  border: 2px solid var(--xd-border);
  text-align: center;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--xd-forest);
  outline: none;
  -moz-appearance: textfield;
}
.xd-cart-qty-input::-webkit-inner-spin-button,
.xd-cart-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.xd-cart-subtotal {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--xd-green-dark);
}
.xd-cart-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.xd-cart-remove svg {
  width: 18px;
  height: 18px;
  stroke: var(--xd-text-muted);
  transition: stroke 0.3s;
}
.xd-cart-remove:hover {
  background: #fce4ec;
}
.xd-cart-remove:hover svg {
  stroke: #c62828;
}
/* Cart Actions */
.xd-cart-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--xd-border);
}
.xd-cart-actions .xd-btn {
  font-family: inherit; font-size: 0.85rem; padding: 10px 24px;
}
/* Coupon in summary sidebar */
.xd-cart-summary-coupon {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--xd-border);
}
.xd-cart-summary-coupon-label {
  font-size: 0.88rem; font-weight: 700; color: var(--xd-forest); margin-bottom: 8px;
}
.xd-cart-coupon-row {
  display: flex; gap: 8px;
}
.xd-coupon-input {
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 2px solid var(--xd-border); border-radius: var(--xd-radius-sm);
  font-family: inherit; font-size: 0.85rem; outline: none;
}
.xd-coupon-input:focus { border-color: var(--xd-green); }
.xd-coupon-btn { padding: 10px 16px !important; font-size: 0.82rem !important; white-space: nowrap; }
/* WC quantity in cart */
.xd-cart-item .quantity { display: flex; align-items: center; }
.xd-cart-item .quantity input.qty {
  width: 50px; padding: 8px; text-align: center;
  border: 2px solid var(--xd-border); border-radius: var(--xd-radius-sm);
  font-family: inherit; font-weight: 700; font-size: 0.9rem;
}
/* Cart continue link in summary */
.xd-cart-continue {
  display: block; text-align: center; margin-top: 10px;
  font-size: 0.88rem; font-weight: 600; color: var(--xd-green);
  padding: 12px 16px; border: 2px solid var(--xd-green); border-radius: var(--xd-radius-sm);
  transition: all 0.3s; box-sizing: border-box;
}
.xd-cart-continue:hover { background: var(--xd-green); color: #fff; }
.xd-cart-summary-divider {
  height: 2px; background: var(--xd-border); margin: 12px 0;
}
.xd-cart-update-btn {
  font-family: inherit;
}
/* Cart Summary */
.xd-cart-summary {
  position: sticky;
  top: 100px;
}
.xd-cart-summary-inner {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  padding: 28px;
  box-shadow: var(--xd-shadow);
}
.xd-cart-summary-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--xd-border);
  position: relative;
}
.xd-cart-summary-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--xd-green);
}
.xd-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.92rem;
}
.xd-cart-summary-row span {
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-cart-summary-row strong {
  color: var(--xd-forest);
  font-weight: 700;
}
.xd-cart-free-ship {
  color: var(--xd-green) !important;
}
.xd-cart-summary-divider {
  height: 2px;
  background: var(--xd-border);
  margin: 4px 0;
}
.xd-cart-summary-total {
  padding: 16px 0;
}
.xd-cart-summary-total span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xd-forest);
}
.xd-cart-summary-total strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--xd-green-dark);
}
/* Coupon */
.xd-cart-coupon {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--xd-border);
}
.xd-cart-coupon-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--xd-forest);
  display: block;
  margin-bottom: 8px;
}
.xd-cart-coupon-input-group {
  display: flex;
  gap: 8px;
}
.xd-cart-coupon-input-group .xd-form-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.84rem;
}
.xd-cart-coupon-btn {
  flex-shrink: 0;
  padding: 10px 18px !important;
  font-size: 0.82rem !important;
  font-family: inherit;
}
.xd-cart-checkout-btn {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1rem;
  border-radius: var(--xd-radius);
  margin-top: 20px;
}
.xd-cart-continue-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.88rem;
  border-radius: var(--xd-radius);
  margin-top: 10px;
}
/* Empty Cart */
.xd-cart-empty {
  padding: 60px 24px;
  text-align: center;
}
.xd-cart-empty-inner {
  max-width: 400px;
  margin: 0 auto;
}
.xd-cart-empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}
.xd-cart-empty-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 12px;
}
.xd-cart-empty-desc {
  font-size: 0.92rem;
  color: var(--xd-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ============== CHECKOUT ============== */
.xd-checkout {
  padding: 60px 0 80px;
}
.xd-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: start;
}
.xd-checkout-form {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(27, 58, 27, 0.05);
}
.xd-checkout-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--xd-border);
  position: relative;
}
.xd-checkout-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--xd-green);
}
.xd-checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.xd-form-full {
  grid-column: 1 / -1;
}
.xd-required {
  color: #c62828;
}
.xd-form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F7A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
/* Checkout Order Summary */
.xd-checkout-order {
  position: sticky;
  top: 100px;
}
.xd-checkout-order-inner {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  padding: 28px;
  box-shadow: var(--xd-shadow);
}
.xd-checkout-order-table {
  margin-bottom: 0;
}
.xd-checkout-order-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--xd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--xd-border);
}
.xd-checkout-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--xd-border);
}
.xd-checkout-order-item:last-child {
  border-bottom: none;
}
.xd-checkout-order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.xd-checkout-order-product img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.xd-checkout-order-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--xd-forest);
  line-height: 1.3;
}
.xd-checkout-order-qty {
  font-size: 0.78rem;
  color: var(--xd-text-muted);
}
.xd-checkout-order-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--xd-forest);
  white-space: nowrap;
  margin-left: 12px;
}
/* Checkout Totals */
.xd-checkout-totals {
  padding-top: 12px;
  border-top: 2px solid var(--xd-border);
  margin-top: 8px;
}
.xd-checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.92rem;
}
.xd-checkout-total-row span {
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-checkout-total-row strong {
  color: var(--xd-forest);
  font-weight: 700;
}
.xd-checkout-total-final {
  border-top: 2px solid var(--xd-border);
  padding-top: 14px;
  margin-top: 4px;
}
.xd-checkout-total-final span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xd-forest);
}
.xd-checkout-total-final strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--xd-green-dark);
}
/* Payment Methods */
.xd-payment-methods {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--xd-border);
}
.xd-payment-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 14px;
}
.xd-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.xd-payment-option:hover {
  border-color: var(--xd-green-light);
}
.xd-payment-option.xd-payment-active {
  border-color: var(--xd-green);
  background: rgba(46, 125, 50, 0.04);
}
.xd-payment-option input[type="radio"] {
  display: none;
}
.xd-payment-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--xd-border);
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: border-color 0.3s;
}
.xd-payment-active .xd-payment-radio {
  border-color: var(--xd-green);
}
.xd-payment-active .xd-payment-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--xd-green);
}
.xd-payment-info {
  flex: 1;
}
.xd-payment-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 2px;
}
.xd-payment-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--xd-text-muted);
  line-height: 1.4;
}
.xd-payment-bank-info {
  margin-bottom: 10px;
}
.xd-payment-bank-box {
  background: var(--xd-bg);
  border-radius: var(--xd-radius-sm);
  padding: 16px;
  border-left: 4px solid var(--xd-green);
}
.xd-payment-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.84rem;
}
.xd-payment-bank-row:not(:last-child) {
  border-bottom: 1px solid var(--xd-border);
}
.xd-payment-bank-label {
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-payment-bank-row strong {
  color: var(--xd-forest);
  font-weight: 700;
}
/* Place Order */
.xd-checkout-place-order {
  width: 100%;
  justify-content: center;
  padding: 18px 24px;
  font-size: 1.05rem;
  border-radius: var(--xd-radius);
  margin-top: 20px;
}
/* Checkout Trust Badges */
.xd-checkout-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--xd-border);
}
.xd-checkout-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.xd-checkout-trust-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--xd-green);
}
.xd-checkout-trust-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--xd-text-muted);
}

/* ============== RESPONSIVE FOR INNER PAGES ============== */
@media (max-width: 1024px) {
  .xd-archive-layout {
    grid-template-columns: 250px 1fr;
  }
  .xd-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xd-about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Cart */
  .xd-cart-layout {
    grid-template-columns: 1fr 340px;
  }
  .xd-cart-header {
    grid-template-columns: 80px 1fr 110px 110px 110px 40px;
  }
  .xd-cart-item {
    grid-template-columns: 80px 1fr 110px 110px 110px 40px;
  }
  /* Checkout */
  .xd-checkout-layout {
    grid-template-columns: 1fr 380px;
  }
}

@media (max-width: 768px) {
  .xd-page-banner {
    padding: 100px 24px 40px;
  }
  .xd-breadcrumb {
    font-size: 0.76rem;
    gap: 4px;
  }
  .xd-breadcrumb svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
  }
  .xd-breadcrumb span {
    white-space: normal;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    white-space: nowrap;
  }
  .xd-page-banner h1 {
    font-size: 1.8rem;
  }
  /* Product archive */
  .xd-archive-layout {
    grid-template-columns: 1fr;
  }
  .xd-filter-toggle {
    display: flex;
  }
  .xd-archive-layout .xd-sidebar {
    display: none;
  }
  .xd-archive-layout .xd-sidebar.xd-open {
    display: flex;
  }
  .xd-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Product detail */
  .xd-detail-layout {
    grid-template-columns: 1fr;
  }
  .xd-detail-gallery {
    position: static;
  }
  .xd-detail-title {
    font-size: 1.4rem;
  }
  .xd-detail-price-new {
    font-size: 1.6rem;
  }
  .xd-detail-tab-nav {
    flex-wrap: wrap;
  }
  .xd-detail-tab {
    padding: 10px 16px;
    font-size: 0.82rem;
  }
  /* Blog */
  .xd-blog-archive-layout {
    grid-template-columns: 1fr;
  }
  .xd-blog-featured-card {
    grid-template-columns: 1fr;
  }
  /* Article */
  .xd-article-layout {
    grid-template-columns: 1fr;
  }
  .xd-article-title {
    font-size: 1.5rem;
  }
  .xd-article-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  /* Contact */
  .xd-contact-layout {
    grid-template-columns: 1fr;
  }
  /* About */
  .xd-about-story {
    grid-template-columns: 1fr;
  }
  .xd-about-values-grid {
    grid-template-columns: 1fr;
  }
  /* Search */
  .xd-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xd-search-posts {
    grid-template-columns: 1fr;
  }
  /* Policy */
  .xd-policy-tabs {
    gap: 2px;
  }
  .xd-policy-tab {
    padding: 10px 16px;
    font-size: 0.82rem;
  }
  .xd-sort-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  /* Cart — mobile card layout */
  .xd-cart-layout {
    grid-template-columns: 1fr;
  }
  .xd-cart-header {
    display: none;
  }
  .xd-cart-item {
    grid-template-columns: 80px 1fr;
    gap: 0;
    padding: 20px;
    position: relative;
  }
  .xd-cart-col-img {
    grid-row: 1 / 4;
  }
  .xd-cart-col-name {
    padding-left: 14px;
    padding-right: 30px;
  }
  .xd-cart-col-price,
  .xd-cart-col-qty,
  .xd-cart-col-subtotal {
    grid-column: 2;
    padding-left: 14px;
    padding-top: 6px;
  }
  .xd-cart-col-price::before,
  .xd-cart-col-qty::before,
  .xd-cart-col-subtotal::before {
    content: attr(data-label) " ";
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--xd-text-muted);
    margin-right: 6px;
  }
  .xd-cart-col-remove {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .xd-cart-actions {
    flex-direction: column;
  }
  .xd-cart-actions .xd-btn {
    width: 100%;
    justify-content: center;
  }
  .xd-cart-summary {
    position: static;
  }
  /* Checkout — single column */
  .xd-checkout-layout {
    grid-template-columns: 1fr;
  }
  .xd-checkout-order {
    position: static;
  }
  .xd-checkout-form-grid {
    grid-template-columns: 1fr;
  }
  .xd-checkout-form-grid .xd-form-full {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .xd-page-banner h1 {
    font-size: 1.5rem;
  }
  .xd-breadcrumb {
    font-size: 0.75rem;
  }
  .xd-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .xd-detail-actions {
    flex-direction: row;
  }
  .xd-detail-actions .xd-btn-shopee,
  .xd-detail-actions .xd-btn-add-cart {
    font-size: 0.82rem;
    padding: 0 10px;
    min-height: 42px;
  }
  .xd-detail-qty button {
    width: 36px;
    height: 42px;
  }
  .xd-detail-qty input {
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
  }
  .xd-detail-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .xd-about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .xd-about-stat {
    padding: 20px 12px;
  }
  .xd-about-stat-num {
    font-size: 1.6rem;
  }
  .xd-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xd-search-posts {
    grid-template-columns: 1fr;
  }
  .xd-404-code {
    font-size: 4rem;
  }
  .xd-pagination a,
  .xd-pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
  /* Cart 480 */
  .xd-cart-col-img img {
    width: 64px;
    height: 64px;
  }
  .xd-cart-item {
    grid-template-columns: 64px 1fr;
    padding: 16px;
  }
  .xd-cart-product-name {
    font-size: 0.84rem;
  }
  .xd-cart-summary-inner {
    padding: 20px;
  }
  /* Checkout 480 */
  .xd-checkout-form {
    padding: 20px;
  }
  .xd-checkout-order-inner {
    padding: 20px;
  }
  .xd-checkout-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .xd-checkout-trust-item {
    flex-direction: row;
  }
}

/* ============== CONTACT FORM 7 OVERRIDES ============== */
.xd-contact-form .wpcf7 {
  width: 100%;
}
.xd-contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
}
.xd-contact-form .xd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.xd-contact-form .xd-form-full {
  grid-column: 1 / -1;
}
.xd-contact-form .xd-form-group {
  display: flex;
  flex-direction: column;
}
.xd-contact-form .xd-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 2px;
}
.xd-contact-form .xd-form-group br {
  display: none;
}
.xd-contact-form .xd-required {
  color: #c62828;
}
.xd-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.xd-contact-form .wpcf7-form-control:not([type="submit"]) {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: var(--xd-card);
  transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--xd-text);
}
.xd-contact-form .wpcf7-form-control:focus {
  border-color: var(--xd-green);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.xd-contact-form textarea.wpcf7-form-control {
  min-height: 160px;
  resize: vertical;
}
.xd-contact-form .xd-form-group:last-child {
  margin-top: 4px;
}
.xd-contact-form .wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 280px;
}
.xd-contact-form .wpcf7-submit:hover {
  background: var(--xd-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}
.xd-contact-form .wpcf7-response-output {
  border: none !important;
  padding: 14px 18px;
  border-radius: var(--xd-radius-sm);
  font-size: 0.85rem;
  margin: 16px 0 0 !important;
}
.xd-contact-form .wpcf7-mail-sent-ok {
  background: #e8f5e9;
  color: #2e7d32;
}
.xd-contact-form .wpcf7-validation-errors {
  background: #fff3e0;
  color: #e65100;
}
.xd-contact-form .wpcf7-not-valid-tip {
  color: #c62828;
  font-size: 0.78rem;
  margin-top: 4px;
}
.xd-contact-form .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0 !important;
}
@media (max-width: 768px) {
  .xd-contact-form .xd-form-grid {
    grid-template-columns: 1fr;
  }
  .xd-contact-form .xd-form-full {
    grid-column: 1;
  }
  .xd-contact-form .wpcf7-submit {
    width: 100%;
    max-width: none;
  }
}

/* ============== WOOCOMMERCE CART/CHECKOUT OVERRIDES ============== */
/* Cart 2-column layout */
.xd-cart .woocommerce {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}
.xd-cart .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}
.xd-cart .woocommerce-cart-form {
  min-width: 0;
}
.xd-cart .cart-collaterals {
  position: sticky;
  top: 100px;
}
@media (max-width: 768px) {
  .xd-cart .woocommerce {
    grid-template-columns: 1fr;
  }
  .xd-cart .cart-collaterals {
    position: static;
  }
}

/* Empty cart state */
.xd-cart .wc-empty-cart-message {
  text-align: center;
  padding: 60px 20px;
}
.xd-cart .cart-empty.woocommerce-info {
  background: var(--xd-card);
  border: none;
  border-radius: var(--xd-radius);
  padding: 40px;
  box-shadow: var(--xd-shadow);
  font-size: 1.1rem;
  color: var(--xd-text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
}
.xd-cart .cart-empty.woocommerce-info::before {
  content: '';
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--xd-bg);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 002 1.61h9.72a2 2 0 002-1.61L23 6H6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px;
}
.xd-cart .return-to-shop {
  text-align: center;
}
.xd-cart .return-to-shop .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.xd-cart .return-to-shop .button:hover {
  background: var(--xd-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}

/* WC Cart table (when items exist) */
.xd-cart .woocommerce-cart-form table.shop_table {
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  box-shadow: var(--xd-shadow);
  overflow: hidden;
  width: 100%;
}
.xd-cart .shop_table th {
  background: var(--xd-bg);
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--xd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
.xd-cart .shop_table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--xd-border);
  vertical-align: middle;
  font-size: 0.9rem;
  border-top: none;
}
.xd-cart .shop_table tr:last-child td { border-bottom: none; }
.xd-cart .shop_table .product-thumbnail img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--xd-radius-sm);
}
.xd-cart .shop_table .product-name a {
  font-weight: 700;
  color: var(--xd-forest);
  text-decoration: none;
}
.xd-cart .shop_table .product-name a:hover { color: var(--xd-green); }
.xd-cart .shop_table .product-price,
.xd-cart .shop_table .product-subtotal {
  font-weight: 700;
  color: var(--xd-forest);
}
.xd-cart .shop_table .quantity input.qty {
  width: 60px;
  padding: 8px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  text-align: center;
  font-family: inherit;
  font-weight: 700;
}
.xd-cart .shop_table .product-remove a {
  color: var(--xd-text-muted);
  font-size: 1.2rem;
}
.xd-cart .shop_table .product-remove a:hover { color: #c62828; }
.xd-cart .shop_table .actions .button {
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.xd-cart .shop_table .actions .button:hover { background: var(--xd-green-dark); }
.xd-cart .shop_table .coupon input {
  padding: 10px 14px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
}

/* WC Cart totals */
.xd-cart .cart_totals {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  box-shadow: var(--xd-shadow);
  padding: 28px;
}
.xd-cart .cart_totals h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--xd-border);
}
.xd-cart .cart_totals table { border: none; }
.xd-cart .cart_totals th,
.xd-cart .cart_totals td {
  padding: 10px 0;
  border: none;
  font-size: 0.9rem;
}
.xd-cart .cart_totals th { color: var(--xd-text-muted); font-weight: 600; }
.xd-cart .cart_totals .order-total th,
.xd-cart .cart_totals .order-total td {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--xd-green-dark);
  border-top: 2px solid var(--xd-border);
  padding-top: 14px;
}
.xd-cart .wc-proceed-to-checkout { margin-top: 16px; }
.xd-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: var(--xd-radius-sm);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.xd-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--xd-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}

/* WC Checkout form */
.xd-checkout .woocommerce-checkout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0 30px;
  align-items: start;
}
.xd-checkout .woocommerce-checkout > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}
.xd-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / 4;
}
.xd-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
}
.xd-checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}
.xd-checkout #customer_details {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  padding: 32px;
  box-shadow: var(--xd-shadow);
}
.xd-checkout #customer_details h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin-bottom: 20px;
}
.xd-checkout .woocommerce-checkout .form-row {
  margin-bottom: 16px;
}
.xd-checkout .woocommerce-checkout label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 4px;
}
.xd-checkout .woocommerce-checkout .input-text,
.xd-checkout .woocommerce-checkout select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--xd-card);
  transition: border-color 0.3s;
}
.xd-checkout .woocommerce-checkout .input-text:focus {
  border-color: var(--xd-green);
  outline: none;
}
.xd-checkout #order_review_heading,
.xd-checkout #order_review {
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  padding: 28px;
  box-shadow: var(--xd-shadow);
}
.xd-checkout #order_review_heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--xd-forest);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--xd-border);
  margin-bottom: 0;
  border-radius: var(--xd-radius) var(--xd-radius) 0 0;
}
.xd-checkout #order_review {
  border-radius: 0 0 var(--xd-radius) var(--xd-radius);
}
.xd-checkout #order_review table {
  border: none;
  width: 100%;
  border-collapse: collapse;
}
.xd-checkout #order_review thead th {
  padding: 10px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--xd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--xd-border);
}
.xd-checkout #order_review thead th:last-child {
  text-align: right;
}
.xd-checkout #order_review td {
  padding: 12px 0;
  border-bottom: 1px solid var(--xd-border);
  font-size: 0.85rem;
  vertical-align: middle;
}
.xd-checkout #order_review td.product-name {
  font-weight: 600;
  color: var(--xd-forest);
  padding-right: 12px;
}
.xd-checkout #order_review td.product-total {
  text-align: right;
  font-weight: 700;
  color: var(--xd-forest);
  white-space: nowrap;
}
/* Product image + name row */
.xd-checkout-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.xd-checkout-product-row img.xd-checkout-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
/* Totals rows */
.xd-checkout #order_review tfoot th {
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--xd-text-muted);
  border-bottom: 1px solid var(--xd-border);
  text-align: left;
}
.xd-checkout #order_review tfoot td {
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--xd-forest);
  text-align: right;
  border-bottom: 1px solid var(--xd-border);
  white-space: nowrap;
}
.xd-checkout #order_review .order-total th {
  font-size: 1rem;
  font-weight: 800;
  color: var(--xd-forest);
  border-bottom: none;
  border-top: 2px solid var(--xd-border);
  padding-top: 14px;
}
.xd-checkout #order_review .order-total td {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--xd-green-dark);
  border-bottom: none;
  border-top: 2px solid var(--xd-border);
  padding-top: 14px;
  text-align: right;
}
/* ===== PAYMENT METHODS — MATCH MOCKUP 100% ===== */
.xd-payment-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin: 20px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--xd-border);
}
.xd-checkout #payment {
  background: none;
  border: none;
  padding: 0;
}
.xd-checkout #payment .payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
/* Each payment method card */
.xd-checkout #payment .payment_methods li {
  padding: 16px 18px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  margin-bottom: 10px;
  transition: border-color 0.3s;
  cursor: pointer;
}
.xd-checkout #payment .payment_methods li:hover { border-color: var(--xd-green-light); }
/* Active payment method */
.xd-checkout #payment .payment_methods li:has(input:checked) {
  border-color: var(--xd-green);
  background: rgba(46,125,50,0.03);
}
/* Custom radio */
.xd-checkout #payment .payment_methods li input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--xd-border);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 10px 0 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.xd-checkout #payment .payment_methods li input[type="radio"]:checked {
  border-color: var(--xd-green);
}
.xd-checkout #payment .payment_methods li input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--xd-green);
}
/* Payment label — bold name */
.xd-checkout #payment .payment_methods li label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--xd-forest);
  cursor: pointer;
  display: inline;
  vertical-align: middle;
}
/* Payment description — text dưới label */
.xd-checkout #payment .payment_box {
  background: none !important;
  border: none;
  padding: 8px 0 0 32px;
  margin: 0;
  color: var(--xd-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.xd-checkout #payment .payment_box::before { display: none !important; }
.xd-checkout #payment .payment_box > p:first-child { margin: 0 0 8px; }
/* Bank info box inside BACS description */
.xd-checkout #payment .payment_box .xd-bank-info-inner {
  background: var(--xd-bg);
  border-radius: var(--xd-radius-sm);
  padding: 14px 16px;
  border-left: 4px solid var(--xd-green);
}
.xd-checkout #payment .payment_box .xd-bank-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 0.82rem;
  gap: 8px;
}
.xd-checkout #payment .payment_box .xd-bank-row:not(:last-child) {
  border-bottom: 1px solid var(--xd-border);
}
.xd-checkout #payment .payment_box .xd-bank-row span {
  color: var(--xd-text-muted);
  white-space: nowrap;
}
.xd-checkout #payment .payment_box .xd-bank-row strong {
  color: var(--xd-forest);
  font-size: 0.82rem;
  text-align: right;
  word-break: keep-all;
}
/* Privacy text */
.xd-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: 0.82rem;
  color: var(--xd-text-muted);
  line-height: 1.6;
  margin: 16px 0;
}
.xd-checkout .woocommerce-privacy-policy-text a { color: var(--xd-green); font-weight: 600; }
.xd-checkout #place_order {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
}
.xd-checkout #place_order:hover {
  background: var(--xd-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}

/* WC Cart/Checkout responsive */
@media (max-width: 768px) {
  .xd-checkout .woocommerce-checkout {
    grid-template-columns: 1fr;
  }
  .xd-cart .shop_table thead { display: none; }
  .xd-cart .shop_table tr {
    display: flex;
    flex-wrap: wrap;
    padding: 16px;
    border-bottom: 1px solid var(--xd-border);
    align-items: center;
    gap: 10px;
  }
  .xd-cart .shop_table td {
    border: none;
    padding: 4px 0;
  }
  .xd-cart .shop_table .product-thumbnail { flex: 0 0 70px; }
  .xd-cart .shop_table .product-name { flex: 1; min-width: 0; }
  .xd-cart .shop_table .product-price,
  .xd-cart .shop_table .product-quantity,
  .xd-cart .shop_table .product-subtotal { flex: 0 0 auto; }
  .xd-cart .shop_table .product-remove { flex: 0 0 30px; }
}

/* ============== CHECKOUT ENHANCEMENTS ============== */
/* Hide country field (VN only) */
.xd-hidden { display: none !important; }

/* Checkout form 2-col fields */
.xd-checkout .woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.xd-checkout .form-row-wide { flex: 0 0 100%; }
.xd-checkout .form-row-first { flex: 0 0 calc(50% - 8px); }
.xd-checkout .form-row-last { flex: 0 0 calc(50% - 8px); }

/* Checkout trust badges */
.xd-checkout-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--xd-border);
}
.xd-checkout-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.xd-checkout-trust-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--xd-green);
}
.xd-checkout-trust-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--xd-text-muted);
}

/* Order review styling */
.xd-checkout #order_review .woocommerce-checkout-review-order-table {
  border: none;
  width: 100%;
}
.xd-checkout #order_review .woocommerce-checkout-review-order-table th,
.xd-checkout #order_review .woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--xd-border);
  font-size: 0.85rem;
  vertical-align: middle;
}
.xd-checkout #order_review .order-total th,
.xd-checkout #order_review .order-total td {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--xd-green-dark);
  border-top: 2px solid var(--xd-border);
  padding-top: 14px;
}

/* Place order button */
.xd-checkout #place_order {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
  box-sizing: border-box;
}
.xd-checkout #place_order:hover {
  background: var(--xd-green-dark);
}

/* Additional info heading */
.xd-checkout h3#order_review_heading {
  background: var(--xd-card);
  border-radius: var(--xd-radius) var(--xd-radius) 0 0;
  padding: 20px 28px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--xd-forest);
  border-bottom: 2px solid var(--xd-border);
  box-shadow: var(--xd-shadow);
}
.xd-checkout #order_review {
  background: var(--xd-card);
  border-radius: 0 0 var(--xd-radius) var(--xd-radius);
  padding: 20px 28px;
  box-shadow: var(--xd-shadow);
}

/* Checkout coupon form */
.xd-checkout .checkout_coupon.woocommerce-form-coupon {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--xd-card);
  padding: 20px 24px;
  border-radius: var(--xd-radius);
  box-shadow: var(--xd-shadow);
  margin-bottom: 24px;
  border: none;
}
.xd-checkout .checkout_coupon p.form-row {
  margin: 0;
  flex: 1;
}
.xd-checkout .checkout_coupon p.form-row-last {
  flex: 0 0 auto;
}
.xd-checkout .checkout_coupon .input-text {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.xd-checkout .checkout_coupon .input-text:focus { border-color: var(--xd-green); }
.xd-checkout .checkout_coupon .button {
  padding: 12px 24px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}
.xd-checkout .checkout_coupon .button:hover { background: var(--xd-green-dark); }
.xd-checkout .checkout_coupon .clear { display: none; }
/* Coupon toggle link */
/* Coupon toggle + form: match left column width exactly */
.xd-checkout .woocommerce > .woocommerce-form-coupon-toggle,
.xd-checkout .woocommerce-form-coupon-toggle {
  max-width: calc(100% - 430px); /* 400px right col + 30px gap */
  margin-bottom: 0;
}
.xd-checkout .woocommerce > .checkout_coupon,
.xd-checkout .checkout_coupon.woocommerce-form-coupon {
  max-width: calc(100% - 430px); /* 400px right col + 30px gap */
}
@media (max-width: 768px) {
  .xd-checkout .woocommerce > .woocommerce-form-coupon-toggle,
  .xd-checkout .woocommerce-form-coupon-toggle,
  .xd-checkout .woocommerce > .checkout_coupon,
  .xd-checkout .checkout_coupon.woocommerce-form-coupon {
    max-width: 100%;
  }
}
.xd-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: none;
  border: none;
  padding: 0 0 8px;
  font-size: 0.9rem;
  color: var(--xd-text-muted);
}
.xd-checkout .woocommerce-form-coupon-toggle .showcoupon {
  color: var(--xd-green);
  font-weight: 600;
}

/* Responsive checkout — full mobile optimization */
@media (max-width: 768px) {
  /* Single column layout */
  .xd-checkout .woocommerce-checkout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .xd-checkout #customer_details {
    grid-column: 1;
    grid-row: auto;
    padding: 20px 16px;
  }
  .xd-checkout #order_review_heading {
    grid-column: 1;
    grid-row: auto;
  }
  .xd-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }
  /* Form fields — all full width */
  .xd-checkout .form-row-first,
  .xd-checkout .form-row-last {
    flex: 0 0 100%;
  }
  .xd-checkout .woocommerce-billing-fields__field-wrapper {
    gap: 0;
  }
  /* Input compact */
  .xd-checkout .woocommerce-checkout .input-text,
  .xd-checkout .woocommerce-checkout select {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .xd-checkout .woocommerce-checkout label {
    font-size: 0.82rem;
    margin-bottom: 3px;
  }
  .xd-checkout .woocommerce-checkout .form-row {
    margin-bottom: 12px;
  }
  .xd-checkout #customer_details h3 {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }
  /* Order review compact */
  .xd-checkout #order_review_heading {
    padding: 16px;
    font-size: 1.05rem;
  }
  .xd-checkout #order_review {
    padding: 16px;
  }
  .xd-checkout #order_review th,
  .xd-checkout #order_review td {
    padding: 8px 0;
    font-size: 0.82rem;
  }
  .xd-checkout-product-row {
    gap: 8px;
  }
  .xd-checkout-product-row img.xd-checkout-thumb {
    width: 36px;
    height: 36px;
  }
  /* Payment methods compact */
  .xd-payment-heading {
    font-size: 0.92rem;
    margin: 14px 0 10px;
  }
  .xd-checkout #payment .payment_methods li {
    padding: 12px 14px;
  }
  .xd-checkout #payment .payment_methods li label {
    font-size: 0.85rem;
  }
  .xd-checkout #payment .payment_box {
    padding: 6px 0 0 30px;
    font-size: 0.78rem;
  }
  .xd-checkout #payment .payment_box .xd-bank-info-inner {
    padding: 10px 12px;
  }
  .xd-checkout #payment .payment_box .xd-bank-row {
    grid-template-columns: 95px 1fr;
    font-size: 0.78rem;
    gap: 6px;
  }
  /* Place order button */
  .xd-checkout #place_order {
    padding: 14px;
    font-size: 0.95rem;
  }
  /* Trust badges */
  .xd-checkout-trust {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .xd-checkout-trust-item {
    flex-direction: row;
    gap: 6px;
  }
  .xd-checkout-trust-item svg { width: 16px; height: 16px; }
  .xd-checkout-trust-item span { font-size: 0.7rem; }
  /* Privacy text */
  .xd-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 0.78rem;
  }
  /* Coupon form */
  .xd-checkout .checkout_coupon.woocommerce-form-coupon {
    flex-direction: column;
    padding: 16px;
  }
  .xd-checkout .checkout_coupon p.form-row-last { width: 100%; }
  .xd-checkout .checkout_coupon .button { width: 100%; }
  /* Order notes */
  .xd-checkout .woocommerce-additional-fields textarea {
    min-height: 80px;
  }
}

/* Bank info box on checkout */
.xd-bank-info-box {
  margin: 12px 0;
}
.xd-bank-info-inner {
  background: var(--xd-bg);
  border-radius: var(--xd-radius-sm);
  padding: 16px;
  border-left: 4px solid var(--xd-green);
}
.xd-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.84rem;
}
.xd-bank-row:not(:last-child) {
  border-bottom: 1px solid var(--xd-border);
}
.xd-bank-row span {
  color: var(--xd-text-muted);
  font-weight: 500;
}
.xd-bank-row strong {
  color: var(--xd-forest);
  font-weight: 700;
  text-align: right;
}

/* ============================================================
   FIXES — 2026-04-06
   ============================================================ */

/* === FIX: Mobile shop / product-category / product === */
@media (max-width: 768px) {
  /* Product grid: 2 columns on mobile */
  .xd-archive .xd-prod-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  /* Product card compact */
  .xd-prod-body {
    padding: 12px;
  }
  .xd-prod-name {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }
  .xd-prod-brand {
    font-size: 0.68rem;
  }
  .xd-prod-attrs {
    gap: 4px;
    flex-wrap: wrap;
  }
  .xd-prod-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .xd-prod-tag svg {
    width: 10px;
    height: 10px;
  }
  .xd-prod-colors {
    gap: 3px;
  }
  .xd-prod-color {
    width: 14px;
    height: 14px;
  }
  .xd-price-old {
    font-size: 0.72rem;
  }
  .xd-price-new {
    font-size: 0.88rem;
  }
  .xd-btn-shopee {
    font-size: 0.78rem;
    padding: 8px 12px;
    gap: 4px;
  }
  .xd-btn-shopee svg {
    width: 14px;
    height: 14px;
  }
  /* Single product mobile — keep qty + button side by side */
  .xd-detail-actions {
    flex-wrap: nowrap;
  }
  .xd-detail-actions .xd-btn-shopee,
  .xd-detail-actions .xd-btn-add-cart {
    font-size: 0.88rem;
    padding: 0 14px;
  }
  .xd-detail-trust {
    gap: 10px;
  }
  .xd-detail-trust-item {
    font-size: 0.72rem;
  }
  /* Related products 2 cols on mobile */
  .xd-related .xd-prod-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .xd-prod-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .xd-detail-price-box {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
  }
  .xd-detail-sizes {
    flex-wrap: wrap;
  }
  .xd-detail-tab {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .xd-detail-qty button {
    width: 40px;
    height: 48px;
  }
  .xd-detail-qty input {
    width: 50px;
    height: 48px;
  }
}

/* === FIX: WooCommerce Reviews tab === */
.xd-detail-panel#xdTabReviews .comment-respond {
  margin-top: 24px;
}
.xd-detail-panel#xdTabReviews .comment-reply-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xd-forest);
  margin-bottom: 16px;
}
.xd-detail-panel#xdTabReviews .comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--xd-forest);
  margin-bottom: 6px;
}
.xd-detail-panel#xdTabReviews .comment-form input[type="text"],
.xd-detail-panel#xdTabReviews .comment-form input[type="email"],
.xd-detail-panel#xdTabReviews .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
  background: var(--xd-bg);
  box-sizing: border-box;
}
.xd-detail-panel#xdTabReviews .comment-form input:focus,
.xd-detail-panel#xdTabReviews .comment-form textarea:focus {
  border-color: var(--xd-green);
}
.xd-detail-panel#xdTabReviews .comment-form textarea {
  min-height: 120px;
  resize: vertical;
}
.xd-detail-panel#xdTabReviews .comment-form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.xd-detail-panel#xdTabReviews .comment-form .form-submit input[type="submit"]:hover {
  background: var(--xd-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}
.xd-detail-panel#xdTabReviews .comment-form p {
  margin-bottom: 14px;
}
/* WooCommerce star rating in review form */
.xd-detail-panel#xdTabReviews .comment-form-rating {
  margin-bottom: 16px;
}
.xd-detail-panel#xdTabReviews .comment-form-rating label {
  margin-bottom: 8px;
}
.xd-detail-panel#xdTabReviews .stars a {
  color: var(--xd-amber);
  font-size: 1.2rem;
  text-decoration: none;
}
.xd-detail-panel#xdTabReviews .stars a:hover,
.xd-detail-panel#xdTabReviews .stars a.active {
  color: var(--xd-amber);
}
/* Existing reviews list */
.xd-detail-panel#xdTabReviews .commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.xd-detail-panel#xdTabReviews .commentlist li {
  padding: 20px 0;
  border-bottom: 1px solid var(--xd-border);
}
.xd-detail-panel#xdTabReviews .commentlist li:last-child {
  border-bottom: none;
}
.xd-detail-panel#xdTabReviews .commentlist .comment_container {
  display: flex;
  gap: 16px;
}
.xd-detail-panel#xdTabReviews .commentlist .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.xd-detail-panel#xdTabReviews .commentlist .comment-text {
  flex: 1;
}
.xd-detail-panel#xdTabReviews .commentlist .meta {
  margin-bottom: 8px;
}
.xd-detail-panel#xdTabReviews .commentlist .woocommerce-review__author {
  font-weight: 700;
  color: var(--xd-forest);
  font-size: 0.92rem;
}
.xd-detail-panel#xdTabReviews .commentlist .woocommerce-review__dash {
  display: none;
}
.xd-detail-panel#xdTabReviews .commentlist .woocommerce-review__published-date {
  font-size: 0.78rem;
  color: var(--xd-text-muted);
  display: block;
  margin-top: 2px;
}
.xd-detail-panel#xdTabReviews .commentlist .star-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}
.xd-detail-panel#xdTabReviews .commentlist .star-rating span::before {
  color: var(--xd-amber);
}
.xd-detail-panel#xdTabReviews .commentlist .description p {
  font-size: 0.88rem;
  color: var(--xd-text);
  line-height: 1.7;
  margin: 0;
}
.xd-detail-panel#xdTabReviews .woocommerce-noreviews {
  color: var(--xd-text-muted);
  font-size: 0.92rem;
  padding: 20px 0;
}
/* Star rating display */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1;
  font-size: 1em;
  width: 5.4em;
  font-family: star;
  display: inline-block;
}
.star-rating::before {
  content: "\73\73\73\73\73";
  color: var(--xd-border);
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  letter-spacing: 0.1em;
}
.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}
.star-rating span::before {
  content: "\53\53\53\53\53";
  color: var(--xd-amber);
  top: 0;
  position: absolute;
  left: 0;
  letter-spacing: 0.1em;
}

/* === FIX: WooCommerce product pagination === */
.woocommerce-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination .page-numbers li {
  margin: 0;
  padding: 0;
}
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--xd-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--xd-border);
  background: var(--xd-card);
  color: var(--xd-text-muted);
  transition: all 0.3s;
  text-decoration: none;
}
.woocommerce-pagination a.page-numbers:hover {
  border-color: var(--xd-green);
  color: var(--xd-green);
}
.woocommerce-pagination span.page-numbers.current {
  background: var(--xd-green);
  border-color: var(--xd-green);
  color: #fff;
}
.woocommerce-pagination a.page-numbers.prev,
.woocommerce-pagination a.page-numbers.next {
  font-size: 1rem;
}

/* === FIX: Blog sidebar search form === */
.xd-sidebar-search form {
  display: flex;
  gap: 8px;
  width: 100%;
}
.xd-sidebar-search form input {
  flex: 1;
  min-width: 0;
}
/* Search bar on search results page */
.xd-search-bar-inner .xd-sidebar-search {
  display: flex;
  gap: 8px;
}
.xd-search-bar-inner .xd-sidebar-search form {
  flex: 1;
  display: flex;
  gap: 8px;
}
.xd-search-bar-inner .xd-sidebar-search form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--xd-border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--xd-card);
}
.xd-search-bar-inner .xd-sidebar-search form input:focus {
  border-color: var(--xd-green);
}
.xd-search-bar-inner .xd-sidebar-search form button {
  padding: 14px 28px;
  background: var(--xd-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.xd-search-bar-inner .xd-sidebar-search form button:hover {
  background: var(--xd-green-dark);
}

/* === FIX: Blog pagination (the_posts_pagination) === */
.xd-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.xd-pagination .nav-links a.page-numbers,
.xd-pagination .nav-links span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--xd-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--xd-border);
  background: var(--xd-card);
  color: var(--xd-text-muted);
  transition: all 0.3s;
  text-decoration: none;
}
.xd-pagination .nav-links a.page-numbers:hover {
  border-color: var(--xd-green);
  color: var(--xd-green);
}
.xd-pagination .nav-links span.page-numbers.current {
  background: var(--xd-green);
  border-color: var(--xd-green);
  color: #fff;
}
.xd-pagination .nav-links a.prev.page-numbers svg,
.xd-pagination .nav-links a.next.page-numbers svg {
  width: 16px;
  height: 16px;
}

/* === FIX: Contact form label spacing === */
.xd-contact-form .xd-form-group label {
  margin-bottom: 8px;
}
.xd-contact-form .xd-form-group .xd-form-label {
  margin-bottom: 8px;
}

/* === FIX: Google Maps demo === */
.xd-contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--xd-radius);
}
.xd-contact-map-demo {
  width: 100%;
  height: 200px;
  border-radius: var(--xd-radius);
  overflow: hidden;
  background: var(--xd-bg);
  position: relative;
}
.xd-contact-map-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
}
.xd-contact-map-demo .xd-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
}
.xd-contact-map-demo .xd-map-pin svg {
  width: 36px;
  height: 36px;
  stroke: var(--xd-green-dark);
  fill: var(--xd-green);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.xd-contact-map-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--xd-card);
  padding: 8px 16px;
  border-radius: var(--xd-radius-sm);
  box-shadow: var(--xd-shadow);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--xd-forest);
  white-space: nowrap;
}

/* === FIX: Product card add-to-cart button color === */
.xd-btn-add-cart {
  background: var(--xd-green) !important;
  border-color: var(--xd-green) !important;
}
.xd-btn-add-cart:hover {
  background: var(--xd-green-dark) !important;
  border-color: var(--xd-green-dark) !important;
}

/* === TABLE OF CONTENTS (TOC) === */
.xd-toc {
  background: var(--xd-card);
  border: 2px solid var(--xd-border);
  border-radius: var(--xd-radius);
  margin-bottom: 32px;
  overflow: hidden;
}
.xd-toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--xd-bg);
  cursor: pointer;
  user-select: none;
  transition: background 0.3s;
}
.xd-toc-header:hover {
  background: var(--xd-border);
}
.xd-toc-header > svg:first-child {
  width: 20px;
  height: 20px;
  stroke: var(--xd-green);
  flex-shrink: 0;
}
.xd-toc-header > span {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--xd-forest);
}
.xd-toc-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--xd-text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.xd-toc.xd-toc-closed .xd-toc-chevron {
  transform: rotate(-90deg);
}
.xd-toc-list {
  padding: 16px 20px 16px 40px;
  margin: 0;
  list-style: decimal;
  counter-reset: toc;
}
.xd-toc.xd-toc-closed .xd-toc-list {
  display: none;
}
.xd-toc-list li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.xd-toc-list li:last-child {
  margin-bottom: 0;
}
.xd-toc-list li a {
  color: var(--xd-text-muted);
  font-weight: 500;
  transition: color 0.3s;
}
.xd-toc-list li a:hover {
  color: var(--xd-green);
}
.xd-toc-list li.xd-toc-sub {
  margin-left: 20px;
  font-size: 0.84rem;
  list-style-type: disc;
}
.xd-toc-list li.xd-toc-sub a {
  color: var(--xd-text-muted);
}
@media (max-width: 768px) {
  .xd-toc-header {
    padding: 14px 16px;
  }
  .xd-toc-list {
    padding: 12px 16px 12px 32px;
  }
  .xd-toc-list li {
    font-size: 0.82rem;
  }
}

/* ============================================================
   ORDER RECEIVED (Thank You) PAGE
   ============================================================ */
.xd-checkout .woocommerce-order {
  max-width: 720px;
  margin: 0 auto;
  background: var(--xd-card);
  border-radius: var(--xd-radius);
  padding: 32px;
  box-shadow: var(--xd-shadow);
}
.xd-checkout .woocommerce-order .woocommerce-thankyou-order-received {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  padding: 24px 28px;
  border-radius: var(--xd-radius);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xd-green-dark);
  text-align: center;
  margin-bottom: 28px;
}
.xd-checkout .woocommerce-order .woocommerce-order-overview {
  list-style: none;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--xd-bg);
  border-radius: var(--xd-radius-sm);
  padding: 20px;
}
.xd-checkout .woocommerce-order .woocommerce-order-overview li {
  font-size: 0.88rem;
  color: var(--xd-text-muted);
  padding: 8px 0;
}
.xd-checkout .woocommerce-order .woocommerce-order-overview li strong {
  display: block;
  color: var(--xd-forest);
  font-size: 1rem;
  margin-top: 4px;
}
/* Order details table */
.xd-checkout .woocommerce-order h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--xd-forest);
  margin: 28px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--xd-border);
}
.xd-checkout .woocommerce-order table.shop_table {
  border: none !important;
  border-collapse: collapse;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  width: 100%;
}
.xd-checkout .woocommerce-order table.shop_table thead th {
  background: var(--xd-bg);
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--xd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
.xd-checkout .woocommerce-order table.shop_table td,
.xd-checkout .woocommerce-order table.shop_table th {
  padding: 14px 20px;
  border-bottom: 1px solid var(--xd-border);
  font-size: 0.88rem;
  vertical-align: middle;
  font-style: normal;
  text-align: left;
}
.xd-checkout .woocommerce-order table.shop_table thead th:last-child,
.xd-checkout .woocommerce-order table.shop_table tbody td:last-child {
  text-align: right;
}
.xd-checkout .woocommerce-order table.shop_table tfoot th {
  color: var(--xd-text-muted);
  font-weight: 600;
  font-style: normal;
  text-align: left;
}
.xd-checkout .woocommerce-order table.shop_table tfoot td {
  font-weight: 700;
  color: var(--xd-forest);
  text-align: right;
  font-style: normal;
}
.xd-checkout .woocommerce-order table.shop_table tr:last-child td,
.xd-checkout .woocommerce-order table.shop_table tr:last-child th {
  border-bottom: none;
  font-weight: 800;
  color: var(--xd-green-dark);
  font-size: 1rem;
}
/* Billing/Shipping address */
.xd-checkout .woocommerce-order .woocommerce-column {
  background: var(--xd-bg);
  border-radius: var(--xd-radius-sm);
  padding: 20px;
  box-shadow: none;
  margin-bottom: 0;
}
.xd-checkout .woocommerce-order .woocommerce-column h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 1rem;
}
.xd-checkout .woocommerce-order .woocommerce-column address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--xd-text);
  line-height: 1.7;
}
.xd-checkout .woocommerce-order .woocommerce-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* WC validation error styling */
.woocommerce-error,
.xd-checkout .woocommerce-error,
.woocommerce .woocommerce-error {
  background: var(--xd-card) !important;
  border: none !important;
  border-left: 4px solid #c62828 !important;
  border-radius: var(--xd-radius-sm) !important;
  padding: 16px 24px !important;
  margin: 0 0 20px !important;
  list-style: none !important;
  font-size: 0.88rem;
  color: #c62828;
  box-shadow: var(--xd-shadow);
}
.woocommerce-error li,
.xd-checkout .woocommerce-error li {
  margin-bottom: 6px;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce-error li:last-child {
  margin-bottom: 0;
}
.woocommerce-error::before,
.woocommerce-error li::before {
  display: none !important;
}
/* Inline field validation text */
.woocommerce form .form-row .woocommerce-invalid-required-field + .woocommerce-error,
.woocommerce form .form-row.woocommerce-invalid label {
  color: #c62828;
}
/* Error notice — fixed top banner */
.xd-checkout .woocommerce-NoticeGroup-checkout {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 600px;
  padding: 0 16px;
  animation: xd-slide-down 0.4s ease;
}
@keyframes xd-slide-down {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.xd-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error {
  margin: 0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}
/* Checkout field validation */
.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: #c62828 !important;
}
.woocommerce form .form-row.woocommerce-validated .input-text,
.woocommerce form .form-row.woocommerce-validated select {
  border-color: var(--xd-green) !important;
}
@media (max-width: 768px) {
  .xd-checkout .woocommerce-order {
    padding: 20px;
  }
  .xd-checkout .woocommerce-order .woocommerce-order-overview {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .xd-checkout .woocommerce-order .woocommerce-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .xd-checkout .woocommerce-order .woocommerce-column {
    padding: 16px;
  }
}
