/* ===== PRODUCT DETAIL ===== */
.product-detail {
  margin-top: 20px;
  padding-bottom: 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  margin-top: 20px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb i {
  font-size: 9px;
  opacity: 0.5;
}

.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

/* ===== Product Main ===== */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.detail-grid>* {
  min-width: 0;
}

/* Gallery */
.gallery-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.gallery-main-wrap {
  position: relative;
  background: #fafbfc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}

.wishlist-float {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    color: var(--green);
    font-size: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .wishlist-float:hover {
        color: var( --green-dark);
        transform: scale(1.08);
    }

.guarantee-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.guarantee-badge i {
  font-size: 13px;
}

.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 30px;
}

.gallery-main img {
  max-height: 340px;
  max-width: 100%;
  object-fit: contain;
}

.gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.thumb-nav {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.thumb-nav:hover {
  border-color: var(--green);
  color: var(--green);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.gallery-thumbs img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
  flex-shrink: 0;
}

.gallery-thumbs img.active {
  border-color: var(--green);
}

.gallery-thumbs img:hover {
  border-color: var(--green);
  opacity: 0.9;
}

.thumb-more {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  cursor: pointer;
}

/* Product Info */
.product-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  height: fit-content;
}

.product-info h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
}

.brand-model {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.brand-model strong {
  color: var(--text);
  font-weight: 600;
}

.brand-model .sep {
  color: var(--line);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.rating-row .stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.rating-row .score {
  font-weight: 700;
  color: var(--text);
}

.rating-row .reviews {
  color: var(--muted);
}

.price-block {
  margin-top: 4px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.new-price {
  font-size: 28px !important;
  font-weight: 800;
  color: var(--green);
}

.currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
}

.price-old-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.old-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 14px;
}

.discount-tag {
  background: #fef2f2;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.stock-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.2);
}

.actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.qty-btn {
  width: 42px;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--bg);
}

.qty-selector input {
  width: 48px;
  height: 48px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  outline: none;
  color: var(--text);
}

.btn-add-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-cart:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.3);
}

.btn-add-cart i {
  font-size: 16px;
}

.purchase-info {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.purchase-info-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.purchase-info-title i {
  color: var(--green);
  font-size: 14px;
}

.purchase-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.purchase-info-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 10px;
  background: #fafbfc;
  border: 1px solid #eef1f3;
  border-radius: 10px;
}

.purchase-info-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--green-light);
  color: var(--green);
  font-size: 14px;
}

.purchase-info-item>div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.purchase-info-item strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.purchase-info-item span {
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}

/* ===== Specs + Bulk ===== */
.specs-bulk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.specs-bulk-grid>* {
  min-width: 0;
}

.specs-card,
.bulk-card {
  width: 100%;
  box-sizing: border-box;
}

.specs-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.specs-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  display: grid;
  grid-template-columns: 12px 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
}

.spec-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.spec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.spec-label {
  color: var(--muted);
  font-weight: 500;
}

.spec-value {
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.view-all-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  transition: all 0.2s;
  cursor: pointer;
}

.view-all-specs:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.view-all-specs i {
  font-size: 11px;
}

/* Bulk card */
.bulk-card {
  background: linear-gradient(145deg, #f0faf4, #e8f8ef);
  border: 2px solid #1faa59;
  border-radius: var(--radius);
  padding: 50px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 30px rgba(31, 170, 89, 0.15);
}

.bulk-card::before {
  content: " پیشنهاد ویژه";
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.doctor-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bulk-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: #0a3d2c;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  
}

.bulk-header h2 i {
  color: var(--green);
  font-size: 18px;
}

.bulk-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0 0;
  line-height: 1.5;
  
}

.bulk-features-minimal {
  display: flex;
  gap: 18px;
  padding: 10px 0 4px 0;
  border-top: 1px solid rgba(0, 166, 81, 0.12);
  border-bottom: 1px solid rgba(0, 166, 81, 0.12);
  justify-content: center;
}

.bf-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.bf-item i {
  color: var(--green);
  font-size: 13px;
}

.bulk-form-minimal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.bulk-form-minimal .form-field {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  transition: border-color 0.2s;
}

.bulk-form-minimal .form-field:focus-within {
  border-color: var(--green);
}

.bulk-form-minimal .form-field i {
  color: #aab0b6;
  font-size: 13px;
  margin-left: 8px;
}

.bulk-form-minimal .form-field input {
  border: none;
  background: transparent;
  padding: 10px 0;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  color: var(--text);
}

.bulk-form-minimal .form-field input::placeholder {
  color: #bcc2c8;
}

.btn-bulk-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 2px;
}

.btn-bulk-minimal:hover {
  background: var(--green-dark);
}

.bulk-card {
  text-align: center;
}

.bulk-card h3 {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.bulk-card>p {
  text-align: center;
}
.bulk-header
{
      align-self: center;
}

/* ===== DESCRIPTION SECTION ===== */
.description-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  margin-top: 10px;
}

.description-section .section-head {
  margin-bottom: 16px;
}

.description-section .section-head h2 {
  font-size: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.description-section .section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
}

.description-content p {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 12px;
}

.description-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 10px 0;
  color: var(--text);
}

.desc-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.desc-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
}

.desc-features-list li i {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.reviews-section .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reviews-section .section-head h2 {
  font-size: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.reviews-section .section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
}

.reviews-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.review-summary {
  display: flex;
  align-items: stretch;
  gap: 32px;
  padding: 20px 24px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.review-stats {
  display: flex;
  gap: 40px;
  flex: 1;
  flex-wrap: wrap;
}

.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.big-score {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.big-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  margin: 4px 0;
}

.total-reviews {
  font-size: 12px;
  color: var(--muted);
}

.rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 180px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bar-label {
  width: 60px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
}

.bar-count {
  width: 30px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.btn-write-review {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  align-self: center;
}

.btn-write-review:hover {
  background: var(--green);
  color: #fff;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.review-item:hover {
  border-color: #c8ebd6;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.review-date {
  font-size: 12px;
  color: var(--muted);
}

.review-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 6px 0;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
}

.review-helpful:hover {
  color: var(--green);
}

.reviews-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-load-more {
  padding: 10px 32px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-load-more:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 36px;
  position: relative;
  animation: modalFade 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalFade {
  from {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #fee2e2;
  color: var(--red);
}

.modal-box h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-left: 40px;
  color: var(--text);
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.modal-spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
}

.modal-spec-item .label {
  color: var(--muted);
  font-weight: 500;
}

.modal-spec-item .value {
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

/* ===== Similar Products ===== */
.similar-section {
  margin-top: 10px;
  margin-bottom: 20px;
}

.similar-section .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.similar-section .section-head h2 {
  font-size: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.similar-section .section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all-link:hover {
  text-decoration: underline;
}

.product-card {
  background: #fff;
  border: 1px solid #e9eef2;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
  max-height: 420px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.product-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 8px;
  flex-shrink: 0;
  background: #fafbfc;
}

.product-img img {
  max-height: 110px;
  max-width: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #E53935;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  color: #4caf50;
  font-size: 14px;
  z-index: 2;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-btn:hover {
  background: #fff;
  transform: scale(1.08);
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  font-size: 10px;
  padding: 6px 10px;
  border-top: 1px solid #f3f3f3;
  border-bottom: 1px solid #f3f3f3;
  color: #888;
  flex-shrink: 0;
  background: #fafbfc;
}

.product-features span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.product-features i {
  color: #1faa59;
  font-size: 11px;
}

.product-body {
  padding: 10px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  color: #1faa59;
  font-size: 12px;
  font-weight: 700;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin: 0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #888;
  margin: 2px 0;
}

.rating .stars {
  color: #FFB400;
  font-size: 11px;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.price-box .old-price {
  text-decoration: line-through;
  color: #aaa;
  font-size: 11px;
}

.price-box .new-price {
  color: #15954b;
  font-size: 16px;
  font-weight: 800;
}

.add-cart-btn {
  margin: 0 14px 14px;
  border: none;
  background: #1faa59;
  color: #fff;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: inherit;
}

.add-cart-btn:hover {
  background: #158548;
  transform: translateY(-1px);
}

.add-cart-btn i {
  font-size: 14px;
}

.swiper-slide {
  height: auto;
}

.swiper-pagination {
  margin-top: 16px;
  position: relative !important;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #ffffff;
  color: var(--text);
  padding: 50px 0 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 36px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-desc {
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 1.8;
  max-width: 340px;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 16px;
  transition: 0.2s;
  border: 1px solid transparent;
}

.footer-social a:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 166, 81, 0.25);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text);
  font-size: 13px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  font-size: 10px;
  color: var(--green);
}

.footer-links a:hover {
  color: var(--green);
  padding-right: 4px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text);
}

.footer-contact i {
  width: 18px;
  color: var(--green);
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-dev {
  direction: ltr;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .specs-bulk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .desktop-actions {
    display: none;
  }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    width: 100%;
  }

  .main-nav.open {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0;
    align-items: stretch;
  }

  .nav-list a {
    padding: 10px 16px;
    border-radius: 8px;
  }

  .mobile-actions {
    display: flex !important;
    gap: 8px;
    padding: 4px 0 8px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
  }

  .mobile-actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg);
    flex: 1;
    justify-content: center;
    font-size: 13px;
    position: relative;
  }

  .cart-mobile .cart-badge-mobile {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-main {
    min-height: 260px;
    padding: 16px;
  }

  .gallery-main img {
    max-height: 240px;
  }

  .gallery-thumbs img,
  .thumb-more {
    width: 56px;
    height: 56px;
  }

  .product-info {
    padding: 20px;
  }

  .product-info h1 {
    font-size: 18px;
  }

  .new-price {
    font-size: 24px;
  }

  .actions-row {
    flex-direction: column;
  }

  .qty-selector {
    width: 100%;
    justify-content: center;
  }

  .btn-add-cart {
    width: 100%;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .spec-item:nth-last-child(-n+2) {
    border-bottom: 1px solid #f0f2f5;
  }

  .spec-item:last-child {
    border-bottom: none;
  }

  .bulk-card {
    padding: 20px 16px;
  }

  .bulk-features-minimal {
    gap: 12px;
    flex-wrap: wrap;
  }

  .bf-item {
    font-size: 11px;
  }

  .description-section {
    padding: 20px;
  }

  .desc-features-list {
    grid-template-columns: 1fr;
  }

  .reviews-section {
    padding: 20px;
  }

  .review-summary {
    padding: 16px;
    gap: 16px;
    flex-direction: column;
  }

  .review-stats {
    flex-direction: column;
    gap: 16px;
  }

  .overall-rating {
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
  }

  .big-score {
    font-size: 32px;
  }

  .rating-bars {
    min-width: unset;
  }

  .btn-write-review {
    align-self: stretch;
    justify-content: center;
  }

  .modal-box {
    padding: 24px 20px;
    margin: 12px;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr;
  }

  .modal-box h2 {
    font-size: 17px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .purchase-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .gallery-col,
  .product-info,
  .specs-card {
    padding: 16px;
  }

  .breadcrumb {
    font-size: 11px;
  }

  .description-section,
  .reviews-section {
    padding: 16px;
  }

  .review-item {
    padding: 12px 14px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bulk-card {
    padding: 16px 12px;
  }

  .bulk-header h2 {
    font-size: 15px;
  }

  .bulk-header p {
    font-size: 12px;
  }

  .bf-item {
    font-size: 10px;
  }
}

/* ===== Description Fade & More Button ===== */
.description-content {
  position: relative;
}

.description-text-wrapper {
  max-height: 240px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.description-text-wrapper.expanded {
  max-height: none;
}

.description-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #ffffff 20%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  transition: opacity 0.4s ease;
}

.description-fade-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.btn-description-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(31, 170, 89, 0.3);
}

.btn-description-more:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(31, 170, 89, 0.4);
}

.btn-description-more i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.btn-description-more:hover i {
  transform: translateY(2px);
}

.extra-description {
  display: none;
}

.extra-description.visible {
  display: block;
}

/* ===== DESCRIPTION MODAL ===== */
.modal-description-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-left: 4px;
}

.modal-description-content p {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-description-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 10px 0;
  color: var(--text);
}

.modal-description-content .desc-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.modal-description-content .desc-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
}

.modal-description-content .desc-features-list li i {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .description-text-wrapper {
    max-height: 180px;
  }

  .description-fade-overlay {
    height: 60px;
  }

  .btn-description-more {
    padding: 6px 18px;
    font-size: 12px;
  }

  .modal-description-content .desc-features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .description-text-wrapper {
    max-height: 150px;
  }
}

.section-head {
  margin: 0px 0 24px !important;
}