/**
 * AZADIGI Core — Dynamic Blocks Stylesheet
 * High contrast, responsive, accessible styles.
 */

/* ==========================================================================
   1. Dynamic Category Grid & Links
   ========================================================================== */
.az-category-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.az-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.az-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.az-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.az-category-card {
  display: flex;
  flex-direction: column;
  background: var(--az-card, #ffffff);
  border: 1px solid var(--az-border, #e2e8f0);
  border-radius: var(--az-radius-md, 10px);
  padding: 24px;
  text-decoration: none !important;
  color: var(--az-text, #0f172a);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.az-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -3px rgba(12, 21, 39, 0.08);
  border-color: rgba(0, 184, 101, 0.4);
}

.az-category-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 184, 101, 0.1);
  color: var(--az-green-dark, #009452);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.az-category-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  display: block;
}

.az-category-title {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--az-navy, #0c1527);
  line-height: 1.3;
}

.az-category-desc {
  margin: 0 0 16px 0;
  font-size: 0.875rem;
  color: var(--az-text-muted, #64748b);
  line-height: 1.5;
  flex: 1;
}

.az-category-arrow {
  color: var(--az-green, #00b865);
  font-size: 1.25rem;
  font-weight: bold;
  align-self: flex-start;
  transition: transform 0.2s ease;
}

.az-category-card:hover .az-category-arrow {
  transform: translateX(4px);
}

/* Category Links List (Footer / Sidebar layout="links") */
.az-category-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.az-category-links-list li a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  color: inherit;
  transition: color 0.15s ease, transform 0.15s ease;
}

.az-category-links-list li a:hover {
  color: var(--az-aqua, #00d2d3);
  transform: translateX(3px);
}

/* ==========================================================================
   2. Dynamic Featured Products Grid
   ========================================================================== */
.az-featured-products-grid {
  display: grid;
  gap: 24px;
  width: 100%;
}

.az-product-card {
  background: var(--az-card, #ffffff);
  border: 1px solid var(--az-border, #e2e8f0);
  border-radius: var(--az-radius-md, 10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.az-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(12, 21, 39, 0.1);
  border-color: rgba(0, 184, 101, 0.35);
}

.az-product-thumb-wrap {
  position: relative;
  background: #f8fafc;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

.az-featured-products-grid .az-product-thumb-wrap {
  aspect-ratio: 4 / 3;
  min-height: 220px;
  padding: 14px;
}

.az-featured-products-grid .az-product-thumb-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.az-product-card-img {
  max-height: 190px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.az-product-card:hover .az-product-card-img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .az-featured-products-grid .az-product-thumb-wrap {
    min-height: 175px;
    padding: 12px;
  }
  .az-product-card-img {
    max-height: 160px;
  }
}

.az-product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.az-product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.az-product-cat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--az-green-dark, #009452);
  margin-bottom: 6px;
}

.az-product-card-title {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.az-product-card-title a {
  color: var(--az-navy, #0c1527);
}

.az-product-card-title a:hover {
  color: var(--az-green, #00b865);
}

.az-product-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: #0e7490;
  background: rgba(0, 210, 211, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.az-product-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.az-regular-price,
.az-sale-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--az-navy, #0c1527);
}

.az-sale-price {
  color: var(--az-green-dark, #009452);
}

.az-old-price {
  font-size: 0.9375rem;
  color: var(--az-text-muted, #64748b);
  text-decoration: line-through;
}

.az-product-card-footer {
  margin-top: 4px;
}

.az-btn-sm {
  width: 100%;
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ==========================================================================
   3. Dynamic Social Links (High Contrast, Accessible)
   ========================================================================== */
.az-social-links-wrapper {
  margin: 12px 0;
}

.az-align-left { text-align: left; }
.az-align-center { text-align: center; }
.az-align-right { text-align: right; }

.az-social-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.az-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* On light surfaces */
.az-theme-light .az-social-link,
body:not(.az-header):not(.az-footer) .az-theme-auto .az-social-link {
  background: #f1f5f9;
  color: #0c1527;
  border-color: #cbd5e1;
}

.az-social-link:hover {
  background: var(--az-green, #00b865) !important;
  color: #ffffff !important;
  border-color: var(--az-green, #00b865) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   4. Dynamic WhatsApp CTA Button
   ========================================================================== */
.az-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff !important;
  border: 1px solid transparent;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.az-btn-whatsapp:hover {
  background-color: #128C7E;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.az-btn-whatsapp.az-btn-outline {
  background-color: transparent;
  color: #25D366 !important;
  border-color: #25D366;
}

.az-btn-whatsapp.az-btn-outline:hover {
  background-color: rgba(37, 211, 102, 0.08);
}

/* ==========================================================================
   5. Dynamic Service Hours & Payment Badges
   ========================================================================== */
.az-service-hours-card {
  padding: 24px !important;
  background: #ffffff !important;
  border-radius: var(--az-radius-md, 12px) !important;
  border: 1px solid rgba(12, 21, 39, 0.08) !important;
  box-shadow: 0 4px 12px rgba(12, 21, 39, 0.04) !important;
}

.az-service-hours-card h4,
.az-service-hours-card .az-service-hours-title {
  color: var(--az-navy, #0c1527) !important;
  margin: 12px 0 8px 0 !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

.az-service-hours-card p,
.az-service-hours-card .az-service-hours-schedule,
.az-service-hours-card .az-service-hours-schedule strong {
  font-size: 1.125rem !important;
  color: var(--az-navy, #0c1527) !important;
  margin: 8px 0 !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.az-service-hours-card .az-service-hours-notice,
.az-service-hours-card .az-service-hours-notice small {
  color: #334155 !important; /* High contrast slate */
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  display: block !important;
  margin-top: 6px !important;
}

.az-payment-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.az-payment-families-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.az-payment-family-item {
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Cart Badge In Header */
.az-cart-badge {
  background: var(--az-green, #00b865);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 9999px;
  position: absolute;
  top: -4px;
  right: -4px;
}

/* ==========================================================================
   6. Native WordPress Blog Components & Extensions
   ========================================================================== */

/* Post Meta (Reading Time & Views) */
.az-post-meta-strip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--az-text-muted, #64748b);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 8px 0 16px 0;
}

.az-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.az-meta-item svg {
  flex-shrink: 0;
  color: #00b865;
}

.az-meta-divider {
  color: #cbd5e1;
  user-select: none;
}

.az-meta-compact {
  font-size: 0.75rem;
  margin: 6px 0 10px 0;
}

.az-meta-compact .az-meta-item svg {
  color: #64748b;
}

/* Social Share Wrap */
.az-social-share-wrap {
  margin: 36px 0 24px;
  padding: 18px 24px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.az-share-label {
  font-weight: 600;
  color: var(--az-navy, #0c1527);
  font-size: 0.9375rem;
}

.az-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.az-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.az-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.az-share-btn:focus-visible {
  outline: 2px solid #00b865;
  outline-offset: 2px;
}

.az-share-x {
  background-color: #000000;
  color: #ffffff !important;
}

.az-share-x:hover {
  background-color: #262626;
  color: #ffffff !important;
}

.az-share-facebook {
  background-color: #1877F2;
  color: #ffffff !important;
}

.az-share-facebook:hover {
  background-color: #166fe5;
  color: #ffffff !important;
}

/* Related Articles Section */
.az-related-articles-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #e2e8f0;
}

.az-related-header {
  margin-bottom: 24px;
}

.az-related-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--az-navy, #0c1527);
  margin: 0;
}

.az-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.az-related-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.az-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -5px rgba(12, 21, 39, 0.08);
  border-color: #cbd5e1;
}

.az-related-thumb-link {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #f1f5f9;
}

.az-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.az-related-card:hover .az-related-img {
  transform: scale(1.04);
}

.az-related-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
}

.az-related-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.az-related-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0 10px;
}

.az-related-card-title a {
  color: var(--az-navy, #0c1527);
  text-decoration: none;
  transition: color 0.15s ease;
}

.az-related-card-title a:hover {
  color: var(--az-green, #00b865);
}

.az-related-excerpt {
  font-size: 0.875rem;
  color: var(--az-text-muted, #64748b);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.az-related-cta-wrap {
  margin-top: auto;
}

.az-related-read-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--az-green, #00b865);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.az-related-read-link:hover {
  color: #009452;
  text-decoration: underline;
}

/* Centered Read Article Button on Cards */
.az-post-card-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.az-post-card-cta .az-btn-read-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  padding: 10px 20px;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  background-color: var(--az-navy, #0c1527);
  color: #ffffff !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.az-post-card-cta .az-btn-read-article:hover,
.az-post-card-cta .az-btn-read-article:focus {
  background-color: var(--az-green, #00b865);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.az-post-card-cta .az-btn-read-article:focus-visible {
  outline: 2px solid #00b865;
  outline-offset: 2px;
}

/* Related Guides & Insights Section (3 Cards Per Row on Desktop) */
.az-related-articles-section {
  margin-top: 48px;
  margin-bottom: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.az-related-header {
  margin-bottom: 24px;
}

.az-related-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--az-navy, #0c1527);
  margin: 0;
}

.az-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .az-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .az-related-grid {
    grid-template-columns: 1fr;
  }
}

.az-related-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(12, 21, 39, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.az-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(12, 21, 39, 0.08);
}

.az-related-thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.az-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.az-related-card:hover .az-related-img {
  transform: scale(1.03);
}

.az-related-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #f8fafc;
}

.az-related-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.az-related-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 10px 0 12px 0;
}

.az-related-card-title a {
  color: var(--az-navy, #0c1527);
  text-decoration: none;
}

.az-related-card-title a:hover {
  color: var(--az-green, #00b865);
}

.az-related-card .az-post-meta-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: auto;
}

/* =========================================================================
   SINGLE PRODUCT PURCHASE BOX
   ========================================================================= */
.az-product-purchase-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 32px);
  box-shadow: 0 4px 20px -2px rgba(12, 21, 39, 0.05);
  margin-bottom: 32px;
}

.az-pbox-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.az-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

.az-stock-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.az-pbox-rating-strip {
  margin-bottom: 14px;
}

.az-pbox-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--az-navy, #0c1527);
  font-size: 0.9375rem;
}

.az-pbox-rating-link:hover .az-rating-count {
  text-decoration: underline;
}

.az-stars,
.az-stars-gold {
  color: #eab308;
  letter-spacing: 2px;
  font-size: 1.0625rem;
}

.az-rating-score {
  font-weight: 800;
}

.az-rating-count {
  color: #64748b;
}

.az-pbox-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.az-pbox-pricing .az-price-sale {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--az-navy, #0c1527);
}

.az-pbox-pricing .az-price-regular {
  font-size: 1.125rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Product Short Description (Task 7) */
.az-pbox-short-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  margin: -8px 0 20px 0;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid var(--az-green, #00b865);
}

.az-pbox-short-desc p {
  margin: 0 0 6px 0;
}

.az-pbox-short-desc p:last-child {
  margin-bottom: 0;
}

.az-pbox-subtitle {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--az-navy, #0c1527);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.az-pbox-benefits {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.az-pbox-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.az-pbox-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
}

.az-pbox-benefits-list li .dashicons {
  color: var(--az-green, #00b865);
  font-size: 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.az-pbox-actions-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.az-pbox-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.az-pbox-add-btn,
.az-pbox-buy-btn {
  flex: 1 1 auto;
  min-width: 140px;
  height: 48px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.az-pbox-add-btn {
  background: var(--az-green, #00b865);
  color: #ffffff;
}

.az-pbox-add-btn:hover {
  background: #009e56;
}

.az-pbox-buy-btn {
  background: var(--az-navy, #0c1527);
  color: #ffffff;
}

.az-pbox-buy-btn:hover {
  background: #1e293b;
}

.az-pbox-row-whatsapp {
  width: 100%;
}

.az-product-purchase-box .az-pbox-whatsapp-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 48px;
}

.az-pbox-feedback {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.az-pbox-feedback.az-feedback-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.az-pbox-feedback.az-feedback-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.az-pbox-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  /* -------------------------------------------------------------------------
     SINGLE PRODUCT MOBILE REORDERING (<= 768px)
     Exact section order:
     1. Image (left) + Title (right)
     2. Summary / Essential info (meta, rating, pricing, benefits)
     3. Quantity selector (full-width row)
     4. [Add to Cart] and [Buy Now] side by side (~50% width each)
     5. Order Directly on WhatsApp button (full-width row)
     6. Detailed License Specifications (Product Description)
     7. Product Reviews at bottom
     ------------------------------------------------------------------------- */
  .az-single-product-page .az-product-detail-grid {
    display: grid !important;
    grid-template-columns: clamp(90px, 28vw, 120px) 1fr !important;
    gap: 14px !important;
    align-items: center !important;
    margin-bottom: 20px !important;
  }

  .az-single-product-page .az-product-media-col,
  .az-single-product-page .az-product-purchase-col {
    display: contents !important;
  }

  /* Section 1: Product image (left) + Product title (right) side by side */
  .az-single-product-page .az-single-product-media-frame {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin-bottom: 0 !important;
    padding: 6px !important;
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    max-width: 120px !important;
    height: auto !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .az-single-product-page .az-single-product-media-frame img,
  .az-single-product-page .az-single-product-media-frame figure {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    border-radius: 6px !important;
  }

  .az-single-product-page .az-single-product-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    font-size: clamp(1.05rem, 4vw, 1.35rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: var(--az-navy, #0c1527) !important;
    align-self: center !important;
    word-break: break-word !important;
  }

  /* Section 2: Summary / Essential info inside Purchase Box */
  .az-single-product-page .az-product-purchase-box {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin-bottom: 20px !important;
    padding: clamp(14px, 4vw, 20px) !important;
    border-radius: 12px !important;
  }

  .az-pbox-trust-grid {
    grid-template-columns: 1fr !important;
  }

  /* Section 3, 4, 5: Actions Form layout */
  .az-pbox-actions-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .az-pbox-row-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Section 3: Quantity selector on separate full-width row */
  .az-pbox-row-actions .az-qv-qty-wrapper {
    flex: 0 0 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 44px !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    margin-bottom: 2px !important;
  }

  .az-pbox-row-actions .az-qv-qty-wrapper .az-qty-btn {
    width: 48px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    background: #f8fafc !important;
    border: none !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--az-navy, #0c1527) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  .az-pbox-row-actions .az-qv-qty-wrapper .az-qty-input {
    flex: 1 1 auto !important;
    width: auto !important;
    height: 44px !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--az-navy, #0c1527) !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
  }

  /* Section 4: [ Add to Cart ] and [ Buy Now ] side by side (~50% width each) */
  .az-pbox-row-actions .az-pbox-add-btn {
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 8px !important;
    font-size: clamp(0.8125rem, 3.2vw, 0.9375rem) !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .az-pbox-row-actions .az-pbox-buy-btn {
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 8px !important;
    font-size: clamp(0.8125rem, 3.2vw, 0.9375rem) !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  /* Section 5: Order Directly on WhatsApp button on separate full-width row */
  .az-product-purchase-box .az-pbox-row-whatsapp {
    width: 100% !important;
    margin-top: 4px !important;
  }

  .az-product-purchase-box .az-pbox-whatsapp-link {
    width: 100% !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: clamp(0.875rem, 3.5vw, 0.9375rem) !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
  }

  /* Section 6: Detailed License Specifications (Product Description) */
  .az-single-product-page .az-product-description-card {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    margin-bottom: 20px !important;
    padding: clamp(16px, 4vw, 24px) !important;
    border-radius: 12px !important;
  }

  /* Section 7: Product Reviews at bottom */
  .az-single-product-page .az-product-reviews-section {
    margin-top: 24px !important;
    padding-top: 24px !important;
  }
}

.az-pbox-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.az-pbox-trust-item .dashicons {
  color: var(--az-green, #00b865);
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.az-pbox-trust-item strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--az-navy, #0c1527);
  line-height: 1.3;
}

.az-pbox-trust-item span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

/* =========================================================================
   PRODUCT REVIEWS & RATINGS SECTION
   ========================================================================= */
.az-product-reviews-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #e2e8f0;
}

.az-reviews-header {
  margin-bottom: 28px;
}

.az-reviews-main-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--az-navy, #0c1527);
  margin: 0 0 6px 0;
}

.az-reviews-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
}

.az-reviews-overview {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.az-reviews-score-box {
  text-align: center;
  min-width: 140px;
}

.az-big-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--az-navy, #0c1527);
  line-height: 1;
  margin-bottom: 4px;
}

.az-score-label {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 6px 0 0 0;
}

.az-reviews-bars {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.az-rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
}

.az-bar-star-label {
  width: 32px;
  color: #475569;
  font-weight: 600;
}

.az-bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.az-bar-fill {
  height: 100%;
  background: #eab308;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.az-bar-count {
  width: 24px;
  text-align: right;
  color: #64748b;
}

.az-reviews-grid-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 860px) {
  .az-reviews-grid-wrap {
    grid-template-columns: 1fr;
  }
}

.az-section-subhead {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--az-navy, #0c1527);
  margin: 0 0 16px 0;
}

.az-reviews-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.az-review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 6px rgba(12, 21, 39, 0.03);
}

.az-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.az-reviewer-name {
  font-weight: 700;
  color: var(--az-navy, #0c1527);
  font-size: 0.9375rem;
  margin-right: 8px;
}

.az-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.az-verified-badge .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

.az-review-date {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.az-review-stars-row {
  margin-bottom: 10px;
}

.az-review-comment-body p {
  margin: 0;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.55;
}

.az-review-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
}

.az-form-helper {
  font-size: 0.8125rem;
  color: #64748b;
  margin: -8px 0 16px 0;
  line-height: 1.45;
}

.az-review-form .az-form-group {
  margin-bottom: 14px;
}

.az-star-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.az-star-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.1s ease;
}

.az-star-btn:hover {
  transform: scale(1.15);
}

.az-star-btn.active {
  color: #eab308;
}

.az-rating-preview-text {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--az-navy, #0c1527);
  margin-left: 8px;
}

.az-review-form .az-input,
.az-review-form .az-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #1e293b;
  background: #ffffff;
  box-sizing: border-box;
}

.az-review-form .az-input:focus,
.az-review-form .az-textarea:focus {
  outline: none;
  border-color: var(--az-green, #00b865);
  box-shadow: 0 0 0 3px rgba(0, 184, 101, 0.15);
}

.az-form-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.az-form-alert.az-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.az-form-alert.az-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}


