/* Services & Products Specific Styles */

/* 3. How They Work Together (Workflow) */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.workflow-step {
  padding: 2rem 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);
  border-color: var(--purple-mid);
}

.step-number {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.4rem;
  background: var(--bg);
  color: var(--purple-vivid);
  font-family: var(--font-display);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-glow);
}

/* 4. Bundle / Package Deals */
.bundle-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
}

.bundle-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--purple-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.bundle-badge {
  position: absolute;
  top: 1rem;
  right: -2.5rem;
  background: var(--grad-purple);
  color: var(--bg);
  padding: 0.25rem 3rem;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bundle-price {
  font-size: 2.5rem;
  font-family: var(--font-display);
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
}

/* ==== FIX: Remove overflow on mobile 320px+ ==== */
@media (max-width: 639px) {
  .bundle-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
    padding: 0 0.5rem;
    margin-top: 2rem;
  }

  .bundle-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .bundle-badge {
    top: 0.75rem;
    right: -2.8rem;
    padding: 0.2rem 2.8rem;
    font-size: 0.65rem;
    transform: rotate(45deg);
  }

  .bundle-price {
    font-size: 2rem;
    word-break: break-word;
  }

  .bundle-card h3 {
    font-size: 1.1rem;
    word-break: break-word;
  }

  .bundle-card .muted {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .bundle-card .service-features li {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .bundle-card .service-features {
    gap: 0.5rem;
  }
}

/* 5. Buy Only vs. Buy + Service Comparison */
.comparison-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-2);
  font-weight: 700;
  color: var(--purple-accent);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--border);
}

.comparison-table th.col-highlight {
  background: rgba(46, 125, 50, 0.10);
  color: var(--purple-accent);
  border-bottom: 2px solid rgba(46, 125, 50, 0.35);
  font-weight: 700;
}

.comparison-table td {
  color: var(--fg);
  font-size: 0.95rem;
  background: #FFFFFF;
}

.comparison-table td.col-highlight {
  background: rgba(46, 125, 50, 0.04);
  color: var(--fg);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comp-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  stroke-width: 2.2px;
}

.comp-check {
  color: var(--purple-accent);
}

.comp-cross {
  color: #EF4444;
}

/* 7. Warranty & Support */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.support-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.support-item i {
  color: var(--purple-accent);
  width: 2rem;
  height: 2rem;
}

.support-item h4 {
  margin-bottom: 0.25rem;
}

/* 8. Custom Quote & Notes */
.quote-section {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .quote-section {
    grid-template-columns: 1fr;
  }
}

#quoteForm .form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--fg);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

#quoteForm .form-input:focus {
  border-color: var(--purple-vivid);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
}

#quoteForm textarea.form-input {
  resize: vertical;
}

.decision-notes {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.note-item {
  margin-bottom: 1.5rem;
}

.note-item:last-child {
  margin-bottom: 0;
}

.note-item h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--purple-mid);
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.note-item h4 i {
  color: var(--purple-accent);
}

.note-item p {
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   SERVICES PAGE — Hero & Cards
   ============================================ */

.services-hero {
  padding: 7rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 38px);
  min-height: calc(100vh - 38px);
  height: calc(100dvh - 38px);
  min-height: calc(100dvh - 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.services-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  transform: translateY(-1.5vh);
}

@media (max-width: 768px) {
  .services-hero {
    height: calc(100vh - 38px);
    min-height: calc(100vh - 38px);
    height: calc(100dvh - 38px);
    min-height: calc(100dvh - 38px);
    padding: 6rem 1.25rem 2.5rem;
  }

  .services-hero-inner {
    transform: translateY(0);
  }
}

.service-detail-card {
  padding: 2.2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-vivid);
  box-shadow: var(--shadow-card), 0 0 30px rgba(180, 156, 255, 0.18);
}

.service-features {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .88rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
}

.service-features i {
  color: var(--purple-accent);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.product-showcase {
  margin-top: 0;
  padding: 3.5rem 2rem;
  border-radius: 2rem;
}

.product-item {
  padding: 1.8rem;
  border-radius: 1.2rem;
  text-align: left;
  transition: transform .3s, border-color .3s;
}

.product-item:hover {
  transform: translateY(-4px);
  border-color: var(--purple-vivid);
}

/* Destination Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--purple-vivid);
  color: var(--purple-accent);
  background: var(--bg-2);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--grad-purple);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.page-nav i,
.page-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.back-bar {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}

.back-btn:hover { color: var(--purple-accent); }
.back-btn i { width: 1rem; height: 1rem; }

.detail-hero { padding: 4rem 0 3rem; }

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 860px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.detail-gallery { position: relative; border-radius: 1.5rem; overflow: hidden; }

.detail-main-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 1.5rem;
  transition: opacity .35s ease;
}

.detail-thumbs { display: flex; gap: .75rem; margin-top: 1rem; }

.detail-thumb {
  flex: 1;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: .75rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
  opacity: .65;
}

.detail-thumb.active,
.detail-thumb:hover { border-color: var(--purple-accent); opacity: 1; transform: translateY(-2px); }

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .9rem;
  border-radius: 99px;
  background: var(--purple-soft);
  color: var(--purple-accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.detail-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.8rem; }

.detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }

.detail-tags span {
  padding: .3rem .8rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}

.detail-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }

@media (max-width: 639px) {
  .detail-title {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .detail-cta-row {
    margin-left: 0;
    width: 100%;
  }
  .detail-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.detail-price { font-size: 2.2rem; font-weight: 700; }
.detail-price span.unit { font-size: 1rem; color: var(--muted); font-weight: 400; }

.detail-features { padding: 3.5rem 0; }

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-item {
  padding: 1.8rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item i { color: var(--purple-accent); width: 1.4rem; height: 1.4rem; flex-shrink: 0; margin-top: .15rem; }
.feature-item h4 { font-size: .95rem; margin-bottom: .3rem; }
.feature-item p  { font-size: .85rem; color: var(--muted); margin: 0; }

.detail-gallery-strip { padding: 3rem 0; }

.gallery-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

@media (max-width: 640px) { .gallery-strip-grid { grid-template-columns: 1fr; } }

.gallery-strip-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: transform .3s, border-color .3s;
  cursor: pointer;
}

.gallery-strip-img:hover { transform: scale(1.02); border-color: var(--purple-mid); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 1rem; object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background .2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .25); }

/* ==== FIX: Prevent button shrinking on mobile 320px+ ==== */
@media (max-width: 639px) {
  .product-footer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
  }

  .product-footer .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
    white-space: nowrap;
    min-width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .product-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   PRODUCT DETAIL - E-COMMERCE LAYOUT
   ============================================ */

.ec-layout {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.ec-gallery-column {
  flex: 0 0 auto;
  width: 44%;
  max-width: 480px;
  display: flex;
  gap: 0.75rem;
  position: sticky;
  top: 100px;
  min-width: 0;
}

.ec-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 68px;
  flex-shrink: 0;
  /* Small horizontal padding gives the active thumb's glow/border room to
     breathe without poking outside this column and getting clipped by the
     global `overflow-x: clip` on html/body. */
  padding: 0 3px;
  box-sizing: content-box;
}

.ec-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.65;
  transition: border-color 0.2s, opacity 0.2s, box-shadow 0.2s;
  background: var(--bg);
}

.ec-thumb.active,
.ec-thumb:hover {
  border-color: var(--purple-accent);
  opacity: 1;
  /* Was `transform: scale(1.05)` — that grew the box past its own edges
     (parent column is exactly 68px wide, same as the thumb), and the
     overflow got hard-clipped by html/body's `overflow-x: clip`, causing
     a visible cut on the left/right sides of the active thumbnail.
     A glow via box-shadow gives the same "selected" emphasis without
     changing the element's box size, so nothing overflows. */
  box-shadow: 0 0 0 3px rgba(200, 182, 255, 0.35), 0 0 14px rgba(200, 182, 255, 0.45);
}

.ec-main-image-container {
  flex: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 350px;
}

.ec-main-image {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ec-main-image:hover {
  transform: scale(1.03);
}

.ec-details-column {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.ec-brand {
  color: var(--purple-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.4rem;
  display: inline-block;
  transition: opacity 0.2s;
}

.ec-brand:hover { opacity: 0.75; }

.ec-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--fg);
}

.ec-reviews {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.ec-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.ec-stars svg {
  width: 1rem;
  height: 1rem;
  fill: #FFA41C;
  color: #FFA41C;
}

.ec-review-count {
  color: var(--purple-light);
  font-size: 0.85rem;
}

.ec-pricing-section {
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.ec-offer-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.ec-offer-price > span:last-child {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.ec-discount-badge {
  background: rgba(204, 12, 57, 0.15);
  color: #FF4D6D;
  border: 1px solid rgba(204, 12, 57, 0.3);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.ec-mrp {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: line-through;
}

.ec-offers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  overflow: visible;
  padding-bottom: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
}

.ec-offers::-webkit-scrollbar { display: none; }

.ec-offer-card {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: rgba(180, 156, 255, 0.05);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.ec-offer-card:hover {
  border-color: var(--purple-accent);
  background: rgba(180, 156, 255, 0.1);
}

.ec-offer-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--purple-light);
}

.ec-offer-title svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.ec-offer-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.ec-specs-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ec-specs-list li {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.55;
  padding-left: 1.2rem;
  position: relative;
}

.ec-specs-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--purple-accent);
  font-weight: 700;
  font-size: 1rem;
}

.ec-warranty-box {
  display: flex;
  gap: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ec-warranty-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--purple-light);
  padding: 0.4rem 1rem;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 130px;
}

.ec-warranty-item:last-child { border-right: none; }

.ec-warranty-item svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--purple-accent);
}

.ec-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ec-btn-cart,
.ec-btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  flex: 1;
  white-space: nowrap;
}

.ec-btn-cart {
  background: #FFD814;
  color: #0F1111;
  box-shadow: 0 2px 8px rgba(255, 216, 20, 0.25);
}

.ec-btn-cart:hover {
  background: #F7CA00;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 216, 20, 0.35);
}

/* Added state — brief confirmation flash, mirrors .product-atc-btn.added */
.ec-btn-cart.added {
  background: #3ddc84;
  color: #0c0816;
  box-shadow: 0 4px 14px rgba(61, 220, 132, 0.35);
}

.ec-btn-buy {
  background: #FFA41C;
  color: #0F1111;
  box-shadow: 0 2px 8px rgba(255, 164, 28, 0.25);
}

.ec-btn-buy:hover {
  background: #FA8900;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 164, 28, 0.35);
}

.ec-btn-cart svg,
.ec-btn-buy svg {
  width: 1.1rem;
  height: 1.1rem;
}

.ec-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  color: var(--fg);
}

.ec-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.ec-specs-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.ec-specs-table th,
.ec-specs-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.ec-specs-table th {
  background: rgba(93, 74, 140, 0.12);
  font-weight: 600;
  width: 32%;
  color: var(--purple-light);
}

@media (max-width: 860px) {
  .ec-layout {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0 2rem;
    width: 100%;
  }

  .ec-gallery-column {
    flex: none;
    width: 100%;
    max-width: 100%;
    position: static;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .ec-thumbnails {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: 0.5rem;
  }

  .ec-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .ec-main-image-container {
    min-height: 240px;
    padding: 0.75rem;
    width: 100%;
  }

  .ec-main-image {
    max-height: 320px;
  }

  .ec-details-column {
    flex: none;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .ec-title {
    font-size: 1.25rem;
    word-break: break-word;
  }

  .ec-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .ec-btn-cart,
  .ec-btn-buy {
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .ec-warranty-box {
    flex-direction: column;
  }

  .ec-warranty-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    min-width: 0;
  }

  .ec-warranty-item:last-child {
    border-bottom: none;
  }

  .ec-offers {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .ec-offer-card {
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .ec-offer-card { min-width: 0; flex: 1 1 100%; padding: 0.7rem 0.75rem; }
  .ec-section-title { font-size: 1.05rem; }
  .gallery-strip-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .ec-offer-title { font-size: 0.78rem; }
  .ec-offer-desc { font-size: 0.74rem; }
  .ec-layout { padding: 1rem 0 1.5rem; gap: 1rem; }
  .ec-main-image-container { min-height: 200px; }
  .ec-offer-price > span:last-child { font-size: 1.5rem; }
}

@media (max-width: 380px) {
  .ec-offer-card { min-width: 0; }
  .ec-specs-table th, .ec-specs-table td { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
}

/* ==== About the Brand: center-align on mobile only ==== */
@media (max-width: 639px) {
  .ec-about-brand-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ec-about-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ec-about-brand-text .detail-badge {
    margin: 0 auto;
  }
}

/* ==== Migrated inline styles from product-detail.html ==== */
.pd-style-1 { padding: 1rem 0; }
.pd-style-2 { display: block; }
.pd-style-3 { min-width:0; overflow:hidden; }
.pd-style-4 { cursor:pointer; }
.pd-style-5 { margin-top:0.3rem; }
.pd-style-6 { margin-bottom:1.5rem; border-top:1px solid var(--border); padding-top:1.5rem; }
.pd-style-7 { font-size:1.1rem; margin-bottom:1rem; }
.pd-style-8 { margin-bottom:2rem; }
.pd-style-9  { padding-top: 2rem; border-top: 1px solid var(--border); overflow: visible; max-width:100%; }
.pd-style-10 { overflow-x:auto; max-width:100%; }
.pd-style-11 { padding: 2.5rem 0; border-top: 1px solid var(--border); overflow: visible; max-width:100%; }
.pd-style-12 { display:flex; gap:1.5rem; align-items:flex-start; padding:1.5rem; border-radius:1rem; border:1px solid var(--border); background:rgba(180,156,255,0.05); }
.pd-style-13 { flex:0 0 auto; }
.pd-style-14 { width:80px; height:80px; object-fit:contain; border-radius:12px; border:1px solid var(--border); padding:8px; background:rgba(255,255,255,0.05); }
.pd-style-15 { font-size:1.2rem; margin-bottom:0.5rem; }
.pd-style-16 { font-size:0.9rem; line-height:1.7; }
.pd-style-17 { display:flex; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
.pd-style-18 { list-style:none; padding:0; display:flex; flex-direction:column; gap:0.75rem; }
.pd-style-19 { display:flex; align-items:center; gap:0.75rem; padding:0.8rem 1rem; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,0.02); font-size:0.95rem; }
.pd-style-20 { color:var(--purple-accent); font-size:1.1rem; }
.pd-style-21 { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:1rem; }
.pd-style-22 { padding:1.5rem; border-radius:1rem; border:1px solid var(--border); }
.pd-style-23 { color:var(--purple-accent); margin-bottom:0.5rem; font-size:1.5rem; }
.pd-style-24 { margin-bottom:0.3rem; }
.pd-style-25 { margin:0; }
.pd-style-26 { display:flex; align-items:flex-start; gap:1rem; margin-bottom:2rem; padding:1.25rem; background:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:1rem; flex-wrap:wrap; }
.pd-style-27 { text-align:center; min-width: 80px; }
.pd-style-28 { font-size:3.5rem; font-weight:700; color:#FFA41C; line-height:1; }
.pd-style-29 { font-size:1.2rem; }
.pd-style-30 { color:#FFA41C; }
.pd-style-31 { flex:1; min-width: 180px; }
.pd-style-32 { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.4rem; font-size:0.85rem; }
.pd-style-33 { white-space:nowrap; min-width: 3.5rem; }
.pd-style-34 { flex:1; height:8px; background:rgba(255,255,255,0.08); border-radius:4px; overflow:hidden; }
.pd-style-35 { height:100%; width:78%; background:#FFA41C; border-radius:4px; }
.pd-style-36 { white-space:nowrap; min-width:3rem; text-align: right; }
.pd-style-37 { height:100%; width:14%; background:#FFA41C; border-radius:4px; }
.pd-style-38 { height:100%; width:5%; background:#FFA41C; border-radius:4px; }
.pd-style-39 { height:100%; width:2%; background:#FFA41C; border-radius:4px; }
.pd-style-40 { height:100%; width:1%; background:#FFA41C; border-radius:4px; }
.pd-style-41 { display:flex; flex-direction:column; gap:1.5rem; }
.pd-style-42 { padding:1.5rem; border:1px solid var(--border); border-radius:1rem; background:rgba(255,255,255,0.02); }
.pd-style-43 { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.75rem; flex-wrap: wrap; }
.pd-style-44 { width:40px; height:40px; border-radius:50%; background:var(--purple-soft); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--purple-accent); font-size:1.1rem; flex-shrink: 0; }
.pd-style-45 { font-weight:600; font-size:0.95rem; }
.pd-style-46 { margin-left:auto; }
.pd-style-47 { margin:0; font-size:0.95rem; line-height:1.65; color:var(--fg); }
.pd-style-48 { color:#555; }
.pd-style-49 { display: none; }
.pd-style-50 { margin-left:.5rem;opacity:.9; }
.pd-style-51 { color:var(--purple-accent);font-weight:600;text-decoration:none; }

/* ==== Product wrapper visibility (migrated from inline styles) ==== */
.pd-wrapper-visible { display: block; }
.pd-wrapper-hidden  { display: none; }

/* ============================================
   PRODUCT DETAIL — INNER PAGE RESPONSIVE
   Tablet (≤ 860px) & Mobile (≤ 639px / ≤ 480px)
   ============================================ */

/* --- Tablet (≤ 860px) ------------------------------------------------ */
@media (max-width: 860px) {

  /* Section spacing */
  .pd-style-9  { padding-top: 1.5rem; }
  .pd-style-11 { padding: 1.75rem 0; }

  /* About the Brand card — stack vertically */
  .pd-style-12 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }
  .pd-style-13 { flex: 0 0 auto; }
  .pd-style-14 { width: 72px; height: 72px; }
  .ec-about-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pd-style-17 { justify-content: center; }

  /* Warranty grid — 2 columns on tablet */
  .pd-style-21 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Specs table — let it scroll */
  .pd-style-10 {
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  /* Customer reviews — stack score + bars */
  .pd-style-26 {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  .pd-style-27 {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  .pd-style-28 { font-size: 2.8rem; }
  .pd-style-31 { min-width: 0; width: 100%; }

  /* What's in the box */
  .pd-style-19 {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  /* Review cards */
  .pd-style-42 {
    padding: 1.25rem;
  }
  .pd-style-43 {
    flex-wrap: nowrap;
  }
  .pd-style-46 {
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Gallery strip on tablet */
  .gallery-strip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  /* ec-actions: keep side-by-side on tablet */
  .ec-actions {
    flex-direction: row;
    gap: 0.75rem;
  }
  .ec-btn-cart,
  .ec-btn-buy {
    flex: 1;
    width: auto;
  }
}

/* --- Mobile (≤ 639px) ------------------------------------------------- */
@media (max-width: 639px) {

  /* Section spacing tighter */
  .pd-style-9  { padding-top: 1.25rem; }
  .pd-style-11 { padding: 1.25rem 0; }

  /* Section titles */
  .ec-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  /* Specs table — ensure readable */
  .ec-specs-table th,
  .ec-specs-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  .ec-specs-table th {
    width: 38%;
  }

  /* About brand card */
  .pd-style-12 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }
  .pd-style-14 { width: 64px; height: 64px; }
  .pd-style-15 { font-size: 1rem; }
  .pd-style-16 { font-size: 0.85rem; }
  .pd-style-17 { justify-content: center; gap: 0.6rem; }

  /* Warranty cards — single column */
  .pd-style-21 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pd-style-22 {
    padding: 1.1rem 1rem;
  }
  .pd-style-23 { font-size: 1.3rem; }
  .pd-style-24 { font-size: 0.95rem; }
  .pd-style-25 { font-size: 0.83rem; }

  /* What's in the box */
  .pd-style-18 { gap: 0.6rem; }
  .pd-style-19 {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    gap: 0.6rem;
  }
  .pd-style-20 { font-size: 1rem; }

  /* Customer reviews — full-width stacked */
  .pd-style-26 {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem;
    margin-bottom: 1.25rem;
  }
  .pd-style-27 {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    width: 100%;
  }
  .pd-style-28 { font-size: 2.4rem; }
  .pd-style-29 { font-size: 1rem; }
  .pd-style-31 { flex: unset; width: 100%; min-width: 0; }
  .pd-style-32 { font-size: 0.8rem; gap: 0.5rem; }
  .pd-style-33 { min-width: 3rem; }
  .pd-style-34 { height: 6px; }

  /* Review cards */
  .pd-style-41 { gap: 1rem; }
  .pd-style-42 {
    padding: 1rem;
  }
  .pd-style-43 {
    flex-wrap: nowrap;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }
  .pd-style-44 {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .pd-style-45 { font-size: 0.9rem; }
  .pd-style-46 { margin-left: auto; }
  .pd-style-47 { font-size: 0.88rem; }

  /* Gallery strip — 2 columns on mobile */
  .gallery-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  /* ec-actions: side by side on mobile too */
  .ec-actions {
    flex-direction: row;
    gap: 0.6rem;
  }
  .ec-btn-cart,
  .ec-btn-buy {
    flex: 1;
    width: auto;
    padding: 0.8rem 0.85rem;
    font-size: 0.88rem;
  }
}

/* --- Very small (≤ 420px) --------------------------------------------- */
@media (max-width: 420px) {

  .pd-style-9  { padding-top: 1rem; }
  .pd-style-11 { padding: 1rem 0; }

  /* Specs table compact */
  .ec-specs-table th,
  .ec-specs-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
  }
  .ec-specs-table th { width: 40%; }

  /* About brand */
  .pd-style-14 { width: 56px; height: 56px; }
  .pd-style-15 { font-size: 0.95rem; }

  /* Warranty */
  .pd-style-22 { padding: 0.9rem 0.85rem; }

  /* In-the-box */
  .pd-style-19 { padding: 0.5rem 0.75rem; font-size: 0.83rem; }

  /* Reviews */
  .pd-style-28 { font-size: 2rem; }
  .pd-style-42 { padding: 0.85rem; }
  .pd-style-47 { font-size: 0.83rem; }

  /* Gallery 1-col on tiny screens */
  .gallery-strip-grid {
    grid-template-columns: 1fr;
  }

  /* Buttons stacked on tiny screens */
  .ec-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ec-btn-cart,
  .ec-btn-buy {
    width: 100%;
    flex: unset;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
}

/* =====================================================================
   Services page: service-detail-card — carousel track compatibility
   The JS carousel wraps .grid-3 children into .svc-carousel-track on
   mobile. The shared rule in style.css sets flex: 0 0 100% for all
   track children, so no extra sizing is needed here.
   We only add text-overflow guards for the card content.
   ===================================================================== */

@media (max-width: 639px) {
  .service-detail-card h3 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .service-detail-card p {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .service-detail-card .btn {
    /* Ensure button text doesn't overflow on very small screens */
    white-space: normal;
    text-align: center;
  }
}
