/* =============================================
   Fast Cyber — Product Page Styles
   ============================================= */

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: .625rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--gray-500);
}
.breadcrumb-link {
  color: var(--gray-500);
  transition: color .15s;
}
.breadcrumb-link:hover { color: var(--primary); }
.breadcrumb-current { color: var(--gray-700); font-weight: 500; }
.breadcrumb svg { color: var(--gray-400); flex-shrink: 0; }

/* ---- Product Section ---- */
.product-section {
  padding: 2rem 0 3rem;
}
@media (min-width: 768px) {
  .product-section { padding: 2.5rem 0 4rem; }
}

/* ---- Two-col grid ---- */
.product-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ---- Left col ---- */
.product-left { display: flex; flex-direction: column; gap: 1.25rem; }

.product-img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-img-wrap:hover img { transform: scale(1.04); }

/* Product description desktop (shown only on lg+) */
.product-description-desktop { display: none; }
@media (min-width: 1024px) { .product-description-desktop { display: block; } }

/* Product description mobile (shown only below lg) */
.product-description-mobile { display: block; }
@media (min-width: 1024px) { .product-description-mobile { display: none; } }

/* ---- Right col ---- */
.product-right { display: flex; flex-direction: column; gap: 1.25rem; }

.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}
@media (min-width: 640px) { .product-title { font-size: 1.6rem; } }

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}
.product-price-kes {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.product-price-usd {
  font-size: .85rem;
  color: var(--gray-500);
}

.product-short-desc {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---- Section wrapper ---- */
.prod-section { display: flex; flex-direction: column; gap: .5rem; }

.prod-section-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.prod-size-selected-label {
  font-weight: 400;
  color: var(--gray-500);
  font-size: .8rem;
}
.prod-optional-tag {
  font-size: .7rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 9999px;
  padding: .1rem .5rem;
}

/* ---- Size grid ---- */
.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
@media (min-width: 400px) { .size-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .size-grid { grid-template-columns: repeat(3, 1fr); } }

.size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .75rem .5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.size-card:hover {
  border-color: var(--primary);
  background: #f0f4ff;
}
.size-card.active {
  border-color: var(--primary);
  border-width: 2px;
  background: #e8f0fe;
}
.size-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}
.size-card.active .size-card-name { color: var(--primary); }
.size-card-price {
  font-size: .75rem;
  color: var(--gray-500);
}
.size-card.active .size-card-price { color: var(--primary); }

/* ---- Quantity control ---- */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gray-50);
  border: none;
  color: var(--gray-700);
  transition: background .15s;
}
.qty-btn:hover { background: var(--gray-200); color: var(--gray-900); }
.qty-input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--gray-200);
  border-right: 1.5px solid var(--gray-200);
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Delivery accordion ---- */
.delivery-accordion {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.delivery-accordion[open] { border-color: var(--gray-300); }

/* ---- Generic product accordion ---- */
.prod-accordion {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.prod-accordion[open] { border-color: var(--gray-300); }
.prod-accordion-summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  list-style: none;
  user-select: none;
  background: var(--gray-50);
}
.prod-accordion-summary::-webkit-details-marker { display: none; }
.prod-accordion-summary .acc-chevron {
  margin-left: auto;
  transition: transform .2s;
  flex-shrink: 0;
}
details[open] .prod-accordion-summary .acc-chevron,
.prod-accordion[open] .prod-accordion-summary svg:last-child { transform: rotate(180deg); }

.prod-accordion-body {
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}

/* Delivery zones inside accordion */
.delivery-zones { display: flex; flex-direction: column; gap: .5rem; }
.delivery-zone-row {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--gray-600);
  padding: .375rem 0;
}
.delivery-zone-row svg { color: var(--gray-400); flex-shrink: 0; }
.delivery-zone-row span:nth-child(2) { flex: 1; }
.delivery-price { font-weight: 600; color: var(--gray-800); white-space: nowrap; }
.delivery-free svg { color: #16a34a; }
.delivery-price-free { color: #16a34a; }

/* Product details table */
.prod-details-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.prod-details-table tr { border-bottom: 1px solid var(--gray-100); }
.prod-details-table tr:last-child { border-bottom: none; }
.prod-details-table td { padding: .5rem .25rem; vertical-align: top; }
.prod-details-table td:first-child {
  font-weight: 600;
  color: var(--gray-600);
  width: 35%;
  padding-right: 1rem;
}
.prod-details-table td:last-child { color: var(--gray-700); }

/* ---- Turnaround grid ---- */
.turnaround-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.turnaround-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .75rem .5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.turnaround-card:hover {
  border-color: var(--primary);
  background: #f0f4ff;
}
.turnaround-card.active {
  border-color: var(--primary);
  border-width: 2px;
  background: #e8f0fe;
}
.turnaround-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-800);
}
.turnaround-card.active .turnaround-name { color: var(--primary); }
.turnaround-days { font-size: .7rem; color: var(--gray-500); }
.turnaround-price {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-700);
}
.turnaround-card.active .turnaround-price { color: var(--primary); }

/* ---- File upload ---- */
.file-drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
}
.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--primary);
  background: #f0f4ff;
}
.file-drop-zone svg { color: var(--gray-400); margin-bottom: .25rem; }
.file-drop-title { font-size: .9rem; font-weight: 600; color: var(--gray-700); }
.file-drop-sub { font-size: .8rem; color: var(--gray-500); }
.file-browse-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.file-drop-hint { font-size: .75rem; color: var(--gray-400); }

.file-selected {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: #166534;
  margin-top: .5rem;
}
.file-selected svg { color: #16a34a; flex-shrink: 0; }
.file-selected span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-remove-btn {
  background: none;
  border: none;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;
  border-radius: .25rem;
}
.file-remove-btn:hover { background: #dcfce7; }

/* ---- Order summary box ---- */
.order-summary-box {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.order-summary-rows { display: flex; flex-direction: column; gap: .375rem; }
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  color: var(--gray-600);
}
.order-summary-row span:last-child { font-weight: 600; color: var(--gray-800); }
.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .75rem;
  border-top: 1.5px solid var(--gray-200);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.order-total-amount { color: var(--primary); font-size: 1.25rem; }

.order-add-cart {
  width: 100%;
  font-size: .95rem;
  padding: .875rem 1.5rem;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .875rem 1.5rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: .95rem;
  transition: background .15s;
}
.btn-whatsapp:hover { background: #20bd5a; color: #fff; }

/* ---- Trust badges ---- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--gray-600);
  font-weight: 500;
}
.trust-badge svg { color: var(--primary); flex-shrink: 0; }

/* ---- Template downloads ---- */
.template-section {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.template-label {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
}
.template-label svg { color: var(--gray-500); }
.template-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.template-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .45rem .875rem;
  border-radius: var(--radius-md);
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid;
  transition: all .15s;
}
.template-psd { border-color: #1e73be; color: #1e73be; }
.template-psd:hover { background: #1e73be; color: #fff; }
.template-ai { border-color: #ff7c00; color: #ff7c00; }
.template-ai:hover { background: #ff7c00; color: #fff; }
.template-indd { border-color: #9b1e8e; color: #9b1e8e; }
.template-indd:hover { background: #9b1e8e; color: #fff; }

/* ---- Product FAQ ---- */
.product-faq { margin-top: .5rem; }
.product-faq-inner {
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: #eff6ff;
}
.product-faq-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: .75rem;
}
.prod-faq-item {
  border-bottom: 1px solid #bfdbfe;
}
.prod-faq-item:last-child { border-bottom: none; }
.prod-faq-item .faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .75rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  gap: .5rem;
  cursor: pointer;
}
.prod-faq-item .faq-btn svg { flex-shrink: 0; transition: transform .2s; }
.prod-faq-item.open .faq-btn svg { transform: rotate(180deg); }
.prod-faq-item .faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.prod-faq-item.open .faq-body { max-height: 500px; }
.prod-faq-item .faq-body p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.65;
  padding-bottom: .875rem;
}

/* ---- Related products ---- */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.related-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

.related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  transition: all .2s;
  color: inherit;
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}
.related-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-50);
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-info {
  padding: .75rem .875rem .25rem;
  flex: 1;
}
.related-card-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
  margin-bottom: .2rem;
}
.related-card-price {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
}
.related-card-btn {
  margin: .5rem .875rem .875rem;
  padding: .5rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s;
}
.related-card:hover .related-card-btn { background: #0044dd; }

/* ---- Mega menu panel (full-width, anchored to header) ---- */
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  padding: 1.5rem 0 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.mega-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.site-header { overflow: visible; }

/* inner layout */
.mega-body { display: grid; grid-template-columns: 1fr 160px; gap: 1.5rem; align-items: start; }
.mega-cols { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; row-gap: 1.25rem; }
.mega-col { padding: 0 .625rem; border-right: 1px solid var(--gray-100); min-width: 0; }
.mega-col:nth-child(5n) { border-right: none; }
.mega-col:last-child { border-right: none; }

.mega-col-title {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.mega-col-title:hover { color: #0044cc; }
.mega-col-links { list-style: none; padding: 0; margin: 0 0 .5rem; }
.mega-col-links li a {
  display: block;
  padding: .2rem 0;
  font-size: .8rem;
  color: var(--gray-600);
  transition: color .12s;
  line-height: 1.4;
}
.mega-col-links li a:hover { color: var(--gray-900); }
.mega-view-all {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  transition: color .12s;
}
.mega-view-all:hover { color: #0044cc; }

/* quick links sidebar */
.mega-sidebar {
  width: 170px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--gray-100);
}
.mega-sidebar-title { font-size: .7rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .125rem; }
.mega-btn-all {
  display: flex; align-items: center; justify-content: center;
  padding: .5rem .75rem;
  background: var(--primary); color: #fff;
  border-radius: .5rem; font-size: .8rem; font-weight: 700;
  transition: background .12s;
}
.mega-btn-all:hover { background: #0044cc; color: #fff; }
.mega-sidebar-link {
  font-size: .8rem; font-weight: 500;
  color: var(--gray-700); padding: .25rem 0;
  transition: color .12s;
}
.mega-sidebar-link:hover { color: var(--primary); }
.mega-sidebar-help { font-size: .75rem; color: var(--gray-400); margin-top: .25rem; }
.mega-sidebar-help strong { color: var(--gray-700); }

/* more categories footer */
.mega-more-row {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: .625rem; flex-wrap: wrap;
}
.mega-more-label { font-size: .75rem; font-weight: 700; color: var(--gray-400); white-space: nowrap; }
.mega-more-link { font-size: .8rem; color: var(--gray-600); transition: color .12s; }
.mega-more-link:hover { color: var(--primary); }

/* nav-dropdown button active state when mega is open */
.nav-dropdown-btn.mega-active {
  background: var(--gray-100);
  color: var(--gray-900);
}
.nav-dropdown-btn.mega-active svg { transform: rotate(180deg); }
.nav-dropdown-btn svg { transition: transform .2s; }

/* ---- Cart Toast ---- */
.cart-toast {
  position: fixed; bottom: 6rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #111827; color: #fff; padding: .75rem 1.5rem;
  border-radius: 2rem; font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; gap: .625rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cart-toast svg { color: #22c55e; flex-shrink: 0; }
.cart-toast a { color: #93c5fd; text-decoration: underline; margin-left: .25rem; }
