#rd-shop-dynamic-interface {
  margin-bottom: 1.5em;
  font-family: "Vazirmatn", sans-serif;
}

.rd-form-group {
  margin-bottom: 1rem;
}

.rd-form-group:last-child {
  margin-bottom: 0;
}

.rd-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.select2-container--default .select2-selection--single {
  height: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #111827;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  text-align: right;
  font-family: "Vazirmatn", sans-serif;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0.5rem;
  width: 1.5rem;
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.select2-dropdown {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  font-family: "Vazirmatn", sans-serif;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #3b82f6;
  color: white;
}

.select2-container--default .select2-results > .select2-results__options {
  text-align: right;
}

#rd-unit-details-container {
  margin-top: 1.5em;
}

.rd-vendor-price-wrapper {
  margin-bottom: 1rem;
}

.rd-vendor-price {
  font-size: 2em;
  font-weight: bold;
  color: #2c3e50;
  display: inline-block;
  margin-left: 0.5rem;
  font-family: "Lalezar", "Vazirmatn", sans-serif;
}

.rd-price-per-kilo {
  font-size: 0.9rem;
  color: #6b7280;
}

.rd-vendor-info-box {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1.5em;
}

.rd-info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75em 0;
}

.rd-info-line:not(:last-child) {
  border-bottom: 1px dashed #e0e0e0;
}

.rd-info-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #555;
}

.rd-info-value {
  font-weight: bold;
  color: #000;
}

.rd-info-line-timer {
  flex-wrap: wrap;
}

.rd-expiry-timer-wrapper {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-grow: 1;
  justify-content: flex-end;
}

.rd-expiry-timer-wrapper .timer-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  min-width: 4rem;
}

.rd-expiry-timer-wrapper .timer-card .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  font-family: "Lalezar", sans-serif;
}

.rd-expiry-timer-wrapper .timer-card .label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.rd-expiry-message.expired {
  color: #ef4444;
  font-weight: bold;
  font-size: 1rem;
}

#rd-add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rd-expired-cart-message {
  margin-top: 1.5rem;
  padding: 1em;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 0.5rem;
  text-align: center;
}

.rd-options-group-wrapper {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.rd-options-group-wrapper .required {
  color: #ef4444;
  margin-right: 4px;
}

.rd-options-group-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1em;
  font-weight: bold;
}

.rd-options-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rd-option-item-wrapper input {
  display: none;
}

.rd-option-button-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #fff;
}

.rd-option-button-label:hover {
  border-color: #bbb;
  background-color: #f9f9f9;
}

.rd-option-name {
  font-weight: 500;
}

.rd-option-item-wrapper input:checked + .rd-option-button-label {
  border-color: #77a464;
  background-color: #f0fff0;
  color: #3d5c32;
  box-shadow: 0 0 5px rgba(119, 164, 100, 0.5);
  font-weight: bold;
}

.rd-show-option-video-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #3498db;
  padding: 0;
  line-height: 1;
}

.rd-show-option-video-btn:hover {
  color: #2980b9;
}

.rd-swal-video-container {
  width: 100%;
  height: 400px;
}

.rd-swal-video-container video {
  width: 100%;
  height: 100%;
}

#rd-add-to-cart-form .quantity {
  margin-right: 1em;
}

#rd-add-to-cart-form > .button {
  width: 100%;
}

.single-product div.product .summary .product_title,
.single-product div.product .summary .price,
.single-product div.product .summary .product_meta {
  display: none !important;
}

@media (min-width: 922px) {
  .single-product div.product .woocommerce-product-gallery {
    width: 45%;
  }

  .single-product div.product .summary.entry-summary {
    width: 55%;
    padding-left: 30px;
  }
}

.woocommerce-product-gallery {
  position: relative;
  overflow: hidden;
}

.main-gallery {
  height: 400px;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #eee;
}

.main-gallery .swiper-slide {
  text-align: center;
  font-size: 1.125rem;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs-gallery {
  height: 80px;
  box-sizing: border-box;
  padding: 0.625rem 0;
  margin-top: 0.625rem;
}

.thumbs-gallery .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #ddd;
}

.thumbs-gallery .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #3b82f6;
}

.thumbs-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.3);
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1rem !important;
  font-weight: bold;
}

@media (hover: hover) {
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.6);
  }
}

.rd-offline-box {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 24px;
  margin-top: 30px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  font-family: "Vazirmatn", sans-serif;
}

.rd-offline-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #a12027, #e03a42, #fbbf24);
}

.rd-offline-header {
  background: #f8fafc;
  padding: 15px 20px 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.rd-offline-header .dashicons {
  color: #a12027;
  font-size: 28px;
  width: 28px;
  height: 28px;
  background: #fff1f2;
  padding: 8px;
  border-radius: 12px;
  box-sizing: content-box;
}

.rd-offline-header h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: #1e293b;
  letter-spacing: -0.5px;
  font-family: "Lalezar", sans-serif;
}

.rd-offline-content {
  padding: 20px 25px 30px;
}

.rd-offline-desc-wrapper {
  margin-bottom: 25px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.8;
}

.rd-offline-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.rd-offline-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 16px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
  overflow: hidden;
}

.rd-offline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.rd-offline-item .info {
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.rd-offline-item .label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 2px;
  font-weight: 500;
}

.rd-offline-item .value {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.rd-offline-icon-box {
  position: absolute;
  left: -10px;
  bottom: -15px;
  font-size: 60px;
  opacity: 0.15;
  transform: rotate(15deg);
  z-index: 1;
  pointer-events: none;
}

.rd-offline-icon-box .dashicons {
  font-size: 60px;
  width: 60px;
  height: 60px;
}

.rd-offline-item.card-item {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #1e293b, #334155);
  color: #fff;
  padding: 25px;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rd-offline-item.card-item .label {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.rd-offline-item.card-item .value {
  font-family: "Lalezar", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.rd-offline-item.card-item .rd-offline-icon-box {
  opacity: 0.1;
  font-size: 80px;
  left: 20px;
  bottom: -20px;
  color: #fff;
}

.rd-offline-item.card-item::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 6px;
  opacity: 0.9;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.rd-offline-item.phone-item {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.rd-offline-item.phone-item:hover {
  background-color: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.rd-offline-item.whatsapp-item {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.rd-offline-item.whatsapp-item:hover {
  background-color: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

.rd-offline-item.telegram-item {
  background-color: #ecfeff;
  color: #0e7490;
  border: 1px solid #cffafe;
}

.rd-offline-item.telegram-item:hover {
  background-color: #06b6d4;
  color: #fff;
  border-color: #06b6d4;
}

.ltr {
  direction: ltr;
  text-align: left;
}

@media (max-width: 600px) {
  .rd-offline-item.card-item {
    padding: 20px;
  }

  .rd-offline-item.card-item .value {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .rd-offline-contact-grid {
    grid-template-columns: 1fr;
  }
}
