body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  color: #333;
}

/* Breadcrumb */
.breadcrumb {
  padding: 10px 20px;
  background: #fff;
  font-size: 14px;
  margin-bottom: 10px;
}
.breadcrumb a {
  text-decoration: none;
  color: #2857e3;
}
.breadcrumb span {
  color: #555;
}

/* Layout */
.content-flex {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 20px;
  gap: 20px;
}

/* Sticky left section */
.left-section {
  display: flex;
  gap: 20px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

/* Thumbnail gallery */
.left-gallery {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-thumbs {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  margin: 5px 0;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: 0.3s;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: #2857e3;
}
.gallery-arrow {
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  margin: 5px 0;
  border-radius: 4px;
}

/* Main image */
.cover-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main-img-container {
  position: relative;
  display: inline-block;
  width: 400px;
  height: 400px;
}
.main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: crosshair;
  background: #fff;
}

/* ===============================
   PREMIUM PRICE PILL (FINAL CLEAN)
================================ */
.price-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 14px 28px;
    margin: 16px 0 24px 0;

    background: linear-gradient(135deg, #eefbf4, #ffffff);
    border: 2px solid #1f8a4c;
    border-radius: 999px;

    box-shadow: 0 6px 18px rgba(31, 138, 76, 0.22);

    width: fit-content;
    max-width: 100%;
}

/* MRP text – BIG & BOLD */
.mrp-text {
    font-size: 18px;          /* 👈 bigger */
    font-weight: 800;         /* 👈 bold */
    color: #1f8a4c;
    letter-spacing: 0.6px;
}

/* Price amount */
.mrp-amount {
    font-size: 30px;
    font-weight: 900;
    color: #136639;
}

/* Tax text */
.mrp-tax {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

/* Hover polish */
.price-pill:hover {
    box-shadow: 0 10px 26px rgba(31, 138, 76, 0.32);
}

/* Zoom box */
.zoom-result {
  position: absolute;
  left: 105%;
  top: 0;
  width: 450px;
  height: 450px;
  border: 1px solid #ccc;
  background-repeat: no-repeat;
  background-size: 200%;
  display: none;
  z-index: 10;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}
.desc p {
    margin-bottom: 10px;
}

.product-trust-signals {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin: 32px 0 0 0;
    gap: 40px;
}

.trust-item {
    text-align: center;
    flex: 1;
}

.trust-item img {
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
    object-fit: contain;
}

.trust-text span {
    display: block;
    color: #788090;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 0;
}

.color-names-section { margin-bottom: 20px; }
.section-label { font-weight: bold; font-size: 18px; margin-right: 12px; }
.color-cards-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.color-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 14px 10px 10px 10px;
    text-align: center;
    width: 100px;
    min-height: 140px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s;
}
.color-card.selected {
    border-color: #2857e3;
    box-shadow: 0 0 0 2px #2857e329;
}
.color-card.unavailable {
    opacity: 0.65;
    border-color: #e53935;
    cursor: not-allowed;
}
.card-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 5px;
}
.card-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 2px;
}
.card-unavailable {
    color: #e53935;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

/* Available Offers Section */
.available-offers {
    background: #2a4d31;  /* Dark Green Background */
    padding: 20px;
    border-radius: 8px;
    color: white;  /* White text */
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.offer-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #fff;  /* White title */
}

.offer-list {
    list-style-type: none;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
}

.offer-list li {
    background: #355c47;  /* Slightly lighter dark green for list items */
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.offer-list li br {
    margin: 5px 0;
}

.offer-list li:hover {
    background: #2f7d56;  /* Lighter green on hover */
    cursor: pointer;
}

/* Delivery and Shipping Information Section */
.delivery-info {
    background-color: #f8f8f8;  /* Light background */
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.delivery-title {
    font-size: 26px;
    font-weight: 700;
    color: #2a4d31;  /* Dark Green */
    text-align: center;
    margin-bottom: 20px;
}

.delivery-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  /* Responsive grid */
    gap: 20px;
}

.info-item {
    background-color: #2a4d31;  /* Dark Green */
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.info-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.info-item p {
    font-size: 16px;
    font-weight: 400;
    color: #e0e0e0;  /* Lighter gray for text */
}

.info-item:hover {
    background-color: #355c47;  /* Slightly lighter green on hover */
    transform: translateY(-5px);  /* Slight lift effect */
}




/* Buttons */
.button-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
  width: 100%;
}
.btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-cart {
  background: linear-gradient(135deg, #ffb300, #ff6f00);
  color: #fff;
}
.btn-buy {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Right section */
.cover-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Product FAQs Section */
.product-faqs {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;         /* Ensure FAQ block doesn't overflow parent */
    box-sizing: border-box;  /* Prevents child overflow */
    word-break: break-word;
}

.faqs-title {
    font-size: 26px;
    font-weight: 700;
    color: #2a4d31;  /* Dark Green */
    text-align: center;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
    max-width: 100%;
}

.faq-question {
    background-color: #2a4d31;  /* Dark Green */
    color: white;
    font-size: 20px;
    font-weight: 600;
    padding: 10px;
    border: none;
    text-align: left;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #355c47;
}

.faq-answer {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    background: #f0f0f0;
    padding: 10px 13px;
    border-radius: 7px;
    margin-top: 10px;
    display: none;
    white-space: pre-line;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Active FAQ (show answer) */
.faq-item.active .faq-answer {
    display: block;
}

.product-title {
    font-size: 26px;
    font-weight: 700;
}
.rating {
    color: #ffb400;
    font-size: 16px;
}
.price {
    font-size: 22px;
    color: #e53935;
}

.desc ul {
    padding-left: 20px;
    margin-top: 6px;
}

#selectedColor {
    margin-left: 10px;
    font-size: 14px;
}

/* Customer Reviews Section */
.customer-reviews {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.reviews-title {
    font-size: 28px;
    font-weight: 700;
    color: #2a4d31;  /* Dark Green */
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews-content {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

/* Left Column: Display Reviews */
.reviews-list {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);

    height: 480px; /* Fixed height to show approx 4 reviews */
    overflow-y: auto;
    scrollbar-width: thin; /* For Firefox */
}

/* Scrollbar styling for WebKit browsers (Chrome, Safari, Edge) */
.reviews-list::-webkit-scrollbar {
    width: 8px;
}

.reviews-list::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-list::-webkit-scrollbar-thumb {
    background-color: #e0e0e0;
    border-radius: 4px;
}

/* Each individual review item */
.review-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.review-text {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
}

.review-author {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    display: block;
}

/* Right Column: Review Form */
.review-form {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.review-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2a4d31;  /* Dark Green */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-form label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.review-form input, .review-form select, .review-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}

.review-form input:focus, .review-form select:focus, .review-form textarea:focus {
    border-color: #2857e3;  /* Blue border on focus */
}

.review-form textarea {
    resize: vertical;
}

.review-btn {
    background: #2857e3;
    color: #fff;
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-btn:hover {
    background: #1a4db6;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: #2a4d31;  /* Dark Green */
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-img {
    width: 100%;
    min-height: 120px;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #f9f9f9;
}
.related-name {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0 4px 0;
    color: #222;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-price {
    color: #e53935;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 13px;
}
.related-btn {
    background: #2857e3;
    color: #fff;
    text-decoration: none;
    padding: 9px 28px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.3s;
    margin-top: 5px;
    display: inline-block;
}
.related-btn:hover {
    background: #10256a;
}

.related-arrow:hover {
    background: #1a4db6;
}

/* ===============================
   MOBILE PRODUCT DETAIL PAGE
================================ */
@media (max-width: 768px) {

  /* Reset layout */
  .content-flex {
    flex-direction: column;
    padding: 14px;
    margin: 0;
    border-radius: 0;
  }

  /* Disable sticky on mobile */
  .left-section {
    position: static;
    flex-direction: column;
    gap: 12px;
  }

  /* Hide vertical thumbnail gallery */
  .left-gallery {
    display: none;
  }

  /* Full-width image */
  .main-img-container {
    width: 100%;
    height: auto;
  }

  .main-img {
    width: 100%;
    height: 340px;
    object-fit: contain;
  }

  /* Disable zoom on mobile */
  .zoom-result {
    display: none !important;
  }

  /* Buttons full width */
  .button-row {
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
    font-size: 16px;
  }

  /* Center product info */
  .cover-info {
    padding: 0;
  }

  .product-title {
    font-size: 22px;
    text-align: center;
  }

  .rating {
    text-align: center;
  }

  /* Price pill centered */
  .price-pill {
    margin: 16px auto;
    justify-content: center;
  }

  /* Color cards – horizontal scroll */
  .color-cards-row {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .color-card {
    min-width: 90px;
  }

  /* Description spacing */
  .product-description {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Reviews stack */
  .reviews-content {
    flex-direction: column;
    gap: 20px;
  }

  .reviews-list {
    height: auto;
    max-height: 400px;
  }

  /* Social section stack */
  .social-section {
    flex-direction: column;
    gap: 20px;
  }
}
/* ===============================
   MOBILE THUMBNAILS (UNDER IMAGE)
================================ */
.mobile-thumbs {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {

    .mobile-thumbs {
        display: flex;
        gap: 10px;
        margin-top: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
        justify-content: center;
    }

    .mobile-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid transparent;
        cursor: pointer;
        flex-shrink: 0;
        transition: border 0.2s ease;
    }

    .mobile-thumb.active {
        border-color: #2857e3;
    }
}
/* ===============================
   MOBILE THUMB ARROW FIX (KEYCHAINS)
================================ */
@media (max-width: 768px) {

    .mobile-thumb-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 12px;
        width: 100%;
    }

    .mobile-thumbs {
        display: flex;
        gap: 10px;
        overflow: hidden;
        justify-content: center;
        flex: 1;
    }

    .thumb-arrow {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: #2857e3;
        color: #fff;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        flex-shrink: 0;
    }

    .thumb-arrow:active {
        transform: scale(0.92);
    }
}

/* ===============================
   RELATED PRODUCTS – FINAL CLEAN
================================ */

.related-products {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-items-container {
    overflow: hidden;
    width: 100%;
}

.related-items {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.related-item {
    flex: 0 0 calc(20% - 16px); /* 5 cards */
    max-width: calc(20% - 16px);

    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    padding: 18px 10px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transition: box-shadow 0.3s, transform 0.3s;
}

.related-item:hover {
    box-shadow: 0 8px 30px rgba(61, 129, 209, 0.13);
    transform: translateY(-4px) scale(1.04);
}

.related-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #2857e3;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.related-arrow:hover {
    background: #1a4db6;
}

/* Mobile */
@media (max-width: 768px) {
    .related-item {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* ===============================
   MOBILE RELATED PRODUCTS – 1 CARD LOOP
================================ */
@media (max-width: 768px) {

  .related-wrapper {
    position: relative;
  }

  .related-items-container {
    overflow: hidden;
    width: 100%;
  }

  .related-items {
    display: flex;
    transition: transform 0.4s ease;
  }

  .related-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Arrows positioning */
  .related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .related-arrow.left {
    left: -6px;
  }

  .related-arrow.right {
    right: -6px;
  }
}

/* ===============================
   RELATED ARROW POSITION FIX
================================ */

.related-wrapper {
    position: relative;
}

/* Default (desktop + mobile safe) */
.related-arrow.left {
    margin-left: -8px;
}

.related-arrow.right {
    margin-right: -8px;
}

/* ===============================
   MOBILE RELATED PRODUCTS – FIXED ARROWS
================================ */
@media (max-width: 768px) {

  .related-wrapper {
    position: relative;
    padding: 0 44px; /* 👈 creates space for arrows */
  }

  .related-items-container {
    overflow: hidden;
    width: 100%;
  }

  .related-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Arrows */
  .related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 36px;
    height: 36px;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .related-arrow.left {
    left: 0;   /* 👈 OUTSIDE card */
  }

  .related-arrow.right {
    right: 0;  /* 👈 OUTSIDE card */
  }
}

/* ===============================
   WHY CHOOSE DRESSMYIPHONE
================================ */

.why-dmi {
    background: linear-gradient(135deg, #ffffff, #eefbf4);
    padding: 60px 30px;
    margin-top: 50px;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.why-title {
    font-size: 30px;
    font-weight: 800;
    color: #2a4d31;
    margin-bottom: 8px;
}

.why-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(40, 87, 227, 0.18);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.why-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-title {
        font-size: 24px;
    }
}