:root {
 --light-primary: #f8f8f8;
 --text-dark: #333333;
 --text-light: #fdfdfd;
 --accent-gold: #b49b66;
 --card-background: #ffffff;
 --border-color: #e5e5e5;
}

html, body {
 margin: 0; padding: 0;
 scroll-behavior: smooth;
 background-color: var(--light-primary); color: var(--text-dark);
}

* {
 -webkit-tap-highlight-color: rgb(0 0 0 / 10%);
 transition: all .25s; font-family: 'Poppins', sans-serif;
 box-sizing: border-box;
}

::-webkit-scrollbar {width: 9.5px;}
::-webkit-scrollbar-track {background: #ccc; margin: 5px; border-radius: 50px;}
::-webkit-scrollbar-thumb {background: #555; border-radius: 50px;}
::-webkit-scrollbar-thumb:hover {background: #333;}
::-webkit-scrollbar:horizontal {height: 9.5px;}

/* --------------------------------- Product Page Layout --------------------------------- */
.product-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.product-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; /* Modified: Increased gap for more breathing room */
  background-color: var(--card-background);
  padding: 2.5rem; /* Modified */
  border-radius: 12px; /* Modified */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07); /* Modified: Softer, deeper shadow */
}

.product-images,
.product-details {
  min-width: 0;
}

/* Left side - Images */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Modified */
}

.main-image img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* Modified */
  border: 1px solid var(--border-color);
}

.thumbnail-images {
  display: grid; /* Modified */
  grid-template-columns: repeat(4, 1fr); /* Modified */
  gap: 1rem;
}

.thumbnail-images img {
  width: 100%;
  height: 100%; /* Make the image fill its grid cell */
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.3s, border-color 0.3s;
  aspect-ratio: 1 / 1; /* Make the thumbnail container a square */
  object-fit: contain; /* Ensure the image inside fits without stretching */
}

.thumbnail-images img:hover {
  opacity: 1;
}

.thumbnail-images img.active {
  border-color: var(--accent-gold);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(180, 155, 102, 0.4); /* Added */
}

/* Right side - Details */
.product-details {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2.5rem; /* Modified */
  font-weight: 600;
  line-height: 1.2; /* Added */
  margin: 0 0 0.75rem;
  color: var(--text-dark);
}

.product-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6; /* Adds nice spacing between lines */
}

.product-description div {
  margin-bottom: 0.25rem; /* Adds a tiny bit of space between each detail */
}

.product-description strong {
  color: var(--text-dark); /* Makes the labels stand out */
  font-weight: 500;
  margin-right: 0.5em; /* Adds space after the colon */
}

.product-price {
  font-size: 2rem; /* Modified */
  margin-bottom: 1.5rem; /* Modified */
  display: flex; /* Added */
  align-items: center; /* Added */
}

.current-price {
  font-weight: 600;
  color: var(--accent-gold);
  margin-right: 1rem;
  display: flex; /* Added */
  align-items: center; /* Added */
}
.current-price .material-symbols-outlined {
    font-size: 1.4rem;
}

.original-price {
  position: relative;
  color: #999;
  font-size: 1.3rem; /* Modified */
  display: flex; /* Added */
  align-items: center; /* Added */
}
.original-price .material-symbols-outlined {
    font-size: 1rem;
}

.original-price-strike {
 position: absolute;
 height: 2px;
 width: 100%;
 background: rgb(108 108 108 / 95%);
}

.product-offer-banner {
    background: #fdfdfd;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
    width: 100%;
}

@media (max-width: 768px) {
    .product-offer-banner {
        font-size: 0.95rem;
        text-align: center;
    }
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Modified */
  margin-bottom: 2.5rem; /* Modified */
  color: var(--accent-gold);
}

/* Ensure half-filled stars also use the gold color */
.stars .material-symbols-outlined {
    font-variation-settings: 'FILL' 0;
}
.stars .material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1;
    color: var(--accent-gold);
}
.product-rating .stars .material-symbols-outlined {
    font-size: 1.4rem; /* Added */
}

.review-count {
  color: #555;
  text-decoration: none;
  font-size: 1rem; /* Modified */
  font-weight: 500; /* Added */
}
.review-count:hover {
    text-decoration: underline; /* Added */
}


/* Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem; /* Modified */
}

.btn {
  padding: 15px; /* Modified */
  font-size: 1rem;
  font-weight: 600; /* Modified */
  border-radius: 6px; /* Modified */
  cursor: pointer;
  border: 2px solid transparent; /* Modified */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease; /* Modified */
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--text-light);
  grid-column: 1 / -1;
  box-shadow: 0 4px 15px rgba(180, 155, 102, 0.3); /* Added */
}
.btn-primary:hover {
    transform: translateY(-2px); /* Added */
    box-shadow: 0 6px 20px rgba(180, 155, 102, 0.4); /* Added */
}

.btn-secondary, .btn-wishlist {
  background-color: transparent; /* Modified */
  color: var(--text-dark);
  border-color: var(--border-color);
}
.btn-secondary:hover, .btn-wishlist:hover {
    background-color: var(--light-primary);
    border-color: #ccc; /* Modified */
}
.btn-wishlist .material-symbols-outlined {
    color: #d63384; /* Added */
}

/* Accordion */
.additional-info-accordion .accordion-item {
  border-top: 1px solid var(--border-color);
}
.additional-info-accordion .accordion-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0; /* Modified */
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex; /* Added */
  justify-content: space-between; /* Added */
  align-items: center; /* Added */
}
.accordion-header::after { /* Added this whole block for the '+' icon */
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}
.accordion-header.active::after { /* Added for the '-' icon */
    transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out; /* Modified timing */
}
.accordion-content p {
    padding: 0.5rem 0 1.5rem 0; /* Modified */
    color: #555;
    line-height: 1.7; /* Modified */
    font-size: 1rem; /* Added */
}

@media (max-width: 900px) {
  .product-display {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem; /* Modified */
  }
  .product-title {
      font-size: 2rem; /* Modified */
  }
}


/* --- Variety Selector --- */
.variety-name {
  font-size: 1.25rem;
  font-weight: 400;
  color: #666;
  margin: -0.5rem 0 1.5rem 0; /* Position it nicely under the main title */
}

.variety-selector {
  margin-bottom: 2.5rem;
}

.variety-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.75rem 0;
}

/* REPLACE WITH THIS NEW CSS */
.variety-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.variety-swatch {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.2s ease;
}

.variety-swatch:hover {
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.variety-swatch.active {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(180, 155, 102, 0.3);
  cursor: default;
}
.variety-swatch.active:hover {
  transform: translateY(0); /* Disable hover movement for active swatch */
}

.swatch-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #f8f8f8;
}

.swatch-details {
  padding: 0.75rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swatch-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.swatch-price {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
}
.swatch-price .material-symbols-outlined {
    font-size: 0.9rem; /* Match the font size */
}


/* --- Image Gallery Arrows --- */
.main-image {
  position: relative; /* Required for positioning arrows */
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  width: 44px;  /* Slightly larger */
  height: 44px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  opacity: 0; /* Hide arrows by default */
}

/* Show arrows when hovering over the main image container */
.main-image:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background-color: white;
  color: var(--accent-gold);
  transform: translateY(-50%) scale(1.05); /* Add a subtle hover effect */
}

.gallery-arrow svg {
  width: 22px; /* Control icon size */
  height: 22px;
}

.prev-arrow {
  left: 15px;
}

.next-arrow {
  right: 15px;
}


/* This is the "window" for the slider */
.main-image-container {
  width: 100%;
  overflow: hidden; /* This is the key part - it hides the other images */
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

/* This track holds all images in a row */
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Smooth sliding transition */
  height: 100%;
}

/* Each image in the slider */
.slider-image {
  width: 100%;
  height: 100%;
  flex-shrink: 0; /* Prevents images from shrinking */
  object-fit: contain; 
}

/* Remove the old transition for the single image */
#mainProductImage {
  transition: none; /* We no longer need the fade effect */
}

/* --- Modal (Lightbox) Styles --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  opacity: 0; /* For fade effect */
  transition: opacity 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1000px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: -20px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: background-color 0.2s;
}
.modal-arrow:hover {
  background-color: white;
}
.modal-prev { left: -60px; }
.modal-next { right: -60px; }

.modal-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden; /* This is our new zoom lens */
  cursor: zoom-in;
  border-radius: 4px;
}

#modalImage {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents image distortion */
  transform: scale(1);
  transition: transform 0.3s ease;
  transform-origin: center center;
}

#modalImage.zoomed {
  transform: scale(2.5);
  cursor: zoom-out;
}

/* Responsive adjustments for modal arrows */
@media (max-width: 768px) {
  .modal-prev { left: 5px; }
  .modal-next { right: 5px; }
  .close-modal { right: 0; }
}


/* --- Add to Cart & Quantity Counter Styles --- */

.add-to-cart-wrapper {
  grid-column: 1 / -1; /* Ensures it spans the full width like the old button */
  position: relative;
  height: 53px; /* Match the button height to prevent layout shifts */
}

/* Both the button and counter will be positioned on top of each other */
#addToCartBtn,
.quantity-counter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Style for the counter itself */
.quantity-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--accent-gold);
  border-radius: 27px;
  color: var(--text-light);
  padding: 0 10px;
  
  /* Start hidden: scaled down and invisible */
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none; /* Can't be clicked when hidden */
}

/* When the counter is active/visible */
.quantity-counter.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* When the Add to Cart button is hidden */
#addToCartBtn.is-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Styling for the buttons and input inside the counter */
.qty-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  transition: background-color 0.2s;
}

.qty-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.1);
}

.qty-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  width: 50px;
  text-align: center;
  /* Hide the number input arrows */
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


@media (max-width: 520px) {
  .action-buttons {
    grid-template-columns: 1fr; /* This changes the grid to a single column */
  }
}

@media (max-width: 768px) {
  .variety-swatches {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem; /* Reduce the space between swatches */
  }

  .swatch-details {
    padding: 0.5rem; /* Reduce the internal padding */
  }

  .swatch-name, .swatch-price, .swatch-price .material-symbols-outlined {
    font-size: 1rem;
  }
}

/* ADD THIS to the end of Product.css */
.quantity-notification {
  font-size: 0.8rem;
  color: #c0392b;
  height: 1.5em;
  margin-top: -1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}


/* --- REPLACE WITH THIS NEW, CORRECT STAR RATING CSS --- */
form#review-form h4 {
    font-size: 30px;
    margin: 15px 0 25px;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star-rating .material-symbols-outlined {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    font-variation-settings: 'FILL' 0; /* Ensures stars are empty by default */
    transition: color 0.2s, transform 0.1s;
}

/* This is the ONLY class we need to make a star look "filled" */
.star-rating .material-symbols-outlined.is-filled {
    color: var(--accent-gold);
    font-variation-settings: 'FILL' 1;
}

/* A subtle effect when hovering over a star */
.star-rating:not(.is-rated) .material-symbols-outlined:hover {
    transform: scale(1.1);
}

div.form-group {
 display: flex;
 margin: 20px 0;
}

div.form-group label {
 width: 120px;
}

div.form-group textarea {
 width: calc(100% - 135px);
 min-height: 100px;
 max-height: 250px;
 resize: vertical;
}


/* ADD THIS ENTIRE BLOCK AT THE END of your CSS file */

/* --- Reviews Display Area --- */
.reviews-display-area h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

#reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Individual Review Card --- */
.review-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.8rem;
    color: #777;
}

.review-stars-display .material-symbols-outlined {
    font-size: 1.2rem; /* Smaller stars for display */
    color: #ccc;
    font-variation-settings: 'FILL' 0;
}

.review-stars-display .material-symbols-outlined.is-filled {
    color: var(--accent-gold);
    font-variation-settings: 'FILL' 1;
}

.review-comment {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
}

#no-reviews-message p {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    color: #555;
}


/* --- Review Actions --- */
.review-actions { flex-grow: 1; text-align: right; }
.review-actions .material-symbols-outlined {
    cursor: pointer; font-size: 1.2rem; color: #777; margin-left: 10px;
}
.review-actions .material-symbols-outlined:hover { color: var(--accent-gold); }

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#edit-review-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#edit-review-modal.visible .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    place-content: center;
    padding: 1rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: #777;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    display: block; /* Override previous flex styles for better vertical layout */
    margin-bottom: 1.5rem;
}

.modal-body .form-group label {
    width: auto; /* Reset width */
    margin-bottom: 0.5rem;
}

.modal-body #edit-comment {
    width: 100%;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
}


/* ADD THIS CSS for the Similar Products section */
.similar-products-section {
    padding: 2rem 1rem;
}

.similar-products-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.similar-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.similar-product-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.similar-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.similar-product-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.similar-product-card-info {
    padding: 0.75rem;
}

.similar-product-card-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.similar-product-card-price {
    font-weight: 600;
    color: var(--accent-gold);
}


/* Search Overlay */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(27, 27, 27, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    padding: 13px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#search-overlay.open {
    transform: translateY(0);
}

.search-overlay-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    gap: 15px;
}

.search-overlay-form {
    flex-grow: 1;
    display: flex;
    border: 1px solid #555;
    border-radius: 50px;
    overflow: hidden;
}

#search-overlay-input {
    width: 100%;
    flex-grow: 1;
    border: none;
    background: #333;
    padding: 12px 20px;
    font-size: 16px;
    color: var(--text-light);
    outline: none;
}

#search-overlay-input::placeholder {
    color: #888;
}

.search-overlay-submit {
    background: var(--accent-gold);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
}

.search-overlay-close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-overlay-close:hover {
    color: white;
}



/* --- Lens Modal Styling (Exact Copy from Search Page) --- */
#lens-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 27, 27, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lens-modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}

#lens-modal-content {
    background-color: #2c3a4a;
    width: 95%;
    max-width: 850px;
    height: 90vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#lens-modal-overlay.is-visible #lens-modal-content {
    transform: scale(1);
}

#lens-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #aab8c5;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
}

#lens-selector-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    visibility: hidden;
}

#lens-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
}


/* ---------------- PDP Circular Badges Bar & Tooltips (FIXED) ---------------- */
.pdp-trust-circles-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 1rem;
  padding: 1rem 12px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold, #b49b66) #eee;
}

.pdp-trust-circles-bar::-webkit-scrollbar {
  height: 6px;
}

.pdp-trust-circles-bar::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 10px;
}

.pdp-trust-circles-bar::-webkit-scrollbar-thumb {
  background: var(--accent-gold, #b49b66);
  border-radius: 10px;
}

.pdp-trust-circles-bar.desktop-only {
  display: flex;
}

.pdp-trust-circles-bar.mobile-only {
  display: none;
  margin-top: 0;
}

/* CRUCIAL FIX: Position relative on ITEM anchors tooltip to ITS OWN circle */
.trust-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  position: relative; /* Fixes the centering bug */
  min-width: 90px;
}

/* Circle Button */
.trust-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--light-primary, #f8f8f8);
  border: 1.5px solid var(--border-color, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  outline: none;
}

.trust-circle-btn:hover,
.trust-circle-btn:focus {
  border-color: var(--accent-gold, #b49b66);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(180, 155, 102, 0.25);
}

.circle-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark, #333);
  margin-top: 8px;
  white-space: nowrap;
}

/* Tooltip Box - Positioned directly above its specific circle */
.circle-tooltip {
  position: fixed;
  top: -9999px;     /* safe default until JS positions it */
  left: -9999px;
  transform: translate(-50%, -100%);
  background: var(--text-dark, #2a2a2a);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  width: 170px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

/* Arrow at bottom of tooltip */
.circle-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--text-dark, #2a2a2a) transparent transparent transparent;
}

.circle-tooltip strong {
  display: block;
  color: var(--accent-gold, #b49b66);
  margin-bottom: 2px;
  font-size: 0.82rem;
}

.circle-tooltip p {
  margin: 0;
  line-height: 1.35;
  color: #dddddd;
}

/* Show Tooltip above its specific circle */
.trust-circle-btn:hover .circle-tooltip,
.trust-circle-btn:focus .circle-tooltip,
.trust-circle-item:hover .circle-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive Placement Toggle */
@media (max-width: 900px) {
  .pdp-trust-circles-bar.desktop-only {
    display: none;
  }
  .pdp-trust-circles-bar.mobile-only {
    display: flex;
  }
}

/* Responsive Placement Toggle */
@media (max-width: 900px) {
  .pdp-trust-circles-bar.desktop-only {
    display: none;
  }
  .pdp-trust-circles-bar.mobile-only {
    display: flex;
  }
}


.google-verified-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.google-verified-badge:hover {
    background: #e8f0fe;
    color: #174ea6;
}

.review-card {
    padding: 18px 20px;
    border-bottom: 1px solid #eaeaea;
}

















