/* ==========================================================================
   FLIPKART PRODUCT DETAILS PAGE (PDP) - MATCHING SCREENSHOTS PIXEL-BY-PIXEL
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f1f2f4;
  color: #212121;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Centered Mobile Container (Flipkart App / Mobile Web Layout) */
.product-viewport {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  padding-bottom: 74px; /* Space for floating buttons */
}

/* ==========================================================================
   1. FIXED HEADER (Back arrow, Flipkart logo, Search, Cart, Account)
   ========================================================================== */
.p-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #f0f0f0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
  padding: 0;
  color: #212121;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.fk-circle-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffe11b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #212121;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.header-cart-badge {
  position: absolute;
  top: 0px;
  right: -2px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
}

/* ==========================================================================
   2. PRODUCT GALLERY / CAROUSEL (Albums, Heart, Share, Dots)
   ========================================================================== */
.gallery-section {
  position: relative;
  background-color: #ffffff;
  padding: 10px 0 14px 0;
  border-bottom: 1px solid #f0f0f0;
  overflow: hidden;
  user-select: none;
}

.floating-action-btn {
  position: absolute;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.floating-action-btn:active {
  transform: scale(0.92);
}

.love-btn {
  top: 14px;
}

.love-btn.active svg path {
  fill: #e53935;
  stroke: #e53935;
}

.share-btn {
  top: 58px;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #ffffff;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
  display: block;
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d1d5db;
  transition: all 0.25s ease;
  cursor: pointer;
}

.carousel-dot.active {
  background-color: #2874f0;
  width: 8px;
  height: 8px;
}

/* ==========================================================================
   3. PRODUCT TITLE & PRICING CARD
   ========================================================================== */
.product-info-card {
  padding: 14px;
  background: #ffffff;
  border-bottom: 6px solid #f1f2f4;
}

.product-title {
  font-size: 16px;
  font-weight: 500;
  color: #212121;
  line-height: 1.35;
  margin-bottom: 8px;
}

.rating-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-badge {
  background-color: #26a541;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rating-text {
  margin-left: 8px;
  color: #878787;
  font-size: 13px;
  font-weight: 500;
}

.fk-assured-logo {
  height: 21px;
  margin-left: auto;
  object-fit: contain;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.discount-val {
  color: #388e3c;
  font-weight: 700;
  font-size: 17px;
}

.mrp-val {
  color: #878787;
  font-size: 16px;
  text-decoration: line-through;
}

.selling-price-val {
  font-size: 26px;
  font-weight: 700;
  color: #212121;
}

.packaging-fee {
  font-size: 14px;
  color: #212121;
  margin-bottom: 4px;
}

.delivery-estimate {
  font-size: 13px;
  color: #212121;
  font-weight: 500;
}

.delivery-estimate strong {
  font-weight: 700;
}

/* ==========================================================================
   4. DELIVERY BANNER CARD (Express Free delivery, Ends in timer)
   ========================================================================== */
.delivery-card {
  margin: 10px 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.delivery-truck-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-truck-icon svg {
  width: 36px;
  height: 36px;
}

.delivery-details {
  flex: 1;
}

.delivery-title {
  font-size: 14px;
  margin: 0;
  color: #212121;
}

.delivery-title .bold-express {
  font-weight: 700;
}

.delivery-title .free-green {
  color: #388e3c;
  font-weight: 700;
}

.delivery-title .mrp-struck {
  color: #878787;
  text-decoration: line-through;
}

.delivery-date-line {
  font-size: 13px;
  margin: 3px 0;
  color: #212121;
}

.delivery-date-line strong {
  font-weight: 700;
}

.delivery-timer-line {
  font-size: 12px;
  color: #878787;
  margin: 0;
}

.countdown-highlight {
  color: #c70055;
  font-weight: 700;
}

/* ==========================================================================
   5. WOW DEAL CARD
   ========================================================================== */
.wow-deal-card {
  margin: 10px 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wow-logo-img {
  height: 34px;
  object-fit: contain;
}

.wow-content {
  flex: 1;
}

.wow-price-line {
  font-size: 16px;
  font-weight: 700;
  color: #212121;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.wow-green-price {
  color: #008c00;
  font-size: 18px;
  font-weight: 700;
}

.wow-subtitle {
  color: #878787;
  font-size: 11px;
  margin-top: 2px;
}

/* ==========================================================================
   6. BRAND WARRANTY & PROTECTION CARD
   ========================================================================== */
.warranty-card {
  margin: 10px 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.warranty-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.warranty-tag-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #26a541;
}

.warranty-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #212121;
  letter-spacing: 0.3px;
}

.warranty-banner-wrap {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f9ff 0%, #edf3ff 100%);
  border: 1px solid #dbeafe;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.warranty-shield-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  overflow: hidden;
}

.warranty-shield-badge svg {
  max-width: 26px;
  max-height: 26px;
  display: block;
}

.warranty-banner-info {
  flex: 1;
}

.warranty-banner-headline {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 2px;
}

.warranty-banner-sub {
  font-size: 11px;
  color: #4b5563;
  line-height: 1.35;
}

/* ==========================================================================
   7. HIGHLIGHTS & SPECIFICATIONS SECTIONS
   ========================================================================== */
.detail-section {
  background: #ffffff;
  border-top: 6px solid #f1f2f4;
  padding: 14px;
}

.detail-heading {
  font-size: 15px;
  font-weight: 700;
  color: #212121;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.highlights-list {
  padding-left: 20px;
  margin: 0;
}

.highlights-list li {
  font-size: 13px;
  color: #212121;
  padding-bottom: 8px;
  line-height: 1.45;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table td {
  padding: 9px 6px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.spec-table td:first-child {
  width: 38%;
  color: #878787;
  font-weight: 400;
}

.spec-table td:last-child {
  color: #212121;
  font-weight: 500;
}

/* ==========================================================================
   8. SIMILAR PRODUCTS (Matching Screenshot 3)
   ========================================================================== */
.similar-section {
  background: #ffffff;
  border-top: 6px solid #f1f2f4;
  padding: 14px 0 16px 14px;
}

.similar-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: 14px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.similar-scroll::-webkit-scrollbar {
  display: none;
}

.similar-card {
  flex: 0 0 165px;
  width: 165px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.similar-img-box {
  height: 135px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.similar-img-box img {
  max-width: 100%;
  max-height: 125px;
  object-fit: contain;
}

.similar-content {
  padding: 8px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.similar-title {
  height: 32px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  color: #212121;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.similar-pricing {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.similar-discount {
  color: #388e3c;
  font-weight: 700;
  font-size: 12px;
}

.similar-mrp {
  text-decoration: line-through;
  color: #878787;
  font-size: 11px;
}

.similar-price {
  font-weight: 700;
  font-size: 14px;
  color: #212121;
}

.similar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.similar-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #26a541;
  font-size: 10px;
}

.similar-rating-val {
  font-size: 10px;
  color: #878787;
  margin-left: 3px;
}

.similar-assured-img {
  height: 14px;
  object-fit: contain;
}

/* ==========================================================================
   9. PRODUCT DESCRIPTION IMAGES
   ========================================================================== */
.description-images-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.description-images-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* ==========================================================================
   10. RATINGS & REVIEWS SECTION
   ========================================================================== */
.review-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-title-txt {
  font-size: 13px;
  font-weight: 700;
  color: #212121;
}

.review-comment {
  font-size: 13px;
  color: #212121;
  line-height: 1.45;
  margin-bottom: 8px;
}

.review-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 8px;
}

.review-thumb {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  flex-shrink: 0;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #878787;
  font-weight: 500;
}

.review-meta svg {
  color: #878787;
}

/* ==========================================================================
   11. FOOTER (Matching Screenshot 2)
   ========================================================================== */
.p-footer {
  background: #ffffff;
  border-top: 6px solid #f1f2f4;
  padding: 24px 14px 28px 14px;
  text-align: center;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-nav-links a {
  color: #2874f0;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 12px;
  color: #565656;
  margin-bottom: 14px;
}

.footer-copyright strong {
  color: #2874f0;
}

.footer-payment-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-payment-strip img {
  max-width: 100%;
  height: 18px;
  object-fit: contain;
}

/* ==========================================================================
   12. FLOATING BOTTOM ACTION BUTTONS (Matching Screenshot 1 & 2)
   ========================================================================== */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  padding: 8px 14px;
  display: flex;
  gap: 12px;
}

@media (min-width: 481px) {
  .floating-bar {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px 8px 0 0;
  }
}

.btn-cart {
  flex: 1;
  height: 48px;
  background-color: #ffffff;
  border: 1.5px solid #2874f0;
  border-radius: 6px;
  color: #2874f0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-cart:active {
  background-color: #f0f7ff;
}

.btn-buy {
  flex: 1;
  height: 48px;
  background-color: #ffc200;
  border: none;
  border-radius: 6px;
  color: #212121;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-buy:active {
  background-color: #eab308;
}

/* ==========================================================================
   13. LIGHTBOX POPUP & TOAST NOTIFICATION
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
}

.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(33, 33, 33, 0.95);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Official Brand Header Strip */
.product-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 20px;
}

.brand-svg-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 50px;
  height: 20px;
  flex-shrink: 0;
}

.brand-svg-logo svg {
  max-width: 48px;
  max-height: 18px;
  display: block;
}

.brand-title-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.3px;
}

.official-store-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Color & Storage Variants Blocks */
.variants-block {
  margin: 12px 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
}

.variant-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 8px;
}

.v-label {
  color: #64748b;
  font-weight: 500;
}

.v-selected {
  color: #0f172a;
  font-weight: 700;
}

.color-swatches-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.color-swatch-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.color-swatch-thumb {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.color-swatch-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
}

.chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

/* Description Images (DSC Photos) */
.description-images-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.description-images-box img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
}
