/* ======================================================
   URUN DETAY - Minimal Redesign
   ====================================================== */

/* -- Container -- */
.ur-container {
  max-width: 1499px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Hero -- */
.ur-detail-hero {
  background: #fff;
  padding: 104px 0 48px;
}
.ur-hero-bg { display: none; }

/* -- Breadcrumb -- */
.ur-pdp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
  font-size: 13px;
  color: #94a3b8;
}
.ur-pdp-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.ur-pdp-breadcrumb a:hover { color: #d4af37; }
.ur-pdp-breadcrumb i { color: #cbd5e1; font-size: 14px; }
.ur-pdp-breadcrumb span { color: #1e293b; font-weight: 600; }

/* -- Alert -- */
.ur-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #16a34a;
}
.ur-alert i { font-size: 18px; }

/* -- Main Grid -- */
.ur-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* -- Gallery -- */
.ur-gallery {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.ur-gallery-main {
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
#urMainImg[data-ur-gallery-open] { cursor: zoom-in; }
.ur-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
  transition: transform .4s ease;
}
.ur-gallery-main:hover img { transform: scale(1.02); }
.ur-gallery-main-empty { color: #d1d5db; }
.ur-gallery-main-empty i { font-size: 64px; }
.ur-gallery-zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(15,23,42,.65); color: #fff;
  border-radius: 999px; padding: 7px 12px;
  font-size: 11px; font-weight: 700; cursor: pointer; z-index: 3;
}
.ur-gallery-zoom:hover { background: rgba(15,23,42,.85); }
.ur-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #1e293b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.ur-gallery-nav i { font-size: 20px; }
.ur-gallery-nav--prev { left: 10px; }
.ur-gallery-nav--next { right: 10px; }
.ur-gallery-nav:hover { border-color: #d4af37; color: #b8941f; }
.ur-gallery-thumbs {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid #f1f5f9; overflow-x: auto; background: #fff;
}
.ur-gallery-thumb {
  flex-shrink: 0; width: 72px; height: 72px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: #f8fafc; cursor: pointer; padding: 0;
}
.ur-gallery-thumb:hover { border-color: rgba(212,175,55,.4); }
.ur-gallery-thumb.active { border-color: #d4af37; }
.ur-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }

/* -- Product Info -- */
.ur-detail-info {
  display: flex; flex-direction: column; gap: 18px; padding-top: 4px;
}
.ur-pdp-category {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #b8941f;
  letter-spacing: .08em; text-transform: uppercase;
}
.ur-detail-title {
  font-size: 28px; font-weight: 800; color: #0f172a;
  line-height: 1.22; margin: 0; letter-spacing: -.01em;
}
.ur-pdp-rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ur-pdp-stars { display: inline-flex; gap: 2px; color: #f59e0b; }
.ur-pdp-stars i { font-size: 16px; }
.ur-pdp-rating-text { font-size: 13px; color: #6b7280; }
.ur-pdp-rating-link {
  border: none; background: transparent; color: #b8941f;
  font-size: 13px; font-weight: 700; cursor: pointer; padding: 0;
}
.ur-pdp-rating-link:hover { text-decoration: underline; }

/* -- Price -- */
.ur-pdp-price-wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 18px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
}
.ur-detail-price { font-size: 34px; font-weight: 800; color: #0f172a; line-height: 1; }
.ur-detail-price--free { color: #0D9488; font-size: 26px; }
.ur-pdp-old-price { font-size: 20px; font-weight: 600; color: #9ca3af; text-decoration: line-through; }
.ur-pdp-discount {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; background: #fef2f2; color: #ef4444; font-size: 12px; font-weight: 700;
}
.ur-pdp-saving { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #16a34a; }
.ur-detail-desc { font-size: 15px; color: #475569; line-height: 1.75; margin: 0; }
.ur-detail-desc p { margin: 0 0 8px; }
.ur-detail-desc p:last-child { margin-bottom: 0; }
.ur-detail-desc strong, .ur-detail-desc b { font-weight: 700; color: #334155; }
.ur-detail-desc ul, .ur-detail-desc ol { margin: 6px 0 0; padding-left: 1.2em; }

.ur-tab-content-text,
.ur-tab-content-text p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: #334155; }
.ur-rich-text h2, .ur-rich-text h3, .ur-rich-text h4 { margin: 18px 0 10px; color: #0f172a; font-weight: 700; line-height: 1.35; }
.ur-rich-text h2 { font-size: 22px; }
.ur-rich-text h3 { font-size: 18px; }
.ur-rich-text h4 { font-size: 16px; }
.ur-rich-text strong, .ur-rich-text b { font-weight: 700; color: #0f172a; }
.ur-rich-text ul, .ur-rich-text ol { margin: 0 0 12px; padding-left: 1.35em; }
.ur-rich-text li { margin: 4px 0; }
.ur-rich-text a { color: #b8941f; text-decoration: underline; }
.ur-rich-text hr { border: 0; border-top: 1px solid #e2e8f0; margin: 16px 0; }
.ur-pdp-stock {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.ur-pdp-stock.is-in  { color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0; }
.ur-pdp-stock.is-out { color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; }

/* -- Buy Card -- */
.ur-buy-card { border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.ur-buy-inner { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.ur-buy-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ur-buy-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: rgba(212,175,55,.1); color: #9a7a14;
  font-size: 11px; font-weight: 700;
}
.ur-buy-subtle { font-size: 12px; color: #94a3b8; }
.ur-buy-form { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: stretch; }
.ur-qty {
  display: grid; grid-template-columns: 34px 1fr 34px;
  border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden;
  background: #fff; min-height: 48px; width: 130px;
}
.ur-qty-btn {
  border: none; background: #f8fafc; color: #0f172a;
  font-size: 20px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ur-qty-btn:hover { background: #e2e8f0; }
.ur-qty-input {
  border: none; text-align: center; font-size: 15px;
  font-weight: 700; color: #0f172a; background: #fff; min-width: 0;
}
.ur-buy-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px; border-radius: 10px; border: none;
  background: #1f2937; color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.ur-buy-btn:hover { background: #d4af37; }
.ur-buy-btn i { font-size: 16px; }
.ur-buy-btn--disabled { background: #e5e7eb; cursor: not-allowed; pointer-events: none; }
.ur-buy-btn--disabled span { color: #9ca3af; }
.ur-fav-btn {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ur-fav-btn:hover { border-color: #d4af37; color: #0f172a; }
.ur-buy-note-wrap { padding-top: 10px; border-top: 1px solid #f1f5f9; }
.ur-buy-note { font-size: 12px; color: #94a3b8; line-height: 1.6; }

/* -- Perks -- */
.ur-pdp-perks {
  border-radius: 12px; border: 1px solid #f1f5f9;
  padding: 14px; display: flex; flex-direction: column; gap: 4px; background: #fafaf8;
}
.ur-pdp-perk { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 8px; }
.ur-pdp-perk > i {
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(212,175,55,.1); color: #b8941f;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.ur-pdp-perk strong { display: block; font-size: 14px; color: #0f172a; line-height: 1.3; }
.ur-pdp-perk span   { display: block; margin-top: 2px; font-size: 12px; color: #64748b; }

/* -- Lightbox -- */
.ur-lightbox { position: fixed; inset: 0; z-index: 1200; }
.ur-lightbox-backdrop { position: absolute; inset: 0; border: none; background: rgba(15,23,42,.75); cursor: zoom-out; }
.ur-lightbox-dialog {
  position: relative; z-index: 1; width: min(90vw, 600px);
  margin: 4vh auto; background: #fff; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: hidden;
}
.ur-lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ur-lightbox-stage {
  position: relative; background: #f8fafc; min-height: min(55vh, 420px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ur-lightbox-stage img { width: 100%; height: auto; max-height: calc(min(55vh, 420px) - 40px); object-fit: contain; }
.ur-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border: 1px solid #e2e8f0; border-radius: 999px; background: rgba(255,255,255,.96); color: #0f172a;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ur-lightbox-nav--prev { left: 14px; }
.ur-lightbox-nav--next { right: 14px; }
.ur-lightbox-strip { display: flex; gap: 8px; padding: 12px 16px 16px; overflow-x: auto; background: #fff; }
.ur-lightbox-thumb {
  padding: 0; width: 68px; min-width: 68px; height: 68px;
  border-radius: 12px; border: 2px solid transparent; overflow: hidden; background: #f8fafc; cursor: pointer;
}
.ur-lightbox-thumb.active { border-color: #d4af37; }
.ur-lightbox-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* -- Tabs -- */
.ur-tabs-section { padding: 0 0 70px; background: #fff; }
.ur-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; overflow-x: auto; scrollbar-width: none; }
.ur-tabs::-webkit-scrollbar { display: none; }
.ur-tab-btn {
  border: none; background: transparent; border-bottom: 2px solid transparent;
  color: #64748b; padding: 13px 16px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ur-tab-btn i { margin-right: 6px; }
.ur-tab-btn.is-active { color: #b8941f; border-bottom-color: #d4af37; }
.ur-tab-panel {
  display: none; background: #fff; border: 1px solid #e5e7eb; border-top: none;
  border-radius: 0 0 12px 12px; padding: 24px;
}
.ur-tab-panel.is-active { display: block; }
.ur-tab-panel h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: #0f172a; }
.ur-tab-content-text,
.ur-tab-content-text p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: #334155; }
.ur-tab-empty { margin: 0; font-size: 15px; color: #64748b; }
.ur-review-list { display: flex; flex-direction: column; gap: 10px; }
.ur-review-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; background: #f8fafc; }
.ur-review-item header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ur-review-item strong { font-size: 14px; color: #0f172a; }
.ur-review-item header span { font-size: 12px; color: #64748b; }
.ur-review-item p { margin: 0; font-size: 14px; line-height: 1.6; color: #334155; }

/* -- CTA -- */
.ur-detail-cta { padding: 0 0 70px; background: #fff; }
.ur-cta-box { border: 1px solid #f1f5f9; border-radius: 20px; overflow: hidden; background: #fafaf8; }
.ur-cta-inner { padding: 50px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ur-cta-icon { font-size: 36px; color: #d4af37; }
.ur-cta-title { font-size: 28px; font-weight: 700; color: #0f172a; margin: 0; }
.ur-cta-desc { font-size: 15px; color: #64748b; margin: 0; max-width: 400px; }
.ur-grad-text { color: #d4af37; }
.ur-btn-gradient {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; background: #1f2937; color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s;
}
.ur-btn-gradient:hover { background: #d4af37; color: #fff; }

/* -- Scroll Reveal -- */
.ur-js .ur-rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.ur-js .ur-rv.in { opacity: 1; transform: translateY(0); }

/* -- Responsive -- */
@media(max-width:960px) {
  .ur-detail-hero { padding: 90px 0 40px; }
  .ur-detail-grid { grid-template-columns: 1fr; gap: 28px; max-width: 560px; margin: 0 auto; }
  .ur-buy-form { grid-template-columns: 1fr; }
  .ur-buy-topline { flex-direction: column; align-items: flex-start; }
}
@media(max-width:600px) {
  .ur-detail-hero { padding: 80px 0 28px; }
  .ur-container { padding: 0 16px; }
  .ur-detail-title { font-size: 24px; }
  .ur-detail-price { font-size: 30px; }
  .ur-tab-panel { padding: 16px; }
  .ur-cta-inner { padding: 36px 20px; }
  .ur-cta-title { font-size: 22px; }
}
