/* ============================================
   ABHIRAJ TOYS — Page-Specific Styles
   ============================================ */

/* ---- Product Detail Page ---- */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--nav-height) + 20px); }
.product-main-img {
  background: var(--bg-light); border-radius: var(--radius-xl);
  height: 420px; display: flex; align-items: center; justify-content: center;
  font-size: 140px; margin-bottom: 16px;
  border: 2px solid var(--border); transition: var(--transition);
  overflow: hidden;
}
.product-thumbnails { display: flex; gap: 12px; }
.product-thumb {
  background: var(--bg-light); border-radius: var(--radius-md);
  width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; border: 2px solid var(--border); cursor: pointer; transition: var(--transition);
}
.product-thumb.active, .product-thumb:hover { border-color: var(--primary); background: rgba(255,107,53,0.05); }

.product-info h1 { font-size: 30px; margin-bottom: 12px; color: var(--text-dark); }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.product-price-block { margin-bottom: 20px; }
.product-price-block .current { font-size: 36px; font-weight: 900; color: var(--primary); }
.product-price-block .original { font-size: 18px; color: var(--text-light); text-decoration: line-through; margin-left: 8px; }
.product-price-block .discount { font-size: 14px; font-weight: 800; color: var(--accent-teal); margin-left: 8px; }
.product-desc { color: var(--text-mid); font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
.product-options { margin-bottom: 24px; }
.product-options h4 { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; font-family: var(--font-body); }
.color-swatches { display: flex; gap: 10px; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: var(--transition);
}
.color-swatch.active, .color-swatch:hover { border-color: var(--primary); transform: scale(1.15); }
.size-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-opt {
  padding: 8px 16px; border-radius: 50px;
  border: 2px solid var(--border); cursor: pointer; font-weight: 700; font-size: 14px;
  transition: var(--transition); color: var(--text-dark);
}
.size-opt.active, .size-opt:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,107,53,0.05); }
.product-qty { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-qty-control { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: 50px; overflow: hidden; }
.product-qty-btn {
  width: 44px; height: 44px; border: none; background: var(--bg-light);
  cursor: pointer; font-size: 20px; font-weight: 700; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; color: var(--text-dark);
}
.product-qty-btn:hover { background: var(--primary); color: white; }
.product-qty-num { font-size: 16px; font-weight: 800; padding: 0 20px; color: var(--text-dark); min-width: 60px; text-align: center; }
.product-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.product-actions .btn-primary { flex: 1; justify-content: center; padding: 16px; }
.product-actions .btn-outline { padding: 16px 20px; }
.product-features { background: var(--bg-light); border-radius: var(--radius-md); padding: 20px; }
.product-features h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; font-family: var(--font-body); }
.product-feature-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-mid); margin-bottom: 8px; }
.product-feature-item .check { color: var(--accent-teal); font-size: 16px; }

/* ---- Checkout Page ---- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.checkout-form-card {
  background: white; border-radius: var(--radius-xl);
  border: 1.5px solid var(--border); overflow: hidden;
}
.checkout-form-card .card-header {
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  background: var(--bg-light); display: flex; align-items: center; gap: 12px;
}
.card-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-weight: 900; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.checkout-form-card .card-header h3 { font-size: 18px; font-family: var(--font-body); font-weight: 800; }
.checkout-form-card .card-body { padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 14px; color: var(--text-dark);
  transition: var(--transition); outline: none; background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-method {
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 20px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 16px;
}
.payment-method.active, .payment-method:hover { border-color: var(--primary); background: rgba(255,107,53,0.03); }
.payment-method input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-method .icon { font-size: 24px; }
.payment-method .info { flex: 1; }
.payment-method .name { font-weight: 800; font-size: 14px; }
.payment-method .desc { font-size: 12px; color: var(--text-light); }

/* Order Summary */
.order-summary {
  background: white; border-radius: var(--radius-xl);
  border: 1.5px solid var(--border); overflow: hidden;
  position: sticky; top: calc(var(--nav-height) + 20px);
}
.order-summary-header { padding: 20px 24px; background: var(--bg-dark); color: white; }
.order-summary-header h3 { font-size: 18px; font-family: var(--font-body); font-weight: 800; }
.order-summary-items { padding: 16px 24px; border-bottom: 1px solid var(--border); max-height: 300px; overflow-y: auto; }
.summary-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(232,224,255,0.5); }
.summary-item:last-child { border-bottom: none; }
.summary-item-img { width: 56px; height: 56px; background: var(--bg-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.summary-item-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--text-dark); }
.summary-item-price { font-size: 14px; font-weight: 900; color: var(--primary); }
.order-summary-totals { padding: 20px 24px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.summary-row .label { color: var(--text-mid); font-weight: 600; }
.summary-row .value { font-weight: 800; color: var(--text-dark); }
.summary-row.total { padding-top: 12px; border-top: 2px solid var(--border); font-size: 18px; margin-top: 4px; }
.summary-row.total .label { color: var(--text-dark); font-weight: 900; }
.summary-row.total .value { color: var(--primary); font-size: 22px; }
.summary-coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.summary-coupon input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 50px; font-family: var(--font-body); font-size: 13px; outline: none; }
.summary-coupon input:focus { border-color: var(--primary); }
.summary-coupon button { padding: 10px 16px; border-radius: 50px; background: var(--bg-dark); color: white; border: none; font-family: var(--font-body); font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition); }
.summary-coupon button:hover { background: var(--primary); }
.secure-badges { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.secure-badge { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-light); font-weight: 600; }

/* ---- Confirmation / Decline Pages ---- */
.confirm-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.confirm-card {
  background: white; border-radius: var(--radius-xl);
  border: 1.5px solid var(--border); padding: 60px 48px;
  text-align: center; max-width: 560px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.confirm-icon { font-size: 80px; margin-bottom: 20px; animation: confirmPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes confirmPop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.confirm-card h1 { font-size: 28px; margin-bottom: 12px; }
.confirm-card .subtitle { color: var(--text-mid); font-size: 16px; margin-bottom: 32px; line-height: 1.6; }
.order-details-box {
  background: var(--bg-light); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 32px; text-align: left;
}
.order-details-box .detail-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.order-details-box .detail-row:last-child { margin-bottom: 0; }
.order-details-box .detail-row .lbl { color: var(--text-mid); font-weight: 600; }
.order-details-box .detail-row .val { font-weight: 800; color: var(--text-dark); }
.confirm-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Decline page specifics */
.decline-card h1 { color: var(--secondary); }
.decline-steps { text-align: left; background: var(--bg-light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 32px; }
.decline-steps h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; font-family: var(--font-body); }
.decline-step { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; font-size: 14px; color: var(--text-mid); }
.decline-step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--secondary); color: white; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---- About Page ---- */
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-hero-grid .text h2 { font-size: 40px; margin-bottom: 16px; }
.about-hero-grid .visual { background: var(--bg-light); border-radius: var(--radius-xl); height: 400px; display: flex; align-items: center; justify-content: center; font-size: 120px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 24px;
  border: 1.5px solid var(--border); text-align: center; transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary); }
.value-card .icon { font-size: 48px; margin-bottom: 16px; }
.value-card h3 { font-size: 20px; margin-bottom: 10px; }
.value-card p { color: var(--text-mid); font-size: 14px; line-height: 1.7; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-avatar { width: 100%; aspect-ratio: 1; background: var(--bg-light); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; font-size: 64px; margin-bottom: 16px; border: 2px solid var(--border); }
.team-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary); font-weight: 700; }

/* ---- Help & Support Page ---- */
.faq-section { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: var(--transition); }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question {
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 800; font-size: 15px; color: var(--text-dark);
  background: white; transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); background: rgba(255,107,53,0.03); }
.faq-chevron { transition: transform 0.3s ease; font-size: 18px; color: var(--text-light); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s ease; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 24px 20px; }
.faq-answer p { color: var(--text-mid); font-size: 14px; line-height: 1.8; }
.help-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.help-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 24px;
  border: 1.5px solid var(--border); text-align: center; text-decoration: none;
  transition: var(--transition); cursor: pointer; color: inherit;
}
.help-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary); }
.help-card .icon { font-size: 48px; margin-bottom: 16px; }
.help-card h3 { font-size: 18px; margin-bottom: 8px; }
.help-card p { color: var(--text-mid); font-size: 14px; }
.contact-form-card { background: white; border-radius: var(--radius-xl); border: 1.5px solid var(--border); padding: 40px; max-width: 640px; margin: 0 auto; }
.contact-form-card h3 { font-size: 24px; margin-bottom: 24px; }

/* ---- Products Listing Page ---- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.shop-filters { position: sticky; top: calc(var(--nav-height) + 20px); }
.filter-card { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); padding: 24px; margin-bottom: 16px; }
.filter-title { font-size: 15px; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; font-family: var(--font-body); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; border-bottom: 1px solid rgba(232,224,255,0.5); }
.filter-option:last-child { border-bottom: none; }
.filter-option input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.filter-option label { font-size: 14px; color: var(--text-mid); cursor: pointer; font-weight: 600; flex: 1; }
.filter-option .count { font-size: 12px; color: var(--text-light); }
.price-range-slider { margin-top: 8px; }
.price-range-slider input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-mid); margin-top: 8px; }
.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: gap; gap: 12px; }
.shop-header h2 { font-size: 22px; font-family: var(--font-body); font-weight: 800; }
.shop-sort select { padding: 10px 16px; border: 2px solid var(--border); border-radius: 50px; font-family: var(--font-body); font-size: 14px; outline: none; cursor: pointer; }
.shop-sort select:focus { border-color: var(--primary); }

/* ---- Responsive Pages ---- */
@media (max-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; display: none; }
  .shop-filters.mobile-open { display: block; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .help-cards-grid { grid-template-columns: 1fr; }
  .confirm-card { padding: 40px 24px; }
}
