/* ===== Reset & Fonts ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f1ece3;
  color: #333333;
  overflow-x: hidden;
}

/* ===== Accessibility ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #4b2e2e, #6d4c41);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.3rem;
  letter-spacing: 2px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* ===== Logo Fixed ===== */
.logo-fixed {
  position: fixed;
  top: 20px;
  left: 30px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 1.2s ease;
  z-index: 10002;
  pointer-events: none;
}

.logo-fixed.visible {
  opacity: 1;
  transform: scale(0.7);
}

.logo-fixed img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* ===== Navigation ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Search Bar ===== */
.search-container {
  text-align: center;
  margin: 2rem 0 1rem;
}

#search-bar {
  width: 80%;
  max-width: 500px;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  border: 2px solid #d4a373;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Search + Category Filter Row ===== */
.search-filter-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: stretch;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.search-filter-row #search-bar {
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.category-filter-wrapper {
  position: relative;
  flex-shrink: 0;
}

.category-filter-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: #fff;
  border: 2px solid #d4a373;
  outline: none;
  border-radius: 25px;
  color: #4b2e2e;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.category-filter-btn:hover {
  border-color: #4b2e2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 46, 46, 0.15);
}

.category-filter-btn.active-filter {
  background: #4b2e2e;
  border-color: #4b2e2e;
  color: #fff;
}

.filter-icon {
  font-size: 1rem;
}

.filter-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.category-filter-wrapper.open .filter-arrow {
  transform: rotate(180deg);
}

.category-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(75, 46, 46, 0.2);
  border: 1px solid #e0dcd5;
  min-width: 260px;
  padding: 0.6rem;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
}

.category-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  border-radius: 8px;
  color: #4b2e2e;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.category-option:hover {
  background: #f9f4ee;
}

.category-option.active {
  background: #4b2e2e;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 600px) {
  .search-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  #search-bar {
    width: 100%;
    box-sizing: border-box;
  }

  .category-filter-wrapper {
    align-self: stretch;
    margin-top: 0;
  }

  .category-filter-btn {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    gap: 0.35rem;
  }

  .filter-icon {
    font-size: 0.85rem;
  }

  .filter-arrow {
    font-size: 0.65rem;
  }

  .category-dropdown {
    right: 0;
    left: 0;
    width: 100%;
  }
}

#search-bar:focus {
  outline: none;
  border-color: #4b2e2e;
  box-shadow: 0 4px 12px rgba(75, 46, 46, 0.2);
  transform: translateY(-2px);
}

/* ===== Product Grid ===== */
.products {
  padding: 2rem 1rem;
}

.products h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #4b2e2e;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin: auto;
}

/* ===== Product Card ===== */
.product {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  border: 1px solid #e0dcd5;
  overflow: hidden;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* ===== Product Image (fixed aspect ratio, cropped consistently) ===== */
.product-image-wrapper {
  position: relative;
  margin-bottom: 1rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  background: #f5ede3;
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.product:hover img {
  transform: scale(1.05);
}

/* ===== Product Badges ===== */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

/* ===== Card Color Count Badge ===== */
.color-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(75, 46, 46, 0.85);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(2px);
}

/* ===== Card-Level Color Swatches ===== */
.card-swatch-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.6rem 0;
  flex-wrap: wrap;
}

.card-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.card-swatch:hover {
  transform: scale(1.2);
}

.card-swatch.active {
  border-color: #4b2e2e;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(75, 46, 46, 0.4);
}

.new-badge {
  background: #27ae60;
  color: #fff;
}

.bestseller-badge {
  background: #e74c3c;
  color: #fff;
}

.product h3 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  color: #333;
}

.product-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  display: block;
  font-weight: 700;
  color: #4b2e2e;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

 .product button {
  background: #a8703f;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.3rem;
}

.product button:hover {
  background: #b87333;
  transform: scale(1.05);
}

.product button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: scale(1);
}

.view-details {
  background: #4b2e2e !important;
}

.view-details:hover {
  background: #6d4c41 !important;
}

/* ===== Cart Button ===== */
#cart-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0.8rem 1.2rem;
  background-color: #4b2e2e;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#cart-btn:hover {
  background-color: #6d4c41;
  transform: scale(1.05);
}

.cart-icon {
  font-size: 1.2rem;
}

.cart-count {
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  min-width: 20px;
  text-align: center;
}

/* ===== Cart Overlay ===== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 900;
  backdrop-filter: blur(4px);
}

#overlay.active {
  display: block;
}

/* ===== Cart Container ===== */
.cart {
  position: fixed;
  top: 80px;
  right: -400px;
  width: 350px;
  max-height: 80vh;
  background: #fff;
  border: 2px solid #4b2e2e;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  transition: right 0.4s ease;
}

.cart.show {
  right: 20px;
}

.cart h2 {
  font-size: 1.5rem;
  color: #4b2e2e;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid #e0dcd5;
  padding-bottom: 0.5rem;
}

.cart ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.cart li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.cart li span {
  font-weight: 600;
  color: #333;
}

.cart li div {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.cart button {
  background-color: #d4a373;
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
  transition: background 0.3s ease;
}

.cart button:hover {
  background-color: #b87333;
}

.cart .minus-btn,
.cart .plus-btn {
  width: 30%;
}

.cart .remove-btn {
  width: 40%;
  background-color: #e74c3c;
}

.cart .remove-btn:hover {
  background-color: #c0392b;
}

.cart-summary {
  border-top: 2px solid #e0dcd5;
  padding-top: 1rem;
}

.cart-summary p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4b2e2e;
  text-align: center;
  margin-bottom: 1rem;
}

/* ===== Checkout Button ===== */
#checkout-btn {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: #4b2e2e;
  color: #fff;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#checkout-btn:hover {
  background-color: #6d4c41;
  transform: scale(1.03);
}

/* ===== Modal Styles ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #c0392b;
  transform: rotate(90deg);
}

/* Product Modal Specific */
.modal-body {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.modal-image {
  flex: 1;
  min-width: 300px;
}

.modal-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modal-details {
  flex: 1;
  min-width: 300px;
}

.modal-details h2 {
  font-size: 2rem;
  color: #4b2e2e;
  margin-bottom: 1rem;
}

.modal-details p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-features {
  margin: 1.5rem 0;
}

.modal-features h3 {
  font-size: 1.2rem;
  color: #4b2e2e;
  margin-bottom: 0.5rem;
}

.modal-features ul {
  list-style: none;
  padding: 0;
}

.modal-features li {
  padding: 0.5rem 0;
  color: #555;
  font-size: 0.95rem;
}

.modal-price {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #4b2e2e !important;
  margin: 1.5rem 0 !important;
}

/* Checkout Modal Specific */
.checkout-body {
  display: block;
  max-width: 600px;
  margin: auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #4b2e2e;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0dcd5;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4b2e2e;
}

.checkout-summary {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.checkout-summary h3 {
  color: #4b2e2e;
  margin-bottom: 1rem;
}

#checkout-items {
  margin-bottom: 1rem;
}

#checkout-items div {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0dcd5;
}

.checkout-subtotal,
.checkout-shipping {
  font-size: 0.95rem;
  color: #6b5b4f;
  text-align: right;
  margin-top: 0.4rem;
}

.checkout-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e0dcd5;
  text-align: right;
}

.pay-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay-button:hover {
  background: #229954;
  transform: scale(1.02);
}

/* ===== Loading Spinner ===== */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3000;
  backdrop-filter: blur(5px);
}

.loading-spinner.active {
  display: flex;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4b2e2e;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ===== About Section ===== */
.about-section {
  padding: 4rem 2rem;
  background: #fff;
  margin: 3rem 0;
}

.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #4b2e2e;
  margin-bottom: 2rem;
}

.about-content {
  display: flex;
  gap: 3rem;
  max-width: 1100px;
  margin: auto;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#jewelry-3d-viewer {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  cursor: grab;
}

#jewelry-3d-viewer:active {
  cursor: grabbing;
}

#jewelry-3d-viewer canvas {
  border-radius: 15px;
}

.viewer-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4b2e2e;
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  #jewelry-3d-viewer {
    height: 300px;
  }
}

/* ===== Newsletter Section ===== */
.newsletter-section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #4b2e2e, #6d4c41);
  color: #fff;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.8rem 2rem;
  background: #d4a373;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #b87333;
  transform: scale(1.05);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 3rem 2rem;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  color: #4b2e2e;
  margin-bottom: 1.5rem;
}

.contact-content p {
  font-size: 1.1rem;
  color: #555;
  margin: 0.5rem 0;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.social-links a {
  color: #4b2e2e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #d4a373;
}

/* ===== Logo Intro Animation ===== */
#logo-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeOutContainer 1s ease forwards;
  animation-delay: 4s;
}

#logo-intro img {
  width: 220px;
  height: auto;
  opacity: 0;
  transform: scale(0.5) translateY(50px);
  animation: logoCinematic 3s ease forwards;
}

@keyframes logoCinematic {
  0% {
    transform: scale(0.5) translateY(50px);
    opacity: 0;
  }

  25% {
    transform: scale(1.1) translateY(-10px);
    opacity: 1;
  }

  50% {
    transform: scale(1.3) translateY(-20px);
    opacity: 1;
  }

  75% {
    transform: scale(1.1) translateY(-10px);
    opacity: 1;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOutContainer {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ===== Footer ===== */
footer {
  background: #4b2e2e;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer p {
  margin: 0.3rem 0;
  opacity: 0.9;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .social-links {
    gap: 0.8rem 1.2rem;
  }

  .social-links a {
    font-size: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cart {
    width: 90%;
    right: -100%;
  }

  .cart.show {
    right: 5%;
  }

  #cart-btn {
    top: 15px;
    right: 15px;
    padding: 0.6rem 1rem;
  }

  .logo-fixed {
    top: 15px;
    left: 15px;
  }

  .logo-fixed img {
    width: 60px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-body {
    flex-direction: column;
    padding: 1.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: 100%;
  }

  .products h2,
  .about-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .product h3 {
    font-size: 1.1rem;
  }

  .modal-details h2 {
    font-size: 1.5rem;
  }
}

.purchase-note {
  text-align: center;
  font-size: 0.95rem;
  color: #4b2e2e;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
  opacity: 0.9;
}

.cod-note {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.checkout-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.checkout-body a {
  color: #27ae60;
  font-weight: 600;
  text-decoration: none;
}

.checkout-body a:hover {
  text-decoration: underline;
}

.payment-method {
  margin: 1rem 0;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.payment-method label {
  cursor: pointer;
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

/* ===== Color Variant Selector ===== */
.color-selector {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: center;
}

.color-label {
  font-weight: 600;
  color: #4b2e2e;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.color-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.color-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-btn:hover:not(.unavailable) {
  transform: scale(1.15);
  border-color: #4b2e2e;
}

.color-btn.active {
  border-color: #4b2e2e;
  box-shadow: 0 4px 12px rgba(75, 46, 46, 0.3);
  transform: scale(1.1);
}

.color-btn.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
  position: relative;
}

.color-btn.unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e74c3c;
  transform: translateY(-50%) rotate(-45deg);
}


/* Color button backgrounds */
.color-btn[data-color="red"],
.card-swatch[data-color="red"] {  background: #e74c3c;}

.color-btn[data-color="blue"],
.card-swatch[data-color="blue"] {background: #3498db;}

.color-btn[data-color="green"],
.card-swatch[data-color="green"] {background: #27ae60;}

.color-btn[data-color="yellow"],
.card-swatch[data-color="yellow"] {background: #f1c40f;}

.color-btn[data-color="pink"],
.card-swatch[data-color="pink"] {background: #ff69b4;}

.color-btn[data-color="white"],
.card-swatch[data-color="white"] {background: #ffffff;
  border: 2px solid #ddd;
}

.color-btn[data-color="black"],
.card-swatch[data-color="black"] {background: #2c3e50;}

.color-btn[data-color="brown"],
.card-swatch[data-color="brown"] {background: #8b4513;}

.color-btn[data-color="beige"],
.card-swatch[data-color="beige"] {background: #f5f5dc;
  border: 2px solid #ddd;
}

.color-btn[data-color="grey"],
.card-swatch[data-color="grey"] {background: #95a5a6;}

.color-btn[data-color="gray"],
.card-swatch[data-color="gray"] {background: #95a5a6;}

.color-btn[data-color="purple"],
.card-swatch[data-color="purple"] {background: #9b59b6;}

.color-btn[data-color="orange"],
.card-swatch[data-color="orange"] {background: #e67e22;}

.color-btn[data-color="navy"],
.card-swatch[data-color="navy"] {background: #001f3f;}

.color-btn[data-color="turquoise"],
.card-swatch[data-color="turquoise"] {background: #1abc9c;}

.color-btn[data-color="gold"],
.card-swatch[data-color="gold"] {background: #ffd700;}

.color-btn[data-color="silver"],
.card-swatch[data-color="silver"] {background: #c0c0c0;}

.color-btn[data-color="maroon"],
.card-swatch[data-color="maroon"] {background: #800000;}

.color-btn[data-color="olive"],
.card-swatch[data-color="olive"] {background: #808000;}

.color-btn[data-color="lime"],
.card-swatch[data-color="lime"] {background: #00ff00;}

.color-btn[data-color="teal"],
.card-swatch[data-color="teal"] {background: #008080;}

.color-btn[data-color="aqua"],
.card-swatch[data-color="aqua"] {background: #00ffff;}

.color-btn[data-color="fuchsia"],
.card-swatch[data-color="fuchsia"] {background: #ff00ff;}

.color-btn[data-color="coral"],
.card-swatch[data-color="coral"] {background: #ff7f50;}

.color-btn[data-color="peach"],
.card-swatch[data-color="peach"] {background: #ffcba4;}

.color-btn[data-color="mint"],
.card-swatch[data-color="mint"] {background: #98ff98;}

.color-btn[data-color="lavender"],
.card-swatch[data-color="lavender"] {background: #e6e6fa;}

.color-btn[data-color="cream"],
.card-swatch[data-color="cream"] {background: #fffdd0;
  border: 2px solid #ddd;
}

.color-btn[data-color="ivory"],
.card-swatch[data-color="ivory"] {background: #fffff0;
  border: 2px solid #ddd;
}
/* Tooltip for color names on hover */
.color-btn::before {
  content: attr(data-color);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #666;
  text-transform: capitalize;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-btn:hover::before {
  opacity: 1;
}

/* ===== Terms & Conditions Checkbox ===== */
.terms-group {
  background: #fff9e6;
  border: 2px solid #f39c12;
  border-radius: 10px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
}

.terms-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #27ae60;
}

.terms-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
}

.terms-text strong {
  color: #e67e22;
  font-weight: 700;
}

.terms-text em {
  color: #27ae60;
  font-style: normal;
  font-weight: 600;
}

.terms-group.error {
  border-color: #e74c3c;
  background: #ffe6e6;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ===== Mobile Responsive for Color Variants ===== */
@media (max-width: 768px) {
  .color-selector {
    padding: 0.8rem;
  }

  .color-btn {
    width: 40px;
    height: 40px;
  }

  .color-buttons {
    gap: 0.5rem;
  }

  .color-btn::before {
    font-size: 0.7rem;
    bottom: -25px;
  }

  .terms-text {
    font-size: 0.85rem;
  }

  .terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .terms-group {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .color-btn {
    width: 35px;
    height: 35px;
  }

  .color-label {
    font-size: 0.9rem;
  }

  .terms-text {
    font-size: 0.8rem;
  }
}
 
/* ===== Bangle Size Selector ===== */
.size-selector {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: center;
}

.size-label {
  font-weight: 600;
  color: #4b2e2e;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.size-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.size-btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 2px solid #e0dcd5;
  background: #fff;
  color: #4b2e2e;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.size-btn:hover {
  border-color: #4b2e2e;
}

.size-btn.active {
  background: #4b2e2e;
  border-color: #4b2e2e;
  color: #fff;
}

/* ===== Bangle Mode Selector ===== */
.bangle-mode-selector {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fdf3e7;
  border-radius: 10px;
  text-align: center;
}

.mode-label {
  font-weight: 600;
  color: #4b2e2e;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.mode-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mode-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 2px solid #c98a3e;
  background: #fff;
  color: #4b2e2e;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-btn:hover {
  transform: translateY(-2px);
}

.mode-btn.active {
  background: #c98a3e;
  border-color: #c98a3e;
  color: #fff;
}

/* ===== Return Policy Banner (Top Warning) ===== */
.return-policy-banner {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.banner-icon {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.banner-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.banner-text strong {
  font-weight: 700;
  text-decoration: underline;
}

.banner-link {
  background: white;
  color: #c0392b;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.banner-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== Return Policy Checkbox in Checkout ===== */
.return-policy-group {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 1.2rem;
  margin: 1rem 0;
}

.return-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
}

.return-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #ff6b6b;
}

.return-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
}

.return-text a {
  color: #ff6b6b;
  text-decoration: underline;
  font-weight: 600;
}

.return-text a:hover {
  color: #e85a5a;
}

.return-policy-group.error {
  border-color: #e74c3c;
  background: #ffe6e6;
  animation: shake 0.5s;
}

/* ===== Return Policy Modal ===== */
.policy-modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.policy-body {
  padding: 2rem;
}

.policy-body h2 {
  text-align: center;
  color: #4b2e2e;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #ff6b6b;
  padding-bottom: 1rem;
}

.policy-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid #4b2e2e;
}

.policy-section h3 {
  color: #4b2e2e;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.policy-section ul,
.policy-section ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.policy-section li {
  margin: 0.5rem 0;
  color: #555;
}

.policy-section p {
  line-height: 1.8;
  color: #555;
  margin: 0.5rem 0;
}

.policy-section a {
  color: #ff6b6b;
  font-weight: 600;
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

.policy-highlight {
  background: #fff3cd;
  border-left-color: #ffc107;
  border: 2px solid #ffc107;
}

.policy-highlight h3 {
  color: #ff6b6b;
}

.policy-note {
  background: #e3f2fd;
  border-left-color: #2196f3;
}

.policy-contact {
  background: #f3e5f5;
  border-left-color: #9c27b0;
  text-align: center;
}

.policy-contact p {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.policy-accept-btn {
  width: 100%;
  padding: 1rem;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.policy-accept-btn:hover {
  background: #229954;
  transform: scale(1.02);
}

/* ===== Footer Links ===== */
.footer-links {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d4a373;
  text-decoration: underline;
}

.footer-separator {
  margin: 0 0.8rem;
  opacity: 0.6;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .return-policy-banner {
    padding: 0.8rem 1rem;
  }

  .banner-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .banner-text {
    font-size: 0.85rem;
  }

  .banner-link {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .policy-body {
    padding: 1.5rem 1rem;
  }

  .policy-body h2 {
    font-size: 1.5rem;
  }

  .policy-section {
    padding: 1rem;
  }

  .policy-section h3 {
    font-size: 1.1rem;
  }

  .return-text {
    font-size: 0.85rem;
  }

  .footer-links {
    font-size: 0.85rem;
  }

  .footer-separator {
    margin: 0 0.4rem;
  }
}

@media (max-width: 480px) {
  .banner-icon {
    font-size: 1.2rem;
  }

  .banner-text {
    font-size: 0.8rem;
  }

  .policy-section ul,
  .policy-section ol {
    padding-left: 1rem;
    font-size: 0.9rem;
  }
}

/* ===== Larger Product Modal for Reviews ===== */
.product-modal-large {
  max-width: 1200px !important;
}

.product-modal-body {
  display: flex !important;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.modal-left {
  flex: 0 0 45%;
  min-width: 350px;
}

.modal-right {
  flex: 1;
  min-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== Product Rating Summary ===== */
.product-rating-summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 0.8rem;
  background: #fff9e6;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
}

.star-display {
  font-size: 1.2rem;
  color: #ffc107;
  letter-spacing: 2px;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4b2e2e;
}

.rating-count {
  color: #666;
  font-size: 0.9rem;
}

/* ===== Reviews Section ===== */
.reviews-section {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}

.reviews-title {
  font-size: 1.5rem;
  color: #4b2e2e;
  margin-bottom: 1rem;
  text-align: center;
}

/* ===== Write Review Button ===== */
.review-form-container {
  margin-bottom: 2rem;
}

.write-review-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.write-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* ===== Review Form ===== */
.review-form {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: reviewFormSlideDown 0.3s ease;
}

.review-form.hidden {
  display: none;
}

@keyframes reviewFormSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-form h4 {
  color: #4b2e2e;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.review-form .form-group {
  margin-bottom: 1.2rem;
}

.review-form label {
  display: block;
  font-weight: 600;
  color: #4b2e2e;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0dcd5;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: #ff6b6b;
}

/* ===== Star Rating Input ===== */
.star-rating-input {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  cursor: pointer;
}

.star-rating-input .star {
  color: #ddd;
  transition: all 0.2s ease;
}

.star-rating-input .star:hover,
.star-rating-input .star.active {
  color: #ffc107;
  transform: scale(1.2);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.3rem;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.submit-review-btn {
  flex: 1;
  padding: 0.8rem;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-review-btn:hover {
  background: #229954;
  transform: scale(1.02);
}

.cancel-review-btn {
  flex: 1;
  padding: 0.8rem;
  background: #95a5a6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-review-btn:hover {
  background: #7f8c8d;
}

/* ===== Reviews List ===== */
.reviews-list {
  margin-top: 2rem;
}

.no-reviews {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

.review-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f0f0f0;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 600;
  color: #4b2e2e;
  font-size: 1rem;
}

.review-date {
  font-size: 0.85rem;
  color: #999;
}

.review-stars {
  font-size: 1rem;
  color: #ffc107;
  letter-spacing: 2px;
}

.review-text {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e8f5e9;
  color: #27ae60;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 968px) {
  .product-modal-body {
    flex-direction: column;
  }

  .modal-left,
  .modal-right {
    flex: 1;
    min-width: 100%;
  }

  .reviews-section {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .product-rating-summary {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .star-rating-input {
    font-size: 1.8rem;
  }

  .reviews-title {
    font-size: 1.3rem;
  }

  .review-form {
    padding: 1rem;
  }

  .form-buttons {
    flex-direction: column;
  }

  .review-item {
    padding: 1rem;
  }

  .reviewer-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .star-rating-input {
    font-size: 1.5rem;
  }
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff3cd;
  color: #f39c12;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.review-item.pending-review {
  opacity: 0.8;
  border-left: 4px solid #f39c12;
}

.own-review-tag {
  display: inline-block;
  background: #e3f2fd;
  color: #2196f3;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.delete-review-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-review-btn:hover {
  background: #c0392b;
  transform: scale(1.05);
}

.approve-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.approve-btn:hover {
  background: #229954;
  transform: scale(1.05);
}

.unapprove-btn {
  background: #95a5a6;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unapprove-btn:hover {
  background: #7f8c8d;
  transform: scale(1.05);
}

/* Admin Mode Indicator */
#admin-indicator {
  position: fixed;
  top: 70px;
  right: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.8); }
}

body.admin-mode {
  border-top: 4px solid #667eea;
}

@media (max-width: 480px) {
  .review-actions {
    flex-direction: column;
    width: 100%;
  }

  .delete-review-btn,
  .approve-btn,
  .unapprove-btn {
    width: 100%;
    padding: 0.5rem;
  }

  #admin-indicator {
    top: 60px;
    right: 10px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* ===== Back To Top Button ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #f5ede3;
  background: #4b2e2e;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  z-index: 5000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  animation: backToTopPulse 2.5s ease-in-out infinite;
}

.back-to-top-arrow {
  display: inline-block;
  transform: scaleY(1.6);
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff;
}

#backToTop:hover {
  background: #6d4c41;
  transform: translateY(-6px) scale(1.08);
  animation: none;
}

@keyframes backToTopPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(75, 46, 46, 0.15);
  }
}

/* ===== Admin Modal (Complete Styles) ===== */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.admin-box {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  position: relative;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-box h3 {
  color: #4b2e2e;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.password-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.password-wrapper input {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 0.8rem;
  border: 2px solid #e0dcd5;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.password-wrapper input:focus {
  outline: none;
  border-color: #4b2e2e;
}

#toggleAdminEye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
}

#toggleEye {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
}

.admin-actions {
  display: flex;
  gap: 1rem;
}

.admin-actions button {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

#adminLoginBtn {
  background: #27ae60;
  color: white;
}

#adminLoginBtn:hover {
  background: #229954;
  transform: scale(1.02);
}

#adminCancelBtn {
  background: #95a5a6;
  color: white;
}

#adminCancelBtn:hover {
  background: #7f8c8d;
}

@media (max-width: 480px) {
  .admin-box {
    width: 95%;
    padding: 1.5rem;
  }

  .admin-box h3 {
    font-size: 1.2rem;
  }
}

/* ===== Quick View - Add to Cart Button ===== */
#modal-add-to-cart {
  width: 100%;
  padding: 16px 20px;
  margin-top: 16px;
  background: linear-gradient(135deg, #4b2e2e, #7a4a3a);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#modal-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

#modal-add-to-cart:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#modal-add-to-cart:disabled {
  background: #c7b7b0;
  color: #4b2e2e;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.9;
}

#modal-add-to-cart:not(:disabled) {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(122, 74, 58, 0.6);
  }

  70% {
    box-shadow: 0 0 20px rgba(122, 74, 58, 0);
  }

  100% {
    box-shadow: 0 0 0 rgba(122, 74, 58, 0);
  }
}