

:root {
  /* Brand palette */
  --primary-color: #5D0F56; /* main brand */
  --primary-hover: #290726; /* hover / accent */
  --secondary-color: #2b0c3b; /* darker accent */
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #000000;
  --text-secondary: #64748b;
  --border-color: #e9dced;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  
}

body {
 
  background: linear-gradient(120deg, #fbf8fb 0%, #f8fafc 60%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Top Notification Styles */
.top-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: var(--success);
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease forwards;
}

.top-notification.show {
  animation: slideDown 0.3s ease forwards;
}

.top-notification.error {
  background: var(--error);
}

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

/* Subtle animated background using two soft blurred shapes */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#suggestion-content > div:nth-child(1),
#suggestion-content > div:nth-child(2) {
    border: 2px solid #5D0F56;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(93, 15, 86, 0.05);
    margin-bottom: 12px;
}
body::before {
  background: radial-gradient(
    600px 400px at 10% 20%,
    rgba(93, 15, 86, 0.06),
    transparent 20%
  );
  filter: blur(48px);
  transform: translate3d(0, 0, 0);
  animation: driftA 18s ease-in-out infinite;
}
body::after {
  background: radial-gradient(
    500px 360px at 85% 70%,
    rgba(43, 12, 59, 0.05),
    transparent 18%
  );
  filter: blur(40px);
  transform: translate3d(0, 0, 0);
  animation: driftB 20s ease-in-out infinite;
}
#toast-container .container{
    padding: 0px!important;
}


.page-id-7814 #main-container{
    margin-top: 0px!important;
    padding-top: 0px;
}

/* SVG background positioning and animation */
.svg-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.14;
}
.svg-bg .bg-blob {
  transform-origin: center;
  transition: transform 12s ease-in-out;
}
.svg-bg .bg-blob.a {
  transform: translateY(0) scale(1);
  animation: blobA 22s ease-in-out infinite;
}
.svg-bg .bg-blob.b {
  transform: translateY(0) scale(1);
  animation: blobB 24s ease-in-out infinite;
}
.analyzer-hidden {
    display: none !important;
}
@keyframes blobA {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-18px) translateX(8px) scale(1.03);
  }
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
}

@keyframes blobB {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(14px) translateX(-6px) scale(1.02);
  }
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
}

@keyframes driftA {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes driftB {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(8px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.btn-group{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: space-between!important;
}
.section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

/* Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
     display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 26px;
    text-align: center;
}

/* Photo Upload */
.photo-upload {
  text-align: center;
}

.photo-upload input[type="file"] {
  display: none;
}

#photo-preview {
  margin: 2rem auto 0;
  min-height: 200px;
  min-width: 76%;
  border: 2px dashed #e9dced !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  padding: 12px;
  max-width: 100%;
}
#photo-preview img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  width: auto;
  height: auto;
  object-fit: contain;
}
#description {
  background: #ffffff !important;
  border: 2px solid #e9dced !important;
}
#photo-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
}

#photo-preview.has-image {
  border-style: solid;
  background: var(--card-bg);
}

/* Checkbox Grid */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  align-items: center;
}

.checkbox-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
  white-space: normal; /* allow wrapping */
  min-width: unset;
  max-width: 240px;
}

.checkbox-item:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.checkbox-item input[type="checkbox"] {
  /* visually hide the checkbox but keep it accessible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.checkbox-item span {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-block;
  text-align: center;
  line-height: 1.1;
}
.checkbox-item {
  font-size: 16px !important;
  border: 2px solid #e9dced !important;
}
.checkbox-item:hover {
  bodrer-color: #5d0f56 !important;
}
body .form-group #budget {
  border: 2px solid #e9dced !important;
}
/* Ensure pills wrap nicely on small screens */
@media (max-width: 520px) {
  .checkbox-grid {
    gap: 0.5rem;
  }
  .checkbox-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
    max-width: 160px;
  }
}

.checkbox-item.active {
  border-color: var(--primary-color);
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.checkbox-item.active span {
  color: #fff;
}

/* Select and Textarea */
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

/* Custom select appearance */
.form-group {
  position: relative;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(
      45deg,
      transparent 50%,
      var(--text-primary) 50%
    ),
    linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1rem + 4px),
    calc(100% - 12px) calc(1rem + 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-group::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  opacity: 0.04;
  pointer-events: none;
}

select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea {
  resize: vertical;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  width: 100%;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary,
.btn-secondary:hover {
  background: var(--background);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* Loading State */
#loading-section {
  text-align: center;
  padding: 3rem;
    min-height: 1123px;
    display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Skeleton cards */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skeleton-card {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.02)
  );
  border-radius: 12px;
  padding: 1rem;
  min-height: 340px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.skeleton-image {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  margin-bottom: 1rem;
}
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line.short {
  width: 60%;
  margin-bottom: 0.5rem;
}
.skeleton-line.med {
  width: 80%;
  margin-bottom: 0.5rem;
}
.skeleton-line.long {
  width: 95%;
  margin-bottom: 0.5rem;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

/* Results Section */
#results-section {
  margin-top: 1rem;
}

#results-section a.added_to_cart.wc-forward {
    display: none!important;
}


#results-section h2 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 700;
}

#back-to-form-btn,#suggestion-toggle-btn {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  background: none;
  color: #000000;
  text-transform: capitalize;
  border-bottom: 1px solid #5D0F56 !important;
  border-radius: 0px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 22px;
  padding: 0;
}
.product-info{
    padding: 20px 20px 30px 20px;
}
#back-to-form-btn:hover,#suggestion-toggle-btn:hover {
  background: none !important;
  color: #5D0F56 !important;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

/* Analysis panel styling */
.analysis-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.5)
  );
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.analysis-panel .left {
  min-width: 180px;
}
.analysis-panel h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--primary-color);
}
.analysis-panel p {
  color: var(--text-secondary);
  margin: 0.25rem 0;
}
.analysis-panel ul {
  margin: 0.25rem 0 0 1.1rem;
  color: var(--text-secondary);
}
.analysis-panel .suggestions {
  margin-top: 0.5rem;
}
.analysis-panel .chip {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: rgba(93, 15, 86, 0.06);
  color: var(--primary-color);
  border-radius: 999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid #F1F1F1;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Match badge */
.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  padding: 0.25rem 0.75rem;
  background: rgb(236 255 249);
  color: var(--success);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.6rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 24px);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-flex-shrink: 0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  flex-shrink: 0;
  -webkit-flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* WISHLIST REMOVED - COMMENTED CSS BELOW */
/*
.btn-wishlist-icon {
    display: none !important;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  transform: scale(0.9);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card:hover .btn-wishlist-icon {
  opacity: 1;
  transform: scale(1);
}

.btn-wishlist-icon.active {
  opacity: 1;
}

.btn-wishlist-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
  fill: none;
  transition: all 0.3s ease;
}

.btn-wishlist-icon:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.btn-wishlist-icon:hover svg {
  stroke: #400730;
}

.btn-wishlist-icon.active {
  opacity: 1;
  transform: scale(1);
  background:#400730;
}

.btn-wishlist-icon.active svg {
  stroke: white;
  fill: white;
}

.btn-wishlist-icon:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
  background: var(--error);
}

.btn-wishlist-icon:focus svg {
  stroke: #fff;
  fill: #fff;
}
*/

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--primary-color); }

.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* QUICK VIEW MODAL AND TOAST REMOVED - COMMENTED CSS BELOW */
/*
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1200;
}
.modal.hidden {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 10, 0.45);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: min(920px, 95%);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}
.toast {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}
.toast.success {
  background: var(--success);
}
.toast.error {
  background: var(--error);
}
.toast.info {
  background: var(--primary-color);
}
*/

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Suggestion Off-canvas and Toggle Button */
.suggestion-toggle {
  color: #000000;
  border: none;
  font-size: 22px;
  place-items: center;
  cursor: pointer;
  transform-origin: center;
  background: none;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.suggestion-toggle.hidden {
  display: none;
}

@keyframes wobble {
  0% {
    transform: translateX(0) rotate(-4deg);
  }
  25% {
    transform: translateX(2px) rotate(4deg);
  }
  50% {
    transform: translateX(0) rotate(-2deg);
  }
  75% {
    transform: translateX(-2px) rotate(2deg);
  }
  100% {
    transform: translateX(0) rotate(-4deg);
  }
}

.suggestion-canvas {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 360px;
  transform: translateX(-178%);
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 1399;
  display: block;
  pointer-events: none;
  max-width: 100vw;
}
.suggestion-canvas[aria-hidden="false"] {
  pointer-events: auto;
}
.suggestion-canvas.open {
  transform: translateX(0);
  pointer-events: auto;
}

.suggestion-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 10, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.suggestion-canvas.open .suggestion-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.suggestion-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width:600px;
  background: var(--card-bg);
  box-shadow: 2px 0 24px rgba(6, 4, 10, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1rem 1rem 2rem 1rem;
  overflow-y: auto;
}
.suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.suggestion-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 30px;
    font-weight: 700;
}
#suggestion-content p{
       margin-bottom:0px!important;
}


#suggestion-content h3{
font-size: 28px!important;
    border-left: 3px solid #5D0F56;
    padding-left: 15px;
    margin-top: 0px;
}
#suggestion-content h4{
font-size: 24px!important;
}
.suggestion-header .muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.suggestion-close {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
}

.suggestion-content {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.suggestion-item {
  padding: 0.75rem;
  background:#ffffff;
  border-radius: 8px;
  color: var(--text-primary);
  position: relative;
      border: 1px solid #f1f1f1;
          position: relative;
    overflow: hidden;
}
.suggestion-item::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: #fbf5ff;
    border-radius: 50%;
    opacity: 0.9;
}
.suggestion-item + .suggestion-item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.suggestion-item p {
  margin: 0;
  color: var(--text-secondary);
      font-size: 16px;
    line-height: 24px;
        z-index: 2;
            position: relative;
}
.suggestion-item .title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.suggestion-item .divider {
  margin-top: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  opacity: 0.6;
}

#skincare-form #submit-btn{
  background-color:#400730!important;
}
.photo-upload .btn-picture,
.photo-upload .btn-picture:hover,
.photo-upload .btn-picture:focus,
.photo-upload .btn-picture:active{
    background: #ffffff!important;
    border: 2px solid #400730!important;
    color: #400730!important;
}
body .photo-upload .btn-picture:hover{
 background: #ffffff!important;
    border: 2px solid #400730!important;
    color: #400730!important;
}
/* make room on very small screens */
@media (max-width: 420px) {
  .suggestion-panel {
    width: 92vw;
  }
  .suggestion-canvas {
    width: 92vw;
  }
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
  margin: 0;
  display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

.product-match {
 display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgb(236 255 249);
  color: var(--success);
  border-radius: 20px;
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
      position: absolute;
    top: 20px;
    left: 20px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #400730;
  margin-bottom: 0rem;
}

.product-category {
      font-size: 0.875rem;
    margin-bottom: 0.1rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.product-ingredients {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}

.btn-cart {
  width: 100%;
 padding: 0.4rem 1rem;
  font-size: 0.9rem;
  line-height: normal;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: var(--primary-color);
  color: white;
  margin-top: auto;
}

.btn-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-cart:active {
  transform: translateY(0);
}

.product-rating {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0rem;
    font-size: 0.8rem;
}
.product-description{
    margin-bottom: 20px;
}
.product-rating .star {
    transition: color 0.2s ease;
}

.product-rating .star.filled {
    color: #fbbf24;
}

.product-rating .star.half {
    color: #fbbf24;
    opacity: 0.5;
}

.product-rating .star.empty {
    color: #e5e7eba5;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  .suggestion-panel{
      width: 100%;
  }
  .suggestion-header h3 {
  font-size: 24px;
  }
  .suggestion-item p {
  font-size: 14px;
    line-height: 22px;
  }
#suggestion-content h3 {
    font-size: 22px !important;
    }
    #suggestion-content h4 {
    font-size: 20px !important;
}
  .product-image-wrapper {
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    -webkit-flex-shrink: 0;
  }
  
  #skincare-form #submit-btn {
    padding: 10px 15px;
        margin-top: 0px;
        font-size: 16px;
  }
  
  .photo-upload .btn-picture {
   padding: 10px 20px;
        font-size: 16px;
  }
  
  .form-group label {
    margin-bottom: 1rem!important;
  }
  
  body .checkbox-grid {
    margin-bottom: 0rem!important;
  }
  
  .checkbox-grid {
    gap: 0.2rem!important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  body .form-group .checkbox-grid label {
    margin-bottom: 0rem!important;
  }
  
  .page-id-7814 #main-content {
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .page-id-7814 .container {
    padding-top: 0px!important;
    padding-bottom: 0px!important;
            padding-left: 10px!important;
        padding-right: 10px!important;
  }
  
  .product-title {
    font-size: 0.7rem;
  }
  .product-category{
  font-size: 14px!important;
  }
  .product-price {
    font-size: 0.9rem;
  }
  
  .btn-cart {
    padding: 0.3rem 1rem;
    font-size: 0.6rem;
  }
  
  .product-ingredients {
    font-size: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-description {
    font-size: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
  }
  
  .product-content {
    padding: 0.8rem;
  }
  
  .product-match {
    font-size: 8px;
    line-height: 8px;
    padding: 6px 8px;
    top: 8px !important;
    left: 8px !important;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 1rem;
  }
.product-rating {
    display: flex;
    gap: 0.10rem;
    margin-bottom: 0rem;
    font-size: 0.6rem;
}
  .section {
    padding: 30px 10px;
  }
  
  .product-badge {
 font-size: 0.4rem;
        padding: 0.09rem 0.5rem;
        line-height: normal;
        left: 4px;
        top: 4px;
  }

  /* WISHLIST REMOVED - COMMENTED CSS BELOW */
  /*
  .btn-wishlist-icon {
    opacity: 1;
    transform: scale(1);
  }
  */

  #results-section h2 {
    font-size: 1.5rem;
  }

  #results-section > div:first-child {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
#back-to-form-btn, #suggestion-toggle-btn {
    font-size: 16px;
    padding: 0px;
}
.product-header{
    display: block;
}
.product-info{
    padding: 10px 15px 20px 15px;
}
.product-description{
line-height: 18px;
}
}



#suggestion-canvas {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 99999 !important;
}

.suggestion-panel {
    z-index: 100000 !important;
}

.suggestion-backdrop {
    z-index: 99998 !important;
}






@media(max-width: 768px){
  #cart-offcanvas-right {
    z-index: 99999 !important;
  }
  .offcanvas-backdrop {
    z-index: 99998 !important;
  }
  body.modal-open, body.offcanvas-backdrop-open {
    overflow: auto !important;
  }
}





















/**
 * Mobile Cart Offcanvas Fix
 * Add this to your style.css file
 */

/* Ensure mobile cart has proper Bootstrap classes */
#cart-offcanvas-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: flex !important;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: #fff;
  transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: translateX(100%);
  right: -100%;
  opacity: 0;
  pointer-events: none;
}

/* Show state for mobile cart */
#cart-offcanvas-mobile.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  right: 0;
  transform: translateX(0);
}

/* Offcanvas backdrop styling */
.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.offcanvas-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Offcanvas header */
#cart-offcanvas-mobile .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

/* Offcanvas body - scrollable */
#cart-offcanvas-mobile .offcanvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when cart is open */
body.modal-open {
  overflow: hidden;
}

body.offcanvas-backdrop-open {
  overflow: hidden;
}
body:has(.suggestion-canvas.open) #tbay-header {
  z-index: 1 !important;
  transition: z-index 0.3s ease-in-out;
}

:has(.suggestion-canvas.open) #tbay-header {
  z-index: 1 !important;
}

/* Close button styling */
#cart-offcanvas-mobile .offcanvas-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 0;
  transition: color 0.2s ease;
}

#cart-offcanvas-mobile .offcanvas-close:hover {
  color: #666;
}



/* Mobile-specific adjustments */
@media (max-width: 768px) {
  #cart-offcanvas-mobile {
    width: 100% !important;
    max-width: 100% !important;
  }

  #cart-offcanvas-mobile .offcanvas-header {
    padding: 1.25rem;
  }

  #cart-offcanvas-mobile .offcanvas-body {
    padding: 1rem;
  }

  .widget_shopping_cart_content {
    padding: 0;
  }

  .mini_cart_content {
    width: 100%;
  }

  /* Ensure cart items are fully visible */
  .mini_cart_inner {
    width: 100%;
  }

  .mcart-border {
    width: 100%;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  #cart-offcanvas-mobile {
    width: 350px !important;
    max-width: 80vw;
  }
}

/* Desktop - hide mobile cart and show desktop version */
@media (min-width: 1025px) {
  #cart-offcanvas-mobile {
    display: none !important;
  }

  #cart-offcanvas-right {
    display: block !important;
  }
}