/* 
  Dakhl Theme Main Stylesheet
  Vazirmatn Font, Modern iOS Bento Aesthetics
*/

:root {
  --dakhl-primary: #ec4899;
  --dakhl-secondary: #6366f1;
  --dakhl-accent: #10b981;
  
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-anchor: none; /* Prevents scroll jumping when sticky header shrinks */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dakhl-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ====================================================
   HEADER STYLES
==================================================== */
/* WordPress Admin Bar Sticky Header Offset */
body.admin-bar .dakhl-header-wrapper,
body.admin-bar .dakhl-elementor-header-wrapper {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .dakhl-header-wrapper,
  body.admin-bar .dakhl-elementor-header-wrapper {
    top: 46px !important;
  }
}

.dakhl-header-wrapper,
.dakhl-elementor-header-wrapper {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.dakhl-header-bottom {
  padding: 0;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

.dakhl-header-wrapper.has-blur {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.65);
}

/* Top Row */
.dakhl-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 40px;
  border-bottom: 1px solid transparent;
}

/* Logo */
.dakhl-header-logo-area {
  flex-shrink: 0;
}
.dakhl-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dakhl-logo-img {
  max-height: 48px;
  width: auto;
}
.dakhl-logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dakhl-logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: none;
}
.dakhl-logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* Search Bar */
.dakhl-header-search-area {
  flex-grow: 0;
  width: 40px;
  position: relative;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dakhl-header-search-area.is-expanded {
  width: 380px;
}
.dakhl-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.dakhl-header-search-area.is-expanded .dakhl-search-form {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.dakhl-search-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0 12px 0 40px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: none;
  height: 100%;
}
.dakhl-header-search-area.is-expanded .dakhl-search-input {
  opacity: 1;
  pointer-events: auto;
}
.dakhl-search-input:focus {
  outline: none;
  box-shadow: none;
}
.dakhl-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.dakhl-search-input::-webkit-search-cancel-button {
  display: none;
}
.dakhl-search-icon {
  position: absolute;
  left: 0;
  right: auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease;
}
.dakhl-search-icon svg {
  width: 17px !important;
  height: 17px !important;
  fill: currentColor !important;
  display: block !important;
}
.dakhl-search-form:hover .dakhl-search-icon {
  color: #0f172a;
}
/* Search Dropdown Panel */
.dakhl-search-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid #f1f5f9;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}
@media (max-width: 576px) {
  .dakhl-search-dropdown-panel {
    min-width: 100%;
    right: 0;
    left: 0;
  }
}
.dakhl-header-search-area.is-expanded .dakhl-search-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Waterfall Animation Keyframes */
@keyframes dakhlWaterfall {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default Content Staggering */
.dakhl-header-search-area.is-expanded .dakhl-search-default-content > * {
  opacity: 0;
  animation: dakhlWaterfall 0.4s ease forwards;
}
.dakhl-header-search-area.is-expanded .dakhl-search-default-content .dakhl-search-banner-link {
  animation-delay: 0.05s;
}
.dakhl-header-search-area.is-expanded .dakhl-search-default-content .dakhl-recent-searches-section {
  animation-delay: 0.1s;
}
.dakhl-header-search-area.is-expanded .dakhl-search-default-content .dakhl-search-trends-section {
  animation-delay: 0.15s;
}

/* Tags Staggering */
.dakhl-header-search-area.is-expanded .dakhl-search-trends-tags a,
.dakhl-header-search-area.is-expanded .dakhl-recent-searches-tags a {
  opacity: 0;
  animation: dakhlWaterfall 0.3s ease forwards;
}
.dakhl-header-search-area.is-expanded .dakhl-search-trends-tags a:nth-child(1),
.dakhl-header-search-area.is-expanded .dakhl-recent-searches-tags a:nth-child(1) { animation-delay: 0.2s; }
.dakhl-header-search-area.is-expanded .dakhl-search-trends-tags a:nth-child(2),
.dakhl-header-search-area.is-expanded .dakhl-recent-searches-tags a:nth-child(2) { animation-delay: 0.25s; }
.dakhl-header-search-area.is-expanded .dakhl-search-trends-tags a:nth-child(3),
.dakhl-header-search-area.is-expanded .dakhl-recent-searches-tags a:nth-child(3) { animation-delay: 0.3s; }
.dakhl-header-search-area.is-expanded .dakhl-search-trends-tags a:nth-child(4),
.dakhl-header-search-area.is-expanded .dakhl-recent-searches-tags a:nth-child(4) { animation-delay: 0.35s; }
.dakhl-header-search-area.is-expanded .dakhl-search-trends-tags a:nth-child(5),
.dakhl-header-search-area.is-expanded .dakhl-recent-searches-tags a:nth-child(5) { animation-delay: 0.4s; }

/* AJAX Search Results Styles */
.dakhl-ajax-search-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
.dakhl-ajax-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #334155;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
  opacity: 0;
  animation: dakhlWaterfall 0.4s ease forwards;
}
.dakhl-ajax-search-list .dakhl-ajax-search-item:nth-child(1) { animation-delay: 0.05s; }
.dakhl-ajax-search-list .dakhl-ajax-search-item:nth-child(2) { animation-delay: 0.1s; }
.dakhl-ajax-search-list .dakhl-ajax-search-item:nth-child(3) { animation-delay: 0.15s; }
.dakhl-ajax-search-list .dakhl-ajax-search-item:nth-child(4) { animation-delay: 0.2s; }
.dakhl-ajax-search-list .dakhl-ajax-search-item:nth-child(5) { animation-delay: 0.25s; }

.dakhl-ajax-search-item:hover {
  background: #f8fafc;
}
.dakhl-ajax-search-img,
.dakhl-ajax-search-img-placeholder {
  width: 45px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.dakhl-ajax-search-img-placeholder {
  background: #f1f5f9;
}
.dakhl-ajax-search-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dakhl-ajax-search-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dakhl-ajax-search-price {
  font-size: 13px;
  color: #f43f5e;
  font-weight: 700;
}
.dakhl-ajax-search-more {
  display: block;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: #f43f5e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  opacity: 0;
  animation: dakhlWaterfall 0.4s ease forwards;
  animation-delay: 0.3s;
}
.dakhl-ajax-search-more:hover {
  color: #e11d48;
}
.dakhl-ajax-search-empty {
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 14px;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  opacity: 0;
  animation: dakhlWaterfall 0.4s ease forwards;
}
.dakhl-search-banner-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.dakhl-search-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.dakhl-search-banner-link:hover .dakhl-search-banner-img {
  transform: scale(1.03);
}
.dakhl-search-trends-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #334155;
  margin-bottom: 16px;
}
.dakhl-search-trends-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dakhl-search-trends-tags a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-size: 13px;
  color: #475569;
  transition: all 0.2s ease;
}
.dakhl-search-trends-tags a svg {
  color: #94a3b8;
}
.dakhl-search-trends-tags a:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Actions Area */
.dakhl-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

/* User Panel Button */
.dakhl-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
  box-sizing: border-box;
  transition: all 0.2s ease;
  text-decoration: none;
}
.dakhl-user-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: none;
}
.dakhl-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.dakhl-user-icon svg {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  fill: currentColor !important;
  color: inherit !important;
  display: block !important;
}

/* Action Circles (Phone, Cart, Logged-in User) */
.dakhl-action-circle {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  position: relative;
  box-sizing: border-box;
  transition: all 0.2s ease;
  text-decoration: none;
}
.dakhl-action-circle svg {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  fill: currentColor !important;
  color: inherit !important;
  display: block !important;
  margin: auto !important;
}
.dakhl-action-circle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: none;
  box-shadow: none;
}
.dakhl-cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: transparent; /* Hide number */
  font-size: 0;
  min-width: 8px;
  height: 8px;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
  border: none;
}

.dakhl-mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #0f172a;
  cursor: pointer;
  padding: 8px;
}

/* Bottom Row (Nav) */
.dakhl-header-bottom {
  padding: 0;
  max-height: 100px;
  overflow: visible;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dakhl-header-nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Categories Button */
.dakhl-categories-wrapper {
  position: relative;
}
.dakhl-categories-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-family: inherit;
  color: #0f172a;
  transition: all 0.3s ease;
}
.dakhl-cat-icon {
  position: relative;
  display: flex;
  color: #334155;
}
.dakhl-cat-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.dakhl-cat-text {
  font-size: 15px;
  font-weight: 800;
}
.dakhl-cat-arrow {
  color: #94a3b8;
  display: flex;
  transition: transform 0.3s ease;
}
.dakhl-categories-btn:hover .dakhl-cat-arrow {
  transform: translateY(2px);
}
.dakhl-categories-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px;
  z-index: 1010;
}
.dakhl-categories-wrapper:hover .dakhl-categories-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dakhl-cat-menu-list li a {
  display: block;
  padding: 12px 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.dakhl-cat-menu-list li a:hover {
  background: #f8fafc;
  color: #f43f5e;
  padding-right: 24px;
}
/* Primary Navigation */
.dakhl-primary-nav {
  display: flex;
  align-items: center;
}
.dakhl-main-menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dakhl-main-menu-list > li {
  position: relative;
}
.dakhl-main-menu-list > li > a {
  display: block;
  padding: 12px 20px;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}
.dakhl-main-menu-list > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: #f43f5e;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
}
.dakhl-main-menu-list > li > a:hover {
  color: #0f172a;
}
.dakhl-main-menu-list > li > a:hover::before,
.dakhl-main-menu-list > li.is-clicked > a::before,
.dakhl-main-menu-list > li.current-menu-item > a::before {
  width: 24px;
}
.dakhl-main-menu-list > li.current-menu-item > a,
.dakhl-main-menu-list > li.is-clicked > a {
  color: #0f172a;
}
.dakhl-main-menu-list > li.current-menu-item > a {
  color: #0f172a;
}

/* Primary Menu Dropdowns (.sub-menu) - Minimal */
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: top right;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1010;
  padding: 8px;
}

/* Bridge the gap to prevent jumping */
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Base Behavior for Standard Menus with Lightweight Soft Animation */
.dakhl-main-menu-list > li:not(.mega-menu).is-clicked > .sub-menu,
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: dakhlSoftFadeIn 0.16s ease-out forwards;
}

.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu li {
  position: relative;
  margin-bottom: 2px;
}
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu li:last-child {
  margin-bottom: 0;
}
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
}
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li > a:hover {
  background: #f8fafc;
  color: #f43f5e;
}

/* Base Cascade animation for Standard menus and Mega Menu Panel items */
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li,
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s;
}

/* Trigger for Standard Menus and Mega Menu Panel items */
.dakhl-main-menu-list > li:not(.mega-menu).is-clicked > .sub-menu > li,
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu li:hover > .sub-menu > li,
.dakhl-main-menu-list > li.dakhl-mega-menu-item.is-clicked .sub-menu.dakhl-mega-menu-panel > ul > li {
  opacity: 1;
  transform: translateY(0);
}

/* Cascade Delays (Slower and Smoother) */
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(1),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(1) { transition-delay: 0.08s; }
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(2),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(2) { transition-delay: 0.16s; }
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(3),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(3) { transition-delay: 0.24s; }
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(4),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(4) { transition-delay: 0.32s; }
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(5),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(5) { transition-delay: 0.40s; }
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(6),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(6) { transition-delay: 0.48s; }
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(7),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(7) { transition-delay: 0.56s; }
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu > li:nth-child(n+8),
.dakhl-main-menu-list > li.dakhl-mega-menu-item .sub-menu.dakhl-mega-menu-panel > ul > li:nth-child(n+8) { transition-delay: 0.64s; }

/* Deep Level Submenus (3rd level and beyond) */
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu .sub-menu {
  top: -8px;
  right: calc(100% + 15px);
  transform-origin: top right;
  transform: translateX(-10px);
}
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu .sub-menu::before {
  top: 0;
  right: -15px;
  width: 15px;
  left: auto;
  height: 100%;
}
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu li:hover > .sub-menu {
  transform: translateX(0);
}

/* Add premium SVG arrows for items with children */
.dakhl-main-menu-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px; /* Space from text in RTL */
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-image: url('../icons/arrow-down-2.svg');
  mask-image: url('../icons/arrow-down-2.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  top: -1px;
}
.dakhl-main-menu-list > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.dakhl-main-menu-list .dakhl-mega-menu-tab > a::after {
  display: none !important; /* Hide default arrow for mega menu tabs */
}

/* Submenu arrows (pointing left in RTL) */
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu li.menu-item-has-children > a::after {
  transform: rotate(90deg);
  margin-right: auto; /* Push to far left */
  margin-left: 0;
  width: 14px; height: 14px;
}
.dakhl-main-menu-list > li:not(.mega-menu) .sub-menu li.menu-item-has-children:hover > a::after {
  transform: rotate(90deg) translateY(-4px); /* Moves left visually */
}

/* Responsive */
@media (max-width: 1024px) {
  .dakhl-header-search-area {
    display: none;
  }
}

@media (max-width: 768px) {
  .dakhl-header-bottom {
    display: none;
  }
  .dakhl-header-actions .dakhl-user-btn,
  .dakhl-header-actions .dakhl-action-circle[href^="tel:"] {
    display: none;
  }
  .dakhl-mobile-toggle-btn {
    display: block;
  }
}

/* ====================================================
   MOBILE DRAWER STYLES (FULL SCREEN SLIDE DOWN)
==================================================== */
.dakhl-mobile-drawer-overlay {
  display: none !important;
}

.dakhl-mobile-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #ffffff;
  z-index: 10001;
  /* Slower and smoother drawer slide */
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  transform: translateY(-100%);
}
.dakhl-mobile-drawer.active {
  transform: translateY(0);
}

.dakhl-drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 40px; /* More breathing room */
  border-bottom: none;
}
.dakhl-drawer-close {
  background: transparent;
  border: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), background 0.3s ease, color 0.3s ease;
  transform: rotate(0deg);
}
.dakhl-drawer-close:hover {
  transform: rotate(180deg) scale(1.1); /* Cooler close hover */
  background: #f1f5f9;
  color: #ef4444;
}
.dakhl-drawer-close svg {
  width: 32px;
  height: 32px;
}

.dakhl-drawer-body {
  padding: 10px 20px 60px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dakhl-mobile-nav {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.dakhl-mobile-menu-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Domino Waterfall Animation - starts from below and slides up slowly */
.dakhl-mobile-menu-list > li {
  text-align: right;
  width: 100%;
  opacity: 0;
  transform: translateY(40px); /* Start from below */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li {
  opacity: 1;
  transform: translateY(0);
}

/* Delays start AFTER drawer slide (0.9s) -> let's start at 0.6s so it overlaps slightly */
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(1) { transition-delay: 0.6s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(2) { transition-delay: 0.75s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(3) { transition-delay: 0.9s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(4) { transition-delay: 1.05s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(5) { transition-delay: 1.2s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(6) { transition-delay: 1.35s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(7) { transition-delay: 1.5s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(8) { transition-delay: 1.65s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(9) { transition-delay: 1.8s; }
.dakhl-mobile-drawer.active .dakhl-mobile-menu-list > li:nth-child(10) { transition-delay: 1.95s; }

.dakhl-mobile-menu-list > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 16px !important;
  color: #1e293b !important;
  font-weight: 300 !important;
  font-size: 24px !important;
  letter-spacing: -0.3px !important;
  position: relative !important;
  text-decoration: none !important;
  background: transparent !important;
  border-radius: 14px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.dakhl-mobile-menu-list > li > a:hover {
  color: #f43f5e !important;
  background: #f8fafc !important;
  padding-right: 20px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03) !important;
}

.dakhl-mobile-drawer .dakhl-mega-menu-global-banner,
.dakhl-mobile-nav .dakhl-mega-menu-global-banner {
  display: none !important;
}

.dakhl-mobile-menu-list .dakhl-menu-icon-wrap,
.dakhl-mobile-menu-list > li > a .dakhl-menu-icon-wrap,
.dakhl-mobile-menu-list > li.current-menu-item > a .dakhl-menu-icon-wrap,
.dakhl-mobile-menu-list > li > a:hover .dakhl-menu-icon-wrap {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  fill: #94a3b8 !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
  top: 0 !important;
  transform: none !important;
  transition: none !important;
}
.dakhl-mobile-menu-list .dakhl-menu-icon-wrap svg,
.dakhl-mobile-menu-list .dakhl-menu-icon-wrap svg path,
.dakhl-mobile-menu-list .dakhl-menu-icon-wrap svg g {
  width: 25px !important;
  height: 25px !important;
  fill: #94a3b8 !important;
  color: #94a3b8 !important;
  display: block !important;
}

.menu-item-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%) opacity(0.7);
}
.dakhl-mobile-menu-list > li > a:hover .menu-item-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(39%) sepia(85%) saturate(3015%) hue-rotate(327deg) brightness(98%) contrast(98%);
}

/* Submenu Accordion & Hierarchy */
.dakhl-mobile-menu-list .menu-item-has-children {
  position: relative;
  margin-bottom: 0;
}

.dakhl-submenu-toggle {
  position: absolute;
  left: 2px;
  top: 4px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 30px; /* Larger icon */
  font-weight: 300;
  color: #94a3b8;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1;
}
.dakhl-submenu-toggle:hover {
  color: #f43f5e;
}
.dakhl-submenu-toggle.active {
  transform: rotate(135deg);
  color: #1e293b;
}

/* Tree Structure for Level 1 Submenus */
.dakhl-mobile-menu-list .sub-menu {
  overflow: hidden;
  padding: 0 16px 0 0; /* Optimized indentation */
  margin: 3px 12px 6px 0;
  list-style: none;
  width: auto;
  border-right: 2px solid #e2e8f0;
  transition: border-color 0.4s ease;
}
.dakhl-mobile-menu-list .sub-menu.open {
  border-right-color: #cbd5e1;
}

.dakhl-mobile-menu-list .sub-menu li {
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  margin-bottom: 6px;
}
.dakhl-mobile-menu-list .sub-menu.open > li {
  opacity: 1;
  transform: translateY(0);
}

/* Level 1 Submenu Links & Toggles */
.dakhl-mobile-menu-list .sub-menu > li > a {
  display: inline-block !important;
  font-size: 20px !important; /* Larger submenu font */
  font-weight: 300 !important; /* Thinner font weight */
  color: #334155 !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
  transition: all 0.3s ease !important;
}
.dakhl-mobile-menu-list .sub-menu > li > a:hover {
  color: #f43f5e !important;
  background: #f8fafc !important;
  padding-right: 18px !important;
}
.dakhl-mobile-menu-list .sub-menu > li > .dakhl-submenu-toggle {
  top: 4px;
  width: 38px;
  height: 38px;
  font-size: 26px; /* Larger + icon for level 1 */
}

/* Level 2+ Submenus (Nested Categories) */
.dakhl-mobile-menu-list .sub-menu .sub-menu {
  padding: 0 14px 0 0;
  margin: 3px 8px 5px 0;
  border-right: 1.5px solid #cbd5e1;
}
.dakhl-mobile-menu-list .sub-menu .sub-menu.open {
  border-right-color: #94a3b8;
}
.dakhl-mobile-menu-list .sub-menu .sub-menu > li > a {
  font-size: 18px !important; /* Larger level 2 font */
  font-weight: 300 !important; /* Thinner font weight */
  color: #475569 !important;
  padding: 6px 12px !important;
}
.dakhl-mobile-menu-list .sub-menu .sub-menu > li > .dakhl-submenu-toggle {
  top: 3px;
  width: 34px;
  height: 34px;
  font-size: 24px; /* Larger + icon for level 2 */
}

/* Level 3+ Submenus (Deeply Nested Categories) */
.dakhl-mobile-menu-list .sub-menu .sub-menu .sub-menu {
  padding: 0 12px 0 0;
  margin: 2px 6px 4px 0;
  border-right: 1px dashed #cbd5e1;
}
.dakhl-mobile-menu-list .sub-menu .sub-menu .sub-menu.open {
  border-right-color: #94a3b8;
}
.dakhl-mobile-menu-list .sub-menu .sub-menu .sub-menu > li > a {
  font-size: 16px !important; /* Larger level 3 font */
  font-weight: 300 !important; /* Thinner font weight */
  color: #64748b !important;
  padding: 5px 10px !important;
}

/* Fast cascading delays for submenus */
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(1) { transition-delay: 0.04s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(2) { transition-delay: 0.08s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(3) { transition-delay: 0.12s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(4) { transition-delay: 0.16s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(5) { transition-delay: 0.20s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(6) { transition-delay: 0.24s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(7) { transition-delay: 0.28s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(8) { transition-delay: 0.32s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(9) { transition-delay: 0.36s; }
.dakhl-mobile-menu-list .sub-menu.open > li:nth-child(10) { transition-delay: 0.40s; }

/* Footer & Socials Section */
.dakhl-drawer-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s;
}
.dakhl-mobile-drawer.active .dakhl-drawer-footer {
  opacity: 1;
  transform: translateY(0);
}

.dakhl-drawer-slogan {
  font-size: 13px;
  font-weight: 300;
  color: #94a3b8;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.dakhl-drawer-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 14px 28px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border-radius: 50px;
  transition: all 0.3s ease;
}
.dakhl-drawer-socials:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.dakhl-drawer-socials a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.03);
}
.dakhl-drawer-socials a:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.dakhl-drawer-socials a svg,
.dakhl-drawer-socials a .dakhl-icon {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  fill: currentColor;
}

/* ====================================================
   MEGA MENU BANNER (Global Options Panel Banner)
=================================================== */
.dakhl-mega-menu-global-banner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 250px !important;
  background: linear-gradient(135deg, #FFB800 0%, #F59E0B 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 32px 24px !important;
  z-index: 10 !important;
  overflow: hidden !important;
}
.dakhl-mega-menu-global-banner::before {
  content: ''; position: absolute; top: -30px; right: -30px; width: 140px; height: 140px;
  background: rgba(255, 255, 255, 0.2); border-radius: 50%; filter: blur(16px); z-index: 0;
}
.dakhl-mega-menu-global-banner::after {
  content: ''; position: absolute; bottom: -30px; left: -30px; width: 100px; height: 100px;
  background: rgba(255, 255, 255, 0.15); border-radius: 50%; filter: blur(10px); z-index: 0;
}
.mega-menu-banner-title {
  position: relative !important; z-index: 1 !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.mega-menu-banner-subtitle {
  position: relative !important; z-index: 1 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  line-height: 1.5 !important;
}
.mega-menu-banner-btn {
  position: relative !important; z-index: 1 !important;
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
}
.mega-menu-banner-btn:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Full Image Mega Menu Banner (Full Bleed Edge-to-Edge) */
.dakhl-mega-menu-global-banner.is-image-banner {
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
  width: 280px !important;
  border-left: none !important;
}
.dakhl-mega-menu-global-banner.is-image-banner::before,
.dakhl-mega-menu-global-banner.is-image-banner::after {
  display: none !important;
}
.dakhl-mega-menu-image-link {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  overflow: hidden !important;
  text-decoration: none !important;
}
.dakhl-mega-banner-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.dakhl-mega-menu-image-link:hover .dakhl-mega-banner-img {
  transform: scale(1.04) !important;
}

/* Adjust panel when global banner is active */
.dakhl-main-menu-list .has-global-banner .sub-menu .sub-menu.dakhl-mega-menu-panel,
.dakhl-main-menu-list .has-global-banner .dakhl-mega-menu-tab > .sub-menu.dakhl-mega-menu-panel {
  left: 280px !important;
}
.dakhl-main-menu-list .has-global-banner .dakhl-mega-menu-tab > .sub-menu.dakhl-mega-menu-panel {
}

/* ====================================================
   CUSTOM HEADER & STYLE 2
==================================================== */
.dakhl-header-wrapper {
  background: rgba(255, 255, 255, 0.65) !important;
  color: var(--dakhl-header-color, var(--text-main));
}
.dakhl-header-wrapper.has-blur {
  background: rgba(255, 255, 255, 0.65) !important;
}
.dakhl-header-wrapper .dakhl-header-top {
  padding-top: var(--dakhl-header-pt, 16px);
  padding-bottom: var(--dakhl-header-pb, 16px);
  border-bottom: var(--dakhl-header-border, 1px solid rgba(226, 232, 240, 0.6));
}
.dakhl-header-wrapper .dakhl-search-input {
  color: inherit;
}
.dakhl-header-wrapper .dakhl-action-circle {
  color: var(--dakhl-header-color, var(--text-main));
}
.dakhl-header-wrapper .dakhl-user-btn {
  color: var(--dakhl-header-color, var(--text-main));
}
.dakhl-header-wrapper .dakhl-main-menu-list > li > a {
  color: var(--dakhl-header-color, var(--text-main));
}

/* Luxury Style 2 Layout */
.dakhl-header-style-2 .dakhl-header-top-style-2 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}
.dakhl-header-style-2 .dakhl-header-right {
  display: flex;
  align-items: center;
}
.dakhl-header-style-2 .dakhl-logo-img-large {
  max-height: 60px; /* Larger logo */
}
.dakhl-header-style-2 .dakhl-logo-box-luxury .dakhl-logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Smart Search */
.dakhl-header-style-2 .dakhl-header-center {
  display: flex;
  justify-content: center;
  width: 100%;
}
.dakhl-header-style-2 .dakhl-search-luxury {
  width: 100%;
  max-width: 550px;
}
.dakhl-header-style-2 .dakhl-search-luxury .dakhl-search-form {
  background: rgba(241, 245, 249, 0.7);
  border-radius: 50px;
  padding: 4px 6px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.dakhl-header-style-2 .dakhl-search-luxury .dakhl-search-form:focus-within {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}
.dakhl-header-style-2 .dakhl-search-luxury .dakhl-search-input {
  padding: 10px 16px;
  font-size: 14px;
}
.dakhl-header-style-2 .dakhl-search-luxury .dakhl-search-icon {
  opacity: 0.5;
  margin-right: 12px;
}

/* Glass Actions */
.dakhl-header-style-2 .dakhl-header-left {
  display: flex;
  justify-content: flex-end;
}
.dakhl-header-style-2 .dakhl-actions-luxury {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dakhl-btn-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}
.dakhl-user-btn-luxury {
  border-radius: 50px;
  padding: 8px 16px 8px 20px;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.dakhl-btn-circle-luxury {
  border-radius: 50%;
  width: 44px;
  height: 44px;
}
.dakhl-btn-glass:hover {
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: rgba(226, 232, 240, 1);
}
.dakhl-badge-glass {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--dakhl-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Luxury Menu */
.dakhl-header-style-2 .dakhl-header-bottom-style-2 {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}
.dakhl-menu-list-luxury {
  display: flex;
  gap: 36px; /* More spacing */
}
.dakhl-menu-list-luxury > li > a {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}
.dakhl-menu-list-luxury > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--dakhl-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.dakhl-menu-list-luxury > li:hover > a::after {
  width: 100%;
}
.dakhl-menu-list-luxury > li:hover > a {
  color: var(--dakhl-primary);
}

@media (max-width: 991px) {
  .dakhl-header-style-2 .dakhl-header-top-style-2 {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .dakhl-header-style-2 .dakhl-header-center {
    display: none; /* Hide search on mobile, or move it elsewhere */
  }
}

/* ====================================================
   SMART POPUP SYSTEM (GLASSMORPHISM)
==================================================== */
.dakhl-popup-wrapper,
.dakhl-popup-wrapper * {
  box-sizing: border-box;
}
.dakhl-popup-wrapper {
  position: fixed;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dakhl-popup-wrapper.active {
  opacity: 1;
  visibility: visible;
}

/* Positions */
.dakhl-popup-pos-center {
  inset: 0; /* Top/Left/Right/Bottom 0 */
}
.dakhl-popup-pos-bottom-right {
  bottom: 24px;
  right: 24px;
  align-items: flex-end;
  justify-content: flex-end;
}
.dakhl-popup-pos-bottom-left {
  bottom: 24px;
  left: 24px;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Overlay (Only for center position) */
.dakhl-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none; /* Hidden by default */
}
.dakhl-popup-pos-center .dakhl-popup-overlay {
  display: block; /* Show only for centered modal */
}

/* Container */
.dakhl-popup-container {
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(40px) saturate(250%);
  -webkit-backdrop-filter: blur(40px) saturate(250%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  box-shadow: 0 50px 100px -20px rgba(15, 23, 42, 0.25), inset 0 2px 4px rgba(255, 255, 255, 1);
  width: 92%;
  max-width: 440px;
  padding: 16px;
  transform: translate3d(0, 60px, 0) scale(0.9);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.dakhl-popup-pos-center .dakhl-popup-container {
  max-width: 480px;
}
.dakhl-popup-wrapper.active .dakhl-popup-container {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Close Button */
.dakhl-popup-close {
  position: absolute;
  top: -16px;
  left: -16px; /* Moved outside the container for a floating effect */
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dakhl-popup-close:hover {
  background: #f43f5e;
  color: #fff;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.3);
}

/* Media/Image */
.dakhl-popup-media {
  width: 100%;
  max-height: 280px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}
.dakhl-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.dakhl-popup-wrapper.active .dakhl-popup-media img {
  transform: scale(1.05);
}

/* Text Content */
.dakhl-popup-text {
  padding: 24px 16px 8px;
  text-align: center;
}
.dakhl-popup-title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #0f172a, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.dakhl-popup-desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  margin: 0 0 28px 0;
}

/* Discount Box - Creative Ticket/Pill */
.dakhl-popup-discount-box {
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 6px; 
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}
.dakhl-popup-discount-box:hover {
  border-color: rgba(16, 185, 129, 0.8);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}
.dakhl-discount-label {
  display: none;
}
.dakhl-discount-copy-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #f8fafc;
  border-radius: 14px;
  padding: 4px 6px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  box-sizing: border-box;
  gap: 8px;
}
.dakhl-discount-copy-wrap code {
  font-family: inherit !important;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1.5px;
  background: none;
  border: none;
  padding: 0 8px;
  margin: 0;
  box-shadow: none;
  direction: ltr; 
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dakhl-copy-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 11px;
  font-family: inherit !important;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
  box-sizing: border-box;
}
.dakhl-copy-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}
.dakhl-copy-btn.copied {
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
  transform: scale(0.95);
}

/* Action Button */
.dakhl-popup-action {
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}
.dakhl-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  font-family: inherit !important;
  font-weight: 800;
  font-size: 16px;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.dakhl-popup-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dakhl-popup-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.4);
  color: #fff;
}
.dakhl-popup-btn:hover::after {
  opacity: 1;
}

/* ----------------------------------------------------
   WATERFALL ANIMATIONS (Staggered Entrance)
---------------------------------------------------- */
@keyframes dakhlSlideUpFade {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.dakhl-popup-wrapper:not(.active) .dakhl-popup-media,
.dakhl-popup-wrapper:not(.active) .dakhl-popup-title,
.dakhl-popup-wrapper:not(.active) .dakhl-popup-desc,
.dakhl-popup-wrapper:not(.active) .dakhl-popup-discount-box,
.dakhl-popup-wrapper:not(.active) .dakhl-popup-action {
  opacity: 0;
  transform: translateY(40px);
}

.dakhl-popup-wrapper.active .dakhl-popup-media {
  animation: dakhlSlideUpFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
}
.dakhl-popup-wrapper.active .dakhl-popup-title {
  animation: dakhlSlideUpFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.dakhl-popup-wrapper.active .dakhl-popup-desc {
  animation: dakhlSlideUpFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.dakhl-popup-wrapper.active .dakhl-popup-discount-box {
  animation: dakhlSlideUpFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
.dakhl-popup-wrapper.active .dakhl-popup-action {
  animation: dakhlSlideUpFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

/* ====================================================
   STYLE 2: SPLIT LAYOUT (E-Commerce Minimal)
==================================================== */
.dakhl-popup-style-2 .dakhl-popup-container {
  padding: 0;
  max-width: 800px;
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff; /* Solid white for minimal style */
}
.dakhl-popup-style-2.dakhl-popup-pos-center .dakhl-popup-container {
  max-width: 850px;
}
.dakhl-popup-style-2 .dakhl-popup-close {
  top: 16px;
  left: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  background: #f1f5f9;
  color: #0f172a !important; /* Force dark text color */
  border: 1px solid #e2e8f0;
}
.dakhl-popup-style-2 .dakhl-popup-close:hover {
  background: #ef4444;
  color: #ffffff !important;
  border-color: #ef4444;
}

.dakhl-popup-split-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.dakhl-popup-split-media {
  flex: 1;
  max-width: 45%;
  position: relative;
}
.dakhl-popup-split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dakhl-popup-split-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dakhl-popup-style-2 .dakhl-popup-text {
  padding: 0; /* Override style-1 padding */
  text-align: right; /* Left-aligned content looks better in split (right in RTL) */
}
.dakhl-popup-style-2 .dakhl-popup-discount-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}
.dakhl-popup-style-2 .dakhl-discount-copy-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

/* Staggered Animations for Style 2 */
.dakhl-popup-wrapper.dakhl-popup-style-2:not(.active) .dakhl-popup-split-media {
  opacity: 0;
  transform: translateX(40px); /* Slide from right */
}
.dakhl-popup-wrapper.dakhl-popup-style-2.active .dakhl-popup-split-media {
  animation: dakhlSlideRightFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}
@keyframes dakhlSlideRightFade {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Corner Popups Layout (Side-by-side optimization) */
.dakhl-popup-wrapper:not(.dakhl-popup-pos-center).dakhl-popup-style-2 .dakhl-popup-container {
  width: 600px; /* Explicit width so the corner wrapper expands properly */
  max-width: calc(100vw - 48px);
}
.dakhl-popup-wrapper:not(.dakhl-popup-pos-center).dakhl-popup-style-2 .dakhl-popup-split-content {
  padding: 32px 24px;
}
.dakhl-popup-wrapper:not(.dakhl-popup-pos-center).dakhl-popup-style-2 .dakhl-popup-split-media {
  flex: 0 0 40%;
  max-width: 40%;
}
.dakhl-popup-wrapper:not(.dakhl-popup-pos-center).dakhl-popup-style-2 .dakhl-popup-text {
  text-align: center;
}
.dakhl-popup-wrapper:not(.dakhl-popup-pos-center).dakhl-popup-style-2 h3.dakhl-popup-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.dakhl-popup-wrapper:not(.dakhl-popup-pos-center).dakhl-popup-style-2 p.dakhl-popup-desc {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ====================================================
   MOBILE RESPONSIVENESS FOR ALL POPUP STYLES & POSITIONS
==================================================== */
@media (max-width: 768px) {
  /* Global Popup Wrapper & Positioning on Mobile */
  .dakhl-popup-wrapper {
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  .dakhl-popup-pos-center,
  .dakhl-popup-pos-bottom-right,
  .dakhl-popup-pos-bottom-left {
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
  }
  .dakhl-popup-pos-bottom-right .dakhl-popup-overlay,
  .dakhl-popup-pos-bottom-left .dakhl-popup-overlay,
  .dakhl-popup-pos-center .dakhl-popup-overlay {
    display: block !important;
  }

  /* Universal Popup Container */
  .dakhl-popup-container {
    width: 100% !important;
    max-width: 345px !important;
    max-height: min(88vh, 88dvh) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.35), inset 0 1.5px 3px rgba(255, 255, 255, 0.9) !important;
    margin: auto !important;
  }
  .dakhl-popup-pos-center .dakhl-popup-container {
    max-width: 345px !important;
  }

  /* Universal Floating Close Button */
  .dakhl-popup-close {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    border-radius: 50% !important;
    color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 70 !important;
  }

  /* Universal Media / Banner */
  .dakhl-popup-media {
    width: 100% !important;
    max-height: 155px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12) !important;
  }
  .dakhl-popup-media img {
    width: 100% !important;
    height: 155px !important;
    max-height: 155px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  /* Universal Text Area */
  .dakhl-popup-text {
    padding: 12px 6px 2px !important;
    text-align: center !important;
  }
  .dakhl-popup-title {
    font-size: 17px !important;
    font-weight: 900 !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
  }
  .dakhl-popup-desc {
    font-size: 12.5px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
  }

  /* Universal Discount Pill / Box */
  .dakhl-popup-discount-box {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1.5px dashed rgba(16, 185, 129, 0.55) !important;
    border-radius: 14px !important;
    padding: 3px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
  }
  .dakhl-discount-copy-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 3px 5px !important;
    border-radius: 11px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }
  .dakhl-discount-copy-wrap code {
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    color: #0f172a !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: center !important;
    direction: ltr !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 0 4px !important;
  }
  .dakhl-copy-btn {
    padding: 7px 15px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25) !important;
  }

  /* Universal Action Button */
  .dakhl-popup-action {
    margin-top: 4px !important;
  }
  .dakhl-popup-btn {
    padding: 11px 16px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.25) !important;
  }

  /* ----------------------------------------------------
     STYLE 2: SPLIT LAYOUT (Mobile Optimization)
  ---------------------------------------------------- */
  .dakhl-popup-style-2 .dakhl-popup-container {
    max-width: 345px !important;
    padding: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }
  .dakhl-popup-style-2.dakhl-popup-pos-center .dakhl-popup-container {
    max-width: 345px !important;
  }
  .dakhl-popup-wrapper:not(.dakhl-popup-pos-center).dakhl-popup-style-2 .dakhl-popup-container {
    width: 100% !important;
    max-width: 345px !important;
  }
  .dakhl-popup-split-layout {
    flex-direction: column !important;
    width: 100% !important;
  }
  .dakhl-popup-split-media {
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
    height: 145px !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .dakhl-popup-split-media img {
    position: relative !important;
    width: 100% !important;
    height: 145px !important;
    max-height: 145px !important;
    object-fit: cover !important;
    border-radius: 22px 22px 0 0 !important;
  }
  .dakhl-popup-split-content {
    padding: 14px 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dakhl-popup-style-2 .dakhl-popup-text {
    text-align: center !important;
    padding: 0 !important;
  }
  .dakhl-popup-style-2 .dakhl-popup-close {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
  }

  /* ----------------------------------------------------
     STYLE 3: PHYSICAL TICKET (Mobile Optimization)
  ---------------------------------------------------- */
  .dakhl-popup-style-3 .dakhl-popup-container {
    max-width: 345px !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.18)) !important;
  }
  .dakhl-popup-ticket-layout {
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: hidden !important;
  }
  .dakhl-popup-ticket-layout::after {
    display: none !important;
  }
  .dakhl-popup-ticket-layout .ticket-main {
    width: 100% !important;
    flex-direction: column !important;
    text-align: center !important;
    padding: 16px 12px 14px 12px !important;
    border-bottom: 2px dashed #cbd5e1 !important;
    gap: 10px !important;
  }
  .dakhl-popup-ticket-layout .ticket-media {
    flex: none !important;
    max-width: 100% !important;
  }
  .dakhl-popup-ticket-layout .ticket-media img {
    max-height: 100px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    transform: none !important;
  }
  .dakhl-popup-ticket-layout h3.dakhl-popup-title {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }
  .dakhl-popup-ticket-layout p.dakhl-popup-desc {
    font-size: 12px !important;
    margin-bottom: 12px !important;
  }
  .dakhl-popup-ticket-layout .ticket-stub {
    width: 100% !important;
    border-radius: 0 0 20px 20px !important;
    padding: 12px 12px 16px 12px !important;
  }
  .dakhl-popup-ticket-layout .ticket-barcode-container {
    height: 34px !important;
    margin-bottom: 8px !important;
  }
  .dakhl-popup-ticket-layout .ticket-stub-code,
  .dakhl-popup-ticket-layout .ticket-discount-code-revealed {
    font-size: 1.2rem !important;
    letter-spacing: 2px !important;
  }
  .dakhl-popup-ticket-layout .ticket-copy-text {
    font-size: 0.8rem !important;
  }
  .dakhl-popup-style-3 .dakhl-popup-close {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
  }
}

/* ====================================================
   STYLE 3: PHYSICAL TICKET (Coupons) - Desktop Base
==================================================== */
.dakhl-popup-style-3 .dakhl-popup-container {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  max-width: 800px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.dakhl-popup-ticket-layout, 
.dakhl-popup-ticket-layout * {
  box-sizing: border-box;
}
.dakhl-popup-ticket-layout {
  display: flex;
  background: #ffffff;
  border-radius: 16px;
  position: relative;
  /* Realistic ticket cutouts: 30% from left perfectly matches right: 70% */
  -webkit-mask-image: 
    radial-gradient(circle 20px at 30% 0%, transparent 20px, black 21px),
    radial-gradient(circle 20px at 30% 100%, transparent 20px, black 21px);
  -webkit-mask-size: 100% 51%, 100% 51%;
  -webkit-mask-position: top, bottom;
  -webkit-mask-repeat: no-repeat;
}
.dakhl-popup-ticket-layout::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: 70%;
  width: 2px;
  border-right: 2px dashed #cbd5e1;
  z-index: 10;
}
.dakhl-popup-ticket-layout .ticket-main {
  width: 70%;
  padding: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.dakhl-popup-ticket-layout .ticket-media {
  flex: 0 0 45%;
}
.dakhl-popup-ticket-layout .ticket-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}
.dakhl-popup-ticket-layout .ticket-media:hover img {
  transform: rotate(0deg) scale(1.05);
}
.dakhl-popup-ticket-layout .ticket-content {
  flex: 1;
  text-align: right;
}
.dakhl-popup-ticket-layout h3.dakhl-popup-title {
  font-size: 1.6rem;
  color: #1e293b;
  margin-bottom: 12px;
}
.dakhl-popup-ticket-layout p.dakhl-popup-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}
.dakhl-popup-ticket-layout .ticket-stub {
  width: 30%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 16px 0 0 16px;
  position: relative;
  z-index: 2;
}
.dakhl-popup-ticket-layout .ticket-barcode-container {
  position: relative;
  width: 100%;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dakhl-popup-ticket-layout .ticket-barcode {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to right, #fff 0, #fff 2px, transparent 2px, transparent 6px, #fff 6px, #fff 10px, transparent 10px, transparent 12px, #fff 12px, #fff 14px, transparent 14px, transparent 18px);
  opacity: 0.3;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.dakhl-popup-ticket-layout .ticket-discount-wrap {
  text-align: center;
  width: 100%;
}
.dakhl-popup-ticket-layout .ticket-discount-code-revealed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  opacity: 0;
  transform: scale(0.8) translateY(15px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.dakhl-popup-ticket-layout .ticket-stub.code-revealed .ticket-barcode {
  opacity: 0;
  transform: scaleY(0.1) scaleX(1.2);
  filter: blur(4px);
}
.dakhl-popup-ticket-layout .ticket-stub.code-revealed .ticket-discount-code-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
  text-shadow: 0 0 15px rgba(255,255,255,0.4);
}
.dakhl-popup-ticket-layout .ticket-copy-text {
  display: inline-block;
  font-size: 0.9rem;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 1px dashed #64748b;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  box-shadow: none;
}
.dakhl-popup-ticket-layout .ticket-copy-text:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.dakhl-popup-ticket-layout .ticket-copy-text.copied {
  color: #10b981;
  border-bottom-color: transparent;
  font-weight: bold;
}
.dakhl-popup-style-3 .dakhl-popup-close {
  top: -16px;
  right: -16px;
  left: auto;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}
.dakhl-popup-style-3 .dakhl-popup-close:hover {
  background: #ef4444;
  color: #fff;
}

/* ====================================================
   CUSTOM SINGLE PRODUCT GALLERY & LAYOUT
==================================================== */

/* Modern Flex Layout for Product Page */
.woocommerce div.product,
.dakhl-container div.product {
  display: flex !important;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  max-width: 1240px;
  margin: 32px auto 0; /* Centers it and adds top spacing */
}
.woocommerce div.product .dakhl-right-col-wrapper {
  width: 100% !important;
  max-width: 400px !important;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 100; /* Ensure gallery zoom overlaps middle column */
}
.woocommerce div.product .dakhl-product-gallery-container {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.dakhl-product-gallery-container .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}

.woocommerce div.product .summary.entry-summary,
.dakhl-container div.product .summary.entry-summary {
  flex: 1;
  min-width: 320px;
  float: none !important;
  width: auto !important;
  text-align: right;
  position: relative;
  z-index: 10;
}

/* Category Breadcrumb */
.dakhl-custom-breadcrumb-container {
  width: 100%;
  flex: 1 1 100%;
  margin-top: 24px; 
  margin-bottom: 24px;
}
.dakhl-product-categories-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Right aligned due to RTL */
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin: 0;
  direction: rtl; 
}
.dakhl-product-categories-breadcrumb a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.dakhl-product-categories-breadcrumb a:hover {
  color: var(--dakhl-primary, #0f172a);
}
.dakhl-cat-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}
.dakhl-cat-sep svg {
  width: 14px;
  height: 14px;
}
.dakhl-cat-sep svg path {
  fill: currentColor !important;
}

/* Swiper Gallery Styles */
.dakhl-product-gallery {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  direction: ltr !important; /* Force LTR so main is left, thumbs right */
  position: relative;
}

/* Zoom Pane Container */
.dakhl-zoom-pane {
  position: absolute !important;
  top: 0 !important;
  right: calc(100% + 16px) !important; /* Appear to the left of the gallery (over details) */
  width: 440px !important;
  height: 440px !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
}
.dakhl-zoom-pane:empty {
  display: none !important;
}
.dakhl-zoom-pane .drift-zoom-pane {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}
/* Prevent global image max-width from breaking zoom */
.dakhl-zoom-pane .drift-zoom-pane img {
  max-width: none !important;
  max-height: none !important;
}
.drift-bounding-box {
  background-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset !important;
  border-radius: 4px !important;
  cursor: crosshair !important;
}

.dakhl-product-main {
  width: calc(100% - 72px); /* 60px thumbs + 12px gap */
  aspect-ratio: 1 / 1; /* Force perfect square */
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box; /* Keep padding inside width */
}
.dakhl-product-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.dakhl-product-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Hide Default WooCommerce Zoom Icon */
.woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Main Slider Navigation Arrows */
.dakhl-main-prev,
.dakhl-main-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #64748b;
  transition: all 0.3s ease;
}
.dakhl-main-prev:hover,
.dakhl-main-next:hover {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.dakhl-main-prev.swiper-button-disabled,
.dakhl-main-next.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}
.dakhl-main-prev {
  left: 10px;
}
.dakhl-main-next {
  right: 10px;
}
.dakhl-main-prev svg,
.dakhl-main-next svg {
  width: 16px;
  height: 16px;
}
.dakhl-main-prev svg path,
.dakhl-main-next svg path {
  fill: currentColor !important;
}

.dakhl-product-thumbs-wrapper {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dakhl-product-thumbs {
  height: 260px; /* Match main image height roughly */
  width: 60px; /* Fixed width to prevent overflow */
}
.dakhl-product-thumbs .swiper-slide {
  width: 60px !important;
  height: 60px !important;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  background: #fff;
  box-sizing: border-box !important; /* Fix the right-side cutoff issue */
}
.dakhl-product-thumbs .swiper-slide-thumb-active {
  border-color: var(--dakhl-primary);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ====================================================
   CUSTOM PRODUCT SUMMARY & SWATCHES
==================================================== */
.dakhl-main-title {
  font-size: 18px !important;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .dakhl-main-title {
    font-size: 16px !important;
  }
}
.dakhl-english-title {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
  font-family: Arial, Helvetica, sans-serif;
  direction: ltr;
  text-align: right;
  text-transform: capitalize;
}

/* Product Attributes (Single Product) */
.woocommerce div.product .product_meta {
  color: #475569;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Chic Short Description Box */
.woocommerce div.product .woocommerce-product-details__short-description {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
  margin-bottom: 0;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.9;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  text-align: justify;
  /* Line clamp for 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.woocommerce div.product .woocommerce-product-details__short-description p {
  display: inline; /* Ensure paragraphs flow together for accurate clamping */
  margin: 0;
}
.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}
/* Hide default WooCommerce add to cart form (quantity & button) for simple products, 
   because we have a custom buy box button. */
.woocommerce div.product .dakhl-left-col-wrapper form.cart:not(.variations_form) {
    display: none !important;
}
/* Hide the single_variation_wrap which causes huge empty gaps on variable products */
.woocommerce div.product form.cart .single_variation_wrap {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce div.product form.cart .variations {
  width: 100%;
  margin-bottom: 20px;
  border: none;
}
.woocommerce div.product form.cart .variations tbody {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.woocommerce div.product form.cart .variations tr {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
  border: none;
  padding: 0;
  vertical-align: middle;
  text-align: right;
  display: block;
}
.woocommerce div.product form.cart .variations th {
  margin-bottom: 0 !important;
  width: auto !important;
  white-space: nowrap !important;
}
.woocommerce div.product form.cart .variations .label {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}
.woocommerce div.product form.cart .variations .value {
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
}

/* Custom Swatches */
.dakhl-swatches-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  gap: 8px !important;
  margin-top: 4px !important;
  padding-bottom: 4px !important;
  width: 100% !important;
}
.dakhl-swatches-container::-webkit-scrollbar {
  display: none !important;
}
.dakhl-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.dakhl-swatch:hover {
  border-color: var(--dakhl-primary, #0f172a);
  color: var(--dakhl-primary, #0f172a);
}
.dakhl-swatch.selected {
  border-color: var(--dakhl-primary, #0f172a);
  background-color: var(--dakhl-primary, #0f172a);
  color: #fff;
  font-weight: 500;
}

/* Specific styling for color swatches if values match typical colors */
.dakhl-swatch[data-value*="#"] {
  padding: 0;
  width: 32px;
  border-radius: 4px;
  color: transparent !important;
}
.dakhl-swatch[data-value*="#"].selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f172a;
}

/* ====================================================
   LEFT BUY BOX & 3-COLUMN LAYOUT
==================================================== */
.woocommerce div.product .summary.entry-summary {
  display: flex;
  flex-direction: row-reverse; /* Left-to-Right in RTL to put first DOM element on left */
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.dakhl-left-col-wrapper {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.dakhl-middle-col-wrapper {
  flex-grow: 1;
  min-width: 0; /* Prevent overflow */
  display: flex;
  flex-direction: column;
}
.dakhl-middle-col-wrapper > .dakhl-mobile-card-top-row {
  order: 1 !important;
}
.dakhl-middle-col-wrapper > .dakhl-wonder-banner {
  order: 2 !important;
}
.dakhl-middle-col-wrapper > h1,
.dakhl-middle-col-wrapper > .product_title,
.dakhl-middle-col-wrapper > .custom-single-title {
  order: 3 !important;
}
.dakhl-middle-col-wrapper > * {
  order: 10;
}

/* Hide original price and button in middle column */
.dakhl-middle-col-wrapper > .price {
  display: none !important;
}
.dakhl-middle-col-wrapper form.cart .single_add_to_cart_button,
.dakhl-middle-col-wrapper form.cart .quantity,
.dakhl-left-col-wrapper form.cart .woocommerce-variation-add-to-cart {
  display: none !important; 
}
.product_meta {
  display: none !important; /* Hide WooCommerce default meta */
}
.woocommerce-variation-price {
  display: none !important; /* Hide WooCommerce variation gold price */
}

/* Brand Title above product name */
.dakhl-product-brand-title {
  color: #64748b;
  font-size: 13px;
  margin: 0;
  direction: rtl;
  font-weight: 500;
}

/* Compact Product Title & English Subtitle Spacing */
.dakhl-title-wrapper {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}
.dakhl-title-wrapper h1.product_title,
.dakhl-title-wrapper .dakhl-main-title {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  line-height: 1.45 !important;
}
.dakhl-english-title {
  margin-top: 2px !important;
  margin-bottom: 4px !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
  line-height: 1.35 !important;
}

/* Unified Top Row Alignment */
.dakhl-top-row-item {
  height: 24px;
  margin-bottom: 24px; /* Equal spacing below all top row items */
  display: flex;
  align-items: flex-end; /* Push content to baseline */
}
.dakhl-breadcrumb-item, .dakhl-brand-item {
  justify-content: flex-start; /* Align right in RTL */
}
.dakhl-share-item {
  justify-content: flex-end; /* Align left in RTL */
}

/* ====================================================
   WONDER DEAL / SPECIAL OFFER BANNER (GLOBAL)
==================================================== */
.dakhl-wonder-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: linear-gradient(135deg, #fff1f3 0%, #ffe6e9 100%) !important;
  border: 1px solid rgba(239, 57, 78, 0.1) !important;
  border-radius: 10px !important;
  padding: 10px 18px !important;
  margin-bottom: 20px !important;
  gap: 16px !important;
  direction: rtl !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.dakhl-wonder-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.dakhl-wonder-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ef394e !important;
  white-space: nowrap !important;
}
.dakhl-wonder-center {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 !important;
  justify-content: center !important;
  min-width: 0 !important;
}
.dakhl-wonder-progress-text {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  white-space: nowrap !important;
}
.dakhl-wonder-progress-text strong {
  color: #ef394e !important;
  font-weight: 700 !important;
}
.dakhl-wonder-progress-bar {
  flex: 1 !important;
  max-width: 160px !important;
  min-width: 50px !important;
  height: 4px !important;
  background: rgba(239, 57, 78, 0.15) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}
.dakhl-wonder-progress-fill {
  height: 100% !important;
  background: #ef394e !important;
  border-radius: 4px !important;
  transition: width 1s ease !important;
}
.dakhl-wonder-sep {
  width: 1px !important;
  height: 14px !important;
  background: #cbd5e1 !important;
  flex-shrink: 0 !important;
}
.dakhl-wonder-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  color: #ef394e !important;
}
.dakhl-wonder-clock-icon {
  color: #ef394e !important;
  flex-shrink: 0 !important;
}
.dakhl-wonder-timer {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #ef394e !important;
  font-variant-numeric: tabular-nums !important;
  direction: ltr !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  white-space: nowrap !important;
  letter-spacing: 0.5px !important;
}

.dakhl-wonder-top-track,
.dakhl-wonder-stroke-active,
.dakhl-wonder-mobile-badge,
.dakhl-wonder-white-card-top {
  display: none !important;
}


/* Buy Box Styling */
.dakhl-buy-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  min-height: 328px; /* Exactly matches the 328px height of the main image */
  box-sizing: border-box; /* Crucial: includes padding in the height calculation */
  display: flex;
  flex-direction: column;
}

.dakhl-buy-box-bottom {
  margin-top: auto; /* Pushes price and button to the bottom */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Share & Like Icons */
.dakhl-share-like {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}
.dakhl-icon-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}
.dakhl-icon-btn:hover {
  color: #ec4899;
}

/* Guarantees */
.dakhl-guarantees {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 24px;
}
.dakhl-guarantees li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 16px;
}
.dakhl-guarantees li:last-child {
  margin-bottom: 0;
}
.dakhl-guarantees li svg {
  color: #94a3b8;
  flex-shrink: 0;
}

/* Price Block Styling inside Left Box */
.dakhl-buy-box-price {
  margin-bottom: 24px;
  text-align: left;
}
.dakhl-buy-box-price .price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.dakhl-price-old-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.dakhl-buy-box-price .price del {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: line-through;
  opacity: 1;
}
.dakhl-buy-box-price .price ins,
.dakhl-buy-box-price .price > .amount {
  background: none;
  text-decoration: none;
}
.dakhl-buy-box-price .price .amount bdi {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dakhl-buy-box-price .price del .amount bdi {
  display: inline-flex;
  gap: 4px;
}
.dakhl-buy-box-price .price .amount {
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
}
.dakhl-buy-box-price .price del .amount {
  font-size: 14px;
  font-weight: 400;
}
.dakhl-discount-badge {
  background: #e11d48;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
}

/* Custom Toman Symbol */
.dakhl-toman-custom {
  display: inline-block;
  position: relative;
  font-size: 16px; 
  color: #0f172a;
  font-weight: 700;
  padding-top: 8px; /* space for the absolute N */
  line-height: 1;
}
del .dakhl-toman-custom {
  font-size: 12px;
  color: #94a3b8;
  padding-top: 6px;
}
.dakhl-toman-n {
  position: absolute;
  top: -2px;
  left: 3px;
  font-size: 0.9em;
}

/* Snapp Pay */
.dakhl-snapp-pay {
  background: #f0f9ff;
  color: #0284c7;
  font-size: 13px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}
.dakhl-snapp-pay::before {
  content: "Pay!";
  background: #0284c7;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* Custom Add to Cart Button */
.dakhl-custom-add-to-cart-btn {
  width: 100%;
  background: #d81b60 !important; /* Match screenshot magenta/pink */
  color: #fff !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 16px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.dakhl-custom-add-to-cart-btn:hover {
  background: #c2185b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
}
.dakhl-product-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dakhl-thumb-prev,
.dakhl-thumb-next {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f1f5f9;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #64748b;
}
.dakhl-thumb-prev:hover,
.dakhl-thumb-next:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.dakhl-thumb-prev.swiper-button-disabled,
.dakhl-thumb-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.dakhl-thumb-prev svg,
.dakhl-thumb-next svg {
  width: 16px;
  height: 16px;
}
.dakhl-thumb-prev svg path,
.dakhl-thumb-next svg path {
  fill: currentColor !important;
}

@media (max-width: 768px) {
  .dakhl-product-gallery {
    flex-direction: column;
    max-width: 100% !important;
  }
  .dakhl-product-main {
    width: 100%;
  }
  .dakhl-product-main .swiper-slide img {
    max-height: 300px;
  }
  .dakhl-product-thumbs-wrapper {
    width: 100%;
    flex-direction: row;
    height: 70px;
    justify-content: center;
  }
  .dakhl-product-thumbs {
    height: 100%;
    width: calc(100% - 80px); /* Leave room for arrows */
  }
  .dakhl-thumb-prev,
  .dakhl-thumb-next {
    transform: rotate(-90deg); /* Point left/right on mobile */
  }
}

/* Variation Error Message */
.dakhl-variation-error {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #e11d48; 
  border: 1px solid #e11d48;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 0;
  background-color: #fff;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 12px;
  z-index: 10;
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  direction: rtl;
}
.dakhl-variation-error .error-icon {
  flex-shrink: 0;
  color: #e11d48;
}
.dakhl-variation-error.shake-anim {
  animation: errorShake 0.4s ease-in-out;
}

.woocommerce div.product form.cart .variations.variation-error-highlight tbody {
  background-color: #fff1f2 !important;
  border-color: #fecdd3 !important;
  box-shadow: 0 0 0 1px #fecdd3 !important;
  transition: all 0.3s ease;
}
.woocommerce div.product form.cart .variations.variation-error-highlight.shake-anim {
  animation: errorShake 0.4s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}

/* Product Dynamic Stats under Gallery */
.dakhl-product-stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -8px; /* Bring it closer */
  padding-top: 0;
  padding-right: 76px; /* 60px thumb width + 16px gap to center under main image */
  padding-left: 8px;
  direction: rtl;
  color: #64748b;
  font-size: 14px;
}
@media (max-width: 768px) {
  .dakhl-product-stats-container {
    display: none !important;
  }
}
.dakhl-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dakhl-stat-item svg {
  width: 18px;
  height: 18px;
}
.dakhl-stat-divider {
  width: 1px;
  height: 12px;
  background-color: #cbd5e1;
}
.dakhl-stat-favorites .heart-icon { color: #e11d48; display: flex; }
.dakhl-stat-comments .comment-icon { color: #94a3b8; display: flex; }
.dakhl-stat-rating .star-icon { color: #f59e0b; display: flex; }

/* Short Attributes in Middle Column (Bento Grid) */
.dakhl-product-short-attributes {
  margin: 16px 0;
  direction: rtl;
  text-align: right;
}
.dakhl-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dakhl-bento-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
  padding: 12px 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  overflow: hidden;
}
.dakhl-bento-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
/* Make the last item span full width if there's an odd number of items */
.dakhl-bento-item:last-child:nth-child(odd) {
  grid-column: span 2;
}
.dakhl-bento-text {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.dakhl-bento-item .bento-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}
.dakhl-bento-item .bento-value {
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dakhl-bento-more-btn {
  grid-column: span 2;
  background: #fff;
  border: 1px dashed #cbd5e1;
  color: #3b82f6;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
}
.dakhl-bento-more-btn:hover {
  background: #f1f5f9;
}

/* Custom Description Box */
.dakhl-product-description-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px; /* same as product container */
  width: 100%;
  direction: rtl;
  text-align: right;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.dakhl-product-description-box.dakhl-accordion-box {
  margin-top: 0; /* Reset negative margin for the second box */
}
.dakhl-desc-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  margin-top: 0;
}
.dakhl-desc-content-wrapper {
  position: relative;
}
.dakhl-desc-content {
  color: #475569;
  font-size: 14px;
  line-height: 2;
  max-height: 75px; /* Reduced box height */
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.dakhl-product-description-box.is-expanded .dakhl-desc-content {
  max-height: 3000px;
}
.dakhl-desc-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px; /* Reduced gradient height to match shorter box */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 90%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
}
.dakhl-product-description-box.is-expanded .dakhl-desc-gradient {
  opacity: 0;
}
.dakhl-desc-toggle {
  background: none;
  border: none;
  color: #db2777;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-top: 16px;
  font-family: inherit; /* FIX FONT ISSUE */
}
.dakhl-desc-toggle svg {
  transition: transform 0.3s ease;
}

/* Accordion Specific Overrides */
.dakhl-accordion-box .dakhl-desc-title {
  margin: 0;
}
.dakhl-accordion-box .dakhl-desc-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dakhl-accordion-box.is-expanded .dakhl-desc-content-wrapper {
  grid-template-rows: 1fr;
}
.dakhl-accordion-box .dakhl-desc-content {
  min-height: 0;
  max-height: none;
  opacity: 0;
  visibility: hidden;
  padding-top: 0;
  transition: opacity 0.3s ease, visibility 0.3s, padding-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dakhl-accordion-box.is-expanded .dakhl-desc-content {
  opacity: 1;
  visibility: visible;
  padding-top: 16px;
}
.dakhl-accordion-box .dakhl-desc-toggle {
  color: #0f172a;
  width: 100%;
  justify-content: space-between;
  margin: 0;
  font-size: 16px;
}
.dakhl-accordion-box .dakhl-desc-toggle svg {
  color: #64748b;
}

/* Disable Variation Swatches Tooltip on Hover */
[data-wvstooltip]::before,
[data-wvstooltip]::after,
.wvs-has-image-tooltip::before,
.wvs-has-image-tooltip::after {
  display: none !important;
}

/* Specifications Grid */
.dakhl-specs-grid {
  display: flex;
  flex-direction: column;
}
.dakhl-related-products-section {
  width: 100%;
  flex: 1 1 100%;
  margin-top: 5px;
  padding: 0;
  border: none;
}
.woocommerce div.product .woocommerce-tabs {
  width: 100%;
  flex: 1 1 100%;
}
.dakhl-spec-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}
.dakhl-spec-row:last-child {
  border-bottom: none;
}
.dakhl-spec-label {
  width: 35%;
  color: #64748b;
  font-size: 14px;
}
.dakhl-spec-value {
  width: 65%;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
}

/* Specifications Modal */
.dakhl-specs-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dakhl-specs-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.dakhl-specs-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}
.dakhl-specs-modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 20px;
  padding: 24px;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  direction: rtl;
}
.dakhl-specs-modal.active .dakhl-specs-modal-content {
  transform: translateY(0);
}
.dakhl-specs-modal-close {
  position: absolute;
  top: 16px; left: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #64748b;
  transition: background 0.2s;
}
.dakhl-specs-modal-close:hover {
  background: #e2e8f0;
}
.dakhl-specs-modal-content h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 20px;
  color: #0f172a;
}

/* Dakhl Image Slider Widget */
.dakhl-image-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.dakhl-swiper-container {
  width: 100%;
}

.dakhl-swiper-container .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}



.dakhl-swiper-container .swiper-slide-active {
  z-index: 2;
}

.dakhl-slide-inner {
  border-radius: var(--dakhl-radius-md);
  overflow: hidden;
  box-shadow: var(--dakhl-shadow-md);
}

.dakhl-slide-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--dakhl-radius-md);
}

/* Navigation Icons */
.dakhl-swiper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--dakhl-transition);
}

.dakhl-swiper-nav.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dakhl-swiper-nav:hover:not(.swiper-button-disabled) {
  opacity: 0.95;
}

/* Note: Left arrow is next in RTL */
.dakhl-swiper-prev {
  right: 15px;
}

.dakhl-swiper-next {
  left: 15px;
}

.dakhl-swiper-nav img,
.dakhl-swiper-nav svg {
  width: 24px;
  height: 24px;
  transition: var(--dakhl-transition);
}

/* Pagination Dots */
.dakhl-swiper-container .swiper-pagination {
  bottom: 20px !important;
  z-index: 10;
}

.dakhl-swiper-container .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
  transition: var(--dakhl-transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin: 0 4px !important;
}

.dakhl-swiper-container .swiper-pagination-bullet-active {
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .dakhl-swiper-container .swiper-slide {
    width: 85%;
  }
  .dakhl-swiper-nav {
    width: 40px;
    height: 40px;
  }
  .dakhl-swiper-prev {
    right: 7.5%;
  }
  .dakhl-swiper-next {
    left: 7.5%;
  }
}

/* ====================================================
   RELATED PRODUCTS SLIDER
==================================================== */
.dakhl-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
}
.dakhl-related-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.dakhl-related-swiper {
  padding: 4px !important;
  position: relative;
  overflow: hidden !important;
}
.dakhl-related-swiper .swiper-wrapper {
  align-items: stretch !important;
}
.dakhl-related-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
}
.dakhl-related-card,
.dakhl-product-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 0 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
.dakhl-related-card:hover,
.dakhl-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
  border-color: #e2e8f0 !important;
}

@media (max-width: 768px) {
  .dakhl-related-products-section {
    margin-top: 24px !important;
    margin-bottom: 36px !important;
    padding: 0 !important;
  }
  .dakhl-related-header {
    padding: 0 16px !important;
    margin-bottom: 14px !important;
  }
  .dakhl-related-title {
    font-size: 16px !important;
    font-weight: 800 !important;
  }
}

.dakhl-related-next,
.dakhl-related-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  color: #64748b;
}
.dakhl-related-next:hover,
.dakhl-related-prev:hover {
  background: #f8fafc;
  color: #0f172a;
}
.dakhl-related-next.swiper-button-disabled,
.dakhl-related-prev.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}
.dakhl-related-next:after,
.dakhl-related-prev:after {
  content: none !important;
}
.dakhl-related-next svg,
.dakhl-related-prev svg {
  width: 20px;
  height: 20px;
}
.dakhl-related-next {
  right: 10px;
}
.dakhl-related-prev {
  left: 10px;
}

/* ==========================================================================
   Custom Comments Section & Sticky Buy Box
   ========================================================================== */
.dakhl-comments-layout-wrapper {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1240px;
  margin: 40px auto;
  align-items: flex-start; /* crucial for sticky */
}

.dakhl-comments-main-col {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}

.dakhl-comments-sidebar-col {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 140px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

/* Sticky Buy Box Styles */
.sticky-buy-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #1e293b;
  margin: 0;
  text-align: center;
}
.sticky-buy-image {
  text-align: center;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: none;
}
.sticky-buy-image img {
  max-width: 120px;
  height: auto;
}
.sticky-buy-price-area {
  text-align: center;
  margin-top: 8px;
}
.sticky-buy-price-area del {
  color: #94a3b8;
  font-size: 14px;
}
.sticky-buy-price-area .dakhl-price-toman {
  font-size: 20px;
  font-weight: bold;
  color: #1e293b;
  margin-top: 4px;
}
.dakhl-snapppay-installment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #3b82f6;
  background: #eff6ff;
  padding: 8px;
  border-radius: 8px;
}
.dakhl-snapppay-installment img {
  width: 24px;
}
.dakhl-sticky-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  background: #db2777;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit !important;
  box-sizing: border-box;
  margin: 0 auto;
}
.dakhl-sticky-add-btn:hover {
  background: #be185d;
  color: #fff;
}
.dakhl-sticky-add-btn.out-of-stock {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Reviews Header */
.dakhl-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.dakhl-reviews-title-area h2 {
  font-size: 20px;
  font-weight: bold;
  color: #0f172a;
  margin: 0 0 12px 0;
}
.dakhl-reviews-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
}
.dakhl-average-rating, .dakhl-review-count {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dakhl-stat-separator {
  width: 1px;
  height: 14px;
  background-color: #cbd5e1;
  display: inline-block;
}

.dakhl-add-review-btn {
  border: 1px solid #db2777;
  color: #db2777;
  background: #fff;
  padding: 8px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.dakhl-add-review-btn:hover {
  background: #fdf2f8;
}

/* Buyer Images - Container Margin */
.dakhl-buyer-images {
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
}
.dakhl-buyer-img-trigger {
  transition: opacity 0.2s;
}
.dakhl-buyer-img-trigger:hover {
  opacity: 0.8;
}

/* Comment List */
.dakhl-commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dakhl-review-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 24px 0;
}
.dakhl-review-item:last-child {
  border-bottom: none;
}
.dakhl-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dakhl-review-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #94a3b8;
}
.dakhl-author-name {
  font-weight: 500;
  color: #94a3b8;
}
.dakhl-author-separator {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
  margin: 0;
  display: inline-block;
}
.dakhl-buyer-badge {
  background: #fdf2f8;
  color: #db2777;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.dakhl-guest-badge {
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.dakhl-review-date {
  font-size: 12px;
  color: #94a3b8;
}

.dakhl-review-content {
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
}
.dakhl-review-content p {
  margin: 0 0 10px 0;
}

.dakhl-review-footer {
  display: flex;
  justify-content: flex-end; /* align to left */
}

.dakhl-helpful-vote {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}
.dakhl-vote-btn {
  background: none;
  border: none;
  color: #db2777;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  transition: opacity 0.3s ease;
}
.dakhl-vote-btn:hover {
  opacity: 0.7;
}
.dakhl-vote-btn.loading {
  opacity: 0.5;
  cursor: wait;
}
.dakhl-vote-btn.voted svg {
  fill: #db2777;
}

/* Reset review form wrapper visibility for modal */
#review_form_wrapper {
  margin-top: 16px;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea,
#review_form_wrapper select {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  margin-top: 8px;
}
#review_form_wrapper textarea {
  resize: vertical;
}

.comment-form-images {
  margin-top: 16px;
  border: 1px dashed #cbd5e1;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
}

/* Mobile */
@media (max-width: 991px) {
  .dakhl-comments-layout-wrapper {
    flex-direction: column-reverse;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .dakhl-comments-main-col {
    flex: 0 0 100%;
    width: 100%;
    position: static;
  }
  .dakhl-comments-sidebar-col {
    display: none !important;
  }
  .dakhl-comments-main-col {
    border: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 24px;
    padding-bottom: 0;
  }
}

/* Product Like Button */
.dakhl-product-like-btn.liked .heart-icon {
    color: #ef4444; /* red */
}
.dakhl-product-like-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}
.dakhl-product-like-btn.liked {
    color: #ef4444;
}
.dakhl-product-like-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Buyer Images Gallery */
.dakhl-buyer-images-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.dakhl-buyer-images-header h4 {
  margin: 0;
  font-size: 16px;
  color: #1e293b;
}
.dakhl-buyer-images-count {
  color: #64748b;
  font-size: 14px;
}
.dakhl-buyer-images-list {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.dakhl-buyer-images-list::-webkit-scrollbar {
  display: none;
}
.dakhl-buyer-img-trigger {
  display: inline-block;
  margin-left: 10px; /* Space between images in RTL */
}
.dakhl-buyer-img-trigger img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Buyer Image Modal CSS */
.dakhl-modal {
  display: none;
  position: fixed;
  z-index: 9999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.dakhl-modal.active {
  display: flex;
}
.dakhl-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.dakhl-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.dakhl-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.dakhl-modal-title {
  font-size: 18px;
  margin: 0;
  color: #1e293b;
  font-weight: bold;
}
.dakhl-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.dakhl-modal-close:hover {
  color: #475569;
}
.dakhl-modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.dakhl-modal-image-container {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 350px;
  flex-shrink: 0;
}
.dakhl-modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.dakhl-modal-details {
  padding: 20px;
}
.dakhl-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}
.dakhl-modal-nav {
  display: flex;
  gap: 10px;
}
.dakhl-nav-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
}
.dakhl-nav-btn:hover {
  background: #e2e8f0;
}

/* Comments Skeleton Loader */
.dakhl-comments-skeleton {
  padding: 20px 0;
}
.skeleton-comment {
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}
.skeleton-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.skeleton-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skeleton-date, .skeleton-badge, .skeleton-name, .skeleton-line {
  background: #e0e0e0;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.skeleton-date { width: 60px; height: 12px; }
.skeleton-badge { width: 40px; height: 20px; border-radius: 12px; }
.skeleton-name { width: 80px; height: 16px; }
.skeleton-line { height: 14px; margin-bottom: 10px; width: 100%; }
.skeleton-line.short { width: 60%; }

@keyframes skeleton-pulse {
  0% { background-color: #f5f5f5; }
  50% { background-color: #e0e0e0; }
  100% { background-color: #f5f5f5; }
}

/* -------------------------------------
 * Modern Review Form Modal 
 * ------------------------------------- */
#dakhl-review-form-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
}
#dakhl-review-form-modal.active {
  display: flex;
}
.dakhl-review-form-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 550px;
  width: 95%;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.dakhl-review-form-content .dakhl-modal-header {
  background: #f8fafc;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.dakhl-review-form-content .dakhl-modal-body {
  padding: 24px;
}
.dakhl-form-row {
  margin-bottom: 20px;
}
.dakhl-form-row input[type="text"],
.dakhl-form-row input[type="email"],
.dakhl-form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit !important;
  color: #334155;
  background: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.dakhl-form-row input:focus,
.dakhl-form-row textarea:focus {
  outline: none;
  border-color: #db2777;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1);
}
.dakhl-form-row label {
  display: none; /* Hidden since we use placeholders */
}

/* Custom Interactive Stars */
.dakhl-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdf2f8;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #fce7f3;
}
/* Hide WooCommerce default injected stars */
.dakhl-rating-row p.stars {
  display: none !important;
}
.dakhl-rating-label {
  font-size: 14px;
  color: #be185d;
  font-weight: 600;
  font-family: inherit !important;
}
.dakhl-interactive-stars {
  display: flex;
  gap: 8px;
  direction: ltr; /* LTR so hovering left-to-right fills correctly */
}
.dakhl-star-select {
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s ease;
}
.dakhl-star-select.active,
.dakhl-star-select.hover {
  color: #f59e0b;
  fill: #f59e0b;
  transform: scale(1.1);
}

/* Styled File Upload */
.dakhl-file-upload-row {
  margin-top: 10px;
}
.dakhl-file-upload-label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  font-weight: 500;
  font-family: inherit !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dakhl-file-upload-label:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #475569;
}
.dakhl-file-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.dakhl-file-upload-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Submit Button */
#review_form input#submit, 
#review_form button[type="submit"],
.dakhl-review-form-content .submit {
  width: 100% !important;
  background: #db2777 !important;
  color: #fff !important;
  border: none !important;
  padding: 16px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 10px !important;
}
#review_form input#submit:hover, 
#review_form button[type="submit"]:hover,
.dakhl-review-form-content .submit:hover {
  background: #be185d !important;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3) !important;
}

/* -------------------------------------
 * Modern WooCommerce Pagination 
 * ------------------------------------- */
.woocommerce-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.woocommerce-pagination .page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none !important;
}
.woocommerce-pagination .page-numbers li {
  display: block;
  border: none !important;
}
.woocommerce-pagination .page-numbers .page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none !important;
  padding: 0 !important;
}
.woocommerce-pagination .page-numbers .page-numbers:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}
.woocommerce-pagination .page-numbers .current {
  background: #fdf2f8 !important;
  color: #db2777 !important;
  font-weight: 700;
  box-shadow: none !important;
}
.woocommerce-pagination .page-numbers .next,
.woocommerce-pagination .page-numbers .prev {
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 18px;
}
.woocommerce-pagination .page-numbers .next:hover,
.woocommerce-pagination .page-numbers .prev:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* ==========================================================================
   Product Video Reviews (TikTok Style)
   ========================================================================== */

/* Video Review Banner (Summary) */
.dakhl-vr-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fdf2f4 0%, #fbcfe8 100%);
  border: 1px solid #f9a8d4;
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 6px !important;
  margin-bottom: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dakhl-vr-summary-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.15);
}
.dakhl-vr-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dakhl-vr-banner-icon {
  width: 36px;
  height: 36px;
  background: #db2777;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3);
}
.dakhl-vr-banner-icon svg {
  width: 16px;
  height: 16px;
  transform: translateX(1.5px); /* Optical alignment */
}
.dakhl-vr-banner-text {
  display: flex;
  flex-direction: column;
}
.dakhl-vr-banner-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #9d174d;
}
.dakhl-vr-banner-subtitle {
  font-size: 11.5px;
  color: #be185d;
}
.dakhl-vr-banner-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dakhl-vr-banner-img img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: block;
}

/* Modal Content */
.dakhl-vr-modal-content {
  background: #000;
  width: calc(100% - 32px);
  max-width: 450px;
  height: 85vh;
  max-height: 800px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  direction: rtl;
  text-align: right;
  margin: 16px;
}
.dakhl-vr-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.dakhl-vr-modal-title {
  color: #fff;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.dakhl-vr-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.dakhl-vr-close:hover {
  background: rgba(255,255,255,0.4);
}

/* Video Player */
.dakhl-vr-video-container {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.dakhl-vr-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dakhl-vr-play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 5;
}
.dakhl-vr-video-container.paused .dakhl-vr-play-pause-btn {
  opacity: 1;
}

/* Bottom Area Overlay */
.dakhl-vr-bottom-area {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dakhl-gallery-mobile-overlay {
  display: none;
}

.dakhl-mobile-gallery-grid {
  display: none;
}

.dakhl-gallery-modal {
  display: none;
}

/* Description */
.dakhl-vr-description {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  position: relative;
}
.dakhl-vr-desc-text {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 3em; /* roughly 2 lines */
}
.dakhl-vr-desc-text.expanded {
  -webkit-line-clamp: unset;
  max-height: 200px;
  overflow-y: auto;
}
.dakhl-vr-read-more {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

/* Progress Bar */
.dakhl-vr-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  margin-bottom: 8px;
  direction: ltr;
}
.dakhl-vr-progress-filled {
  height: 100%;
  background: #db2777;
  width: 0%;
  border-radius: 2px;
  position: relative;
}
.dakhl-vr-progress-filled::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Product Card */
.dakhl-vr-product-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.dakhl-vr-product-card:hover {
  transform: translateY(-2px);
}
.dakhl-vr-product-card img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.dakhl-vr-product-info {
  flex: 1;
}
.dakhl-vr-product-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dakhl-vr-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #db2777;
}
.dakhl-vr-product-price del {
  color: #94a3b8;
  font-size: 11px;
  font-weight: normal;
  margin-left: 4px;
}
.dakhl-vr-product-arrow {
  color: #94a3b8;
}

/* ==========================================================================
   Premium Variation Swatches Override (woo-variation-swatches)
   ========================================================================== */

/* Swatches Table Cells & Row Layout */
.woocommerce div.product form.cart table.variations,
.woocommerce div.product form.cart .variations {
  display: block !important;
  width: 100% !important;
}
.woocommerce div.product form.cart .variations tbody {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 16px !important;
}
.woocommerce div.product form.cart .variations tr {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 12px !important;
}
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations th.label {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations td.value,
.woocommerce div.product form.cart .variations .value {
  flex: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce div.product form.cart .variations td.value::-webkit-scrollbar,
.woocommerce div.product form.cart .variations .value::-webkit-scrollbar {
  display: none !important;
}

/* Swatches Container - Smooth Horizontal Scroll on Mobile & Desktop */
.woocommerce div.product form.cart .variations .variable-items-wrapper,
.woocommerce div.product form.cart .variations ul.variable-items-wrapper,
.woocommerce div.product form.cart .variations .woo-variation-items-wrapper,
.woo-variation-swatches .variable-items-wrapper,
ul.variable-items-wrapper,
.dakhl-swatches-container {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 4px 2px 8px 2px !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

.woocommerce div.product form.cart .variations .variable-items-wrapper::-webkit-scrollbar,
.woocommerce div.product form.cart .variations ul.variable-items-wrapper::-webkit-scrollbar,
.woo-variation-swatches .variable-items-wrapper::-webkit-scrollbar,
ul.variable-items-wrapper::-webkit-scrollbar,
.dakhl-swatches-container::-webkit-scrollbar {
  display: none !important;
}

/* Ensure items never shrink and stay on one row */
.woocommerce div.product form.cart .variations .variable-item,
.woo-variation-swatches .variable-items-wrapper .variable-item,
.dakhl-swatch {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Base Swatch Item */
.woocommerce div.product form.cart .variations .variable-item {
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #fff !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  overflow: visible !important;
}

.woocommerce div.product form.cart .variations .variable-item:not(.disabled):hover {
  border-color: #cbd5e1 !important;
}

/* Button/Text Swatches */
.woocommerce div.product form.cart .variations .button-variable-item {
  border-radius: 8px !important;
  padding: 4px 16px !important;
  min-width: auto !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce div.product form.cart .variations .button-variable-item span {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
}

/* Color Swatches (Pill with Label) */
.woocommerce div.product form.cart .variations .color-variable-item {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  width: auto !important;
  height: 36px !important;
  padding: 4px 12px 4px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-direction: row !important;
  background: #ffffff !important;
}
.woocommerce div.product form.cart .variations .color-variable-item .dakhl-swatch-label {
  font-size: 13px !important;
  color: #475569 !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  white-space: nowrap !important;
}
@media (min-width: 769px) {
  .woocommerce div.product form.cart .variations .color-variable-item {
    border-radius: 50% !important;
    width: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .woocommerce div.product form.cart .variations .color-variable-item .dakhl-swatch-label {
    display: none !important;
  }
}
.woocommerce div.product form.cart .variations .color-variable-item .variable-item-contents {
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}
.woocommerce div.product form.cart .variations .color-variable-item .variable-item-span-color {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;
  display: block !important;
  position: absolute !important;
  flex-shrink: 0 !important;
}

/* Selected State (Both) */
.woocommerce div.product form.cart .variations .variable-item.selected {
  border: 1.5px solid #0f172a !important;
  background: #fff !important;
  box-shadow: none !important;
}
.woocommerce div.product form.cart .variations .button-variable-item.selected span {
  color: #0f172a !important;
  font-weight: 700 !important;
}
.woocommerce div.product form.cart .variations .color-variable-item.selected .dakhl-swatch-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Checkmark inside selected color */
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item.selected:not(.no-stock) .variable-item-contents::before {
  display: none !important;
}

/* Disabled/Out of stock swatches */
.woocommerce div.product form.cart .variations .variable-item.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* Center Variation Labels */
.woocommerce div.product form.cart .variations .label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  margin-bottom: 8px !important;
}
.woocommerce div.product form.cart .variations .label label {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Hide Reset Variations ("صاف") */
.woocommerce div.product form.cart .reset_variations {
  display: none !important;
}

/* Unified Options Box for Variations */
.woocommerce div.product form.cart .variations tbody {
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}
/* Ensure Gallery Zoom stays above everything */
.zoomContainer {
  z-index: 9999 !important;
}
.woocommerce div.product form.cart .variations tr {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100% !important;
}
.woocommerce div.product form.cart .variations tr:last-child {
  border: none !important;
  padding: 0 !important;
}
.woocommerce div.product form.cart .variations .woo-variation-items-wrapper,
.woocommerce div.product form.cart .variations .variable-items-wrapper,
.woocommerce div.product form.cart .variations ul.variable-items-wrapper {
  margin: 0 !important;
  justify-content: flex-start !important;
  direction: rtl !important;
}

/* Adjustments for left column placement */
.woocommerce div.product form.cart {
  width: 100% !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}
/* Fix Variation Add to Cart Layout globally (including inside swatches modal) */
form.cart .single_variation_wrap,
form.cart .woocommerce-variation.single_variation,
form.cart .woocommerce-variation-add-to-cart {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: justify !important;
  font-size: 0 !important; /* Remove whitespace gaps between inline-blocks */
}

form.cart .woocommerce-variation-price {
  display: inline-block !important;
  width: calc(50% - 8px) !important;
  vertical-align: middle !important;
  text-align: right !important;
  margin: 0 !important;
  font-size: 16px !important; /* Restore font size */
}

form.cart .single_add_to_cart_button {
  display: inline-block !important;
  width: calc(50% - 8px) !important;
  vertical-align: middle !important;
  text-align: center !important;
  margin: 0 !important;
  font-size: 16px !important;
}

form.cart .woocommerce-variation-add-to-cart .quantity {
  display: none !important;
}

/* ==========================================================================
   Dakhl Ultra-Modern Floating Product Toast (Bento Glass Card)
   ========================================================================== */
.dakhl-creative-toast {
  position: fixed !important;
  bottom: 28px !important;
  top: auto !important;
  left: 28px !important;
  right: auto !important;
  transform: none !important;
  z-index: 9999999 !important;
  background: rgba(15, 23, 42, 0.94) !important; /* Deep Sleek Slate Glass */
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  padding: 10px 12px 10px 14px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: auto !important;
  min-width: 300px !important;
  max-width: 440px !important;
  color: #ffffff !important;
  text-align: right !important;
  margin: 0 !important;
  overflow: hidden !important;
  clear: none !important;
  direction: rtl !important;
  box-sizing: border-box !important;
  animation: dakhlCreativeToastInDesktop 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Completely suppress duplicate pseudo icons */
.dakhl-creative-toast::before,
.dakhl-creative-toast::after {
  display: none !important;
  content: none !important;
}

@keyframes dakhlCreativeToastInDesktop {
  0% { transform: translateY(40px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes dakhlCreativeToastOutDesktop {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(35px) scale(0.92); opacity: 0; }
}

.dakhl-creative-toast.toast-exit {
  animation: dakhlCreativeToastOutDesktop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Info side (Thumbnail + Titles) */
.dakhl-toast-info-side {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Thumbnail Wrap */
.dakhl-toast-thumb-wrap {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  flex-shrink: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.dakhl-toast-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 9px !important;
  display: block !important;
}

.dakhl-toast-check-badge {
  position: absolute !important;
  bottom: -3px !important;
  left: -3px !important;
  width: 16px !important;
  height: 16px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4) !important;
}

.dakhl-toast-icon-fallback {
  width: 36px !important;
  height: 36px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Details */
.dakhl-toast-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.dakhl-toast-item-title {
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 180px !important;
  line-height: 1.3 !important;
}

.dakhl-toast-item-status {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #34d399 !important; /* Soft Emerald */
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.dakhl-toast-dot {
  width: 5px !important;
  height: 5px !important;
  background: #34d399 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  box-shadow: 0 0 8px #34d399 !important;
}

/* CTA Button */
.dakhl-toast-cta-btn {
  position: static !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.dakhl-toast-cta-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.15)) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Progress bar (GPU-accelerated scale animation) */
.dakhl-toast-progress-line {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #10b981, #34d399) !important;
  transform-origin: right center !important;
  animation: dakhlCreativeProgressAnim 3.8s linear forwards !important;
}

@keyframes dakhlCreativeProgressAnim {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* ==========================================================================
   Mobile Layout for Floating Toast
   ========================================================================== */
@keyframes dakhlCreativeToastInMobile {
  0% { transform: translate(-50%, 40px) scale(0.9); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
@keyframes dakhlCreativeToastOutMobile {
  0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, 30px) scale(0.9); opacity: 0; }
}

@media (max-width: 768px) {
  .dakhl-creative-toast {
    top: auto !important;
    bottom: 96px !important; /* Above mobile sticky buy box */
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, 0) !important;
    width: calc(100% - 32px) !important;
    max-width: 390px !important;
    min-width: unset !important;
    padding: 8px 10px 8px 12px !important;
    border-radius: 16px !important;
    gap: 10px !important;
    animation: dakhlCreativeToastInMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .dakhl-creative-toast.toast-exit {
    animation: dakhlCreativeToastOutMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  body:not(.single-product) .dakhl-creative-toast {
    bottom: 24px !important;
  }

  .dakhl-toast-thumb-wrap {
    width: 36px !important;
    height: 36px !important;
  }

  .dakhl-toast-item-title {
    font-size: 11.5px !important;
    max-width: 135px !important;
  }

  .dakhl-toast-item-status {
    font-size: 10.5px !important;
  }

  .dakhl-toast-cta-btn {
    padding: 7px 11px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    gap: 3px !important;
  }
}

/* ==========================================================================
   Clean In-Page WooCommerce Notices (Cart, Checkout, Account)
   ========================================================================== */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  animation: none !important;
}

/* ---- Modern Professional Living Gradient & Moving Matrix Card ---- */
.dakhl-empty-cart-section {
  padding: 24px 0 10px 0;
}

.dakhl-empty-cart-pro-card {
  position: relative;
  background: linear-gradient(-45deg, #090d16, #1e1b4b, #3b0764, #1e1035, #090d16);
  background-size: 300% 300%;
  animation: dakhlMeshShift 5s ease infinite;
  border-radius: 20px;
  padding: 24px 30px;
  box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}

/* Living Gradient Keyframes */
@keyframes dakhlMeshShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Angled Moving Matrix Grid Background (Faster & Crisp) */
.dakhl-matrix-bg {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: dakhlMatrixMove 4s linear infinite;
  pointer-events: none;
  z-index: -2;
}

@keyframes dakhlMatrixMove {
  0% {
    transform: rotate(18deg) translateY(0);
  }
  100% {
    transform: rotate(18deg) translateY(-144px);
  }
}

/* Soft Ambient Radial Glow */
.dakhl-gradient-glow {
  position: absolute;
  top: -30px;
  right: 15%;
  width: 240px;
  height: 150px;
  background: radial-gradient(circle, rgba(239, 57, 78, 0.4) 0%, rgba(147, 51, 234, 0.3) 50%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
  animation: dakhlGlowPulse 2.8s ease-in-out infinite alternate;
}

@keyframes dakhlGlowPulse {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.25) translate(-25px, 15px); opacity: 1; }
}

.dakhl-empty-cart-right {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  text-align: right;
  direction: rtl;
  position: relative;
  z-index: 2;
}

.dakhl-empty-cart-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ff4d6d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.dakhl-empty-cart-pro-card:hover .dakhl-empty-cart-icon-box {
  transform: scale(1.08) rotate(4deg);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 77, 109, 0.4);
}

.dakhl-empty-cart-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.dakhl-empty-cart-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.dakhl-empty-cart-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.45;
  font-weight: 400;
}

.dakhl-empty-cart-left {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.dakhl-empty-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #0f172a !important;
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 12px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.dakhl-empty-cart-btn:hover {
  background: #ef394e;
  color: #ffffff !important;
  border-color: #ef394e;
  box-shadow: 0 8px 25px rgba(239, 57, 78, 0.55);
  transform: translateY(-2px);
}

/* Hide default WooCommerce return to shop p if present */
p.return-to-shop {
  display: none !important;
}

/* ---- Recently Viewed / Recommended Carousel Modern Grid & Cards ---- */
#dakhl-cart-recently-viewed {
  margin-top: 20px;
  margin-bottom: 40px;
}

#dakhl-cart-recently-viewed .dakhl-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

#dakhl-cart-recently-viewed .dakhl-related-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  position: relative;
  padding-right: 12px;
}
#dakhl-cart-recently-viewed .dakhl-related-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 18px;
  background: #ef394e;
  border-radius: 4px;
}

#dakhl-cart-recently-viewed .dakhl-related-swiper {
  position: relative;
  overflow: hidden;
  padding: 6px 4px 16px 4px;
}

#dakhl-cart-recently-viewed .dakhl-related-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  height: 100% !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#dakhl-cart-recently-viewed .dakhl-related-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Hide Carousel Arrows Completely */
#dakhl-cart-recently-viewed .dakhl-related-next,
#dakhl-cart-recently-viewed .dakhl-related-prev {
  display: none !important;
}

@media (max-width: 768px) {
  .dakhl-empty-cart-section {
    padding: 10px 0 4px 0;
  }
  .dakhl-empty-cart-pro-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 16px !important;
    gap: 8px !important;
    border-radius: 18px !important;
  }
  .dakhl-empty-cart-right {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .dakhl-empty-cart-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    margin: 0 auto 2px auto !important;
  }
  .dakhl-empty-cart-icon-box svg {
    width: 24px !important;
    height: 24px !important;
  }
  .dakhl-empty-cart-info {
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
  }
  .dakhl-empty-cart-title {
    font-size: 15.5px !important;
    text-align: center !important;
  }
  .dakhl-empty-cart-desc {
    font-size: 12px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    max-width: 270px !important;
    margin: 0 auto !important;
  }
  .dakhl-empty-cart-left {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 6px !important;
  }
  .dakhl-empty-cart-btn {
    width: auto !important;
    min-width: 190px !important;
    padding: 9px 22px !important;
    font-size: 12.5px !important;
    border-radius: 50px !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  }
  #dakhl-cart-recently-viewed {
    margin-top: 18px !important;
    margin-bottom: 12px !important;
  }
  #dakhl-cart-recently-viewed .dakhl-related-swiper {
    padding-bottom: 10px !important;
  }
}



/* ==========================================================================
   Button Morphing Animation (Add to Cart Success & Loading)
   ========================================================================== */
.dakhl-btn-success-pop,
.dakhl-btn-success-pop:hover,
.dakhl-btn-success-pop:focus {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  animation: dakhlBtnPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
@keyframes dakhlBtnPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Smooth Text Sliding inside Button */
.dakhl-btn-text-animating {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  width: 100% !important;
  height: 24px !important; /* Fixed height to prevent button from growing! */
  line-height: 24px !important;
}
.dakhl-btn-text-out {
  display: block !important;
  width: 100% !important;
  animation: dakhlSlideOutUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
.dakhl-btn-text-in {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  text-align: center !important;
  animation: dakhlSlideInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes dakhlSlideOutUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}
@keyframes dakhlSlideInUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Loading Spinner for sliding into button */
.dakhl-btn-loading-slide {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: dakhlBtnSpin 0.8s linear infinite !important;
  vertical-align: middle !important;
}
@keyframes dakhlBtnSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Waterfall (Cascade) Load Animations
   ========================================================================== */
@keyframes dakhlCascadeFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.woocommerce-breadcrumb {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.woocommerce div.product .woocommerce-product-gallery {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.dakhl-middle-col-brand,
.woocommerce div.product .product_title {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.woocommerce div.product .dakhl-product-short-attributes {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.woocommerce div.product .dakhl-left-col-wrapper {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.woocommerce div.product .dakhl-vr-summary-banner {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.7s;
}

.dakhl-product-description-box {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

.dakhl-custom-comments-wrapper,
.related.products {
  animation: dakhlCascadeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.9s;
}

/* ==========================================================================
   Cart Page – Dakhl Custom Design (v2)
   ========================================================================== */

/* ---- Page wrapper – Normal block ---- */
.woocommerce-cart .woocommerce {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  display: block !important; /* Override any theme grid */
}

/* ---- Our own two-column layout ---- */
.dakhl-cart-two-col {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: flex-start;
  direction: rtl;
}

/* Main column: cart items */
.dakhl-cart-main-col {
  flex: 1;
  min-width: 0;
}

/* Sidebar: totals */
.dakhl-cart-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

/* Remove WooCommerce's own cart-collaterals margin */
.woocommerce-cart .cart-collaterals {
  display: none !important; /* we render totals inside our sidebar via do_action */
}

/* ---- Progress Bar (Modern Sleek Stepper) ---- */
.dakhl-cart-progress {
  margin: 14px auto 32px;
  max-width: 460px;
  padding: 0 16px;
}
.dakhl-cart-progress-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  direction: rtl;
}
.dakhl-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 2;
  position: relative;
  user-select: none;
  min-width: 70px;
}
.dakhl-progress-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.dakhl-progress-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}
.dakhl-progress-step span {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Active Step */
.dakhl-progress-step.active .dakhl-progress-icon {
  border-color: #ef394e;
  background: #ffffff;
  color: #ef394e;
  box-shadow: 0 4px 16px rgba(239, 57, 78, 0.18);
  transform: scale(1.06);
}
.dakhl-progress-step.active span {
  color: #ef394e;
  font-weight: 800;
}

/* Completed Step */
.dakhl-progress-step.completed .dakhl-progress-icon {
  border-color: #ef394e;
  background: #ef394e;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(239, 57, 78, 0.22);
}
.dakhl-progress-step.completed span {
  color: #0f172a;
  font-weight: 700;
}

/* Connecting Track Lines */
.dakhl-progress-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  margin-bottom: 26px;
  position: relative;
  transition: background 0.3s ease;
}
.dakhl-progress-line.active {
  background: #ef394e !important;
}

/* ---- Two-Column Layout ---- */
.dakhl-cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
  direction: rtl;
}

/* ---- Cart Items Column ---- */
.dakhl-cart-items-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- Sidebar Column (cart totals injected here via .cart-collaterals) ---- */
.dakhl-cart-sidebar-col {
  position: sticky;
  top: 100px;
}

/* WooCommerce puts cart totals in .cart-collaterals which comes after the form */
.woocommerce-cart .cart-collaterals {
  margin-top: 0;
  position: sticky;
  top: 100px;
}

/* Move cart-collaterals visually next to the cart items */
.woocommerce-cart .woocommerce {
  position: relative;
}

/* Use CSS grid on the outer woocommerce container */
.woocommerce-cart .woocommerce form.woocommerce-cart-form,
.woocommerce-cart .woocommerce .cart-collaterals {
  /* these sit below each other naturally — we use the inner grid layout */
}

/* Override: make the outer wrapper a grid */
.woocommerce-cart #page .woocommerce,
.woocommerce-cart .site-main .woocommerce,
.woocommerce-cart .woocommerce {
  display: block; /* keep as block — inner layout handles columns */
}

/* The main layout grid wraps both form and collaterals */
.dakhl-cart-page-layout {
  margin-bottom: 20px;
}

/* ---- Cart Items List ---- */
.dakhl-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* ---- Single Cart Item Card ---- */
.dkc-item {
  display: flex;
  flex-direction: column;
  direction: rtl;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  animation: dkcFadeIn 0.4s ease forwards;
  opacity: 0;
}
.dkc-item:nth-child(1) { animation-delay: 0.05s; }
.dkc-item:nth-child(2) { animation-delay: 0.10s; }
.dkc-item:nth-child(3) { animation-delay: 0.15s; }
.dkc-item:nth-child(4) { animation-delay: 0.20s; }
.dkc-item:nth-child(5) { animation-delay: 0.25s; }

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

.dkc-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

/* ---- Product Header (Image + Info) ---- */
.dkc-item-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

/* ---- Product Image ---- */
.dkc-item-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.dkc-item-img a { display: block; width: 100%; height: 100%; }
.dkc-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.3s ease;
}
.dkc-item:hover .dkc-item-img img { transform: scale(1.04); }

/* ---- Product Info ---- */
.dkc-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

.dkc-item-brand {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.dkc-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dkc-item-name a { color: inherit; text-decoration: none; transition: color 0.2s; }
.dkc-item-name a:hover { color: #ef394e; }

/* Variation meta */
.dkc-item-meta {
  margin-top: 2px;
}
.dkc-item-meta dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 2px 0 0 0;
  padding: 0;
}
.dkc-item-meta dt {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin: 0;
}
.dkc-item-meta dd {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  margin: 0 2px 0 0;
  padding: 0;
}
.dkc-item-meta dd p { margin: 0; display: inline; }

/* ---- Full-Width Bottom: Price + Actions ---- */
.dkc-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #f1f5f9;
  width: 100%;
}

/* Actions (Right Side in RTL) */
.dkc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Digikala Capsule Stepper ---- */
.dkc-stepper-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  height: 34px;
  min-width: 96px;
  padding: 0 4px;
  direction: ltr;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.2s ease;
}
.dkc-stepper-capsule.loading {
  opacity: 0.7;
  pointer-events: none;
}
.dkc-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #ef394e;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  user-select: none;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.dkc-stepper-btn:hover {
  background: #fff1f2;
}
.dkc-stepper-btn.is-trash {
  color: #ef394e;
}
.dkc-stepper-btn .dkc-trash-icon {
  width: 15px;
  height: 15px;
  stroke: #ef394e;
  pointer-events: none;
}
.dkc-stepper-btn .dkc-minus-icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.dkc-stepper-num {
  font-size: 14px;
  font-weight: 800;
  color: #ef394e;
  min-width: 26px;
  height: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  user-select: none;
  line-height: 1;
}

/* Micro loader inside capsule */
.dkc-stepper-spinner {
  display: block;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid rgba(239, 57, 78, 0.25);
  border-top-color: #ef394e;
  border-radius: 50%;
  animation: dkc-spin 0.6s linear infinite;
  margin: auto;
}
@keyframes dkc-spin {
  to { transform: rotate(360deg); }
}

/* Price Area (Left Side in RTL) */
.dkc-price-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  text-align: left;
}

.dkc-price-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  direction: rtl;
}

/* Discount Badge */
.dkc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef394e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 12px;
  line-height: 1.3;
  min-width: 28px;
}

/* Crossed-out regular price */
.dkc-price-top del {
  color: #94a3b8 !important;
  font-size: 12.5px !important;
  text-decoration: line-through !important;
  font-family: inherit !important;
  line-height: 1 !important;
  direction: rtl !important;
  display: inline-flex !important;
  align-items: baseline !important;
}
.dkc-price-top del .woocommerce-Price-amount {
  color: #94a3b8 !important;
  direction: rtl !important;
}
.dkc-price-top del .dakhl-toman-custom {
  display: none !important;
}

/* Sale / normal price */
.dkc-price-bottom {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  direction: rtl;
}

.dkc-price-bottom ins,
.dkc-price-bottom .dkc-price-single {
  text-decoration: none !important;
  font-size: 17.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
  direction: rtl !important;
}

.dkc-price-bottom .dakhl-toman-custom,
.dkc-price-area .dakhl-toman-custom {
  font-size: 10px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding-top: 4px !important;
  margin-right: 2px !important;
  display: inline-block !important;
  position: relative !important;
}

.dkc-price-bottom .dakhl-toman-n,
.dkc-price-area .dakhl-toman-n {
  position: absolute !important;
  top: -3.5px !important;
  left: 1px !important;
  font-size: 0.85em !important;
  color: #0f172a !important;
}

/* Hide notice banner during silent cart update */
body.woocommerce-cart .woocommerce-message {
  display: none !important;
}

/* ---- Cart Totals Card ---- */
.dkct-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  animation: dkcFadeIn 0.5s ease 0.2s forwards;
  opacity: 0;
}

.dkct-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.dkct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
  direction: rtl;
  gap: 8px;
}
.dkct-row:last-child { border-bottom: none; }

.dkct-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}
.dkct-count {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 400;
}

.dkct-value {
  font-size: 14px;
  color: #334155;
  font-weight: 700;
  text-align: left;
  direction: rtl !important;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
}
/* Strip WooCommerce table wrappers from totals */
.dkct-value .shop_table { display: none; }
.dkct-value .woocommerce-Price-amount {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  direction: rtl !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 3px !important;
}

#dkct-shipping-val {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

.dkct-card .dakhl-toman-custom {
  font-size: 9.5px !important;
  color: #475569 !important;
  font-weight: 700 !important;
  padding-top: 3px !important;
  margin-right: 2px !important;
  display: inline-block !important;
  position: relative !important;
  line-height: 1 !important;
}

.dkct-card .dakhl-toman-n {
  position: absolute !important;
  top: -4px !important;
  left: 1px !important;
  font-size: 0.85em !important;
  color: #475569 !important;
}

/* Discount row */
.dkct-row-discount .dkct-label { color: #10b981; }
.dkct-discount-value,
.dkct-discount-value .woocommerce-Price-amount {
  color: #10b981 !important;
  font-weight: 700;
  font-size: 13.5px !important;
}
.dkct-discount-value .woocommerce-remove-coupon {
  font-size: 11px;
  color: #f43f5e;
  margin-right: 6px;
  text-decoration: none;
}

/* Total row */
.dkct-row.dkct-row-total {
  padding: 14px 0 6px 0 !important;
  border-bottom: none !important;
}
.dkct-row-total .dkct-label {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.dkct-total-value,
.dkct-total-value .woocommerce-Price-amount {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
}
.dkct-total-value .dakhl-toman-custom {
  font-size: 11px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  display: inline-block !important;
  position: relative !important;
  line-height: 1 !important;
}
.dkct-total-value .dakhl-toman-n {
  position: absolute !important;
  top: -4px !important;
  left: 1px !important;
  color: #0f172a !important;
}

/* Checkout Button */
.dkct-checkout { margin-top: 6px; }
.dkct-checkout a.checkout-button,
.dkct-checkout .button,
.dkct-proceed-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #ef394e !important;
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(239, 57, 78, 0.25);
}
.dkct-checkout a.checkout-button:hover,
.dkct-checkout .button:hover,
.dkct-proceed-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 57, 78, 0.35);
}

/* Button Loading State (Tiny Modern Spinner) */
.dkct-proceed-btn.dkct-btn-loading,
.dkct-add-address-btn.dkct-btn-loading {
  position: relative !important;
  color: transparent !important;
  pointer-events: none !important;
}
.dkct-proceed-btn.dkct-btn-loading::after,
.dkct-add-address-btn.dkct-btn-loading::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: -9px !important;
  margin-left: -9px !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: dkctSpin 0.6s linear infinite !important;
}
@keyframes dkctSpin {
  to { transform: rotate(360deg); }
}

/* Suppress ugly BlockUI overlay */
.blockUI.blockOverlay,
.woocommerce-cart .blockUI,
.cart_totals .blockUI {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dkct-card.dkct-totals-updating .dkct-rows {
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

/* Shipping table inside totals */
.dkct-value .woocommerce-shipping-totals,
.dkct-value table.shop_table {
  background: transparent;
  border: none;
  width: 100%;
}
.dkct-value .woocommerce-shipping-destination { font-size: 11px; color: #aaa; }
.dkct-value .shipping-calculator-button { font-size: 12px; color: var(--dakhl-primary, #ec4899); }

/* ---- Modern Collapsible Coupon Card ---- */
.dkct-coupon-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 0;
  margin-top: 14px;
  animation: dkcFadeIn 0.5s ease 0.35s forwards;
  opacity: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.dkct-coupon-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  direction: rtl;
  color: #1e293b;
  font-family: inherit;
  transition: background 0.15s ease;
}
.dkct-coupon-toggle:hover {
  background: #f8fafc;
}
.dkct-coupon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.dkct-coupon-title svg {
  width: 16px;
  height: 16px;
  color: #ef394e;
  flex-shrink: 0;
}
.dkct-coupon-chevron {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.dkct-coupon-card.is-open .dkct-coupon-chevron {
  transform: rotate(180deg);
}

.dkct-coupon-collapse {
  display: none;
  padding: 0 16px 14px 16px;
  border-top: 1px dashed #f1f5f9;
}
.dkct-coupon-card.is-open .dkct-coupon-collapse {
  display: block;
}

.dkct-coupon-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  direction: rtl;
}
.dkct-coupon-input-wrap input[type="text"] {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
  text-align: right;
}
.dkct-coupon-input-wrap input[type="text"]:focus {
  border-color: #ef394e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.1);
}
.dkct-coupon-btn {
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.dkct-coupon-btn:hover {
  background: #ef394e;
}
.dkct-coupon-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.dkc-btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dkc-spin 0.6s linear infinite;
  vertical-align: middle;
}

.dkct-coupon-response {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  line-height: 1.4;
  display: none;
}
.dkct-coupon-response.success {
  display: block;
  color: #10b981;
}
.dkct-coupon-response.error {
  display: block;
  color: #ef394e;
}

/* ---- Quantity AJAX Loading ---- */
.dkc-item.dkc-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s;
}
.dkc-item.dkc-removing {
  animation: dkcRemove 0.35s ease forwards;
}
@keyframes dkcRemove {
  from { opacity: 1; transform: translateX(0) scale(1); max-height: 200px; }
  to   { opacity: 0; transform: translateX(20px) scale(0.97); max-height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; }
}

/* ---- Empty Cart ---- */
.woocommerce-cart .cart-empty {
  text-align: center;
  padding: 50px 20px;
  font-size: 15px;
  color: #777;
}
.woocommerce-cart .return-to-shop { text-align: center; margin-top: 16px; }
.woocommerce-cart .return-to-shop a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--dakhl-primary, #ec4899);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.woocommerce-cart .return-to-shop a:hover { opacity: 0.9; }

/* ---- Cross-sells (hide or style) ---- */
.woocommerce-cart .cart-collaterals .cross-sells { display: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .dakhl-cart-two-col {
    flex-direction: column;
  }
  .dakhl-cart-main-col {
    width: 100%;
  }
  .dakhl-cart-sidebar {
    width: 100%;
    position: static;
  }
  .dkct-card, .dkct-coupon-card { max-width: 100%; }
}
@media (max-width: 540px) {
  .dakhl-cart-items-list {
    gap: 14px;
    margin-bottom: 20px;
  }
  .dkc-item {
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
  }
  .dkc-item-header {
    gap: 12px;
  }
  .dkc-item-img {
    width: 74px;
    height: 74px;
    border-radius: 12px;
  }
  .dkc-item-name {
    font-size: 13px;
    line-height: 1.5;
  }
  .dkc-item-bottom {
    padding-top: 10px;
    gap: 8px;
  }
  .dkc-actions {
    gap: 6px;
  }
  .dkc-stepper-capsule {
    height: 32px;
    min-width: 90px;
    padding: 0 3px;
  }
  .dkc-stepper-btn {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  .dkc-stepper-btn .dkc-trash-icon {
    width: 14px;
    height: 14px;
  }
  .dkc-stepper-num {
    font-size: 13.5px;
    min-width: 22px;
  }
  .dkc-price-area {
    min-width: 0;
  }
  .dkc-price-top del {
    font-size: 12px !important;
  }
  .dkc-badge {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  .dkc-price-bottom ins,
  .dkc-price-bottom .dkc-price-single {
    font-size: 16px !important;
  }
  .dkct-value,
  .dkct-value .woocommerce-Price-amount {
    font-size: 15px !important;
  }
  .dkct-total-value,
  .dkct-total-value .woocommerce-Price-amount {
    font-size: 18px !important;
  }
  .dakhl-cart-progress { display: none; }
  body.woocommerce-cart {
    padding-bottom: 0 !important;
  }
  .woocommerce-cart .woocommerce {
    padding: 10px 12px 95px 12px !important;
  }
  .dakhl-cart-sidebar {
    margin-bottom: 16px;
  }
  #dakhl-cart-recently-viewed {
    margin-top: 20px !important;
    margin-bottom: 15px !important;
  }
}

/* Hide Header & Footer on Cart Page (Mobile Only, Keep Bottom Nav) */
@media (max-width: 768px) {
  body.woocommerce-cart #dakhl-mobile-header-section,
  body.woocommerce-cart .dakhl-desktop-header-wrapper,
  body.woocommerce-cart .dakhl-top-bar,
  body.woocommerce-cart .dakhl-elementor-header-wrapper {
    display: none !important;
  }

  body.woocommerce-cart footer.dakhl-footer,
  body.woocommerce-cart .dk-footer,
  body.woocommerce-cart .dakhl-elementor-footer-wrapper {
    display: none !important;
  }

  body.woocommerce-cart #dakhl-mobile-nav,
  body.woocommerce-cart .dakhl-bottom-navbar {
    display: flex !important;
  }

  body.woocommerce-cart .site-content {
    padding-top: 16px !important;
    padding-bottom: 110px !important;
  }
  body.woocommerce-cart .dakhl-cart-container {
    padding-bottom: 90px !important;
  }
}




/* ==========================================================================
   Checkout Wizard – Step 1->2 + Address Modal
   ========================================================================== */

/* ---- Step 1 "ثبت سفارش" Button ---- */
.dkct-proceed-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--dakhl-primary, #ec4899);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.dkct-proceed-btn:hover { opacity: 0.92; transform: translateY(-1px); }

/* ---- Step 2 "افزودن آدرس" Button in Sidebar ---- */
.dkct-add-address-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--dakhl-primary, #ec4899);
  border: 2px solid var(--dakhl-primary, #ec4899);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dkct-add-address-btn:hover { background: var(--dakhl-primary, #ec4899); color: #fff; }

/* ---- Address Panel (State 2 of main col) ---- */
.dkca-panel { display: flex; flex-direction: column; gap: 14px; animation: dkcFadeIn 0.4s ease forwards; }

.dkca-section {
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  padding: 18px;
  direction: rtl;
}
.dkca-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dkca-section-header svg { width: 18px; height: 18px; color: var(--dakhl-primary, #ec4899); flex-shrink: 0; }
.dkca-section-header > span:first-of-type { font-size: 14px; font-weight: 700; color: #222; }
.dkca-hint { font-size: 12.5px; color: #888; margin: 0 0 14px; line-height: 1.7; }

.dkca-add-addr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--dakhl-primary, #ec4899);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(236, 72, 153, 0.25);
}
.dkca-add-addr-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.dkca-ship-header { justify-content: space-between !important; margin-bottom: 12px !important; }
.dkca-item-count { font-size: 12px; color: #aaa; font-weight: 400; background: #f5f5f5; padding: 2px 8px; border-radius: 20px; }

.dkca-ship-thumbs { display: flex; flex-direction: row-reverse; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dkca-thumb-wrap { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #fafafa; border: 1px solid #eee; flex-shrink: 0; }
.dkca-thumb-wrap img { width: 100%; height: 100%; object-fit: contain; }

.dkca-timing-header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dkca-timing-header svg { width: 16px; height: 16px; color: #888; }
.dkca-timing-header span { font-size: 13px; font-weight: 600; color: #444; }

/* ===== ADDRESS MODAL ===== */
.dkca-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.dkca-modal.dkca-show { display: flex; }

.dkca-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  animation: dkcOverlayIn 0.25s ease forwards;
}
@keyframes dkcOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.dkca-modal-box {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 26px 30px 30px;
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  z-index: 1;
  text-align: right;
  animation: dkcModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 20px 60px rgba(0,0,0,0.16);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes dkcModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.dkca-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  direction: rtl;
}

.dkca-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dkca-modal-back,
.dkca-modal-close {
  position: static !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.dkca-modal-back:hover,
.dkca-modal-close:hover { background: #ffe4f0; color: var(--dakhl-primary, #ec4899); }
.dkca-modal-back svg,
.dkca-modal-close svg { width: 17px; height: 17px; }

.dkca-modal-title { font-size: 19.5px; font-weight: 700; color: #1a1a1a; margin: 0; }

.dkca-field-group { margin-bottom: 14px; }
.dkca-nat-single { display: block; }


.dkca-modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  direction: rtl;
}

.dkca-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
  direction: rtl;
}

.dkca-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  direction: rtl;
}

.dkca-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.dkca-field label { font-size: 13.5px; font-weight: 600; color: #222; }

.dkca-field input[type="text"],
.dkca-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #dcdcdc;
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  direction: rtl;
}
.dkca-field input[type="text"]:focus,
.dkca-field textarea:focus {
  border-color: var(--dakhl-primary, #ec4899);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.08);
}
.dkca-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.7;
}

.dkca-subtext {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
  display: block;
}

/* Error State styling (matches reference images) */
.dkca-field.dkca-has-error input[type="text"],
.dkca-field.dkca-has-error textarea,
.dkca-field.dkca-has-error select {
  border-color: #e5474f !important;
  background-color: #fff9f9 !important;
  box-shadow: 0 0 0 3px rgba(229, 71, 79, 0.08) !important;
}

.dkca-error-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #e5474f;
  font-weight: 600;
  margin-top: 4px;
  direction: rtl;
}
.dkca-error-msg svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #e5474f;
}

.dkca-input-counter-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.dkca-counter {
  position: absolute;
  left: 12px;
  font-size: 12px;
  color: #888;
  direction: ltr;
  pointer-events: none;
}

.dkca-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #444;
  cursor: pointer;
  margin-top: 6px;
  user-select: none;
}
.dkca-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--dakhl-primary, #ec4899);
  cursor: pointer;
}

.dkca-field-checkbox { margin-bottom: 16px; }

.dkca-select-wrap { position: relative; }
.dkca-select-wrap select {
  width: 100%;
  padding: 11px 12px 11px 32px;
  border: 1.5px solid #dcdcdc;
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: #222;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  direction: rtl;
}
.dkca-select-wrap select:focus { border-color: var(--dakhl-primary, #ec4899); background: #fff; }
.dkca-select-wrap select:disabled { opacity: 0.5; cursor: not-allowed; }
.dkca-select-arrow {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #aaa;
  pointer-events: none;
}

.dkca-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: #777;
  line-height: 1.7;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 18px;
}
.dkca-modal-note svg { width: 16px; height: 16px; flex-shrink: 0; color: #bbb; margin-top: 2px; }

.dkca-modal-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--dakhl-primary, #ec4899);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background-color 0.2s;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  margin-top: 10px;
}

.dkca-modal-submit:not(:disabled):hover { opacity: 0.92; transform: translateY(-1px); }
.dkca-modal-submit:disabled { background: #f3c1de; color: #fff; box-shadow: none; cursor: not-allowed; opacity: 0.8; }

body.dkca-modal-open { overflow: hidden; }

.dakhl-progress-line.active { background: var(--dakhl-primary, #ec4899); }

.dkca-modal,
.dkca-section,
.dkca-card-display,
.dkcal-list-container,
.dkca-ship-methods-list {
  font-family: inherit !important;
}
.dkca-modal button,
.dkca-modal input,
.dkca-modal select,
.dkca-modal textarea,
.dkca-section button,
.dkca-section input {
  font-family: inherit !important;
}

/* Filled Address Card on Cart Page */
.dkca-card-display {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  direction: rtl !important;
}
.dkca-card-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}
.dkca-card-address-text {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  flex-grow: 1 !important;
}
.dkca-card-edit-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.dkca-card-edit-btn:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}
.dkca-card-recipient {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}
.dkca-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #777;
}

@media (max-width: 540px) {
  .dkca-modal-fields, .dkca-grid-2, .dkca-grid-3 { grid-template-columns: 1fr; }
  .dkca-modal-box { padding: 20px 16px; border-radius: 16px; }
}


/* ---- Outline Button for Step 2 (انتخاب زمان تحویل) ---- */
.dkct-outline-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--dakhl-primary, #ec4899);
  border: 2px solid var(--dakhl-primary, #ec4899);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dkct-outline-btn:hover { background: #ffe4f0; }

/* ---- Delivery Time Select Dropdown ---- */
.dkca-delivery-time-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #eee;
}
.dkca-delivery-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dcdcdc;
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: #222;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
/* ==========================================================================
   State 3: Payment Gateways
   ========================================================================== */
.dkcp-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: dkcFadeIn 0.4s ease forwards;
}

.dkcp-section.dkcp-gateways-section {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 18px !important;
  padding: 20px !important;
  direction: rtl !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.dkcp-section-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 16px !important;
}
.dkcp-section-header svg {
  width: 20px !important;
  height: 20px !important;
  color: #0f172a !important;
}

.dkcp-gateways-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.dkcp-gateway-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  direction: rtl !important;
  user-select: none !important;
  box-sizing: border-box !important;
}
.dkcp-gateway-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}
.dkcp-gateway-card.active {
  border-color: #ef394e !important;
  background: #fffcfc !important;
  box-shadow: 0 4px 16px rgba(239, 57, 78, 0.07) !important;
}

.dkcp-gateway-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.dkcp-gateway-icon-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  border: 1px solid #f1f5f9 !important;
}
.dkcp-gateway-icon-badge svg {
  width: 18px !important;
  height: 18px !important;
}
.dkcp-gateway-card.active .dkcp-gateway-icon-badge {
  background: #fef2f2 !important;
  color: #ef394e !important;
  border-color: #fee2e2 !important;
}

.dkcp-gateway-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  text-align: right !important;
}
.dkcp-gateway-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}
.dkcp-gateway-desc {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

.dkcp-gateway-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-right: 12px !important;
}
.dkcp-gateway-icon img {
  max-height: 28px !important;
  width: auto !important;
  object-fit: contain !important;
}
.snapppay-badge {
  background: #00d7bd;
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: sans-serif;
}


/* ---- Step 2 "افزودن آدرس" Button in Sidebar ---- */
.dkct-add-address-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--dakhl-primary, #ec4899);
  border: 2px solid var(--dakhl-primary, #ec4899);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dkct-add-address-btn:hover { background: var(--dakhl-primary, #ec4899); color: #fff; }

/* ---- Address Panel (State 2 of main col) ---- */
.dkca-panel { display: flex; flex-direction: column; gap: 14px; animation: dkcFadeIn 0.4s ease forwards; }

.dkca-section {
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  padding: 18px;
  direction: rtl;
}
.dkca-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dkca-section-header svg { width: 18px; height: 18px; color: var(--dakhl-primary, #ec4899); flex-shrink: 0; }
.dkca-section-header > span:first-of-type { font-size: 14px; font-weight: 700; color: #222; }
.dkca-hint { font-size: 12.5px; color: #888; margin: 0 0 14px; line-height: 1.7; }

.dkca-add-addr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--dakhl-primary, #ec4899);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(236, 72, 153, 0.25);
}
.dkca-add-addr-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.dkca-ship-header { justify-content: space-between !important; margin-bottom: 12px !important; }
.dkca-item-count { font-size: 12px; color: #aaa; font-weight: 400; background: #f5f5f5; padding: 2px 8px; border-radius: 20px; }

.dkca-ship-thumbs { display: flex; flex-direction: row-reverse; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dkca-thumb-wrap { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #fafafa; border: 1px solid #eee; flex-shrink: 0; }
.dkca-thumb-wrap img { width: 100%; height: 100%; object-fit: contain; }

.dkca-timing-header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dkca-timing-header svg { width: 16px; height: 16px; color: #888; }
.dkca-timing-header span { font-size: 13px; font-weight: 600; color: #444; }

/* ===== ADDRESS MODAL ===== */
.dkca-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.dkca-modal.dkca-show { display: flex; }

.dkca-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  animation: dkcOverlayIn 0.25s ease forwards;
}
@keyframes dkcOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.dkca-modal-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 500px;
  margin: 0 16px;
  z-index: 1;
  text-align: right;
  animation: dkcModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
@keyframes dkcModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.dkca-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.dkca-modal-close:hover { background: #ffe4f0; color: var(--dakhl-primary, #ec4899); }
.dkca-modal-close svg { width: 16px; height: 16px; }

.dkca-modal-title { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 0 0 20px; padding-left: 40px; }

.dkca-modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  direction: rtl;
}
.dkca-field { display: flex; flex-direction: column; gap: 6px; }
.dkca-field label { font-size: 12.5px; font-weight: 600; color: #555; }

.dkca-select-wrap { position: relative; }
.dkca-select-wrap select {
  width: 100%;
  padding: 11px 12px 11px 32px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  direction: rtl;
}
.dkca-select-wrap select:focus { border-color: var(--dakhl-primary, #ec4899); background: #fff; }
.dkca-select-wrap select:disabled { opacity: 0.5; cursor: not-allowed; }
.dkca-select-arrow {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #aaa;
  pointer-events: none;
}

.dkca-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #888;
  line-height: 1.7;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 18px;
}
.dkca-modal-note svg { width: 16px; height: 16px; flex-shrink: 0; color: #bbb; margin-top: 2px; }

.dkca-modal-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--dakhl-primary, #ec4899);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.dkca-modal-submit:not(:disabled):hover { opacity: 0.92; transform: translateY(-1px); }
.dkca-modal-submit:disabled { background: #ddd; color: #999; box-shadow: none; cursor: not-allowed; }

body.dkca-modal-open { overflow: hidden; }

.dakhl-progress-line.active { background: var(--dakhl-primary, #ec4899); }

@media (max-width: 540px) {
  .dkca-modal-fields { grid-template-columns: 1fr; }
  .dkca-modal-box { padding: 22px 16px; border-radius: 16px; }
}

/* ===== MULTIPLE ADDRESSES MODAL ===== */
.dkcal-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dkcal-add-new-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 14px 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #0f172a !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
.dkcal-add-new-btn:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15) !important;
  transform: translateY(-1px) !important;
}
.dkcal-add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.dkcal-add-text {
  font-family: inherit !important;
  font-weight: 700;
  font-size: 14px;
}
.dkcal-saved-list {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 10px;
}
.dkcal-saved-list::-webkit-scrollbar {
  width: 4px;
}
.dkcal-saved-list::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 4px;
}
.dkcal-addr-card {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
}
.dkcal-addr-card:last-child {
  border-bottom: none;
}
.dkcal-addr-card-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}
.dkcal-addr-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 12px;
  flex: 1;
}
.dkcal-addr-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.8;
}
.dkcal-addr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  margin-right: 36px; /* align with text, bypassing the radio button */
}
.dkcal-addr-recipient {
  font-size: 13.5px;
  color: #9ca3af;
}
.dkcal-addr-edit-btn {
  background: transparent;
  border: none;
  color: var(--dakhl-primary, #ec4899);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit !important;
}
.dkcal-addr-edit-btn:hover {
  text-decoration: underline;
}

/* Shipping Methods Modern Minimalist Cards */
.dkca-ship-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.dkca-ship-method-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  direction: rtl !important;
  user-select: none !important;
  box-sizing: border-box !important;
}
.dkca-ship-method-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}
.dkca-ship-method-card.active {
  border-color: #ef394e !important;
  background: #fffcfc !important;
  box-shadow: 0 4px 16px rgba(239, 57, 78, 0.07) !important;
}
.dkca-ship-method-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.dkca-ship-icon-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  border: 1px solid #f1f5f9 !important;
}
.dkca-ship-icon-badge svg {
  width: 18px !important;
  height: 18px !important;
}
.dkca-ship-method-card.active .dkca-ship-icon-badge {
  background: #fef2f2 !important;
  color: #ef394e !important;
  border-color: #fee2e2 !important;
}
.dkca-ship-method-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  text-align: right !important;
}
.dkca-ship-method-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}
.dkca-ship-sub,
.dkca-ship-method-desc {
  font-size: 11.5px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}
.dkca-ship-cost {
  font-weight: 800 !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  white-space: nowrap !important;
}
.dkca-ship-cost .dkca-ship-cost-amount {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  font-family: inherit !important;
}
.dkca-ship-cost .dakhl-toman-custom {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: inline-block !important;
  position: relative !important;
  padding: 0 !important;
  line-height: 1 !important;
  margin-right: 2px !important;
}
.dkca-ship-cost .dakhl-toman-n {
  position: absolute !important;
  top: -6px !important;
  left: 1px !important;
  font-size: 0.85em !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1 !important;
}
.dkca-ship-free-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 7px !important;
  border: 1px solid #a7f3d0 !important;
}

/* Desktop: Smart side-by-side box layout for shipping methods */
@media (min-width: 861px) {
  .dkca-ship-methods-list {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .dkca-ship-method-card {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 13px 14px !important;
    gap: 8px !important;
  }
  .dkca-ship-method-right {
    min-width: 0 !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
  }
  .dkca-ship-icon-badge {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }
  .dkca-ship-method-info {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .dkca-ship-method-title {
    font-size: 13.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .dkca-ship-cost {
    flex-shrink: 0 !important;
    font-size: 13px !important;
  }
  .dkca-ship-cost .dkca-ship-cost-amount {
    font-size: 14px !important;
  }
  .dkca-ship-free-badge {
    padding: 3px 8px !important;
    font-size: 11.5px !important;
  }
}

/* ===== WIZARD STATE MANAGEMENT ===== */
.dkct-btn-step1,
.dkct-btn-step2-add,
.dkct-btn-step2-proceed,
.dkct-btn-step3 {
    display: none !important;
}

/* Base states */
body.dkc-step-1 .dkct-btn-step1 { display: block !important; }
body.dkc-step-3 .dkct-btn-step3 { display: block !important; }

/* Step 2 states */
body.dkc-step-2.dkc-addr-empty .dkct-btn-step2-add { display: block !important; }
body.dkc-step-2.dkc-addr-filled .dkct-btn-step2-proceed { display: block !important; }

/* ===== EMPTY STATE STYLING ===== */
.dkca-addr-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    text-align: center;
}
.dkca-hint-center {
    color: #4b5563;
    font-size: 14.5px;
    margin-bottom: 20px;
}
.dkca-add-addr-btn-center {
    background: var(--dakhl-primary, #ec4899);
    color: #fff;
    padding: 10px 30px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dkca-add-addr-btn-center:hover {
    background: #d946ef;
}
.dkca-ship-thumbs-box {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
}
.dkca-thumb-qty {
    display: block;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin-top: 5px;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 2px;
}

@media (max-width: 540px) {
    .dkca-panel { gap: 10px; }
    .dkca-section { padding: 12px; border-radius: 12px; }
    .dkca-addr-empty-state { padding: 16px 0; }
    .dkca-hint-center { font-size: 13px; margin-bottom: 14px; }
    .dkca-add-addr-btn-center { padding: 8px 24px; font-size: 13.5px; }
    .dkca-ship-thumbs-box { padding: 12px; margin-bottom: 16px; }
    .dkca-section-header { margin-bottom: 8px; }
    .dkca-section-header > span:first-of-type { font-size: 13px; }
    .dkca-section-header svg { width: 16px; height: 16px; }
    .dkca-card-display { padding: 12px; }
}

/* Thank You Page Styling - Bento Grid */
.dakhl-bento-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
    animation: fadeIn 0.5s ease-out;
}

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

.bento-box {
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 30px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.span-full {
    width: 100%;
}
.span-main {
    flex: 2;
}
.span-side {
    flex: 1;
}

/* Status Bento (Gradient) */
.bento-status {
    box-sizing: border-box;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}
.bento-status.bento-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.bento-status.bento-failed {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.bento-status-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.bento-icon-wrap {
    background: rgba(255,255,255,0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.bento-icon-wrap svg {
    width: 36px;
    height: 36px;
}
.bento-status-text h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #fff;
}
.bento-status-text p {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
    max-width: 450px;
    line-height: 1.6;
}
.bento-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.bento-actions a {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.bento-actions a.btn-primary {
    background: #fff;
    color: #dc2626;
}
.bento-actions a.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* 3-Col Bento Grid */
.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.bento-info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
}
.info-icon {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    color: var(--dakhl-primary, #ec4899);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-icon svg {
    width: 22px;
    height: 22px;
}
.info-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.info-content span {
    font-size: 13px;
    color: #6b7280;
}
.info-content strong {
    font-size: 18px;
    color: #111827;
    font-weight: 800;
}

/* 2-Col Bento Grid */
.bento-grid-2 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.bento-products {
    flex: 1 1 100%;
}

/* WooCommerce Overrides within Bento */
.bento-products h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
}
.woocommerce-table--order-details th {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}
.woocommerce-table--order-details tbody td {
    font-size: 14px;
    color: #4b5563;
}
.woocommerce-table--order-details tfoot th {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}
.woocommerce-table--order-details tfoot td {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}
.woocommerce-table--order-details tbody tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child th {
    border-bottom: none;
}
.woocommerce-customer-details {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
}
.woocommerce-customer-details h2 {
    font-size: 16px;
    margin-bottom: 15px;
}
.woocommerce-customer-details address {
    font-style: normal;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .bento-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Bento Order Details CSS */
.dakhl-bento-section {
    margin-top: 30px;
}
.bento-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.bento-order-items {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 30px;
    margin-bottom: 20px;
}
.bento-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}
.bento-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 16px;
    transition: background 0.3s ease;
}
.bento-order-item:hover {
    background: #f3f4f6;
}
.bento-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.bento-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.bento-item-name a {
    color: inherit;
    text-decoration: none;
}
.bento-item-qty {
    font-size: 13px;
    color: #6b7280;
    background: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e5e7eb;
}
.bento-item-total {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}
.bento-order-totals {
    border-top: 2px dashed #e5e7eb;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bento-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #4b5563;
}
.bento-total-row.order_total {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.bento-address-box {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
}
.bento-address-content {
    font-style: normal;
    font-size: 15px;
    color: #4b5563;
    line-height: 2;
    background: #f9fafb;
    padding: 24px;
    border-radius: 16px;
}
.bento-contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 600;
}
.bento-contact-detail svg {
    color: var(--dakhl-primary, #ec4899);
}

@media (max-width: 768px) {
    .bento-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .bento-item-total {
        width: 100%;
        text-align: left;
    }
}

/* ====================================================
   SHOP ARCHIVE CUSTOM LAYOUT
==================================================== */
.dakhl-shop-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
    position: relative;
}

.dakhl-shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: relative;
}

@media (min-width: 993px) {
    .dakhl-specific-filter-modal {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

.dakhl-shop-main {
    flex-grow: 1;
    width: calc(100% - 290px);
    transition: opacity 0.2s ease;
}

.dakhl-shop-main.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* Sidebar styling */
.dakhl-sidebar-inner {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: sticky !important;
    top: 90px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.dakhl-sidebar-inner::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.dakhl-sidebar-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.dakhl-sidebar-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}
.dakhl-filter-widget {
    margin-bottom: 25px;
}
.dakhl-filter-widget .widget-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dakhl-text);
}
.dakhl-filter-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dakhl-filter-widget ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--dakhl-text-muted);
}
.dakhl-filter-widget ul li a {
    color: inherit;
}
.dakhl-filter-widget ul li a:hover {
    color: var(--dakhl-primary);
}

/* Shop Topbar (Header Info + Linear Sorting Bar) */
.dakhl-shop-topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 20px !important;
    border: none !important;
    box-shadow: none !important;
    gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Category Title & Product Count */
.dakhl-shop-header-info {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}
.dakhl-shop-header-info h1.page-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1.5 !important;
}
.dakhl-count-text {
    color: #64748b !important;
    font-weight: 600 !important;
}
.dakhl-title-text {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.dakhl-shop-topbar-scroll-items {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

/* Filter Toggle Button (Red Theme) */
.dakhl-mobile-filter-toggle {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 6px !important;
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #e11d48 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s !important;
    position: relative !important;
    line-height: 1.3 !important;
}
.dakhl-mobile-filter-toggle svg {
    width: 15px !important;
    height: 15px !important;
    stroke: #e11d48 !important;
    flex-shrink: 0 !important;
}
.dakhl-mobile-filter-toggle .dakhl-filter-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #000000 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    display: block !important;
    padding: 0 !important;
    box-sizing: content-box !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

/* Dynamic Filter Pills container */
.dakhl-mobile-filter-bar {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Dynamic Filter Pills */
.dakhl-mobile-widget-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s !important;
    line-height: 1.3 !important;
}
.dakhl-mobile-widget-pill.active-filter {
    border-color: #e11d48 !important;
    color: #e11d48 !important;
    background: #fff1f2 !important;
}
.dakhl-mobile-widget-pill svg {
    width: 14px !important;
    height: 14px !important;
}

/* Sorting Section */
.dakhl-shop-sorting {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.dakhl-sort-options-scroll {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.dakhl-sort-option {
    display: inline-block !important;
    padding: 6px 12px !important;
    color: #64748b !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 100px !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
}
.dakhl-sort-option:hover {
    color: #e11d48 !important;
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}
.dakhl-sort-option.active {
    color: #ffffff !important;
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    font-weight: 700 !important;
}

@media (min-width: 993px) {
    .dakhl-shop-topbar {
        justify-content: space-between !important;
        flex-direction: row !important;
        align-items: center !important;
        overflow-x: visible !important;
    }
    .dakhl-mobile-filter-toggle,
    .dakhl-mobile-filter-bar {
        display: none !important;
    }
}

/* Product Grid (5 Columns per Row on Desktop) */
.dakhl-shop-products-wrapper ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.dakhl-shop-products-wrapper ul.products::before,
.dakhl-shop-products-wrapper ul.products::after {
    display: none !important;
}
.dakhl-shop-products-wrapper ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* Custom Loop Product Card (3-Section Edge-to-Edge Architecture) */
ul.products li.product.dakhl-loop-product-card,
.dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card,
.woocommerce ul.products li.product.dakhl-loop-product-card,
.dakhl-loop-product-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

ul.products li.product.dakhl-loop-product-card:hover,
.dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    border-color: #e2e8f0 !important;
}

.dakhl-loop-product-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Section 1: Top Image (Edge-to-Edge) */
.dakhl-loop-product-card .dakhl-card-image {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fbfbfb !important;
    position: relative !important;
}

.dakhl-loop-product-card .dakhl-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
}

/* Card Body */
.dakhl-loop-product-card .dakhl-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 10px 12px 14px 12px !important;
    box-sizing: border-box !important;
    text-align: right !important;
}

/* Brand */
.dakhl-loop-product-card .dakhl-card-brand {
    font-size: 11px !important;
    color: #8e8e93 !important;
    margin-bottom: 5px !important;
    text-align: right !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: auto !important;
}

.dakhl-loop-product-card .dakhl-card-brand span {
    background: #f4f4f5 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

/* Section 2: Title */
.dakhl-loop-product-card .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #3f4064 !important;
    line-height: 22px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
    direction: rtl !important;
}

/* Section 3: Prices & Discount (Digikala Style) */
.dakhl-loop-product-card .dakhl-card-price-wrap {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    direction: rtl !important;
}

.dakhl-loop-product-card .dakhl-card-price-top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 20px !important;
}

.dakhl-loop-product-card .dakhl-card-price-empty {
    display: inline-block !important;
    height: 20px !important;
}

.dakhl-loop-product-card .dakhl-card-discount {
    background: #ef4056 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dakhl-loop-product-card .dakhl-card-reg-price {
    font-size: 12px !important;
    color: #a1a3a8 !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
    letter-spacing: -0.2px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.dakhl-loop-product-card .dakhl-card-price-bottom {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    width: 100% !important;
}

.dakhl-loop-product-card .dakhl-card-final-num {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #0c0c0c !important;
    letter-spacing: -0.3px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.dakhl-loop-product-card .dakhl-card-toman-unit {
    display: inline-flex !important;
    align-items: baseline !important;
    line-height: 1 !important;
    margin-right: 1px !important;
}

.dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-custom {
    display: inline-block !important;
    position: relative !important;
    font-size: 10.5px !important;
    color: #62666d !important;
    font-weight: 700 !important;
    padding-top: 3px !important;
    line-height: 1 !important;
}

.dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-n {
    position: absolute !important;
    top: -2.5px !important;
    left: 1px !important;
    font-size: 0.85em !important;
}

/* Mobile Shop Responsive: Horizontal Card Layout (Digikala Style) */
@media (max-width: 768px) {
    .dakhl-shop-products-wrapper ul.products {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card,
    .dakhl-loop-product-card {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-loop-product-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 10px !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        height: 110px !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        background: #f8fafc !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 2px 0 !important;
        text-align: right !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-brand {
        font-size: 11px !important;
        color: #94a3b8 !important;
        margin-bottom: 4px !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .woocommerce-loop-product__title {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #1e293b !important;
        line-height: 1.55 !important;
        margin: 0 0 6px 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 42px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-wrap {
        margin-top: auto !important;
        padding-top: 4px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        width: 100% !important;
        gap: 2px !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 2px !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-discount {
        background: #e11d48 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        padding: 2px 7px !important;
        border-radius: 20px !important;
        line-height: 1.2 !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-reg-price {
        font-size: 11px !important;
        color: #94a3b8 !important;
        text-decoration: line-through !important;
        margin-right: auto !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-bottom {
        display: flex !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        width: 100% !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-final-num {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-custom {
        font-size: 10px !important;
    }
}

/* ====================================================
   DAKHL SHOP AJAX SKELETON LOADER & INFINITE SCROLL
==================================================== */
@keyframes dakhlSkeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes dakhlFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dakhl-skeleton-box {
    background-color: #dbe2ea !important;
    background-image: linear-gradient(90deg, #dbe2ea 0%, #edf2f7 50%, #dbe2ea 100%) !important;
    background-size: 200% 100% !important;
    background-repeat: no-repeat !important;
    animation: dakhlSkeletonShimmer 1.4s infinite linear !important;
    border-radius: 6px;
    display: inline-block;
    box-sizing: border-box;
}

li.product.dakhl-loop-product-card.dakhl-skeleton-card,
.dakhl-shop-products-wrapper ul.products li.product.dakhl-skeleton-card {
    pointer-events: none !important;
    user-select: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: opacity 0.25s ease !important;
    height: 100% !important;
    min-height: 355px !important;
}

.dakhl-skeleton-card .dakhl-skeleton-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dakhl-skeleton-card .dakhl-card-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background: #f1f4f8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.dakhl-skeleton-card .dakhl-skeleton-img {
    width: 80% !important;
    height: 80% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    display: block !important;
}

.dakhl-skeleton-card .dakhl-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 10px 12px 14px 12px !important;
    box-sizing: border-box !important;
    text-align: right !important;
    justify-content: space-between !important;
}

.dakhl-skeleton-card .dakhl-card-brand {
    font-size: 11px !important;
    margin-bottom: 5px !important;
    height: 21px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.dakhl-skeleton-card .dakhl-skeleton-brand-pill {
    width: 32px !important;
    height: 18px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.dakhl-skeleton-card .dakhl-skeleton-title-wrap {
    height: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
}

.dakhl-skeleton-card .dakhl-skeleton-title-1 {
    width: 92% !important;
    height: 12px !important;
    border-radius: 4px !important;
    display: block !important;
}

.dakhl-skeleton-card .dakhl-skeleton-title-2 {
    width: 65% !important;
    height: 12px !important;
    border-radius: 4px !important;
    display: block !important;
}

.dakhl-skeleton-card .dakhl-card-price-wrap {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    direction: rtl !important;
    min-height: 42px !important;
}

.dakhl-skeleton-card .dakhl-card-price-top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    height: 20px !important;
    min-height: 20px !important;
}

.dakhl-skeleton-card .dakhl-skeleton-discount {
    width: 26px !important;
    height: 18px !important;
    border-radius: 10px !important;
    display: inline-block !important;
}

.dakhl-skeleton-card .dakhl-skeleton-reg-price {
    width: 55px !important;
    height: 11px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.dakhl-skeleton-card .dakhl-card-price-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: 100% !important;
    height: 20px !important;
    min-height: 20px !important;
}

.dakhl-skeleton-card .dakhl-skeleton-final-price {
    width: 72px !important;
    height: 17px !important;
    border-radius: 5px !important;
    display: inline-block !important;
}

.dakhl-skeleton-card .dakhl-skeleton-toman {
    width: 20px !important;
    height: 12px !important;
    border-radius: 3px !important;
    display: inline-block !important;
}

/* Mobile responsive skeleton matching horizontal card */
@media (max-width: 768px) {
    li.product.dakhl-loop-product-card.dakhl-skeleton-card,
    .dakhl-shop-products-wrapper ul.products li.product.dakhl-skeleton-card {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        height: auto !important;
        min-height: 130px !important;
        max-height: 130px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
        padding: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100% !important;
        height: 100% !important;
        padding: 10px !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }
    .dakhl-skeleton-card .dakhl-card-image {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        height: 110px !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        border-radius: 12px !important;
        background: #f1f4f8 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }
    .dakhl-skeleton-card .dakhl-card-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 2px 0 !important;
        text-align: right !important;
        height: 110px !important;
        box-sizing: border-box !important;
    }
    .dakhl-skeleton-card .dakhl-card-brand {
        font-size: 11px !important;
        margin-bottom: 2px !important;
        height: 16px !important;
        display: flex !important;
        justify-content: flex-start !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-brand-pill {
        width: 32px !important;
        height: 14px !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-title-wrap {
        height: auto !important;
        min-height: 0 !important;
        max-height: 38px !important;
        margin: 0 !important;
        gap: 5px !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-title-1 {
        width: 95% !important;
        height: 10px !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-title-2 {
        width: 60% !important;
        height: 10px !important;
    }
    .dakhl-skeleton-card .dakhl-card-price-wrap {
        margin-top: auto !important;
        padding-top: 2px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        width: 100% !important;
        min-height: 0 !important;
    }
    .dakhl-skeleton-card .dakhl-card-price-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 16px !important;
        min-height: 16px !important;
        margin-bottom: 0 !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-discount {
        width: 22px !important;
        height: 14px !important;
        border-radius: 10px !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-reg-price {
        width: 48px !important;
        height: 9px !important;
        margin-right: auto !important;
    }
    .dakhl-skeleton-card .dakhl-card-price-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        width: 100% !important;
        height: 16px !important;
        min-height: 16px !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-final-price {
        width: 60px !important;
        height: 14px !important;
    }
    .dakhl-skeleton-card .dakhl-skeleton-toman {
        width: 16px !important;
        height: 10px !important;
    }
}

/* Item entrance animation */
.dakhl-item-animated {
    animation: dakhlFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Infinite scroll status container and sentinel */
.dakhl-infinite-scroll-status {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    clear: both;
}

.dakhl-infinite-scroll-sentinel {
    width: 100% !important;
    height: 20px !important;
    min-height: 20px !important;
    pointer-events: none !important;
    opacity: 0 !important;
    display: block !important;
    margin: 10px 0 !important;
}

.dakhl-infinite-scroll-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 0 16px 0;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    animation: dakhlFadeInUp 0.3s ease forwards;
}

.dakhl-infinite-scroll-end .end-dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
}

/* Hide standard WooCommerce pagination when AJAX infinite scroll is active */
.dakhl-shop-main .woocommerce-pagination {
    display: none !important;
}

/* SEO Text Box */
.dakhl-seo-text-container {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: var(--dakhl-radius-md);
    margin-top: 50px;
    box-shadow: var(--dakhl-shadow-sm);
}
.dakhl-seo-text-content {
    max-height: 120px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.8;
    color: var(--dakhl-text-muted);
    transition: max-height 0.5s ease;
}
.dakhl-seo-text-content.expanded {
    max-height: 3000px; /* large enough to contain the text */
}
.dakhl-seo-gradient {
    position: absolute;
    bottom: 60px; /* just above the button */
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.dakhl-seo-gradient.hidden {
    opacity: 0;
}
.dakhl-seo-show-more {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--dakhl-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 10px 0 0 0;
    margin-top: 10px;
}

@media (max-width: 1400px) {
    .dakhl-shop-products-wrapper ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
}
@media (max-width: 1100px) {
    .dakhl-shop-products-wrapper ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}
@media (max-width: 992px) {
    .dakhl-shop-layout {
        flex-direction: column;
    }
    .dakhl-shop-sidebar, .dakhl-shop-main {
        width: 100%;
    }
    .dakhl-sidebar-inner {
        position: static;
    }
    .dakhl-shop-topbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }
    .dakhl-shop-topbar-scroll-items {
        order: 1 !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 2px !important;
    }
    .dakhl-shop-topbar-scroll-items::-webkit-scrollbar {
        display: none !important;
    }
    .dakhl-shop-header-info {
        order: 2 !important;
    }
}


/* ====================================================
   WIDGETS & FILTERS STYLING (MATCHING SCREENSHOT)
==================================================== */
.dakhl-shop-sidebar .widget {
    border-bottom: 1px solid var(--dakhl-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: block;
}
.dakhl-shop-sidebar .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Accordion Title */
.dakhl-shop-sidebar .widget-title {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    user-select: none;
    transition: color 0.2s;
}

.dakhl-sidebar-header-mobile,
.dakhl-sidebar-footer-mobile,
.dakhl-sidebar-overlay {
    display: none;
}

@media (max-width: 992px) {
    /* Black dot indicator on main filter button when active */
    .dakhl-filter-badge {
        position: absolute !important;
        top: 2px !important;
        right: 2px !important;
        background: #000000 !important;
        width: 7px !important;
        height: 7px !important;
        border-radius: 50% !important;
        border: none !important;
        display: block !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        box-shadow: 0 0 0 2px #ffffff !important;
        z-index: 5 !important;
    }

    /* Temp chosen state for decoupled AJAX */
    .dakhl-shop-sidebar ul li.temp-chosen a::before {
        background-color: var(--dakhl-primary);
        border-color: var(--dakhl-primary);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        background-size: 14px;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Scroll Lock when Modal is Active */
    html.dakhl-modal-open,
    body.dakhl-modal-open {
        overflow: hidden !important;
        height: 100% !important;
    }
    body.dakhl-modal-open {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    /* Mobile Bottom Sheet Modal (Floating) */
    .dakhl-sidebar-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999998 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        touch-action: none;
    }
    .dakhl-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .dakhl-shop-sidebar,
    .dakhl-specific-filter-modal {
        position: fixed;
        bottom: -100%;
        left: 16px;
        width: calc(100% - 32px);
        height: auto;
        max-height: 85vh;
        background: #ffffff;
        z-index: 999999 !important;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 24px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }
    .dakhl-shop-sidebar.active,
    .dakhl-specific-filter-modal.active {
        bottom: 16px;
    }

    .dakhl-sidebar-header-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: relative !important;
        min-height: 56px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
    }
    .dakhl-sidebar-header-mobile::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 4px;
    }
    
    .dakhl-active-filters-area {
        display: none !important;
    }

    .dakhl-sidebar-header-mobile h3,
    .dakhl-specific-modal-title {
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    .dakhl-sidebar-close,
    .dakhl-specific-modal-close {
        cursor: pointer !important;
        color: #64748b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        padding: 0 !important;
        transition: all 0.2s ease !important;
    }
    .dakhl-sidebar-close:hover,
    .dakhl-specific-modal-close:hover {
        background: #f1f5f9 !important;
        color: #0f172a !important;
    }
    .dakhl-sidebar-spacer {
        display: none !important;
    }

    .dakhl-sidebar-header {
        display: none; /* hide desktop header */
    }

    .dakhl-sidebar-inner,
    .dakhl-specific-modal-inner {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 14px 24px 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .dakhl-moved-widget-content {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Modal Options - Desktop Design Parity & Broad Width */
    .dakhl-specific-modal-inner ul,
    .dakhl-specific-modal-inner .woocommerce-widget-layered-nav-list,
    .dakhl-specific-modal-inner .widget_product_categories ul,
    .dakhl-moved-widget-content ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 0 20px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .dakhl-specific-modal-inner ul li,
    .dakhl-specific-modal-inner .woocommerce-widget-layered-nav-list__item,
    .dakhl-moved-widget-content ul li {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .dakhl-specific-modal-inner ul li a,
    .dakhl-specific-modal-inner .woocommerce-widget-layered-nav-list__item a,
    .dakhl-moved-widget-content ul li a {
        color: #1e293b !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 48px !important;
        padding: 10px 16px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        gap: 12px !important;
        text-align: right !important;
    }
    .dakhl-specific-modal-inner ul li a:hover,
    .dakhl-moved-widget-content ul li a:hover {
        background: #ffffff !important;
        border-color: #cbd5e1 !important;
        color: #0f172a !important;
    }
    .dakhl-specific-modal-inner ul li.chosen a,
    .dakhl-specific-modal-inner ul li.current-cat a,
    .dakhl-specific-modal-inner ul li.temp-chosen a,
    .dakhl-moved-widget-content ul li.chosen a,
    .dakhl-moved-widget-content ul li.current-cat a,
    .dakhl-moved-widget-content ul li.temp-chosen a {
        background: #fff1f2 !important;
        border-color: #fecdd3 !important;
        color: #e11d48 !important;
        font-weight: 700 !important;
    }
    .dakhl-specific-modal-inner ul li a::before,
    .dakhl-moved-widget-content ul li a::before {
        content: '' !important;
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        border: 1.8px solid #cbd5e1 !important;
        border-radius: 50% !important;
        margin: 0 !important;
        background: #ffffff !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    .dakhl-specific-modal-inner ul li.chosen a::before,
    .dakhl-specific-modal-inner ul li.current-cat a::before,
    .dakhl-specific-modal-inner ul li.temp-chosen a::before,
    .dakhl-moved-widget-content ul li.chosen a::before,
    .dakhl-moved-widget-content ul li.current-cat a::before,
    .dakhl-moved-widget-content ul li.temp-chosen a::before {
        background-color: var(--dakhl-primary) !important;
        border-color: var(--dakhl-primary) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-size: 12px !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    .dakhl-specific-modal-inner .count,
    .dakhl-moved-widget-content .count {
        display: none !important;
    }

    .dakhl-sidebar-footer-mobile {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 14px 14px 16px 14px !important;
        border-top: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        position: relative !important;
        z-index: 10 !important;
        box-shadow: 0 -3px 10px rgba(0,0,0,0.03) !important;
    }
    .dakhl-apply-filters-btn,
    .dakhl-apply-specific-filter-btn {
        flex: 1 !important;
        max-width: none !important;
        height: 46px !important;
        background: #0f172a !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        font-family: inherit !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background 0.2s ease !important;
    }
    .dakhl-apply-filters-btn:hover,
    .dakhl-apply-specific-filter-btn:hover {
        background: #1e293b !important;
    }
    .dakhl-clear-specific-filter-btn {
        flex: 1 !important;
        max-width: none !important;
        height: 46px !important;
        background: #f8fafc !important;
        color: #ef4444 !important;
        border: 1px solid #fee2e2 !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        font-family: inherit !important;
        padding: 0 !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }
    .dakhl-clear-specific-filter-btn:hover {
        background: #fee2e2 !important;
    }

    /* Beautify Widget Lists and Checkboxes in Mobile Modal */
    .dakhl-shop-sidebar .widget_layered_nav ul,
    .dakhl-shop-sidebar .widget_product_categories ul,
    .dakhl-shop-sidebar ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .dakhl-shop-sidebar ul li {
        margin: 0 !important;
        padding: 0;
        border: none;
    }

    .dakhl-shop-sidebar ul li a,
    .dakhl-shop-sidebar ul li label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        width: 100%;
        font-size: 16px;
        font-weight: 500;
        color: #1e293b;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
        text-decoration: none;
    }
    
    .dakhl-shop-sidebar ul li a {
        flex-direction: row-reverse;
    }
    
    .dakhl-shop-sidebar ul li:last-child a,
    .dakhl-shop-sidebar ul li:last-child label {
        border-bottom: none;
    }

    /* Hide fake checkbox if real checkbox exists */
    .dakhl-shop-sidebar ul li:has(input[type="checkbox"]) a::before {
        display: none !important;
    }

    /* Fake Checkboxes for Link-Based Filters */
    .dakhl-shop-sidebar ul li a::before {
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        border: 2px solid #cbd5e1;
        border-radius: 6px;
        flex-shrink: 0;
        transition: all 0.2s;
        background: #fff;
    }
    
    .dakhl-shop-sidebar ul li.chosen a::before,
    .dakhl-shop-sidebar ul li.current-cat a::before,
    .dakhl-shop-sidebar ul li.temp-chosen a::before {
        background-color: var(--dakhl-primary);
        border-color: var(--dakhl-primary);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        background-size: 14px;
        background-position: center;
        background-repeat: no-repeat;
    }


    /* Reset Sort Menu in Modal */
    .dakhl-specific-modal-inner .dakhl-sort-menu {
        position: relative;
        top: auto;
        right: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        width: 100%;
        padding: 0;
    }
    .dakhl-specific-modal-inner .dakhl-sort-option {
        padding: 16px 12px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
    .dakhl-specific-modal-inner .dakhl-sort-option::before {
        content: '';
        display: block;
        width: 22px;
        height: 22px;
        border: 1px solid #cbd5e1;
        border-radius: 50%; /* Radio style for sorting */
        flex-shrink: 0;
        transition: all 0.2s;
        background: #fff;
    }
    .dakhl-specific-modal-inner .dakhl-sort-option.active::before,
    .dakhl-specific-modal-inner .dakhl-sort-option.temp-chosen::before {
        border-width: 6px;
        border-color: var(--dakhl-primary);
    }


    /* Support for custom plugin checkboxes that wrap text in label */
    .dakhl-shop-sidebar input[type="checkbox"] {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        border: 2px solid #cbd5e1;
        appearance: none;
        -webkit-appearance: none;
        outline: none;
        cursor: pointer;
        position: relative;
        background: #fff;
        flex-shrink: 0;
        margin: 0;
    }
    .dakhl-shop-sidebar input[type="checkbox"]:checked {
        background-color: var(--dakhl-primary);
        border-color: var(--dakhl-primary);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        background-size: 14px;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Hide counts to look cleaner like Digikala */
    .dakhl-shop-sidebar .count {
        display: none !important;
    }
}

.dakhl-shop-sidebar .widget {
    border-bottom: 1px solid #f1f5f9;
    padding: 0;
    margin-bottom: 0;
    display: block;
}
.dakhl-shop-sidebar .widget:last-child {
    border-bottom: none;
}
.dakhl-shop-sidebar .widget-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}
.dakhl-shop-sidebar .widget-title:hover {
    color: var(--dakhl-primary);
}
.dakhl-shop-sidebar .widget-title::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #94a3b8;
    border-left: 1.5px solid #94a3b8;
    transform: rotate(45deg); /* Pointing UP */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s ease;
    margin-left: 2px;
}
.dakhl-shop-sidebar .widget-title:hover::after {
    border-color: var(--dakhl-primary);
}
.dakhl-shop-sidebar .widget-title.closed::after {
    transform: rotate(225deg); /* Pointing DOWN */
    margin-top: -3px;
}

.dakhl-shop-sidebar .widget_layered_nav,
.dakhl-shop-sidebar .widget_product_categories,
.dakhl-shop-sidebar .widget {
    position: relative;
}

/* Bottom White Gradient Fade Overlay ONLY when widget has > 5 items and NOT at bottom */
.dakhl-shop-sidebar .widget:has(ul > li:nth-child(6)):not(:has(ul.dakhl-at-bottom)):not(:has(.widget-title.closed))::after,
.dakhl-shop-sidebar .widget_layered_nav:has(ul > li:nth-child(6)):not(:has(ul.dakhl-at-bottom)):not(:has(.widget-title.closed))::after,
.dakhl-shop-sidebar .widget_product_categories:has(ul > li:nth-child(6)):not(:has(ul.dakhl-at-bottom)):not(:has(.widget-title.closed))::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, #ffffff 30%, rgba(255, 255, 255, 0.85) 70%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.dakhl-shop-sidebar .widget:has(ul.dakhl-at-bottom)::after,
.dakhl-shop-sidebar .widget:has(.widget-title.closed)::after {
    display: none !important;
}

/* Layered Nav (Attributes & Categories) - Modern Boxy Checkbox Style with Invisible Smooth Scroll */
.dakhl-shop-sidebar .widget_layered_nav ul,
.dakhl-shop-sidebar .widget_product_categories ul {
    list-style: none;
    padding: 6px 0 26px 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.dakhl-shop-sidebar .widget_layered_nav ul:has(> li:nth-child(6)):not(.dakhl-at-bottom),
.dakhl-shop-sidebar .widget_product_categories ul:has(> li:nth-child(6)):not(.dakhl-at-bottom) {
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 48px), transparent 100%);
}
.dakhl-shop-sidebar ul.dakhl-at-bottom {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}
.dakhl-shop-sidebar .widget_layered_nav ul::-webkit-scrollbar,
.dakhl-shop-sidebar .widget_product_categories ul::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.dakhl-shop-sidebar .widget_layered_nav ul li,
.dakhl-shop-sidebar .widget_product_categories ul li {
    margin-bottom: 0;
    display: block;
}

/* Sub-categories tree styling */
.dakhl-shop-sidebar .widget_product_categories ul.children {
    padding-right: 14px;
    margin-top: 6px;
    border-right: 1.5px dashed #e2e8f0;
    gap: 6px;
}

.dakhl-shop-sidebar .widget_layered_nav ul li a,
.dakhl-shop-sidebar .widget_product_categories ul li a {
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-sizing: border-box !important;
    gap: 10px;
    text-align: right;
}
.dakhl-shop-sidebar .widget_layered_nav ul li a:hover,
.dakhl-shop-sidebar .widget_product_categories ul li a:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.dakhl-shop-sidebar .widget_layered_nav ul li.chosen a,
.dakhl-shop-sidebar .widget_product_categories ul li.current-cat a {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.08) !important;
}

/* Circular Checkbox / Option Icon on the LEFT */
.dakhl-shop-sidebar .widget_layered_nav ul li a::before,
.dakhl-shop-sidebar .widget_product_categories ul li a::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1.8px solid #cbd5e1;
    border-radius: 50% !important;
    margin: 0;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}
.dakhl-shop-sidebar .widget_layered_nav ul li a:hover::before,
.dakhl-shop-sidebar .widget_product_categories ul li a:hover::before {
    border-color: #94a3b8;
}
.dakhl-shop-sidebar .widget_layered_nav ul li.chosen a::before,
.dakhl-shop-sidebar .widget_product_categories ul li.current-cat a::before {
    content: '' !important;
    background-color: var(--dakhl-primary) !important;
    border-color: var(--dakhl-primary) !important;
    border-radius: 50% !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: 12px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: transparent !important;
}

/* Active Filters Area (Above Products) */
.dakhl-active-filters-area {
    margin-bottom: 20px;
    width: 100%;
}
.dakhl-active-filters-area .widget_layered_nav_filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.dakhl-active-filters-area .widget_layered_nav_filters ul li {
    display: inline-flex;
}
.dakhl-active-filters-area .widget_layered_nav_filters ul li a {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    flex-direction: row-reverse;
    gap: 8px; /* space between text and x */
}
.dakhl-active-filters-area .widget_layered_nav_filters ul li a::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.dakhl-active-filters-area .widget_layered_nav_filters ul li a:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #ef4444;
}

/* Clear All Button Style */
.dakhl-active-filters-area .dakhl-clear-all-btn {
    display: flex;
    align-items: center;
    color: #ef4444 !important;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    gap: 5px;
    padding: 6px 10px;
}
.dakhl-active-filters-area .dakhl-clear-all-btn::before {
    display: none !important;
}
.dakhl-active-filters-area .dakhl-clear-all-btn:hover {
    color: #dc2626 !important;
}

/* In Stock Toggle Widget - Sleek iOS Style */
.dakhl-instock-filter {
    padding: 8px 0 10px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2px;
}
.dakhl-instock-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}
.dakhl-instock-toggle:hover {
    color: var(--dakhl-primary);
}
.dakhl-toggle-switch {
    position: relative;
    width: 34px;
    height: 18px;
    background: #e2e8f0;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.dakhl-instock-toggle.active .dakhl-toggle-switch {
    background: var(--dakhl-primary);
}
.dakhl-toggle-knob {
    position: absolute;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dakhl-instock-toggle.active .dakhl-toggle-knob {
    transform: translateX(-16px);
}
.dakhl-toggle-knob svg {
    display: none !important;
}
.dakhl-active-filters-area .dakhl-clear-all-btn svg {
    width: 16px;
    height: 16px;
}

/* Hide count */
.dakhl-shop-sidebar .count {
    display: none !important;
}

/* Real Checkboxes (if any) */
.dakhl-shop-sidebar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dakhl-primary);
    margin-left: 10px;
}

/* Price Slider Amount Hidden */
.dakhl-shop-sidebar .widget_price_filter .price_slider_amount {
    display: none !important;
}
.dakhl-shop-sidebar .widget_price_filter .button {
    display: none !important;
}

/* Search input style inside widgets */
.dakhl-shop-sidebar input[type="text"],
.dakhl-shop-sidebar input[type="search"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 15px;
    outline: none;
    color: #475569;
}
.dakhl-shop-sidebar input[type="text"]:focus,
.dakhl-shop-sidebar input[type="search"]:focus {
    border-color: var(--dakhl-primary);
}
.dakhl-shop-sidebar input[type="text"]::placeholder,
.dakhl-shop-sidebar input[type="search"]::placeholder {
    color: #94a3b8;
}

/* ==========================================================================
   Category Custom Banner & Promos
   ========================================================================== */
.dakhl-category-top-banner-wrapper {
    display: flex;
    flex-direction: row-reverse; /* Puts the first element (banner) on the left in RTL */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 24px;
    width: 100%;
    align-items: stretch;
    height: 220px;
}
.dakhl-category-banner {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}
.dakhl-cat-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.dakhl-category-promos {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dakhl-cat-promo-link {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.dakhl-cat-promo-link::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}
.dakhl-cat-promo-link:hover::before {
    left: 200%;
}
.dakhl-cat-promo-link:hover {
    transform: translateY(-3px);
}

/* Dynamic Color Promo Boxes */
.dakhl-cat-promo-link {
    --c1: var(--promo-color-1, 244, 63, 94);
    --c2: var(--promo-color-2, 59, 130, 246);
}

/* 1st Promo Box */
.dakhl-cat-promo-link:nth-child(1) {
    background: linear-gradient(135deg, rgba(var(--c1), 0.15) 0%, rgba(var(--c1), 0.03) 100%);
    border: 1px solid rgba(var(--c1), 0.25);
    color: #0f172a;
}
.dakhl-cat-promo-link:nth-child(1):hover {
    border-color: rgba(var(--c1), 0.4);
    box-shadow: 0 10px 20px rgba(var(--c1), 0.1);
}

/* 2nd Promo Box */
.dakhl-cat-promo-link:nth-child(2) {
    background: linear-gradient(135deg, rgba(var(--c2), 0.15) 0%, rgba(var(--c2), 0.03) 100%);
    border: 1px solid rgba(var(--c2), 0.25);
    color: #0f172a;
}
.dakhl-cat-promo-link:nth-child(2):hover {
    border-color: rgba(var(--c2), 0.4);
    box-shadow: 0 10px 20px rgba(var(--c2), 0.1);
}

@media (max-width: 768px) {
    .dakhl-category-top-banner-wrapper {
        flex-direction: column;
        height: auto;
    }
    .dakhl-category-banner {
        height: 150px;
    }
    .dakhl-category-promos {
        width: 100%;
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .dakhl-cat-promo-link {
        flex: 1;
        padding: 5px 8px !important;
        font-size: 13px !important;
        min-height: 42px !important;
    }
}

/* ====================================================
   SPECIAL CATEGORY TRIGGER BUTTON & MENU ICONS
==================================================== */
.dakhl-main-menu-list > li.dakhl-menu-cat-btn-item {
    margin-left: 14px !important;
    padding-left: 14px !important;
    border-left: none !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Compact Centered Vertical Divider */
.dakhl-main-menu-list > li.dakhl-menu-cat-btn-item::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1px !important;
    height: 18px !important;
    background: rgba(203, 213, 225, 0.85) !important;
    pointer-events: none !important;
}

.dakhl-main-menu-list > li > a.dakhl-category-trigger-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    background: var(--dakhl-cat-btn-bg, #f8fafc) !important;
    color: var(--dakhl-cat-btn-color, #0f172a) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transform: none !important;
}

.dakhl-main-menu-list > li > a.dakhl-category-trigger-btn::before {
    display: none !important;
}

.dakhl-main-menu-list > li > a.dakhl-category-trigger-btn:hover,
.dakhl-main-menu-list > li.is-clicked > a.dakhl-category-trigger-btn {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    filter: brightness(0.96) !important;
}

/* Menu Item Icon Wrapper & Typography Alignment */
.dakhl-menu-icon-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 6px !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    color: inherit !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
}
.dakhl-menu-icon-wrap svg,
.dakhl-menu-icon-wrap svg path,
.dakhl-menu-icon-wrap svg g {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    color: inherit !important;
    display: block !important;
    margin: 0 !important;
}

.dakhl-menu-title-text {
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

/* Menu Item Chevron Wrapper */
.dakhl-menu-chevron-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 4px !important;
    color: inherit !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.dakhl-menu-chevron-wrap svg {
    width: 13px !important;
    height: 13px !important;
    fill: currentColor !important;
    display: inline-block !important;
}
.dakhl-main-menu-list > li.is-clicked .dakhl-menu-chevron-wrap {
    transform: rotate(180deg) !important;
}

/* ====================================================
   MEGA MENU & DROPDOWNS LIGHTWEIGHT SOFT ANIMATION
==================================================== */
@keyframes dakhlSoftFadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================
   MEGA MENU STYLES (PREMIUM 2-COLUMN SCROLL ARCHITECTURE)
==================================================== */
.dakhl-main-menu-list > li.dakhl-mega-menu-item {
    position: relative !important;
}

/* The Main Mega Menu Container */
.dakhl-main-menu-list > li.dakhl-mega-menu-item > .sub-menu.dakhl-mega-menu-container {
    position: absolute !important;
    top: 100% !important;
    margin-top: 12px !important;
    right: 0 !important;
    left: auto !important;
    width: 1140px !important;
    max-width: 92vw !important;
    height: 480px !important;
    min-height: 400px !important;
    max-height: calc(85vh - 100px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    display: none !important;
    flex-direction: row !important;
    overflow: hidden !important;
    z-index: 99999 !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
}

/* Invisible bridge so mouse moving from button to mega menu NEVER loses hover */
.dakhl-main-menu-list > li.dakhl-mega-menu-item > .sub-menu.dakhl-mega-menu-container::after {
    content: '' !important;
    position: absolute !important;
    top: -16px !important;
    left: 0 !important;
    right: 0 !important;
    height: 16px !important;
    background: transparent !important;
    pointer-events: auto !important;
    z-index: 99 !important;
}

/* Show Mega Menu when opened (on Click or on Hover) */
.dakhl-main-menu-list > li.dakhl-mega-menu-item.is-clicked > .sub-menu.dakhl-mega-menu-container,
.dakhl-main-menu-list > li.dakhl-mega-menu-item:hover > .sub-menu.dakhl-mega-menu-container {
    display: flex !important;
    animation: dakhlSoftFadeIn 0.16s ease-out forwards !important;
    pointer-events: auto !important;
}

/* ----------------------------------------------------
   Right Sidebar (Main Categories Scrollable Column)
---------------------------------------------------- */
.dakhl-mega-menu-sidebar-wrap {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 100% !important;
    background: #f8fafc !important;
    border-left: 1px solid #f1f5f9 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
    flex-shrink: 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent !important;
    box-sizing: border-box !important;
}
.dakhl-mega-menu-sidebar-wrap::-webkit-scrollbar {
    width: 4px !important;
}
.dakhl-mega-menu-sidebar-wrap::-webkit-scrollbar-track {
    background: transparent !important;
}
.dakhl-mega-menu-sidebar-wrap::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25) !important;
    border-radius: 10px !important;
}
.dakhl-mega-menu-sidebar-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5) !important;
}

.dakhl-mega-menu-tabs-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* The Tabs in Right Sidebar */
.dakhl-main-menu-list .sub-menu > li.dakhl-mega-menu-tab,
.dakhl-mega-menu-tabs-list > li.dakhl-mega-menu-tab {
    position: static !important;
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9) !important;
    margin: 0 !important;
    list-style: none !important;
}
.dakhl-mega-menu-tabs-list > li.dakhl-mega-menu-tab:last-child {
    border-bottom: none !important;
}

/* The Tab Links */
.dakhl-main-menu-list .sub-menu > li.dakhl-mega-menu-tab > a,
.dakhl-mega-menu-tabs-list > li.dakhl-mega-menu-tab > a {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 18px !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    transition: all 0.15s ease !important;
    border-right: 3.5px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}
.dakhl-main-menu-list .sub-menu > li.dakhl-mega-menu-tab:hover > a,
.dakhl-main-menu-list .sub-menu > li.dakhl-mega-menu-tab.is-active > a,
.dakhl-mega-menu-tabs-list > li.dakhl-mega-menu-tab:hover > a,
.dakhl-mega-menu-tabs-list > li.dakhl-mega-menu-tab.is-active > a {
    background: #ffffff !important;
    color: var(--dakhl-menu-accent, #FFB800) !important;
    border-right-color: var(--dakhl-menu-accent, #FFB800) !important;
    font-weight: 800 !important;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.03) !important;
}
.dakhl-mega-menu-tabs-list > li.dakhl-mega-menu-tab > a::after {
    display: none !important;
}

/* ----------------------------------------------------
   Center Content Panels Wrapper & Panels
---------------------------------------------------- */
.dakhl-mega-menu-panels-wrap {
    flex: 1 1 auto !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: #ffffff !important;
    min-width: 0 !important;
}

/* Center Content Panels (Depth 1 sub-menus in Modern CSS Grid) */
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel,
.dakhl-mega-menu-panels-wrap .dakhl-mega-menu-panel {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    padding: 24px 28px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px 28px !important;
    align-content: start !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 2 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent !important;
    transform: translateY(4px) !important;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Custom Minimal Scrollbar for Panel */
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel::-webkit-scrollbar,
.dakhl-mega-menu-panels-wrap .dakhl-mega-menu-panel::-webkit-scrollbar {
    width: 4px !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel::-webkit-scrollbar-track,
.dakhl-mega-menu-panels-wrap .dakhl-mega-menu-panel::-webkit-scrollbar-track {
    background: transparent !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel::-webkit-scrollbar-thumb,
.dakhl-mega-menu-panels-wrap .dakhl-mega-menu-panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3) !important;
    border-radius: 10px !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel::-webkit-scrollbar-thumb:hover,
.dakhl-mega-menu-panels-wrap .dakhl-mega-menu-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5) !important;
}

/* Active Panel Display */
.dakhl-main-menu-list > li.dakhl-mega-menu-item.is-clicked .sub-menu > li.dakhl-mega-menu-tab.is-active .sub-menu.dakhl-mega-menu-panel,
.dakhl-main-menu-list > li.dakhl-mega-menu-item.is-clicked .sub-menu > li.dakhl-mega-menu-tab:hover .sub-menu.dakhl-mega-menu-panel,
.dakhl-main-menu-list > li.dakhl-mega-menu-item.is-clicked .dakhl-mega-menu-panel.is-active,
.dakhl-main-menu-list > li.dakhl-mega-menu-item:hover .sub-menu > li.dakhl-mega-menu-tab.is-active .sub-menu.dakhl-mega-menu-panel,
.dakhl-main-menu-list > li.dakhl-mega-menu-item:hover .sub-menu > li.dakhl-mega-menu-tab:hover .sub-menu.dakhl-mega-menu-panel,
.dakhl-main-menu-list > li.dakhl-mega-menu-item:hover .dakhl-mega-menu-panel.is-active,
.dakhl-mega-menu-panel.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    z-index: 5 !important;
}

/* Subcategory Columns inside Panel */
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel > li,
.dakhl-mega-menu-panel > li {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: static !important;
    list-style: none !important;
}

/* Column Header (Parent Subcategory) */
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel > li > a,
.dakhl-mega-menu-panel > li > a {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
    border-right: 3px solid var(--dakhl-menu-accent, #FFB800) !important;
    padding-right: 8px !important;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel > li > a:hover,
.dakhl-mega-menu-panel > li > a:hover {
    color: var(--dakhl-menu-accent, #FFB800) !important;
    transform: translateX(-3px) !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel > li > a::after,
.dakhl-mega-menu-panel > li > a::after {
    display: none !important;
}

/* Depth 3 Links List */
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel .sub-menu,
.dakhl-mega-menu-panel .sub-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: 0 !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel .sub-menu > li,
.dakhl-mega-menu-panel .sub-menu > li {
    margin: 0 !important;
    position: static !important;
    list-style: none !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel .sub-menu > li > a,
.dakhl-mega-menu-panel .sub-menu > li > a {
    display: block !important;
    padding: 4px 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: transparent !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel .sub-menu > li > a:hover,
.dakhl-mega-menu-panel .sub-menu > li > a:hover {
    color: var(--dakhl-menu-accent, #FFB800) !important;
    transform: translateX(-4px) !important;
    font-weight: 600 !important;
}
.dakhl-main-menu-list .sub-menu .sub-menu.dakhl-mega-menu-panel .sub-menu > li > a::after,
.dakhl-mega-menu-panel .sub-menu > li > a::after {
    display: none !important;
}

/* Global Banner inside Mega Menu Container */
.dakhl-mega-menu-container > .dakhl-mega-menu-global-banner {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 270px !important;
    min-width: 270px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    border-right: 1px solid #f1f5f9 !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

/* ====================================================
   DK FOOTER (DIGIKALA STYLE)
==================================================== */
.dk-footer {
  background-color: #fff;
  border-top: 1px solid #e2e8f0;
  padding-top: 32px;
  font-family: 'Vazirmatn', sans-serif;
}

.dk-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dk-footer-top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dk-footer-logo img {
  max-height: 40px;
}

.dk-footer-contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #3f4064;
  font-size: 14px;
}

.dk-footer-contact-info .divider {
  color: #e0e0e6;
}

.dk-footer-contact-info.mobile-contact {
  display: none;
}

.dk-back-to-top {
  background: transparent;
  border: 1px solid #e0e0e6;
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #81858b;
  font-size: 12px;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}

.dk-back-to-top:hover {
  border-color: #a1a3a8;
  color: #3f4064;
}

.dk-footer-features {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f1f5f9;
}

.dk-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #3f4064;
  font-size: 12px;
  font-weight: 500;
}

.dk-feature-item .feature-icon {
  color: #a1a3a8;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dk-feature-item .feature-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.dk-feature-item:hover .feature-icon {
  color: var(--dk-item-hover, var(--dakhl-features-hover, #ef4056));
}

.dk-feature-item:hover span {
  color: var(--dk-item-hover, var(--dakhl-features-hover, #ef4056));
}

.dk-footer-middle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 40px;
}

.dk-footer-widgets {
  display: grid;
  gap: 24px;
  flex-grow: 1;
}

.dk-footer-widgets.columns-1 { grid-template-columns: 1fr; }
.dk-footer-widgets.columns-2 { grid-template-columns: repeat(2, 1fr); }
.dk-footer-widgets.columns-3 { grid-template-columns: repeat(3, 1fr); }
.dk-footer-widgets.columns-4 { grid-template-columns: repeat(4, 1fr); }

.footer-widget-title {
  font-size: 16px;
  color: #3f4064;
  margin-bottom: 16px;
  font-weight: 600;
}

.dk-footer-widget-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dk-footer-widget-col ul li {
  margin-bottom: 12px;
}

.dk-footer-widget-col ul li a {
  color: #81858b;
  font-size: 14px;
  transition: color 0.3s;
}

.dk-footer-widget-col ul li a:hover {
  color: #3f4064;
}

.dk-footer-social-newsletter {
  width: 320px;
  flex-shrink: 0;
}

.dk-footer-social h4, .dk-footer-newsletter h4 {
  font-size: 16px;
  color: #3f4064;
  margin-bottom: 16px;
  font-weight: 600;
}

.dk-social-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.dk-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dk-social-color, #a1a3a8);
  transition: all 0.25s ease;
}

.dk-social-links a svg {
  width: 24px;
  height: 24px;
  display: block;
}

.dk-social-links a:hover {
  color: var(--dk-social-color, #3f4064);
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.dk-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.dk-newsletter-input-group {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.dk-newsletter-form input {
  flex-grow: 1;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  min-height: 46px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.dk-newsletter-form input:focus {
  outline: none;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.6);
}

.dk-newsletter-form button {
  background: #cbd5e1;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 75px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.dk-newsletter-form button:hover,
.dk-newsletter-form input:not(:placeholder-shown) + button,
.dk-newsletter-form .dk-newsletter-input-group input:not(:placeholder-shown) + button {
  background: #ef4056;
}

.dk-newsletter-response-msg {
  width: 100%;
  box-sizing: border-box;
  font-size: 12.5px;
  line-height: 1.6;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: right;
  display: none;
}

@keyframes dk-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dk-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  gap: 40px;
}

.dk-footer-seo-box {
  flex-grow: 1;
  position: relative;
}

.dk-seo-content {
  height: 80px;
  overflow: hidden;
  position: relative;
  transition: height 0.3s ease;
}

.dk-seo-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.dk-seo-content.expanded {
  height: auto;
}

.dk-seo-content.expanded::after {
  display: none;
}

.dk-seo-content h1 {
  font-size: 14px;
  color: #3f4064;
  margin-bottom: 12px;
  font-weight: 600;
}

.dk-seo-content p {
  color: #81858b;
  font-size: 12px;
  line-height: 2.2;
  margin: 0;
}

.dk-read-more-btn {
  background: transparent;
  border: none;
  color: #19bfd3;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
  font-family: inherit;
}

.dk-read-more-btn svg {
  transition: transform 0.3s;
}

.dk-read-more-btn.expanded svg {
  transform: rotate(180deg);
}

.dk-footer-shortcodes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
  align-items: center;
}

.dk-symbol {
  min-width: 80px;
  min-height: 80px;
  max-width: 110px;
  max-height: 110px;
  border: 1px solid #e0e0e6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a3a8;
  font-size: 11.5px;
  font-weight: 600;
  background: #ffffff;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  text-align: center;
}

.dk-symbol:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.dk-symbol a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.dk-symbol img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.dk-symbol iframe,
.dk-symbol svg {
  max-width: 100%;
  max-height: 100%;
}

.dk-footer-copyright {
  text-align: center;
  padding: 24px 0;
  color: #81858b;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .dk-footer-middle {
    flex-direction: column;
  }
  .dk-footer-social-newsletter {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .dk-footer-bottom {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  /* Hide features on mobile */
  .dk-footer-features {
    display: none !important;
  }

  /* Back to top centered */
  .dk-footer-top {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    padding-bottom: 0; /* Reduced to bring contact box closer to accordions */
  }
  .dk-footer-top-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .dk-footer-top-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .dk-back-to-top {
    width: auto;
    padding: 8px 24px;
    border-radius: 50px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
  }
  .dk-footer-contact-info.desktop-contact {
    display: none;
  }
  .dk-footer-logo {
    display: none;
  }
  
  .dk-footer-contact-info.mobile-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    background-color: #f8fafc; /* Added Box Background */
    padding: 12px 16px;
    border-radius: 16px;
  }
  .mobile-contact-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mobile-contact-icon {
    width: 40px;
    height: 40px;
    background-color: #ffffff; /* White to contrast with box */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  }
  .mobile-contact-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-contact-texts strong {
    font-size: 14px;
    color: #0f172a;
  }
  .mobile-contact-texts span {
    font-size: 12px;
    color: #64748b;
  }
  .mobile-call-btn {
    padding: 8px 20px;
    background-color: #ffffff; /* White to contrast with box */
    color: #0f172a;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  }
  .mobile-call-btn:hover {
    background-color: #f1f5f9;
  }

  .dk-footer-middle {
    padding: 0 0 8px 0; /* Reduced padding before the bottom border */
    gap: 0;
  }

  /* Accordion widgets */
  .dk-footer-widgets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 16px 0 16px;
  }
  .dk-footer-widget-col {
    background-color: #f1f5f9;
    border-radius: 16px;
    padding: 12px 16px;
    border: none;
    box-sizing: border-box;
  }
  .dk-footer-widget-col:first-child {
    border-top: none;
  }
  .footer-widget-title, .dk-footer-widget-col .widget-title {
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
  }
  .footer-widget-title::after, .dk-footer-widget-col .widget-title::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }
  .dk-footer-widget-col.active .footer-widget-title::after,
  .dk-footer-widget-col.active .widget-title::after {
    transform: rotate(180deg);
  }
  .dk-footer-widget-col ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-right: 0;
    margin: 0;
    transition: all 0.4s ease;
  }
  .dk-footer-widget-col.active ul {
    max-height: 500px;
    opacity: 1;
    padding-top: 15px;
  }

  /* Social and Newsletter */
  .dk-footer-newsletter {
    display: none !important;
  }
  
  .dk-footer-social-newsletter {
    padding: 0;
    margin: 32px 0 0 0; /* Add space above socials */
    width: 100%;
    box-sizing: border-box;
  }

  .dk-footer-social {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    border-radius: 0;
    padding: 0; /* Removed padding to bring it closer to the line below */
    width: 100%;
    box-sizing: border-box;
  }
  
  .dk-footer-social h4 {
    margin: 0 !important;
    font-size: 14px;
    color: #475569;
    font-weight: 700;
  }

  .dk-social-links {
    display: flex;
    justify-content: center;
    gap: 16px; /* More gap between icons */
    margin-top: 0;
    margin-bottom: 0;
  }

  .dk-social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto; /* Removed fixed size */
    height: auto;
    background-color: transparent; /* Removed white circle */
    border-radius: 0;
    color: #64748b;
    box-shadow: none; /* Removed shadow */
    transition: all 0.2s ease;
  }

  .dk-social-links a svg {
    width: 24px; /* Larger icons */
    height: 24px;
  }
  
  /* Bottom Layout Adjustments (Symbols, SEO, Copyright) */
  .dk-footer-bottom {
    padding: 0 !important; /* Bring everything closer */
    gap: 16px !important;
    border-top: none;
  }
  
  .dk-footer-shortcodes {
    justify-content: center;
    width: 100%;
    margin-top: 0; /* Bring symbols up */
    gap: 8px;
    flex-wrap: nowrap !important;
  }
  
  .dk-symbol {
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 75px !important;
    max-height: 75px !important;
    width: 30%; /* Force them to be small enough */
    height: auto !important;
    aspect-ratio: 1/1;
    padding: 4px;
    border-radius: 10px;
  }
  
  .dk-footer-copyright {
    display: none !important; /* Remove copyright text on mobile */
  }
  
  .dk-footer {
    padding-bottom: 8px !important; /* Reduce large empty space at end */
  }
}

/* ==========================================================================
   WooCommerce My Account Orders Table Redesign
   ========================================================================== */
table.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    direction: rtl;
    text-align: right;
}

table.woocommerce-orders-table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    padding: 18px 24px;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

table.woocommerce-orders-table tbody td {
    padding: 20px 24px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
    font-size: 14.5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

table.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

table.woocommerce-orders-table tbody tr:hover td {
    background-color: #fafaf9;
}

table.woocommerce-orders-table tbody td a {
    color: #f43f5e;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

table.woocommerce-orders-table tbody td a:hover {
    color: #e11d48;
}

table.woocommerce-orders-table tbody td .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f43f5e;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

table.woocommerce-orders-table tbody td .button:hover {
    background-color: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
}

/* Status cell styling */
table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-status {
    font-weight: 600;
}

/* Responsive Table */
@media (max-width: 768px) {
    table.woocommerce-orders-table, 
    table.woocommerce-orders-table thead, 
    table.woocommerce-orders-table tbody, 
    table.woocommerce-orders-table th, 
    table.woocommerce-orders-table td, 
    table.woocommerce-orders-table tr { 
        display: block; 
    }
    
    table.woocommerce-orders-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    table.woocommerce-orders-table tr { 
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }
    
    table.woocommerce-orders-table td { 
        border: none;
        border-bottom: 1px solid #f1f5f9; 
        position: relative;
        padding-right: 40%; 
        text-align: left;
    }
    
    table.woocommerce-orders-table td:before { 
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        width: 35%; 
        padding-left: 10px; 
        white-space: nowrap;
        font-weight: 700;
        color: #475569;
        text-align: right;
    }
    
    table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number:before { content: "سفارش"; }
    table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-date:before { content: "تاریخ"; }
    table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status:before { content: "وضعیت"; }
    table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-total:before { content: "مجموع"; }
    table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions:before { content: "عملیات ها"; }
}

/* ==========================================================================
   GLOBAL CUSTOM PRICE FILTER UI & SLIDER
   ========================================================================== */
.dakhl-custom-price-ui {
    margin-top: 6px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.dakhl-price-inputs {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.dakhl-price-box,
.dakhl-price-input-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    min-height: 48px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.dakhl-price-box:focus-within,
.dakhl-price-input-row:focus-within {
    border-color: var(--dakhl-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08) !important;
}
.dakhl-price-label,
.dakhl-price-input-row > span {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-left: 8px !important;
    flex-shrink: 0 !important;
    width: auto !important;
}
.dakhl-price-input-wrap,
.dakhl-price-field {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    justify-content: flex-end !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.dakhl-price-input-wrap input.dakhl-custom-min-price,
.dakhl-price-input-wrap input.dakhl-custom-max-price,
.dakhl-price-field input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-align: left !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    box-shadow: none !important;
}
.dakhl-price-input-wrap .currency,
.dakhl-price-field .currency {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
    margin-right: 2px !important;
}

/* Pixel-Perfect Custom Price Slider */
.woocommerce .widget_price_filter .price_slider,
.dakhl-shop-sidebar .widget_price_filter .price_slider,
.dakhl-shop-sidebar .is-price-filter .price_slider,
.dakhl-specific-filter-modal .price_slider {
    background: #e2e8f0 !important;
    height: 5px !important;
    border-radius: 10px !important;
    border: none !important;
    margin: 24px 6px 16px 6px !important;
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
}

.woocommerce .widget_price_filter .ui-slider-range,
.dakhl-shop-sidebar .widget_price_filter .ui-slider-range,
.dakhl-shop-sidebar .is-price-filter .ui-slider-range,
.dakhl-specific-filter-modal .ui-slider-range {
    background: var(--dakhl-primary) !important;
    height: 100% !important;
    border-radius: 10px !important;
    position: absolute !important;
    top: 0 !important;
    border: none !important;
}

.woocommerce .widget_price_filter .ui-slider-handle,
.dakhl-shop-sidebar .widget_price_filter .ui-slider-handle,
.dakhl-shop-sidebar .is-price-filter .ui-slider-handle,
.dakhl-specific-filter-modal .ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    background: #ffffff !important;
    border: 3.5px solid var(--dakhl-primary) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: -9px !important;
    position: absolute !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18) !important;
    outline: none !important;
    cursor: ew-resize !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    display: block !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.woocommerce .widget_price_filter .ui-slider-handle:hover,
.woocommerce .widget_price_filter .ui-slider-handle:active,
.dakhl-shop-sidebar .widget_price_filter .ui-slider-handle:hover,
.dakhl-shop-sidebar .widget_price_filter .ui-slider-handle:active {
    transform: translateY(-50%) scale(1.18) !important;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15) !important;
}

/* Hide default price label and button */
.dakhl-shop-sidebar .widget_price_filter .price_slider_amount,
.dakhl-shop-sidebar .is-price-filter .price_slider_amount,
.dakhl-specific-filter-modal .price_slider_amount {
    display: none !important;
}

/* ==========================================================================
   SHOP CATEGORIES: INTERACTIVE EXPANDABLE PILLS
   ========================================================================== */
.dakhl-creative-cats-wrapper {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}
.dakhl-creative-cats-scroll {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 4px 2px 10px 2px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    cursor: grab !important;
}
.dakhl-creative-cats-scroll.is-dragging {
    cursor: grabbing !important;
}
.dakhl-creative-cats-scroll::-webkit-scrollbar {
    display: none !important;
}

/* Prevent image and link ghost dragging */
.dakhl-creative-cats-wrapper,
.dakhl-creative-cats-scroll,
.dakhl-interactive-cat-group,
.dakhl-interactive-cat-group *,
.dakhl-cat-main-trigger,
.dakhl-subcat-pill,
.cat-pill-img,
.cat-pill-img img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
.cat-pill-img img {
    pointer-events: none !important;
}

.dakhl-interactive-cat-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    overflow: hidden;
}
/* Dynamic colors are now handled via JS */

.dakhl-interactive-cat-group:hover {
    filter: brightness(0.97);
}
.dakhl-interactive-cat-group.expanded {
    border-color: var(--dakhl-primary);
    background: #fff;
}

/* Dynamic Smart Colors */
.dakhl-interactive-cat-group.color-loaded {
    background: linear-gradient(to left, rgba(var(--pill-color), 0.28) 0%, rgba(255,255,255,1) 90%);
    border-color: rgba(var(--pill-color), 0.5);
}
.dakhl-interactive-cat-group.color-loaded.expanded {
    background: linear-gradient(to left, rgba(var(--pill-color), 0.28) 0%, rgba(255,255,255,1) 90%);
    border-color: rgba(var(--pill-color), 0.8);
}

.dakhl-cat-main-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 4px 0 4px 14px;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    flex-shrink: 0;
    font-family: inherit;
    min-width: 135px;
}

.cat-pill-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 3px;
}
.cat-pill-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-pill-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.cat-expand-icon {
    color: #64748b;
    transition: transform 0.4s ease;
    margin-right: auto;
}
.dakhl-interactive-cat-group.expanded .cat-expand-icon {
    transform: rotate(180deg);
    color: var(--dakhl-primary);
}

.dakhl-cat-subs-container {
    width: 0;
    opacity: 0;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.dakhl-interactive-cat-group.expanded .dakhl-cat-subs-container {
    opacity: 1;
}

.dakhl-cat-subs-inner {
    display: flex;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid #e2e8f0;
    margin-right: 8px;
    white-space: nowrap;
}

.dakhl-subcat-pill {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.1s ease, color 0.1s ease;
}
.dakhl-subcat-pill:last-child {
    margin-left: 14px;
}
.dakhl-subcat-pill:hover {
    background: var(--dakhl-primary) !important;
    color: #ffffff !important;
}
.dakhl-subcat-all {
    color: var(--dakhl-primary);
    background: #fff1f2;
}

.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill {
    opacity: 1;
    transform: translateX(0);
}
.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill:nth-child(1) { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, background 0.1s ease, color 0.1s ease; }
.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill:nth-child(2) { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, background 0.1s ease, color 0.1s ease; }
.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill:nth-child(3) { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, background 0.1s ease, color 0.1s ease; }
.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill:nth-child(4) { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, background 0.1s ease, color 0.1s ease; }
.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill:nth-child(5) { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.55s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.55s, background 0.1s ease, color 0.1s ease; }
.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill:nth-child(6) { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.65s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.65s, background 0.1s ease, color 0.1s ease; }
.dakhl-interactive-cat-group.expanded .dakhl-subcat-pill:nth-child(n+7) { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.75s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.75s, background 0.1s ease, color 0.1s ease; }

/* Desktop Sizing for Category Pills */
@media (min-width: 993px) {
    .dakhl-interactive-cat-group {
        padding: 0;
    }
    .cat-pill-img {
        width: 56px;
        height: 56px;
        margin-right: 5px;
    }
    .cat-pill-name {
        font-size: 16px;
    }
    .dakhl-cat-main-trigger {
        gap: 12px;
        padding: 5px 0 5px 16px;
        min-width: 150px;
    }
    .dakhl-subcat-pill {
        font-size: 14px;
        padding: 8px 18px;
    }
}

/* Mobile Sizing for Category Pills */
@media (max-width: 768px) {
    .dakhl-creative-cats-wrapper {
        margin-top: 6px !important;
        margin-bottom: 12px !important;
    }
    .dakhl-creative-cats-scroll {
        gap: 8px !important;
        padding: 2px 0 6px 0 !important;
    }
    .dakhl-interactive-cat-group {
        border-radius: 50px !important;
    }
    .cat-pill-img {
        width: 38px !important;
        height: 38px !important;
        margin-right: 2px !important;
    }
    .cat-pill-name {
        font-size: 12.5px !important;
        font-weight: 700 !important;
    }
    .cat-expand-icon {
        width: 13px !important;
        height: 13px !important;
        margin-right: 2px !important;
    }
    .dakhl-cat-main-trigger {
        min-width: auto !important;
        padding: 3px 0 3px 8px !important;
        gap: 6px !important;
    }
    .dakhl-cat-subs-inner {
        gap: 6px !important;
        padding: 0 8px !important;
        margin-right: 4px !important;
    }
    .dakhl-subcat-pill {
        font-size: 11.5px !important;
        padding: 4px 10px !important;
        border-radius: 40px !important;
    }
    .dakhl-subcat-pill:last-child {
        margin-left: 8px !important;
    }
}

/* Product Page Mobile Fixes */
@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
  }

  * {
    box-sizing: border-box;
  }

  .woocommerce div.product,
  .dakhl-container div.product {
    flex-direction: column !important;
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .woocommerce div.product .dakhl-right-col-wrapper,
  .woocommerce div.product .dakhl-left-col-wrapper,
  .woocommerce div.product .summary.entry-summary,
  .dakhl-container div.product .summary.entry-summary,
  .dakhl-left-col-wrapper,
  .dakhl-middle-col-wrapper,
  .dakhl-product-description-box {
    width: 100% !important;
  }
  
  /* Fix category breadcrumb overflow */
  .dakhl-custom-breadcrumb-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-right: 15px;
    padding-left: 15px;
  }
  .dakhl-custom-breadcrumb-container::-webkit-scrollbar {
    display: none;
  }
  .dakhl-product-categories-breadcrumb {
    flex-wrap: nowrap;
  }

  /* Left column spacing for mobile */
  .dakhl-left-col-wrapper {
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
  }
}

.dakhl-sp-mobile-header {
    display: none;
}

/* Hide Header and Footer on Single Product Page (Mobile Only) */
@media (max-width: 768px) {
  body.single-product .dakhl-desktop-header-wrapper,
  body.single-product .dakhl-mobile-top-header,
  body.single-product .dakhl-footer,
  body.single-product .dakhl-elementor-footer-wrapper {
      display: none !important;
  }
  
  .dakhl-sp-mobile-header {
      display: block;
      background: #fff;
      padding: 16px 24px;
      position: fixed !important;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
  }
  .dakhl-sp-header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  .dakhl-sp-header-left {
      display: flex;
      align-items: center;
      gap: 20px;
  }
  .dakhl-sp-cart-btn, .dakhl-sp-search-btn, .dakhl-sp-back-btn {
      background: none;
      border: none;
      padding: 0;
      color: #334155;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      cursor: pointer;
  }
  .dakhl-sp-cart-btn svg, .dakhl-sp-search-btn svg {
      width: 24px;
      height: 24px;
  }
  .dakhl-sp-back-btn svg {
      width: 18px;
      height: 18px;
  }
  .dakhl-sp-cart-btn {
      position: relative;
  }
  .sp-cart-badge-dot {
      position: absolute;
      top: -2px;
      right: -2px;
      width: 10px;
      height: 10px;
      background: #ef4444; /* Cute red */
      border-radius: 50%;
      border: 2px solid #fff; /* White border to make it pop */
  }
  
  /* --- Mobile Full Width & Bottom Sheet Gallery --- */
  body.single-product .dakhl-container {
      padding: 0 !important;
  }
  .dakhl-right-col-wrapper {
      position: fixed !important;
      top: 56px !important; /* Exact height of mobile header */
      right: 0 !important;
      left: 0 !important;
      z-index: 10 !important;
  }
  .woocommerce div.product .dakhl-right-col-wrapper {
      max-width: none !important; /* Override desktop 400px limit */
  }
  .dakhl-left-col-wrapper {
      display: none !important; /* Hidden on mobile in favor of bottom sheet */
  }
  /* --- Unified Bottom Sheet Card for Mobile via CSS --- */
  .dakhl-mobile-unified-bottom-sheet {
      position: relative !important;
      z-index: 100 !important;
      background: #ffffff;
      border-radius: 24px 24px 0 0;
      margin-top: calc(85vw + 50px) !important; /* Pull up to overlap the gallery naturally */
      box-shadow: 0 -8px 24px rgba(0,0,0,0.05);
      width: 100% !important;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding-bottom: 90px; /* Space for the sticky cart */
  }
  
  /* Reset individual wrappers since the parent handles the background now */
  .dakhl-middle-col-wrapper,
  .dakhl-product-description-box,
  .dakhl-accordion-box,
  .dakhl-related-products-section,
  .dakhl-comments-layout-wrapper {
      background: transparent !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      border: none !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding-left: 16px !important;
      padding-right: 16px !important;
  }
  @media (min-width: 769px) {
      .dakhl-related-products-section {
          margin-top: 48px !important;
      }
  }
  .dakhl-middle-col-wrapper {
      padding-top: 0 !important;
      display: block !important;
  }
  
  /* Drag handle for the bottom sheet */
  .dakhl-mobile-unified-bottom-sheet::before {
      content: "";
      display: block;
      width: 36px;
      height: 4px;
      background: #e2e8f0;
      border-radius: 4px;
      margin: 12px auto 12px auto;
  }

  
  /* Top row inside the bottom sheet (Brand + Share/Like) */
  .dakhl-mobile-card-top-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
  }
  .dakhl-mobile-card-top-row .dakhl-brand-item {
      font-size: 13px;
      color: #64748b;
  }
  
  /* Show breadcrumb on mobile, position it nicely */
  .dakhl-right-col-wrapper .dakhl-breadcrumb-item {
      display: flex !important;
      padding: 1px 16px 1px 0; /* Right padding only for RTL start side */
      margin-bottom: 8px !important;
      font-size: 11px;
      background: transparent !important; /* Removed white background */
      width: 100%;
      overflow: hidden;
  }
  .dakhl-product-categories-breadcrumb {
      display: flex;
      align-items: center;
      overflow-x: auto;
      white-space: nowrap;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none;  /* IE and Edge */
      width: 100%;
  }
  .dakhl-product-categories-breadcrumb::-webkit-scrollbar {
      display: none; /* Chrome, Safari and Opera */
  }
  .dakhl-product-categories-breadcrumb a {
      white-space: nowrap;
  }
  
  /* Hide thumbnails slider on mobile since we use horizontal peek */
  .dakhl-product-thumbs-wrapper {
      display: none !important;
  }
  
  /* Hide main slider arrows on mobile */
  .dakhl-main-next, .dakhl-main-prev {
      display: none !important;
  }
  
  /* Make container relative for floating elements */
  .dakhl-product-gallery-container {
      position: relative;
  }
  
  /* Mobile Gallery Overlay Box - Floating at bottom left */
  .dakhl-gallery-mobile-overlay {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: rgba(30, 41, 59, 0.45);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 12px; /* A bit more rounded for horizontal shape */
      padding: 4px 10px;
      display: flex;
      flex-direction: row; /* Side by side */
      align-items: center;
      justify-content: center;
      gap: 12px; /* Space between count and progressbar */
      z-index: 10;
      color: white;
      direction: rtl;
      pointer-events: none; /* Let clicks pass through to images */
  }
  .dakhl-gallery-count {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 14px; /* Increased from 11px */
      font-weight: 700;
  }
  .dakhl-gallery-count svg {
      width: 16px; /* Increased from 12px */
      height: 16px;
  }
  /* Force the solid SVG icon to become an outline */
  .dakhl-gallery-count svg path {
      fill: transparent !important;
      stroke: white !important;
      stroke-width: 1.5px !important;
      stroke-linejoin: round !important;
  }
  /* Show the progress bar inside the floating overlay */
  .dakhl-gallery-progress-bar {
      position: relative;
      width: 36px;
      height: 1.5px;
      background: rgba(255, 255, 255, 0.25) !important;
      border-radius: 2px;
  }
  .dakhl-gallery-progress-bar .swiper-pagination-progressbar-fill {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #ffffff !important;
      border-radius: 2px;
  }
  
  /* --- Mobile Gallery Grid (1 big, 2 small) --- */
  .dakhl-product-main.swiper {
      display: none !important; /* hide the swipe slider */
  }
  .woocommerce div.product .dakhl-product-gallery-container .woocommerce-product-gallery {
      width: 100% !important;
      float: none !important;
  }
  .dakhl-mobile-gallery-grid {
      width: 100% !important;
      display: flex;
      gap: 8px;
      padding: 0 16px 0 0; /* Right padding only for RTL start side */
      margin-bottom: 0; /* No bottom margin */
      direction: rtl;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      align-items: stretch; /* ensure columns stretch to same height */
  }
  .dakhl-mobile-gallery-grid::-webkit-scrollbar {
      display: none;
  }
  .mobile-main-img {
      flex: 0 0 85% !important; /* 85% width for the main image */
      width: 85% !important;
      max-width: 85% !important;
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      aspect-ratio: 1/1; /* Made it a perfect square */
      background: #f8fafc;
  }
  .mobile-side-imgs {
      flex: 0 0 40% !important; /* the column takes 40% width, so it goes off-screen */
      width: 40% !important;
      max-width: 40% !important;
      display: grid;
      grid-template-rows: 1fr 1fr;
      gap: 8px;
  }
  .mobile-side-img-wrapper {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      background: #f8fafc;
  }
  /* Bulletproof image stretching */
  .dakhl-mobile-gallery-grid img {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      display: block !important;
  }
  .mobile-main-img .woocommerce-product-gallery__image {
      width: 100% !important;
      height: 100% !important;
      position: relative !important;
  }

  
  /* --- Mobile Fullscreen Modal --- */
  .dakhl-gallery-modal {
      display: flex !important;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: #000;
      z-index: 99999;
      flex-direction: column;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
  }
  .dakhl-gallery-modal.active {
      opacity: 1;
      pointer-events: auto;
  }
  .dakhl-gallery-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 24px;
      color: #fff;
  }
  .dakhl-close-modal-btn {
      background: rgba(255,255,255,0.2);
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
  }
  .dakhl-close-modal-btn svg {
      width: 14px;
      height: 14px;
      filter: brightness(0) invert(1);
  }
  .dakhl-modal-title {
      font-size: 14px;
      font-weight: 600;
  }
  .dakhl-modal-swiper {
      flex: 1;
      width: 100%;
      display: flex;
      align-items: center;
  }
  .dakhl-modal-swiper .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
  }
  .dakhl-modal-swiper img {
      max-width: 100%;
      max-height: 85vh;
      object-fit: contain;
      border-radius: 16px;
  }
  .dakhl-modal-pagination {
      bottom: 24px !important;
  }
  .dakhl-modal-pagination .swiper-pagination-bullet {
      background: rgba(255,255,255,0.5);
      width: 8px;
      height: 8px;
      margin: 0 4px !important;
  }
  .dakhl-modal-pagination .swiper-pagination-bullet-active {
      background: #fff;
      width: 24px;
      border-radius: 4px;
  }
  
  /* Mobile Wonder Deal Banner — Bottom Sheet Top Card & Stroke */
  .dakhl-mobile-unified-bottom-sheet:has(.dakhl-wonder-banner)::before {
      display: none !important;
  }
  .dakhl-mobile-unified-bottom-sheet:has(.dakhl-wonder-banner) {
      overflow: hidden !important;
  }
  .dakhl-wonder-banner {
      margin-left: -16px !important;
      margin-right: -16px !important;
      width: calc(100% + 32px) !important;
      border-radius: 24px 24px 0 0 !important;
      background: linear-gradient(180deg, #fff1f3 0%, #ffe6e9 100%) !important;
      border: none !important;
      padding: 14px 16px 26px 16px !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      position: relative !important;
      overflow: hidden !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      box-shadow: none !important;
  }
  .dakhl-wonder-top-track {
      display: block !important;
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      border-radius: 24px 24px 0 0 !important;
      border-top: 3.5px solid rgba(225, 29, 72, 0.18) !important;
      border-right: 3.5px solid rgba(225, 29, 72, 0.18) !important;
      border-left: 3.5px solid rgba(225, 29, 72, 0.18) !important;
      box-sizing: border-box !important;
      pointer-events: none !important;
      z-index: 1 !important;
  }
  .dakhl-wonder-stroke-active {
      display: block !important;
      position: absolute !important;
      top: 0 !important;
      right: 0 !important;
      height: 100% !important;
      overflow: hidden !important;
      pointer-events: none !important;
      z-index: 2 !important;
      transition: width 1s ease !important;
  }
  .dakhl-wonder-stroke-line {
      position: absolute !important;
      top: 0 !important;
      right: 0 !important;
      width: 100vw !important;
      max-width: 1000px !important;
      height: 100% !important;
      border-radius: 24px 24px 0 0 !important;
      border-top: 3.5px solid #e11d48 !important;
      border-right: 3.5px solid #e11d48 !important;
      box-sizing: border-box !important;
  }
  .dakhl-wonder-right {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
  }
  .dakhl-wonder-title {
      font-size: 12.5px !important;
      font-weight: 800 !important;
      color: #e11d48 !important;
  }
  .dakhl-wonder-mobile-badge {
      display: inline-block !important;
      font-size: 12.5px !important;
      font-weight: 700 !important;
      color: #e11d48 !important;
      margin-right: 2px !important;
  }
  .dakhl-wonder-center {
      display: none !important;
  }
  .dakhl-wonder-sep {
      display: none !important;
  }
  .dakhl-wonder-left {
      display: flex !important;
      align-items: center !important;
      gap: 5px !important;
      color: #e11d48 !important;
  }
  .dakhl-wonder-clock-icon {
      width: 15px !important;
      height: 15px !important;
      color: #e11d48 !important;
  }
  .dakhl-wonder-timer {
      font-size: 12.5px !important;
      font-weight: 700 !important;
      color: #e11d48 !important;
  }
  .dakhl-wonder-white-card-top {
      display: block !important;
      background: #ffffff !important;
      border-radius: 24px 24px 0 0 !important;
      margin-left: -16px !important;
      margin-right: -16px !important;
      width: calc(100% + 32px) !important;
      margin-top: -14px !important;
      position: relative !important;
      z-index: 5 !important;
      padding: 12px 0 10px 0 !important;
      box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04) !important;
  }
  .dakhl-wonder-handle-bar {
      display: block !important;
      width: 36px !important;
      height: 4px !important;
      background: #cbd5e1 !important;
      border-radius: 4px !important;
      margin: 0 auto !important;
  }


  /* --- Fixed Bottom Sticky Cart for Mobile (Pill Capsule Design) --- */
  .dakhl-mobile-sticky-cart {
      position: fixed !important;
      bottom: 12px !important;
      left: 12px !important;
      right: 12px !important;
      margin: 0 auto !important;
      width: calc(100% - 24px) !important;
      background: rgba(255, 255, 255, 0.95) !important;
      backdrop-filter: blur(24px) saturate(180%) !important;
      -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
      z-index: 999999 !important;
      padding: 8px 12px 8px 18px !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      border-radius: 9999px !important;
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      justify-content: space-between !important;
      align-items: center !important;
      gap: 12px !important;
      box-sizing: border-box !important;
      direction: rtl !important;
  }
  /* On Desktop, hide the mobile cart */
  @media (min-width: 769px) {
      .dakhl-mobile-sticky-cart {
          display: none !important;
      }
  }
  
  /* Hide sticky cart when any modal is open */
  body.dakhl-modal-open .dakhl-mobile-sticky-cart {
      display: none !important;
  }
  .dakhl-mobile-sticky-cart .sticky-buy-action {
      order: 1 !important;
      flex: 0 0 auto !important;
      text-align: right !important;
      display: flex !important;
      align-items: center !important;
  }
  .dakhl-mobile-sticky-cart .dakhl-sticky-add-btn {
      background: #e11d48 !important;
      color: #fff !important;
      border-radius: 9999px !important;
      padding: 10px 22px !important;
      font-size: 13.5px !important;
      font-weight: 700 !important;
      border: none !important;
      white-space: nowrap !important;
      text-align: center !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      height: 42px !important;
      margin: 0 !important;
      line-height: 1 !important;
  }
  .dakhl-mobile-sticky-cart .sticky-buy-price-area {
      order: 2 !important;
      flex: 1 1 auto !important;
      min-width: 0 !important;
      text-align: left !important;
      display: flex !important;
      justify-content: flex-end !important;
      align-items: center !important;
      direction: rtl !important;
      white-space: nowrap !important;
      height: 42px !important;
  }
  .dakhl-mobile-sticky-cart .dakhl-price-toman {
      font-size: 18px !important;
      font-weight: 800 !important;
      color: #0f172a !important;
      display: inline-flex !important;
      align-items: baseline !important;
      gap: 2px !important;
      direction: rtl !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      line-height: 1 !important;
      margin: 0 !important;
      transform: translateY(-2px) !important;
  }
  .dakhl-mobile-sticky-cart .dakhl-price-toman .woocommerce-Price-amount,
  .dakhl-mobile-sticky-cart .dakhl-price-toman bdi {
      display: inline-flex !important;
      align-items: baseline !important;
      white-space: nowrap !important;
      gap: 2px !important;
      color: #0f172a !important;
      line-height: 1 !important;
  }
  .dakhl-mobile-sticky-cart .dakhl-price-toman .dakhl-toman-custom,
  .dakhl-mobile-sticky-cart .dakhl-price-toman .woocommerce-Price-currencySymbol {
      font-size: 11px !important;
      font-weight: 700 !important;
      color: #0f172a !important;
      display: inline-block !important;
      position: relative !important;
      padding: 0 !important;
      line-height: 1 !important;
      margin-right: 2px !important;
      margin-left: 0 !important;
      white-space: nowrap !important;
  }
  .dakhl-mobile-sticky-cart .dakhl-price-toman .dakhl-toman-n {
      position: absolute !important;
      top: -6px !important;
      left: 0.5px !important;
      font-size: 0.85em !important;
      font-weight: 700 !important;
      color: #0f172a !important;
      line-height: 1 !important;
  }
  
  /* Disable WooCommerce Hover Zoom on Mobile to prevent image overlapping bugs */
  img.zoomImg, .zoomImg {
      display: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
  }
}

/* ====================================================
   PRODUCT STATS SCROLL ROW & AI SUMMARY MODAL
==================================================== */
.dakhl-product-stats-scroll-row {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    margin-bottom: 24px;
    padding: 4px 0;
}
.dakhl-product-stats-scroll-row::-webkit-scrollbar {
    display: none;
}
.dakhl-stat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    line-height: 1; /* Helps vertical centering */
}
.dakhl-stat-pill svg {
    display: block;
    margin-top: -1px; /* Visual adjustment for Persian font baseline */
}
.dakhl-rating-pill {
    flex-direction: row-reverse;
    background: transparent !important;
    padding-right: 0;
}
.dakhl-ai-summary-pill {
    background: #f3f0ff;
    color: #6b21a8;
}

/* Modal Overlay */
.dakhl-ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.dakhl-ai-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.dakhl-ai-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 90vh;
}
.dakhl-ai-modal-overlay.active .dakhl-ai-modal-content {
    transform: translateY(0);
}

/* Header */
.dakhl-ai-modal-header {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
}
.dakhl-ai-modal-close {
    margin-right: auto;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dakhl-ai-modal-title-box {
    text-align: right;
}
.dakhl-ai-modal-title-box .title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.dakhl-ai-modal-title-box .subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

@keyframes aiGradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dakhl-ai-modal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a855f7, #6366f1, #ec4899, #a855f7);
    background-size: 300% 300%;
    animation: aiGradientBg 4s ease infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Body */
.dakhl-ai-modal-body {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.8;
    color: #334155;
    text-align: right;
}
.dakhl-ai-text-container {
    min-height: 100px;
    background: linear-gradient(120deg, #f8fafc, #f3f0ff, #f8fafc, #eff6ff);
    background-size: 300% 300%;
    animation: aiGradientBg 6s ease infinite;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Pros/Cons */
.dakhl-ai-pros-cons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}
.dakhl-ai-pros-cons.show {
    opacity: 1;
    transform: translateY(0);
}
.pro-con-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.pro-con-item.pro {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.pro-con-item.con {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.pro-con-item .icon {
    flex-shrink: 0;
}

/* Disclaimer & Footer */
.ai-disclaimer {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 16px;
    text-align: center;
}
.dakhl-ai-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
    padding-top: 8px;
}
.dakhl-ai-modal-footer .actions {
    display: flex;
    gap: 8px;
}
.dakhl-ai-modal-footer button {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s;
}
.dakhl-ai-modal-footer button:hover {
    background: #e2e8f0;
}

/* Desktop overrides for mobile-exclusive features */
@media (max-width: 768px) {
  .woocommerce-product-rating {
    display: none !important;
  }
  .dakhl-desktop-only {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .mobile-only-share {
    display: none !important;
  }
  .dakhl-mobile-only {
    display: none !important;
  }
  .dakhl-toggle-en-title {
    display: none !important;
  }
  .dakhl-english-title {
    display: block !important;
  }
  .dakhl-product-stats-scroll-row {
    display: none !important;
  }
}
@media (min-width: 769px) {
    .dakhl-mobile-unified-bottom-sheet {
        display: contents;
    }
}

/* ==========================================================================
   Unified Info Section (Intro & Specs)
   ========================================================================== */
.dakhl-unified-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Bottom sheet on mobile */
}
.dakhl-unified-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.dakhl-unified-modal-content {
    background: #fff;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    max-height: 100vh;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.dakhl-unified-modal-overlay.active .dakhl-unified-modal-content {
    transform: translateY(0);
}
@media (min-width: 768px) {
    .dakhl-unified-modal-overlay {
        justify-content: center;
        align-items: center;
    }
    .dakhl-unified-modal-content {
        width: 600px;
        border-radius: 12px;
        max-height: 90vh;
        margin-bottom: 0;
        transform: scale(0.95);
        opacity: 0;
    }
    .dakhl-unified-modal-overlay.active .dakhl-unified-modal-content {
        transform: scale(1);
        opacity: 1;
    }
}
.dakhl-unified-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.dakhl-unified-modal-title {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}
.dakhl-unified-modal-close {
    background: none;
    border: none;
    padding: 0;
    color: #64748b;
    cursor: pointer;
}
.dakhl-unified-modal-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}
.dakhl-unified-modal-tabs .dakhl-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #64748b;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.dakhl-unified-modal-tabs .dakhl-tab-btn.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}
.dakhl-unified-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.dakhl-tab-content {
    display: none;
}
.dakhl-tab-content.active {
    display: block;
}
.dakhl-full-intro-content {
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
}
.dakhl-full-intro-content p {
    margin-bottom: 12px;
}

/* ==========================================================================
   Mobile Reviews Redesign (Horizontal Scroll & Modal)
   ========================================================================== */
.dakhl-mobile-only {
    display: none !important;
}
.dakhl-desktop-only {
    display: block;
}

@media (max-width: 991px) {
    .dakhl-mobile-only {
        display: block !important;
    }
    .dakhl-desktop-only {
        display: none !important;
    }

    .dakhl-reviews-header {
        align-items: center;
        margin-bottom: 16px;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .dakhl-reviews-title-area {
        display: flex;
        flex-direction: column-reverse; /* Put stats above title */
        gap: 8px;
    }

    .dakhl-open-mobile-reviews {
        background: none;
        border: none;
        color: #64748b;
        font-size: 13px;
        font-family: inherit;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0;
        cursor: pointer;
    }

    .dakhl-commentlist {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 24px;
        padding-right: 16px;
        padding-left: 16px;
        margin-bottom: 24px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE 10+ */
    }
    .dakhl-commentlist::-webkit-scrollbar { 
        display: none; /* Chrome Safari */
    }

    .dakhl-commentlist > li {
        flex: 0 0 280px;
        scroll-snap-align: start;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px;
        background: #fff;
        margin-bottom: 0 !important; /* Override vertical margin */
        display: flex;
        flex-direction: column;
    }

    .dakhl-commentlist > li .dakhl-review-box {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .dakhl-commentlist > li .dakhl-review-content {
        margin-bottom: auto; /* Push footer down */
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .dakhl-commentlist > li .dakhl-review-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px; /* Smaller font on mobile */
        line-height: 1.6;
    }

    .dakhl-read-more-btn {
        color: #94a3b8; /* Lighter color */
        font-weight: 600;
        font-size: 13px;
        text-decoration: none; /* No underline */
        cursor: pointer;
        margin-top: 8px;
        display: block;
    }

    .dakhl-buyer-images {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Hide original pagination on mobile main view */
    #dakhl-comments-wrapper > .woocommerce-pagination {
        display: none !important;
    }
    
    /* Ensure buyer image modal is always above everything */
    #dakhl-buyer-image-modal {
        z-index: 10005 !important;
    }
    
    /* Full and single review modals */
    #dakhlFullReviewsModal, #dakhlSingleReviewModal {
        z-index: 10000 !important;
    }
    
    /* Add padding to modal reviews so text isn't stuck to edges */
    #dakhlModalReviewsContainer .dakhl-review-box {
        padding: 0 16px;
        margin-bottom: 24px;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 24px;
    }
    
    #dakhlModalReviewsContainer .dakhl-review-box:last-child {
        border-bottom: none;
    }
    
    /* View All End Card */
    .dakhl-view-all-card {
        flex: 0 0 140px !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        cursor: pointer;
    }
    
    .dakhl-view-all-circle {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 1px solid #1e293b;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 12px;
        color: #1e293b;
    }
    
    .dakhl-view-all-text {
        font-size: 13px;
        color: #1e293b;
        font-weight: 600;
    }
    
    /* Body Scroll Lock */
    body.dakhl-modal-open {
        overflow: hidden !important;
        touch-action: none;
    }
    
    /* Loading Spinner */
    #dakhlModalReviewsContainer {
        position: relative;
        min-height: 200px;
    }
    
    .dakhl-modal-loading {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255, 255, 255, 0.7);
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 50px;
    }
    
    .dakhl-spinner {
        width: 32px;
        height: 32px;
        border: 3px solid #e2e8f0;
        border-top: 3px solid #f59e0b;
        border-radius: 50%;
        animation: dakhl-spin 0.8s linear infinite;
    }
    
    @keyframes dakhl-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* AI Summary Card */
    .dakhl-ai-summary-card {
        background: #faf5ff !important;
        border: 1px solid #e9d5ff !important;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
    }
    .dakhl-ai-card-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    .dakhl-ai-card-title {
        color: #7e22ce;
        font-weight: 700;
        font-size: 14px;
    }
    .dakhl-ai-card-content {
        color: #475569;
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    .dakhl-ai-card-more {
        color: #0f172a;
        font-weight: 600;
        font-size: 13px;
        text-decoration: underline;
        margin-bottom: 16px;
        cursor: pointer;
    }
    .dakhl-ai-card-footer {
        background: #fff;
        color: #94a3b8;
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 12px;
        align-self: flex-start;
    }

    /* Mobile Write Review Bar */
    .dakhl-mobile-write-review-bar {
        margin-bottom: 24px;
    }
    .dakhl-mobile-write-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 50px;
        padding: 12px 20px;
        color: #475569;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .dakhl-mobile-write-btn .text {
        flex: 1;
        text-align: right;
        margin-right: 12px;
    }
}

/* Fix for Full Reviews Modal Body */
#dakhlFullReviewsModal .dakhl-unified-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}
#dakhlModalReviewsContainer .dakhl-comment {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}
#dakhlModalReviewsContainer .dakhl-comment:last-child {
    border-bottom: none;
}

/* Related Product Cards (Mobile) */
.dakhl-product-card {
    padding: 10px;
    border-radius: 12px;
}
    
    .dakhl-product-card .dakhl-card-image {
        padding: 4px;
        margin-bottom: 10px;
    }
    
    .dakhl-product-card .dakhl-card-brand {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .dakhl-product-card .dakhl-card-title {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
        max-height: 36px;
    }
    
    .dakhl-product-card .dakhl-card-price .amount {
        font-size: 14px;
    }
    
    .dakhl-product-card .dakhl-card-price del .amount {
        font-size: 11px;
    }
    
    .dakhl-product-card .dakhl-card-discount {
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 4px;
    }
    .dakhl-product-card .dakhl-toman-custom {
        font-size: 10px !important;
        font-weight: 500 !important;
        padding-top: 4px !important;
    }
    
    .dakhl-related-swiper {
    }
    
    .dakhl-related-next,
    .dakhl-related-prev {
        display: none !important;
    }
    
    /* Sticky Mobile Nav */
    .dakhl-mobile-sticky-nav {
        position: fixed;
        top: 56px; /* Exactly under the 56px top header */
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        z-index: 999;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .dakhl-mobile-sticky-nav.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .dakhl-sticky-nav-list {
        display: flex;
        overflow-x: auto;
        list-style: none;
        margin: 0;
        padding: 0 16px;
        scrollbar-width: none;
        gap: 20px;
    }
    .dakhl-sticky-nav-list::-webkit-scrollbar {
        display: none;
    }
    .dakhl-sticky-nav-list li {
        white-space: nowrap;
    }
    .dakhl-sticky-nav-list li a {
        display: block;
        padding: 12px 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        position: relative;
    }
    .dakhl-sticky-nav-list li a.active {
        color: #ef4444;
        font-weight: 700;
    }
    .dakhl-sticky-nav-list li a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: #ef4444;
    }
    
    /* Scroll padding so sections aren't hidden under the sticky menu */
    #dakhl-specs-section,
    #dakhl-expert-review,
    #reviews,
    #dakhl-related-products {
        scroll-margin-top: 110px;
    }
    
    /* Reduce gap between variations and specs */
    body.single-product form.cart,
    body.single-product table.variations,
    body.single-product .dakhl-variation-swatches {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    body.single-product .dakhl-product-short-attributes-v2.dakhl-mobile-only {
        margin-top: 2px !important;
    }
}
@media (min-width: 769px) {
    body.single-product .dakhl-product-short-attributes-v2.dakhl-desktop-only {
        margin-top: 32px !important;
    }
}

@keyframes dakhl-spin {
    100% { transform: rotate(360deg); }
}

/* AJAX Button Slide Animation */
.dakhl-custom-add-to-cart-btn, .single_add_to_cart_button {
    position: relative;
    overflow: hidden;
}
.dakhl-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    width: 100%;
    height: 100%;
}
.dakhl-btn-spinner-wrap {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}
.dakhl-ajax-loading .dakhl-btn-content {
    transform: translateY(-100%);
    opacity: 0;
}
.dakhl-ajax-loading .dakhl-btn-spinner-wrap {
    transform: translateY(0);
    opacity: 1;
}
.dakhl-ajax-loading::after {
    display: none !important; /* Hide default WooCommerce loading icon */
}

/* Floating Share Toast Notification */
.dakhl-share-toast {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999999;
    white-space: nowrap;
    direction: rtl;
}
.dakhl-share-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Global 3-Section Product Card Full Width Top Image Override */
.dakhl-cp-card,
.dakhl-related-card,
.dakhl-mdb-card,
.dakhl-mct-card,
.dakhl-mcp-card,
.dakhl-loop-product-card,
.elementor-widget-dakhl-category-products .dakhl-cp-card,
.elementor-widget-dakhl-mobile-deal-box .dakhl-mdb-card,
.elementor-widget-dakhl-mobile-category-tabs .dakhl-mct-card,
.elementor-widget-dakhl-mobile-category-products .dakhl-mcp-card,
.dakhl-cat-products-box .dakhl-cp-card,
.dakhl-mdb-box .dakhl-mdb-card,
.dakhl-mct-box .dakhl-mct-card,
.dakhl-mcp-box .dakhl-mcp-card,
.dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
}

.dakhl-cp-card-img,
.dakhl-related-card .dakhl-cp-card-img,
.dakhl-mdb-card-img,
.dakhl-mct-card-img,
.dakhl-mcp-card-img,
.dakhl-loop-product-card .dakhl-card-image,
.elementor-widget-dakhl-category-products .dakhl-cp-card-img,
.elementor-widget-dakhl-mobile-deal-box .dakhl-mdb-card-img,
.elementor-widget-dakhl-mobile-category-tabs .dakhl-mct-card-img,
.elementor-widget-dakhl-mobile-category-products .dakhl-mcp-card-img,
.dakhl-cat-products-box .dakhl-cp-card-img,
.dakhl-mdb-box .dakhl-mdb-card-img,
.dakhl-mct-box .dakhl-mct-card-img,
.dakhl-mcp-box .dakhl-mcp-card-img {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fbfbfb !important;
    flex-shrink: 0 !important;
}

.dakhl-cp-card-img img,
.dakhl-related-card .dakhl-cp-card-img img,
.dakhl-mdb-card-img img,
.dakhl-mct-card-img img,
.dakhl-mcp-card-img img,
.dakhl-loop-product-card .dakhl-card-image img,
.elementor-widget-dakhl-category-products .dakhl-cp-card-img img,
.elementor-widget-dakhl-mobile-deal-box .dakhl-mdb-card-img img,
.elementor-widget-dakhl-mobile-category-tabs .dakhl-mct-card-img img,
.elementor-widget-dakhl-mobile-category-products .dakhl-mcp-card-img img,
.dakhl-cat-products-box .dakhl-cp-card-img img,
.dakhl-mdb-box .dakhl-mdb-card-img img,
.dakhl-mct-box .dakhl-mct-card-img img,
.dakhl-mcp-box .dakhl-mcp-card-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
}

/* 3-Section Product Card Inner Details */
.dakhl-cp-card-body,
.dakhl-related-card .dakhl-cp-card-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 10px 12px 14px 12px !important;
    box-sizing: border-box !important;
    text-align: right !important;
    width: 100% !important;
}

.dakhl-cp-card-brand,
.dakhl-related-card .dakhl-cp-card-brand {
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    text-align: right !important;
}
.dakhl-cp-card-brand span,
.dakhl-related-card .dakhl-cp-card-brand span {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
}

.dakhl-cp-card-title,
.dakhl-related-card .dakhl-cp-card-title {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.55 !important;
    margin: 0 0 10px 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-align: right !important;
    word-break: break-word !important;
}

.dakhl-cp-card-price-area,
.dakhl-related-card .dakhl-cp-card-price-area {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 3px !important;
    padding-top: 4px !important;
}

.dakhl-cp-card-price-top,
.dakhl-related-card .dakhl-cp-card-price-top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 18px !important;
    margin-bottom: 2px !important;
    direction: rtl !important;
}

.dakhl-cp-card-discount,
.dakhl-related-card .dakhl-cp-card-discount {
    background: #ef394e !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 1px 6px !important;
    border-radius: 12px !important;
    line-height: 1.3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dakhl-cp-card-reg-price,
.dakhl-related-card .dakhl-cp-card-reg-price {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-family: inherit !important;
    line-height: 1 !important;
}

.dakhl-cp-card-price-empty,
.dakhl-related-card .dakhl-cp-card-price-empty {
    min-height: 16px !important;
    display: block !important;
}

.dakhl-cp-card-price-bottom,
.dakhl-related-card .dakhl-cp-card-price-bottom {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: 100% !important;
}

.dakhl-cp-card-final-num,
.dakhl-related-card .dakhl-cp-card-final-num {
    font-size: 17.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
}

.dakhl-cp-card-toman-unit,
.dakhl-related-card .dakhl-cp-card-toman-unit {
    font-size: 10px !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    margin-right: 3px !important;
}

.dakhl-cp-card .dakhl-toman-custom,
.dakhl-related-card .dakhl-toman-custom,
.dakhl-cp-card-toman-unit .dakhl-toman-custom {
    font-size: 10px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    padding-top: 4px !important;
    display: inline-block !important;
    position: relative !important;
}

.dakhl-cp-card .dakhl-toman-n,
.dakhl-related-card .dakhl-toman-n,
.dakhl-cp-card-toman-unit .dakhl-toman-n {
    position: absolute !important;
    top: -3px !important;
    left: 1px !important;
    font-size: 0.85em !important;
    color: #0f172a !important;
}

/* Prevent Horizontal Scrolling without breaking position: sticky (Overflow-X Protection) */
html, body {
    overflow-x: clip !important;
    max-width: 100%;
}

.dakhl-cat-products-box,
.dakhl-cat-tabs-wrapper,
.dakhl-prod-carousel-wrapper {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Hide Default WooCommerce Sale Badge */
.onsale,
span.onsale,
.woocommerce span.onsale,
.woocommerce-page span.onsale {
    display: none !important;
}

/* ==========================================================================
   DAKHL TOP ANNOUNCEMENT & PROMO BAR (GIF / ANIMATED TEXT)
   ========================================================================== */
.dakhl-top-announcement-bar {
    position: relative;
    width: 100%;
    background: var(--dakhl-topbar-bg, #ef394e);
    color: var(--dakhl-topbar-color, #ffffff);
    z-index: 999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
}

.dakhl-top-announcement-bar.is-dismissed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Mode 1: GIF / Image Banner */
.dakhl-topbar-type-gif {
    height: var(--dakhl-topbar-h-desktop, 55px);
}

.dakhl-topbar-img-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.dakhl-topbar-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.dakhl-topbar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mode 2: Animated Text Banner */
.dakhl-topbar-type-text {
    min-height: var(--dakhl-topbar-h-desktop, 48px);
}

.dakhl-topbar-text-container {
    width: 100%;
    max-width: 1300px;
    padding: 8px 50px 8px 16px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.dakhl-topbar-text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.dakhl-topbar-static-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    flex-wrap: wrap;
}

.dakhl-topbar-badge {
    background: var(--dakhl-topbar-badge-bg, rgba(255, 255, 255, 0.2));
    color: var(--dakhl-topbar-badge-color, #ffffff);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.dakhl-topbar-btn {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.dakhl-topbar-text-link:hover .dakhl-topbar-btn {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
}

/* Animations */
/* 1. Shimmer Metallic Sweep */
.dakhl-topbar-anim-shimmer .dakhl-topbar-msg,
.dakhl-topbar-anim-shimmer {
    background: linear-gradient(90deg, currentColor 0%, #ffffff 50%, currentColor 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: dakhl-shimmer-sweep 3.5s linear infinite;
    display: inline-block;
}

@keyframes dakhl-shimmer-sweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 2. Pulse Neon Glow */
.dakhl-topbar-anim-pulse .dakhl-topbar-msg,
.dakhl-topbar-anim-pulse {
    animation: dakhl-pulse-glow 2s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes dakhl-pulse-glow {
    0%   { text-shadow: 0 0 2px rgba(255,255,255,0.3); transform: scale(1); }
    100% { text-shadow: 0 0 14px rgba(255,255,255,0.9), 0 0 22px rgba(255,255,255,0.6); transform: scale(1.015); }
}

/* 3. Heartbeat Bounce */
.dakhl-topbar-anim-bounce .dakhl-topbar-msg,
.dakhl-topbar-anim-bounce {
    animation: dakhl-heartbeat 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes dakhl-heartbeat {
    0%, 100% { transform: scale(1); }
    14%      { transform: scale(1.05); }
    28%      { transform: scale(1); }
    42%      { transform: scale(1.05); }
    70%      { transform: scale(1); }
}

/* 4. Soft Slide & Fade */
.dakhl-topbar-anim-slide .dakhl-topbar-msg,
.dakhl-topbar-anim-slide {
    animation: dakhl-slide-fade 3.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes dakhl-slide-fade {
    0%, 100% { opacity: 0.85; transform: translateY(0); }
    50%      { opacity: 1; transform: translateY(-2px); }
}

/* 5. Marquee Ticker */
.dakhl-topbar-marquee-track {
    display: flex;
    width: max-content;
    animation: dakhl-topbar-marquee 30s linear infinite;
    gap: 40px;
}

.dakhl-topbar-marquee-content {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 700;
}

.dakhl-topbar-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes dakhl-topbar-marquee {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}

/* Close / Dismiss Button */
.dakhl-topbar-close-btn {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.dakhl-topbar-close-btn:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Mobile Rules */
@media (max-width: 768px) {
    .dakhl-topbar-type-gif {
        height: var(--dakhl-topbar-h-mobile, 45px);
    }
    .dakhl-topbar-type-text {
        min-height: var(--dakhl-topbar-h-mobile, 40px);
    }
    .dakhl-topbar-static-wrap {
        font-size: 12px;
        gap: 8px;
    }
    .dakhl-topbar-badge {
        font-size: 10.5px;
        padding: 2px 8px;
    }
    .dakhl-topbar-btn {
        font-size: 10px;
        padding: 2px 8px;
    }
    .dakhl-topbar-text-container {
        padding: 6px 40px 6px 12px;
    }
    .dakhl-topbar-close-btn {
        left: 8px;
        width: 22px;
        height: 22px;
    }
    .dakhl-topbar-close-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ==========================================================================
   MOBILE ARCHIVE PRODUCT CARD (DIGIKALA HORIZONTAL LIST LAYOUT)
   ========================================================================== */
@media (max-width: 768px) {
    body.woocommerce-page .dakhl-main-content,
    body.archive .dakhl-main-content {
        padding-top: 12px !important;
    }
    body.woocommerce-page .dakhl-container,
    body.archive .dakhl-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    body.woocommerce-page .dakhl-shop-layout,
    body.archive .dakhl-shop-layout {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }
    body.woocommerce-page .dakhl-shop-main,
    body.archive .dakhl-shop-main {
        padding: 0 !important;
        width: 100% !important;
    }
    body.woocommerce-page .dakhl-shop-products-wrapper,
    body.archive .dakhl-shop-products-wrapper,
    .dakhl-shop-products-wrapper {
        width: 100% !important;
        padding: 0 !important;
    }

    body.woocommerce-page .dakhl-shop-topbar,
    body.archive .dakhl-shop-topbar {
        padding: 2px 14px 0 14px !important;
        margin-top: 0 !important;
    }
    body.woocommerce-page .dakhl-active-filters-area,
    body.archive .dakhl-active-filters-area {
        padding: 0 14px !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper ul.products,
    body.archive .dakhl-shop-products-wrapper ul.products,
    .dakhl-shop-products-wrapper ul.products {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card,
    body.archive .dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card,
    .dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-loop-product-link,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-loop-product-link,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-loop-product-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        padding: 16px 14px !important;
        gap: 14px !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    /* Right side: Product Image thumbnail (Full display) */
    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        height: 110px !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
        background: #f8fafc !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image img,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image img,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    /* Left side: Content area */
    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-content,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-content,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        min-height: 105px !important;
        padding: 0 !important;
        gap: 10px !important;
        text-align: right !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-brand,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-brand,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-brand {
        display: inline-block !important;
        align-self: flex-start !important;
        font-size: 11px !important;
        color: #64748b !important;
        background: #f1f5f9 !important;
        padding: 2px 8px !important;
        border-radius: 6px !important;
        margin-bottom: 2px !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .woocommerce-loop-product__title,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .woocommerce-loop-product__title,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .woocommerce-loop-product__title {
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #1e293b !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 44px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    /* Bottom: Price area */
    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-wrap,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-wrap,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-wrap {
        margin-top: auto !important;
        padding-top: 4px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        width: 100% !important;
        gap: 4px !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-top,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-top,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 2px !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-discount,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-discount,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-discount {
        background: #e11d48 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        padding: 2px 7px !important;
        border-radius: 20px !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-reg-price,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-reg-price,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-reg-price {
        font-size: 11px !important;
        color: #94a3b8 !important;
        text-decoration: line-through !important;
        margin-right: auto !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-bottom,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-bottom,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-price-bottom {
        display: flex !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        width: 100% !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-final-num,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-final-num,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-final-num {
        font-size: 16px !important;
        font-weight: 900 !important;
        color: #0f172a !important;
        letter-spacing: -0.3px !important;
    }

    /* Toman Symbol Typography */
    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-custom,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-custom,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-custom {
        display: inline-block !important;
        position: relative !important;
        font-size: 10.5px !important;
        color: #62666d !important;
        font-weight: 700 !important;
        padding-top: 3px !important;
        line-height: 1 !important;
    }

    body.woocommerce-page .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-n,
    body.archive .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-n,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-card-toman-unit .dakhl-toman-n {
        position: absolute !important;
        top: -3px !important;
        left: 0.5px !important;
        font-size: 0.85em !important;
        line-height: 1 !important;
        font-weight: 700 !important;
    }
}

/* ==========================================================================
   Fullscreen Immersive Living Gradient & Matrix 404 Experience
   ========================================================================== */
body.dakhl-404-standalone-body,
body.dakhl-404-standalone-body * {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body.dakhl-404-standalone-body {
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(-45deg, #070913, #150f33, #2b084e, #130726, #070913) !important;
  background-size: 300% 300% !important;
  animation: dakhlMeshShift 6s ease infinite !important;
  min-height: 100vh !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
}
body.dakhl-404-standalone-body.admin-bar {
  min-height: calc(100vh - 32px) !important;
  height: calc(100vh - 32px) !important;
}

.dakhl-404-fullscreen-canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Fullscreen Moving Matrix Grid Background */
.dakhl-matrix-bg-fullscreen {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.38) 1.5px, transparent 1.5px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  animation: dakhlMatrixMove 4.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Fullscreen Ambient Radial Glow Orbs */
.dakhl-404-glow-fullscreen-1 {
  position: absolute;
  top: 5%;
  right: 15%;
  width: 480px;
  height: 320px;
  background: radial-gradient(circle, rgba(239, 57, 78, 0.45) 0%, rgba(147, 51, 234, 0.3) 50%, transparent 75%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
  animation: dakhlGlowPulse 3.5s ease-in-out infinite alternate;
}

.dakhl-404-glow-fullscreen-2 {
  position: absolute;
  bottom: 5%;
  left: 15%;
  width: 480px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(236, 72, 153, 0.25) 50%, transparent 75%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
  animation: dakhlGlowPulse 4s ease-in-out infinite alternate-reverse;
}

.dakhl-404-glow-fullscreen-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Floating Center Island */
.dakhl-404-center-island {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 32px;
  padding: 46px 44px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 24px rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 2;
  direction: rtl;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Hologram Portal Visual */
.dakhl-404-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.dakhl-404-hologram-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.dakhl-404-num-left,
.dakhl-404-num-right {
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.35) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  letter-spacing: -3px;
}

.dakhl-404-portal {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d6d;
  box-shadow: 0 0 30px rgba(239, 57, 78, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.1);
  animation: dakhlPortalFloat 3.5s ease-in-out infinite alternate;
}
.dakhl-404-portal-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(239, 57, 78, 0.5);
  animation: dakhlPortalSpin 12s linear infinite;
}
.dakhl-404-portal-icon {
  width: 38px;
  height: 38px;
}

@keyframes dakhlPortalFloat {
  0% { transform: translateY(-5px) scale(0.96); }
  100% { transform: translateY(6px) scale(1.04); }
}
@keyframes dakhlPortalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pill Tag */
.dakhl-404-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.dakhl-404-radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef394e;
  box-shadow: 0 0 10px #ef394e;
  animation: pulse 1.8s infinite;
}

/* Typography */
.dakhl-404-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dakhl-404-hero-heading {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.dakhl-404-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 520px;
  line-height: 1.65;
  font-weight: 400;
}

/* Action Buttons */
.dakhl-404-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.dakhl-404-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.dakhl-404-btn-white {
  background: #ffffff;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}
.dakhl-404-btn-white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.38);
  background: #ffffff;
}

.dakhl-404-btn-neon {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.dakhl-404-btn-neon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px) scale(1.02);
}

/* Quick Category Pills */
.dakhl-404-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  width: 100%;
}
.dakhl-404-quick-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.dakhl-404-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dakhl-404-quick-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .dakhl-404-center-island {
    padding: 32px 18px;
    border-radius: 22px;
  }
  .dakhl-404-num-left,
  .dakhl-404-num-right {
    font-size: 64px;
  }
  .dakhl-404-portal {
    width: 60px;
    height: 60px;
  }
  .dakhl-404-portal-icon {
    width: 30px;
    height: 30px;
  }
  .dakhl-404-hero-heading {
    font-size: 19px;
  }
  .dakhl-404-btn-group {
    flex-direction: column;
    width: 100%;
  }
  .dakhl-404-action-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Dakhl Story Widget - Unified Vector SVG Centering
   ========================================================================== */
.dakhl-story-ring {
  position: relative !important;
  width: var(--dakhl-story-size) !important;
  height: var(--dakhl-story-size) !important;
  margin: 0 auto !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  transform: none !important;
  transition: none !important;
}
.dakhl-story-item:hover .dakhl-story-ring {
  transform: none !important;
}
.dakhl-story-ring-svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  overflow: visible !important;
  user-select: none !important;
}
.dakhl-story-svg-circle {
  transition: stroke 0.3s ease !important;
}
.dakhl-story-item.is-seen .dakhl-story-svg-circle {
  stroke: var(--dakhl-story-seen-ring, #cbd5e1) !important;
}

/* ==========================================================================
   Dakhl Mobile Deal Box - Compact Header & Stable Timer
   ========================================================================== */
.dakhl-mdb-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.dakhl-mdb-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}
.dakhl-mdb-title {
  font-size: 17px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
.dakhl-mdb-timer {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  direction: ltr !important;
  flex-shrink: 0 !important;
  margin: 0 auto !important;
}
.dakhl-mdb-time-digit {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
}
.dakhl-mdb-time-sep {
  font-size: 12px !important;
  margin: 0 1px !important;
  line-height: 1 !important;
}
.dakhl-mdb-see-all {
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}
.dakhl-mdb-see-all span {
  white-space: nowrap !important;
}
.dakhl-mdb-see-all svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 380px) {
  .dakhl-mdb-title {
    font-size: 15px !important;
  }
  .dakhl-mdb-time-digit {
    width: 19px !important;
    min-width: 19px !important;
    height: 20px !important;
    font-size: 11px !important;
  }
  .dakhl-mdb-see-all {
    font-size: 11px !important;
  }
}





