/* ===================================
   ROBOTSHARE - Products Page CSS
   =================================== */

/* ---------- Page Hero ---------- */
@keyframes phOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.15); }
}
@keyframes phOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 15px) scale(1.1); }
}
@keyframes phLineSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.page-hero {
  padding: 120px 0 44px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1225 0%, #0f1e3a 40%, #162a4a 100%);
  text-align: center;
}

/* Hero with background image */
.page-hero--bg {
  padding: 160px 0 100px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,18,37,0.82) 0%, rgba(15,30,58,0.7) 40%, rgba(22,42,74,0.75) 100%);
  z-index: 1;
}

/* Floating orbs */
.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}
.page-hero__orb--1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(232,91,42,0.2) 0%, transparent 70%);
  top: -120px;
  right: 8%;
  animation: phOrb1 10s ease-in-out infinite;
}
.page-hero__orb--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  bottom: -100px;
  left: 8%;
  animation: phOrb2 8s ease-in-out infinite;
}

/* Decorative sliding lines */
.page-hero__line {
  position: absolute;
  height: 1px;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
}
.page-hero__line::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,91,42,0.4), transparent);
  animation: phLineSlide 4s linear infinite;
}
.page-hero__line--1 {
  top: 40%;
  left: 0;
}
.page-hero__line--2 {
  top: 65%;
  left: 0;
}
.page-hero__line--2::after {
  animation-delay: -2s;
  animation-duration: 5s;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero__breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.4);
}
.page-hero__breadcrumb a:hover {
  color: var(--color-primary-light);
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.page-hero__subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- Catalog ---------- */
.catalog {
  padding: 60px 0 120px;
  background: var(--color-bg-section);
}

.catalog__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  padding: 24px 0;
  position: sticky;
  top: 72px;
  z-index: 50;
  background: var(--color-bg-section);
}

.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 4px;
}

.rental__cat.active .cat-count {
  background: rgba(255,255,255,0.2);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Override reveal animation for catalog cards - too many cards for staggered reveal */
.catalog__grid .rental-card.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: 0s !important;
}

/* Product card on products page - add description */
.catalog .rental-card__desc {
  font-size: 0.8rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-top: 8px;
}

/* ---------- Shipping ---------- */
.catalog__shipping {
  margin-top: 60px;
}

.catalog__shipping-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 32px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  font-size: 0.9rem;
  color: var(--color-gray-600);
}

.catalog__shipping-inner svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.catalog__shipping-inner strong {
  color: var(--color-primary);
}

/* ---------- Nav Active State ---------- */
.nav-active {
  color: var(--color-white) !important;
}
.nav-active::after {
  width: 100% !important;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

.product-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

.product-hero__breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.product-hero__breadcrumb a {
  color: rgba(255,255,255,0.5);
}
.product-hero__breadcrumb a:hover {
  color: var(--color-primary-light);
}

.product__content {
  padding: 60px 0 120px;
  background: var(--color-white);
}

.product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ---------- Gallery ---------- */
.product__gallery {
  position: sticky;
  top: 96px;
}

.product__main-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  margin-bottom: 16px;
}

.product__thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product__thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.product__thumbnail:hover,
.product__thumbnail.active {
  border-color: var(--color-primary);
}

/* ---------- Details ---------- */
.product__details h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.product__category-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(232, 91, 42, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.product__description {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ---------- Pricing Section ---------- */
.product__pricing-section {
  margin-bottom: 32px;
}

.product__pricing-section h3,
.product__included-section h3,
.product__specs h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product__pricing-section h3 svg,
.product__included-section h3 svg,
.product__specs h3 svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* -- Plan cards (premium design) -- */
@keyframes ppPopIn {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ppShine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.pp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pp__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px 24px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1e2330 0%, #2a3040 50%, #1e2330 100%);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  animation: ppPopIn .5s cubic-bezier(.22,.61,.36,1) both;
  cursor: default;
  overflow: hidden;
  color: #fff;
}
.pp__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.pp__card:hover {
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  transform: translateY(-4px);
}

/* ── BEST card ── */
.pp__card--best {
  background: linear-gradient(160deg, #f37010 0%, #e85d04 40%, #ff8534 100%);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 8px 32px rgba(243,112,16,.3), 0 0 60px rgba(243,112,16,.08);
  transform: scale(1.03);
}
.pp__card--best::before {
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.pp__card--best:hover {
  box-shadow: 0 16px 48px rgba(243,112,16,.4), 0 0 80px rgba(243,112,16,.12);
  transform: scale(1.03) translateY(-4px);
}

/* ── Ribbon ── */
.pp__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 5px 14px 5px 12px;
  border-radius: 0 18px 0 14px;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 3px;
}
.pp__ribbon-star {
  font-size: 0.7rem;
  color: #ffd700;
}

/* ── Label badge ── */
.pp__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 3px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
}
.pp__card--best .pp__label {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
}

/* ── Icon ── */
.pp__card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
  color: rgba(255,255,255,.7);
}
.pp__card-icon svg {
  width: 36px;
  height: 36px;
}
.pp__card--best .pp__card-icon {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

/* ── Plan name ── */
.pp__name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
}
.pp__card--best .pp__name {
  color: #fff;
}

/* ── Divider ── */
.pp__divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 1px;
  margin: 12px 0;
}
.pp__card--best .pp__divider {
  background: rgba(255,255,255,.3);
}

/* ── Price ── */
.pp__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pp__price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.pp__card--best .pp__price {
  font-size: 1.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.pp__note {
  font-size: 0.68rem;
  color: rgba(255,255,255,.45);
  font-weight: 400;
}
.pp__card--best .pp__note {
  color: rgba(255,255,255,.7);
}

.product__plan-note {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  margin-top: 8px;
  line-height: 1.6;
}

.product__extension {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.product__extension-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.product__extension-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
}

/* Additional Costs */
.product__additional-costs {
  margin-top: 16px;
  padding: 16px;
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
}

.product__additional-costs h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-gray-700);
}

.product__additional-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.85rem;
  color: var(--color-gray-600);
}

.product__additional-row:last-child {
  border-bottom: none;
}

.product__additional-row small {
  color: var(--color-gray-400);
  font-size: 0.75rem;
}

.product__note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* ---------- Included Items Section ---------- */
.product__included-section {
  margin-bottom: 32px;
}

.product__included-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product__included-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-gray-700);
  padding: 8px 12px;
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
}

.product__included-list li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Specs ---------- */
.product__specs {
  margin-bottom: 32px;
}

.product__spec-table {
  width: 100%;
}

.product__spec-table tr {
  border-bottom: 1px solid var(--color-gray-100);
}

.product__spec-table td {
  padding: 12px 0;
  font-size: 0.9rem;
}

.product__spec-table td:first-child {
  font-weight: 600;
  color: var(--color-gray-800);
  width: 35%;
}

.product__spec-table td:last-child {
  color: var(--color-gray-600);
}

/* ---------- Actions ---------- */
.product__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ---------- Insurance & Shipping Notes ---------- */
.product__insurance {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.product__insurance > svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.product__insurance strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.product__insurance p {
  font-size: 0.8rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.product__shipping-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  background: rgba(232, 91, 42, 0.05);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(232, 91, 42, 0.2);
}

.product__shipping-note > svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.product__shipping-note p {
  font-size: 0.8rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

.product__shipping-note strong {
  color: var(--color-primary);
}

/* ---------- Rental Benefits (WHY ROBOTSHARE) ---------- */
@keyframes rbFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rental-benefits { padding: 0; }

.rb {
  background: linear-gradient(135deg, #0a1628 0%, #162a4a 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

/* decorative orb */
.rb::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,112,16,.12) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.rb__head { text-align: center; margin-bottom: 44px; }

.rb__sup {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--color-primary);
  margin-bottom: 10px;
  border: 1px solid rgba(243,112,16,.3);
  padding: 4px 14px;
  border-radius: 20px;
}

.rb__h {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.6;
}

.rb__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.rb__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  animation: rbFadeUp .5s ease both;
  transition: background .25s, border-color .25s, transform .25s;
}

.rb__item:nth-child(1) { animation-delay: 0s; }
.rb__item:nth-child(2) { animation-delay: .07s; }
.rb__item:nth-child(3) { animation-delay: .14s; }
.rb__item:nth-child(4) { animation-delay: .21s; }

.rb__item:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(243,112,16,.25);
  transform: translateY(-2px);
}

.rb__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(243,112,16,.12);
}

.rb__body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.rb__body p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

.rb__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Related Products ---------- */
.related {
  padding: 80px 0;
  background: var(--color-bg-section);
}

.related .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product__gallery {
    position: static;
  }

  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product__included-list {
    grid-template-columns: 1fr 1fr;
  }

  .rb__items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 105px 0 32px;
  }

  .page-hero__title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .catalog__filter {
    gap: 6px;
    top: 72px;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .catalog__shipping-inner {
    flex-direction: column;
    text-align: center;
  }

  .related__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .product__included-list {
    grid-template-columns: 1fr;
  }

  .pp { gap: 8px; }
  .pp__card { padding: 20px 12px 18px; border-radius: 14px; }
  .pp__card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; }
  .pp__card-icon svg { width: 28px; height: 28px; }
  .pp__label { font-size: 0.55rem; padding: 2px 8px; margin-bottom: 8px; }
  .pp__name { font-size: 0.85rem; }
  .pp__divider { width: 30px; margin: 8px 0; }
  .pp__price { font-size: 1.1rem; }
  .pp__card--best .pp__price { font-size: 1.2rem; }
  .pp__card--best { transform: scale(1.02); }
  .pp__card--best:hover { transform: scale(1.02) translateY(-3px); }

  .product__additional-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .rb__items {
    grid-template-columns: 1fr;
  }

  .rb__h {
    font-size: 1.2rem;
  }

  .rb__item {
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .catalog__filter {
    gap: 4px;
  }

  .rental__cat {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .cat-count {
    display: none;
  }

  .product__thumbnails {
    gap: 6px;
  }

  .product__thumbnail {
    width: 60px;
    height: 45px;
  }
}
