/**
 * Azan WooCommerce Styles — woocommerce.css
 * Product Card, Single Product, Cart, Checkout, Filters
 */

/* Container snug padding for archive / category pages */
.archive.woocommerce .azan-container,
.tax-product_cat .azan-container {
  padding-left: 6px !important;
  padding-right: 6px !important;
  max-width: 1220px;
}

@media (min-width: 768px) {
  .archive.woocommerce .azan-container,
  .tax-product_cat .azan-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Reset WooCommerce default ul.products styles */
.woocommerce ul.products,
ul.products {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  clear: both !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

/* ─── PRODUCT CARD / GRID (Web-App Mobile First) ─── */
.azan-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}

@media (min-width: 480px) {
  .azan-products-grid {
    gap: 8px;
  }
}

@media (min-width: 640px) {
  .azan-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 992px) {
  .azan-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  .azan-products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

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

.azan-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.azan-product-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #f8fafc;
  overflow: hidden;
}

.azan-product-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s ease;
}

.azan-product-card:hover .azan-product-thumb {
  transform: scale(1.05);
}

/* Badges */
.azan-badge-installment {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff3e0;
  color: #d97706;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  z-index: 2;
}

.azan-badge-sale {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-price);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* Product Info */
.azan-product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.azan-product-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.azan-product-title a:hover {
  color: var(--color-primary);
}

.azan-product-specs-summary {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.azan-product-price-box {
  margin-top: auto;
  padding-top: 6px;
}

.azan-current-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-price);
  line-height: 1;
  display: block;
}

.azan-price-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11.5px;
}

.azan-old-price {
  color: var(--color-price-del);
  text-decoration: line-through;
}

.azan-discount-percent {
  color: var(--color-price);
  font-weight: 700;
  background: #fee2e2;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Quick Buy / Action row */
.azan-product-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.azan-btn-quick-add {
  flex-grow: 1;
  background: #f1f8e9;
  color: var(--color-primary);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-sm);
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
}

.azan-btn-quick-add:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.azan-btn-quick-add svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ─── SINGLE PRODUCT DETAIL — ĐIỆN MÁY XANH LAYOUT ─── */
.single-product .azan-main-content {
  padding-top: 12px;
}

/* Hide bottom nav on single product page so it never collides with sticky buybar */
.single-product .azan-bottom-nav {
  display: none !important;
}

.single-product.has-bottom-nav {
  padding-bottom: calc(64px + var(--safe-bottom, 0px)) !important;
}

/* Container snug padding for single product */
.single-product .azan-container {
  padding-left: 10px;
  padding-right: 10px;
  max-width: 1220px;
}

.azan-single-product-wrapper.azan-dmx-layout {
  margin: 0 0 40px;
  position: relative;
  width: 100%;
}

/* ─── DMX BREADCRUMB ─── */
.azan-dmx-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
  padding: 0 2px;
}

.azan-dmx-breadcrumb a.azan-bc-item {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.azan-dmx-breadcrumb a.azan-bc-item:hover {
  color: #0369a1;
  text-decoration: underline;
}

.azan-dmx-breadcrumb .azan-bc-sep {
  color: #94a3b8;
  margin: 0 4px;
  font-size: 12px;
}

/* ─── DMX MOBILE QUICK NAVIGATION TABS ─── */
.azan-dmx-mobile-quicktabs {
  display: none;
}

@media (max-width: 767px) {
  .azan-dmx-mobile-quicktabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 10px;
    margin-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #f1f5f9;
  }

  .azan-dmx-mobile-quicktabs::-webkit-scrollbar {
    display: none;
  }

  .azan-dmx-mobile-quicktabs .quicktab-item {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
  }

  .azan-dmx-mobile-quicktabs .quicktab-item.active,
  .azan-dmx-mobile-quicktabs .quicktab-item:hover {
    color: #ffffff;
    background: #0284c7;
  }
}

/* ─── DMX TOP HEADER & TITLE BAR ─── */
.azan-dmx-top-header {
  margin-bottom: 10px;
}

.azan-dmx-heading-row {
  margin-top: 4px;
}

.azan-dmx-product-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #1e293b;
  margin: 0 0 6px 0;
}

@media (min-width: 768px) {
  .azan-dmx-product-title {
    font-size: 23px;
  }
}

.azan-dmx-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: #64748b;
}

.azan-dmx-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.azan-stars-icons {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
  font-size: 13px;
}

.azan-stars-score {
  font-weight: 700;
  color: #1e293b;
  margin-left: 2px;
}

.azan-stars-count {
  color: #0284c7;
  text-decoration: none;
  font-size: 12.5px;
}

.azan-stars-count:hover {
  text-decoration: underline;
}

.azan-meta-divider {
  color: #cbd5e1;
}

.azan-meta-stock.in-stock {
  color: #16a34a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.azan-meta-stock.out-of-stock {
  color: #dc2626;
  font-weight: 600;
}

/* ─── DMX TOP 2-COLUMN CONTAINER ─── */
.azan-single-product-container.azan-dmx-top-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

@media (min-width: 992px) {
  .azan-single-product-container.azan-dmx-top-container {
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 30px;
    padding: 24px;
    align-items: start;
  }
}

.azan-dmx-gallery-col {
  min-width: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .azan-dmx-gallery-col {
    position: sticky;
    top: 110px;
  }
}

.azan-dmx-info-col {
  min-width: 0;
  width: 100%;
}

/* ─── DMX GALLERY SLIDER & MOBILE FULL-WIDTH ─── */
.azan-dmx-gallery-wrap {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.azan-dmx-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  max-height: 400px;
}

.azan-dmx-slider-track::-webkit-scrollbar {
  display: none;
}

.azan-dmx-slide-item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  user-select: none;
}

.azan-slide-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 12px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

/* YouTube Video Slide */
.azan-slide-video {
  background: #000000;
}

.azan-video-poster {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.azan-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.azan-btn-play-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.azan-btn-play-trigger:hover {
  background: rgba(220, 38, 38, 0.95);
  transform: translate(-50%, -50%) scale(1.05);
}

.azan-yt-icon {
  width: 50px;
  height: 35px;
}

.azan-yt-text {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.azan-video-embed-slot {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 10;
}

.azan-video-embed-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery Arrows & Counter */
.azan-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8;
  color: #1e293b;
  transition: all 0.15s ease;
  padding: 0;
}

.azan-slider-arrow:hover {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.azan-slider-arrow svg {
  stroke: currentColor;
}

.azan-slider-prev {
  left: 10px;
}

.azan-slider-next {
  right: 10px;
}

.azan-gallery-counter-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  z-index: 5;
}

.azan-gallery-zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Gallery Thumbnails Strip */
.azan-dmx-thumbs-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.azan-dmx-thumbs-strip::-webkit-scrollbar {
  display: none;
}

.azan-dmx-thumb-item {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #ffffff;
  padding: 2px;
  transition: all 0.15s ease;
}

.azan-dmx-thumb-item:hover,
.azan-dmx-thumb-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 136, 0, 0.2);
  transform: translateY(-1px);
}

.azan-dmx-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.azan-thumb-badge-video {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #dc2626;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
  text-transform: uppercase;
}

/* Mobile Overrides: Slide tràn viền full-width & margin tối thiểu */
@media (max-width: 767px) {
  .single-product .azan-container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .azan-dmx-layout .azan-dmx-top-header {
    padding: 0 4px;
    margin-bottom: 6px;
  }

  .azan-dmx-gallery-col {
    margin-left: -6px !important;
    margin-right: -6px !important;
    width: calc(100% + 12px) !important;
  }

  .azan-dmx-gallery-wrap {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .azan-dmx-slider-track {
    min-height: 270px;
    max-height: 310px;
  }

  .azan-dmx-thumbs-strip {
    padding: 8px 4px 4px;
  }

  .azan-single-product-container.azan-dmx-top-container {
    padding: 4px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    gap: 10px !important;
  }

  .azan-dmx-info-col {
    padding: 0 4px;
  }

  .azan-dmx-commitments {
    margin-left: 4px !important;
    margin-right: 4px !important;
  }
}

/* ─── DMX COMMITMENTS BOX (AZAN CAM KẾT) ─── */
.azan-dmx-commitments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

@media (max-width: 540px) {
  .azan-dmx-commitments {
    grid-template-columns: 1fr;
  }
}

.azan-commit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.azan-commit-item i {
  color: var(--color-primary);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.azan-commit-item strong {
  display: block;
  font-size: 13px;
  color: #1e293b;
  font-weight: 700;
  line-height: 1.3;
}

.azan-commit-item span {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 2px;
}

/* ─── DMX PRICE CARD & BUY ACTIONS ─── */
.azan-dmx-price-card {
  margin-bottom: 14px;
}

.azan-single-price-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 0;
  border: 1px dashed #cbd5e1;
}

.azan-single-current-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-price);
  line-height: 1.1;
  display: inline-block;
}

.azan-single-regular-price {
  font-size: 14px;
  color: var(--color-price-del);
  text-decoration: line-through;
  margin-left: 8px;
}

.azan-single-savings {
  display: inline-block;
  background: #fee2e2;
  color: var(--color-price);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* Promotion Box (_textarea_sale) */
.azan-promo-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.azan-promo-header {
  background: #fef3c7;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 8px;
}

.azan-promo-content {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.azan-promo-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: #334155;
}

.azan-promo-item:last-child {
  margin-bottom: 0;
}

.azan-promo-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

/* DMX Buy Actions (Image 5 style) */
.azan-dmx-buy-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.azan-dmx-main-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.azan-btn-dmx-addcart {
  background: #ffffff;
  border: 1.5px solid #0071e3;
  color: #0071e3;
  border-radius: 8px;
  padding: 10px 14px;
  height: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.08);
}

.azan-btn-dmx-addcart:hover {
  background: #f0f7ff;
  border-color: #005bb5;
  color: #005bb5;
  transform: translateY(-1px);
}

.azan-btn-dmx-addcart i {
  font-size: 16px;
}

.azan-btn-dmx-buynow {
  background: linear-gradient(135deg, #fd6e1d 0%, #ff5500 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  height: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(253, 110, 29, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.azan-btn-dmx-buynow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(253, 110, 29, 0.45);
  background: linear-gradient(135deg, #e65c0d 0%, #e04400 100%);
}

.azan-btn-dmx-installment {
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.azan-btn-dmx-installment:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}

.azan-btn-dmx-installment .installment-main {
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.azan-btn-dmx-installment .installment-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.95;
  margin-top: 2px;
}

.azan-dmx-hotline-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #475569;
  margin-top: 6px;
}

.azan-dmx-hotline-box i {
  font-size: 20px;
  color: #e03232;
  flex-shrink: 0;
}

.azan-dmx-hotline-box a {
  color: #e03232;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

/* ─── DMX MIDDLE SECTION (ĐẶC ĐIỂM NỔI BẬT & THÔNG SỐ) ─── */
.azan-dmx-middle-section {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 28px;
  margin: 28px 0;
  align-items: start;
}

@media (max-width: 991px) {
  .azan-dmx-middle-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.azan-dmx-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #f1f5f9;
}

.heading-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.12);
}

.heading-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.azan-dmx-section-heading h2 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .heading-icon {
    width: 30px;
    height: 30px;
  }
  .azan-dmx-section-heading h2 {
    font-size: 16.5px;
  }
}

/* Article Column with Readmore Toggle */
.azan-dmx-article-col {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
}

@media (max-width: 767px) {
  .azan-dmx-article-col {
    padding: 16px;
  }
}

.azan-dmx-article-wrapper.is-collapsed {
  max-height: 750px;
  overflow: hidden;
  position: relative;
}

.azan-article-fade-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 75%, #ffffff 100%);
  pointer-events: none;
}

.azan-article-toggle-wrap {
  text-align: center;
  margin-top: 14px;
}

.azan-btn-toggle-article {
  background: #ffffff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.azan-btn-toggle-article:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Specifications Column */
.azan-dmx-specs-col {
  width: 100%;
}

.azan-dmx-specs-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  position: sticky;
  top: 110px;
}

@media (max-width: 767px) {
  .azan-dmx-specs-card {
    padding: 16px;
    position: static;
  }
}

.azan-spec-diagram-box {
  text-align: center;
  margin-bottom: 14px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
}

.azan-spec-diagram-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.azan-spec-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.azan-spec-summary-table tr:nth-child(even) {
  background: #f8fafc;
}

.azan-spec-summary-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.azan-spec-summary-table td:first-child {
  width: 44%;
  font-weight: 600;
  color: #475569;
}

.azan-spec-summary-table td:last-child {
  color: #0f172a;
}

.azan-btn-open-specs-modal {
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  background: #f0fdf4;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}

.azan-btn-open-specs-modal:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ─── FULLSCREEN MODALS (SPECS & LIGHTBOX) ─── */
.azan-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.azan-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: azanFadeInUp 0.2s ease-out;
}

.azan-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.azan-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.azan-modal-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.azan-modal-close-btn:hover {
  color: #e03232;
}

.azan-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.azan-spec-modal-diagram {
  text-align: center;
  margin-bottom: 16px;
}

.azan-spec-modal-diagram img {
  max-width: 100%;
  border-radius: 8px;
}

.azan-modal-specs-table-wrap table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13.5px !important;
  margin: 0 !important;
}

.azan-modal-specs-table-wrap tr:nth-child(even) {
  background: #f8fafc;
}

.azan-modal-specs-table-wrap td,
.azan-modal-specs-table-wrap th {
  padding: 10px 12px !important;
  border: 1px solid #e2e8f0 !important;
  vertical-align: top;
}

.azan-modal-specs-table-wrap td:first-child {
  width: 38%;
  font-weight: 600;
  color: #475569;
}

/* Lightbox Modal */
.azan-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(15, 23, 42, 0.96);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  animation: azanFadeIn 0.2s ease-out;
}

.azan-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.azan-lightbox-title {
  font-size: 15px;
  font-weight: 600;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.azan-lightbox-counter {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
}

.azan-lightbox-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.azan-lightbox-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.azan-lb-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.azan-lb-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.azan-lb-slide.active {
  display: flex;
}

.azan-lb-slide img {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
}

.azan-lb-video-container {
  width: 85vw;
  max-width: 860px;
  aspect-ratio: 16 / 9;
}

.azan-lb-video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.azan-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.azan-lb-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.azan-lb-prev {
  left: 16px;
}

.azan-lb-next {
  right: 16px;
}

.azan-lb-thumbs-wrap {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.azan-lb-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.azan-lb-thumb-item {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  position: relative;
  background: #000;
  transition: all 0.15s;
}

.azan-lb-thumb-item:hover,
.azan-lb-thumb-item.active {
  border-color: var(--color-primary);
  opacity: 1;
  transform: scale(1.05);
}

.azan-lb-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.azan-lb-play-ico {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  color: #ffffff;
}

/* Reviews and Related sections */
.azan-dmx-reviews-section {
  margin: 32px 0;
}

.azan-dmx-reviews-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
}

.azan-dmx-related-section {
  margin: 32px 0;
}

@keyframes azanFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes azanFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive elements inside product article body */
.azan-dmx-article-body figure,
.azan-dmx-article-body .wp-caption,
.azan-dmx-article-body img,
.azan-dmx-article-body iframe,
.azan-dmx-article-body video,
.azan-dmx-article-body table {
  max-width: 100% !important;
  height: auto !important;
}

.azan-dmx-article-body figure {
  margin: 16px auto !important;
  width: 100% !important;
  text-align: center;
}

.azan-dmx-article-body figure img {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  max-width: 100% !important;
  height: auto !important;
}

.azan-dmx-article-body figcaption,
.azan-dmx-article-body .wp-caption-text {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  margin-top: 6px;
  text-align: center;
}

.azan-dmx-article-body table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}

.azan-dmx-article-body table td,
.azan-dmx-article-body table th {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
}

.azan-dmx-article-body table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.azan-dmx-article-body h2,
.azan-dmx-article-body h3,
.azan-dmx-article-body h4 {
  color: #1e293b;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.azan-dmx-article-body p {
  margin-bottom: 14px;
  line-height: 1.75;
}

.azan-dmx-article-body ul,
.azan-dmx-article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ─── LOẠI BỎ TRIỆT ĐỂ CÁC STICKY FOOTER CŨ ĐỂ KHÔNG CHỒNG CHÉO ─── */
.azan-mobile-sticky-buybar {
  display: none !important;
}

.devvn_toolbar,
#devvn_toolbar,
.show_contactfix,
.devvn-quick-buy,
.devvn-popup-quickbuy {
  display: none !important;
}

@media (max-width: 991px) {
  .azan-floating-contacts {
    display: none !important;
  }
}

/* ─── RELATED PRODUCTS ─── */
section.related.products > h2 {
  display: none !important;
}

section.related.products ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  list-style: none !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  clear: both !important;
}

@media (min-width: 640px) {
  section.related.products ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}

@media (min-width: 992px) {
  section.related.products ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

section.related.products ul.products .azan-product-card {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* ─── REVIEWS & COMMENTS ─── */
#reviews {
  padding-top: 10px;
}

#reviews h2.woocommerce-Reviews-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

#reviews ol.commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

#reviews ol.commentlist li.review {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

#reviews ol.commentlist li.review:last-child {
  border-bottom: none;
}

.devvn_review_top .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.devvn_review_top .woocommerce-review__author {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.devvn_review_top .woocommerce-review__verified {
  font-size: 11px;
  color: #008800;
  background: #f0fdf4;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
}

.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2em;
  font-size: 14px;
  width: 5.4em;
  font-family: star;
  color: #f59e0b;
}

.devvn_review_mid .description {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin-top: 6px;
}

.devvn_review_bottom {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ─── CART & CHECKOUT ─── */
.azan-cart-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 16px;
  overflow-x: auto;
}

.azan-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.azan-cart-table th {
  padding: 10px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.azan-cart-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.azan-checkout-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .azan-checkout-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.azan-checkout-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 20px;
}

.azan-checkout-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.azan-form-row {
  margin-bottom: 14px;
}

.azan-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.azan-form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.15s;
}

.azan-form-input:focus {
  border-color: var(--color-primary);
}
