


.soh-modifiers-product-img-container {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 8px;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
  border: 1px solid #f9f9f9;
}

/* Custom availability tooltip */
.soh-availability-tooltip {
  background: #222;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: soh-tooltip-fade-in 0.2s ease-in-out;
}

@keyframes soh-tooltip-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.soh-modifiers-product-card:has(.soh-product-banner) .soh-modifiers-product-img-container {
  grid-column: 2;
}.soh-modifiers-product-img-container img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
}

.soh-modifiers-product-img-container .soh-modifiers-add-to-cart {
  position: absolute;
  bottom: -12px;
  right: -12px;
  z-index: 10;
  margin: 0;
}

@media (max-width: 480px) {
  .soh-modifiers-product-img-container {
    width: 100%;
    height: 80px;
  }
  .soh-modifiers-product-img-container img {
    width: 100%;
    height: 80px;
  }
}

@media (max-width: 780px) {
  .soh-modifiers-product-img-container {
    width: 100%;
    height: 100px;
    border-radius: 8px;
  }
  .soh-modifiers-product-img-container img {
    width: 100%;
    height: 100px;
    border-radius: 8px;
  }
  .soh-modifiers-product-img-container .soh-modifiers-add-to-cart {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
/* Featured WooCommerce product card style */
.soh-modifiers-product-card.soh-product-featured {
  border: none;
  box-shadow: 0 8px 24px rgba(255,152,0,0.15);
  background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.soh-modifiers-product-card.soh-product-featured:hover {
  box-shadow: 0 12px 32px rgba(255,152,0,0.2);
  transform: translateY(-2px);
}

/* Featured product that is unavailable */
.soh-modifiers-product-card.soh-product-featured.soh-product-unavailable {
  opacity: 0.6;
  filter: grayscale(0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  background: #fff;
}

.soh-modifiers-product-card.soh-product-featured.soh-product-unavailable:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: none;
}
/* Add top padding only for cards with time restriction banner */
.soh-modifiers-product-card .soh-product-banner.soh-time-restriction-banner ~ .soh-modifiers-product-start-info {
    padding-top: 0;
}
/* Generic product banner for status messages */
.soh-product-banner {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0;
  z-index: 2;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  width: auto;
  background-clip: padding-box;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-orientation: mixed;
}

/* Out of stock banner variant */
.soh-product-banner.soh-out-of-stock-banner {
  background: #d9534f;
  color: #fff;
}
/* Time restriction (not available) banner variant */
.soh-product-banner.soh-time-restriction-banner {
  background: #ffd600;
  color: #222;
}
.soh-product-desc-wrapper {
  margin-bottom: 1.2rem;
}


.soh-modifiers-product-nutrition {
  font-size: 0.97rem;
  color: #444;
  font-weight: 500;
  flex: 1 1 auto;
}

/* Disabled style for out of stock product cards */
.soh-modifiers-product-card.soh-product-unavailable {
  opacity: 0.6;
  pointer-events: auto;
  filter: grayscale(0.2);
}

/* Prevent clicking on product info and image on unavailable products */
.soh-modifiers-product-card.soh-product-unavailable .soh-modifiers-product-info,
.soh-modifiers-product-card.soh-product-unavailable .soh-modifiers-product-img-container {
  pointer-events: none;
}

/* Disable add to cart button on unavailable products */
.soh-modifiers-product-card.soh-product-unavailable .soh-modifiers-add-to-cart {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Allow pointer events on banner for tooltip */
.soh-modifiers-product-card.soh-product-unavailable .soh-product-banner {
  pointer-events: auto;
}

/* SOH Modifiers Frontend Styles */
.soh-modifiers-products-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
}
.soh-modifiers-products-grid { display: block; }
.soh-category-section { 
  margin-bottom: 40px;
  border-radius: 0.75rem;
  overflow: hidden;
}
.soh-category-product-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}
.soh-category-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.soh-category-description { font-size: 1rem; color: #555; margin-bottom: 1.5rem; transition: max-height 0.3s, -webkit-line-clamp 0.3s; }
.soh-description-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.5em;
  transition: max-height 0.3s ease, -webkit-line-clamp 0.3s ease;
}

.soh-modifiers-product-desc.soh-description-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.5em;
}

.soh-modifiers-product-desc:not(.soh-description-clamped) {
  display: block;
  overflow: visible;
  max-height: none;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.soh-show-more-link-inline {
  display: inline;
  color: #0073aa;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 0.5rem;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

.soh-show-more-link-inline:hover {
  color: #005a87;
}

.soh-show-more-link-inline i {
  margin-right: 0.4rem;
  transition: transform 0.3s ease;
}

/* Featured Products Carousel */
.soh-featured-carousel {
  position: relative;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.soh-carousel-inner {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.soh-carousel-inner::-webkit-scrollbar {
  display: none;
}

.soh-carousel-inner::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.soh-carousel-inner::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.soh-carousel-item {
  flex: 0 0 auto;
  min-width: auto;
  background: #02182b;
  border-radius: 10px;
}

.soh-carousel-item-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  border: none;
  padding: 1rem;
}

.soh-carousel-item-inner:hover {
  background: #03045E;
  border-radius: 10px;
  transform: scale(1.02);
  opacity: 1;
}

.soh-carousel-image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.soh-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.soh-carousel-image-hidden {
  display: none;
  width: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.soh-carousel-item-inner:has(.soh-carousel-image-hidden) {
  gap: 0;
}

.soh-carousel-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.soh-carousel-category {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.soh-carousel-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
  color: #D7263D;
}

.soh-carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.soh-carousel-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #D7263D;
  white-space: nowrap;
}

.soh-carousel-add-btn {
  background: #D7263D;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.soh-carousel-add-btn:hover {
  background: #555;
}

.soh-carousel-prev,
.soh-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s;
  z-index: 2;
  padding: 0;
}

.soh-carousel-prev:hover,
.soh-carousel-next:hover {
  background: #555;
}

.soh-carousel-prev {
  left: 0;
}

.soh-carousel-next {
  right: 0;
}

.soh-carousel-no-scroll .soh-carousel-prev,
.soh-carousel-no-scroll .soh-carousel-next {
  display: none;
}

.soh-carousel-button-hidden {
  display: none;
}

@media (max-width: 600px) {
  .soh-featured-carousel {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
  }
  
  .soh-carousel-item {
    flex: 0 0 auto;
    min-width: auto;
  }
  
  .soh-carousel-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
  }
  
  .soh-carousel-title {
    font-size: 0.9rem;
  }
  
  .soh-carousel-prev,
  .soh-carousel-next {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}
.soh-description-wrapper {
  margin-bottom: 1.5rem;
}
.soh-modifiers-product-card {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  grid-template-rows: auto;
  gap: 1.2rem;
  position: relative;
  transition: background 0.2s;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  align-items: start;
  overflow: visible;
}

.soh-modifiers-product-card:has(.soh-product-banner) {
  grid-template-columns: auto 100px 1fr 50px;
}

.soh-modifiers-product-card:last-child {
  border-bottom: none;
}

.soh-modifiers-product-card:hover {
  background: #fafafa;
}

.soh-modifiers-product-start-info {
  display: contents;
}

.soh-modifiers-product-card.soh-product-unavailable .soh-modifiers-product-start-info {
  padding-top: 0;
  margin-top: 0;
}
.soh-modifiers-product-info { 
  flex: 1; 
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  grid-column: 2;
  grid-row: auto;
}

.soh-modifiers-product-card:has(.soh-product-banner) .soh-modifiers-product-info {
  grid-column: 3;
}
.soh-modifiers-product-title { 
  font-size: 1.1rem; 
  font-weight: 700; 
  margin-bottom: 0; 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  word-break: break-word;
  flex-wrap: wrap;
}
.soh-modifiers-product-desc { 
  font-size: 0.97rem; 
  color: #666; 
  margin-bottom: 0; 
  line-height: 1.5; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2; 
  -webkit-box-orient: vertical; 
  word-break: break-word;
}
.soh-modifiers-product-flags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.soh-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #f0f0f0;
  white-space: nowrap;
}
.soh-flag-label { font-weight: 500; }
.soh-product-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.soh-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}
.soh-tag-label { font-weight: 500; }
.soh-modifiers-product-nutrition {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.6rem;
  word-break: break-word;
}
.soh-modifiers-allergens-disclaimer {
  font-size: 0.85rem;
  color: #d9534f;
  margin-top: 0.6rem;
  word-break: break-word;
}
.soh-modifiers-product-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.soh-modifiers-product-price { font-size: 1.15rem; font-weight: 700; color: #222; margin-top: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.soh-product-regular-price {
  text-decoration: line-through;
  color: #ff6b35;
  font-size: 0.95rem;
  font-weight: 600;
}
.soh-product-sale-price {
  font-size: 1.2rem;
  font-weight: 700;
}
.soh-modifiers-add-to-cart {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  margin-top: 0;
}

.soh-modifiers-product-card:has(.soh-product-banner) .soh-modifiers-add-to-cart {
  grid-column: 4;
}
.soh-modifiers-add-to-cart:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* =================================================================== */
/* STICKY NAV & SEARCH (FINAL VERSION)
/* =================================================================== */

.soh-modifiers-category-scroll {
    position: sticky; top: 93px; z-index: 1;
    background: #fff;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; padding: 0 1rem;
    gap: 1rem;
}
.soh-category-list {
    display: flex; flex: 1 1 auto;
    align-items: center; height: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.soh-category-list::-webkit-scrollbar { display: none; }
.soh-category-link {
    white-space: nowrap;
    margin-right: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    border: 1px solid #ddd;
    color: #333;
    padding: 5px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
}
.soh-category-link:hover { 
  background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08) !important;
    transform: translateY(-1px);
    color: #333;
 }
.soh-category-link.active { 
    background: #333 !important;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12) !important;
    transform: translateY(-1px);
    color: whitesmoke;
 }

.soh-search-wrapper {
    display: flex; align-items: center;
    flex-shrink: 0;
}
/* When search is active, the wrapper grows */
.soh-search-wrapper.active {
    flex: 1 1 100%;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    border-radius: 50px;
    padding: 0 0.75rem;
}
.soh-search-icon {
    width: 24px; height: 24px; cursor: pointer; color: #333;
}
.soh-search-wrapper.active .soh-search-icon {
    color: #888;
}
.soh-sticky-search-input {
    flex-grow: 1;
    border: none; outline: none;
    font-size: 1rem;
    padding: 0.5rem;
    background: transparent;
}
.soh-search-cancel {
    background: none; border: none; cursor: pointer; color: #333;
    font-size: 1rem; font-weight: 500;
    padding-left: 1rem;
}
#soh-modifiers-search-box-sticky{
	border: none!important;
  box-shadow: none!important;
}

@media (max-width: 600px) {
  .soh-modifiers-category-scroll {
    top: 70px;
  }
}

/* --- Modal Styles (Unchanged) --- */
body.soh-modal-open {
  overflow: hidden;
}

#soh-modifiers-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.soh-modifiers-modal-content {
  background: #fff; border-radius: 12px; max-width: 420px; width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12); position: relative;
  display: flex; flex-direction: column; max-height: 90vh;
  box-sizing: border-box;
  overflow: hidden;
}
.soh-modifiers-modal-close {
  position: absolute; top: 16px; right: 16px; background: #f0f0f0; border: none;
  font-size: 1.1rem; color: #333; cursor: pointer; width: 32px; height: 32px;
  border-radius: 50%; line-height: 32px; text-align: center; z-index: 10;
}

button.soh-modifiers-modal-close:hover {
    background: #333;
    color: #fff;
}

.soh-modal-qty-btn:hover {
    background: #333;
    color: #fff;
}

.soh-modifier-plus:hover, .soh-modifier-minus:hover {
    background: #333;
    color: #fff;
}

.soh-modifiers-modal-title { font-size: 1.3rem; font-weight: bold; padding: 24px 20px 12px; }

.soh-modifiers-modal-description {
  font-size: 0.95rem;
  color: #666;
  padding: 0 20px 12px 20px;
  line-height: 1.5;
  border-bottom: 1px solid #eee;
}

.soh-modifiers-modal-body {
  padding: 0px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  flex-grow: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #f1f4f9;
  box-sizing: border-box;
}

.soh-modifiers-modal-body::-webkit-scrollbar {
  display: none;
}
.soh-modal-group { padding: 16px 0; border-bottom: 1px solid #eee; }
.soh-modal-group:last-child { border-bottom: none; }
.soh-modal-group-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: -8px;
  z-index: 10;
  background: #f1f4f9;
  padding: 8px 0;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  cursor: pointer;
}

.soh-modal-group-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
}

.soh-modal-group-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.soh-modal-group-content strong {
  display: block;
  margin-bottom: 2px;
}

.soh-modal-group-badge {
  background: #333;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 50px;
  padding: 2px 8px;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.soh-modal-group-badge.soh-badge-required {
  background: #333;
  color: #fff;
}

.soh-modal-group-badge.soh-badge-done {
  background: #28a745;
  color: #fff;
}
.soh-modal-option, .soh-modal-modifier-row { display: flex; align-items: center; padding: 8px 0; }
.soh-modal-option.disabled, .soh-modal-modifier-row.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.soh-modal-option input { margin-right: 12px; width: 18px; height: 18px; }
.soh-modal-option-label { flex-grow: 1; font-size: 1rem; }
.soh-option-name { display: block; }
.soh-modal-option-price { font-size: 1rem; font-weight: 700; }

/* Enhanced modifier card layout */
.soh-modal-option-enhanced { 
  display: flex; 
  align-items: center; 
  padding: 8px; 
  border: 1px solid #e9ecef; 
  border-radius: 8px; 
  margin-bottom: 8px;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 8px;
}

.soh-modal-option-enhanced:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.soh-modal-option-enhanced input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  margin-top: 2px;
  accent-color: #333;
}

.soh-modal-option-enhanced input:checked {
  accent-color: #333;
}

.soh-modal-option-enhanced:has(input:checked) {
  background: #f0f0f0;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(51, 51, 51, 0.1);
}

.soh-modal-option-enhanced.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.soh-modal-option-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-right: 0;
  flex-shrink: 0;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

.soh-modal-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soh-modal-option-image div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  color: #ccc;
}

.soh-modal-option-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
}

.soh-modal-option-label {
  margin-bottom: 2px;
  font-weight: 600;
  font-size: 0.95rem;
}

.soh-modal-option-price-row {
  margin-top: 2px;
  padding-top: 0;
}

/* Enhanced quantity modifier row */
.soh-modal-modifier-row-enhanced {
  display: flex;
  align-items: center;
  padding: 8px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  transition: all 0.2s ease;
  gap: 8px;
}

.soh-modal-modifier-row-enhanced.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.soh-modal-modifier-row-enhanced.selected {
  background: #f0f0f0;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(51, 51, 51, 0.1);
}

.soh-modal-modifier-row-enhanced .soh-modal-option-image {
  margin-right: 0;
}

.soh-modal-modifier-row-enhanced .soh-modal-option-content {
  flex-grow: 1;
}

.soh-modal-modifier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  width: 100%;
}

/* Loading spinner overlay */
.soh-modal-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 12px;
}

.soh-modal-spinner {
  font-size: 2.5rem;
  color: #333;
}

.soh-modal-spinner i {
  animation: soh-spin 1s linear infinite;
}

@keyframes soh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.soh-modal-modifier-footer .soh-modal-option-price {
  color: #333;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.9rem;
}

.soh-modal-modifier-footer .soh-modal-modifier-qtywrap {
  margin-right: 0;
}
.soh-modal-group-error-msg { color: red; font-size: 0.9em; margin-top: 8px; }
.soh-stock-badge {
    color: #fff; background-color: #d9534f; padding: 2px 8px;
    border-radius: 50px; margin-top: 4px; font-size: 0.75em; 
    display: block; width: fit-content;
}
.soh-modal-modifier-qtywrap { display: flex; align-items: center; gap: 8px; margin-right: 12px; }
.soh-modifier-plus, .soh-modifier-minus {
  background: #333; border: 1px solid #333; border-radius: 50%; width: 28px; height: 28px;
  font-size: 1rem; color: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; line-height: 1; transition: all 0.2s ease;
}
.soh-modifier-plus:hover, .soh-modifier-minus:hover {
  background: #222; border-color: #222;
}
.soh-modifier-plus:disabled, .soh-modifier-minus:disabled { background-color: #e9ecef; color: #aaa; border-color: #e9ecef; cursor: not-allowed; }
.soh-modifier-qty { min-width: 22px; text-align: center; font-weight: bold; font-size: 1rem; }
.soh-modal-qty-bar { display: flex; align-items: center; background: #fff; padding: 12px 20px; border-top: 1px solid #eee; border-radius: 0px 0px 10px 10px; }
.soh-qty-control { display: flex; align-items: center; gap: 16px; margin-right: 20px; }
.soh-modal-qty-btn {
  background: #e0e0e0; border: none; border-radius: 50%; width: 32px; height: 32px;
  font-size: 1.1rem; color: #222; cursor: pointer;
}
.soh-modal-qty { font-size: 1.1rem; font-weight: bold; }
.soh-modifiers-modal-add {
  background: #333; color: #fff; border: none; border-radius: 50px; padding: 12px 24px;
  font-size: 1rem; font-weight: bold; cursor: pointer; flex-grow: 1; text-align: center;
}

.soh-modifiers-modal-add:hover {
    background: #111; /* Changes the background color on hover */
}

@media (max-width: 600px) {
  #soh-modifiers-modal {
    align-items: flex-end;
    padding: 0;
    background: rgba(0,0,0,0.3);
    overflow: hidden;
  }
  
  .soh-modifiers-modal-content {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 80vh;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .soh-modifiers-modal-close {
    top: 12px;
    right: 12px;
  }

  /* Responsive enhanced modifier cards */
  .soh-modal-option-enhanced,
  .soh-modal-modifier-row-enhanced {
    flex-direction: row;
    align-items: center;
    padding: 8px;
    gap: 8px;
  }

  .soh-modal-option-enhanced input,
  .soh-modal-modifier-row-enhanced input {
    position: static;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
  }

  .soh-modal-option-image {
    width: 60px;
    height: 60px;
    margin-right: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .soh-modal-option-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
  }

  .soh-modal-modifier-row-enhanced .soh-modal-option-image {
    margin-bottom: 0;
  }

  .soh-modal-modifier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: auto;
  }

  .soh-modal-modifier-footer .soh-modal-option-price {
    color: #333;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .soh-modal-modifier-footer .soh-modal-modifier-qtywrap {
    margin-right: 0;
  }
}

/* Always fixed floating basket button (desktop + mobile) */
.soh-view-basket-button {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 16px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 999px; /* pill style */
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: all 0.2s ease-in-out;
    z-index: 9999;
    width: auto;
    max-width: 90%;
    justify-content: center;
}

.soh-view-basket-button:hover {
    background-color: #222;
    color: #fff;
    transform: translateX(-50%) scale(1.05);
}

/* Icon + badge */
.soh-basket-icon {
    position: relative;
}

.soh-basket-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.soh-basket-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #f58220;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
}

.soh-basket-text {
    font-weight: 600;
}

.soh-basket-total {
    font-size: 1.1rem;
    font-weight: 700;
}

.soh-modifiers-product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}

/* Separators for grouped variation headings inside mini-cart / fragments */
.widget_shopping_cart_content .soh-mod-separator,
.soh-mini-cart-list .soh-mod-separator,
.woocommerce-mini-cart .soh-mod-separator,
dl.variation + .soh-mod-separator,
dl.variation .soh-mod-separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
  margin: 0.55rem 0;
}

/* Slightly more visible divider on mobile */
@media (max-width: 600px) {
  .widget_shopping_cart_content .soh-mod-separator,
  .soh-mini-cart-list .soh-mod-separator,
  .woocommerce-mini-cart .soh-mod-separator {
    background: linear-gradient(90deg, rgba(0,0,0,0.08), rgba(0,0,0,0.03));
  }
}


.widget_shopping_cart_content .soh-mod-unit-price {
    font-weight: 600;
    color: #222;
    font-size: 14px;
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    Padding-right: 9px;
}

.widget_shopping_cart_content .soh-mod-line-total {
  font-weight: 600;
  color: #222;
  font-size: 14px;
  margin-left: 10px;
  margin-top: 6px;
  display: inline-block;
  white-space: nowrap;
}

.widget_shopping_cart_content .soh-mod-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.widget_shopping_cart_content .soh-mod-price-row .soh-mod-unit-price {
  margin: 0;
  display: block;
}
.widget_shopping_cart_content .soh-mod-price-row .soh-mod-line-total {
  margin: 0;
  display: block;
}

.widget_shopping_cart_content dl.variation {
width:80%;
padding: 6px 8px;
background: rgba(0,0,0,0.02);
border-radius: 8px;
}
.widget_shopping_cart_content dl.variation dd {
margin: 0;
padding: 1px;
}
.widget_shopping_cart_content dl.variation dd:last-child {
border-bottom: none;
}
.widget_shopping_cart_content dl.variation dd p { margin:0; display:flex; align-items:center; }
.widget_shopping_cart_content dl.variation dd p .woocommerce-Price-amount { font-weight:600; color:#222; }


dl.variation {
padding: 6px 8px;
background: rgba(0,0,0,0.02);
border-radius: 8px;
}
dl.variation dd {
margin: 0;
padding: 1px;
}
dl.variation dd:last-child {
border-bottom: none;
}
dl.variation dd p { margin:0; display:flex; align-items:center; }
dl.variation dd p .woocommerce-Price-amount { font-weight:600; color:#222; }
dl.variation dd, dl.variation dd p, dl.variation dt {
    display: block!important;
}

.soh-flag {
  display: inline-flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 2px 10px 2px 4px;
  font-size: 0.95em;
  color: #333;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #e0e0e0;
  transition: background 0.2s;
  height: 28px;
  min-width: 36px;
  max-width: 120px;
  vertical-align: middle;
}

.soh-flag-icon {
  margin-right: 4px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.soh-flag-label {
  font-weight: 500;
  margin-left: 2px;
  font-size: 0.95em;
}

.soh-modifiers-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}

.soh-tag {
  display: inline-flex;
  align-items: center;
  background: #e3f2fd;
  border-radius: 16px;
  padding: 2px 10px 2px 4px;
  font-size: 0.95em;
  color: #1565c0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #bbdefb;
  transition: background 0.2s;
  height: 28px;
  min-width: 36px;
  vertical-align: middle;
}

.soh-tag-icon {
  margin-right: 4px;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.soh-tag-label {
  font-weight: 500;
  margin-left: 2px;
}

.soh-flag.soh-flag-spicy {
    background: #ffd3cc;
    color: #d50525;
    border: 1px solid #ffd3cc;
}

.soh-tag.soh-tag-gluten-free {
    background: #fbf7d0; /* lighter shade */
    color: #b29f32;      /* darker shade */
    border: 1px solid #fbf7d0;
}

.soh-flag.soh-flag-vegan, .soh-flag.soh-flag-vegetarian{
  background: #cff7e1;
  color: #017a39;
  border: 1px solid #cff7e1;
}

.soh-flag.soh-flag-halal, .soh-flag.soh-flag-kosher {
  background: #f3e5d3; /* light latte shade */
  color: #a36f4d;      /* darker latte shade for text */
  border: 1px solid #f3e5d3;
}

/* Skeleton Loading Styles */
.soh-skeleton-header {
  width: 300px;
  height: 28px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: soh-skeleton-loading 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.soh-skeleton-card {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  grid-template-rows: auto;
  gap: 1.2rem;
  position: relative;
  min-height: 100px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  align-items: start;
  overflow: visible;
}
.soh-skeleton-img {
  width: 100%;
  height: 100px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: soh-skeleton-loading 1.5s infinite;
  border-radius: 8px;
  grid-column: 1;
  grid-row: 1 / 4;
}
.soh-skeleton-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 2;
  grid-row: 1 / 4;
  min-width: 0;
}
.soh-skeleton-title {
  width: 60%;
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: soh-skeleton-loading 1.5s infinite;
  border-radius: 6px;
}
.soh-skeleton-flags {
  width: 40%;
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: soh-skeleton-loading 1.5s infinite;
  border-radius: 6px;
}
.soh-skeleton-desc {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: soh-skeleton-loading 1.5s infinite;
  border-radius: 6px;
}
.soh-skeleton-price {
  width: 40%;
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: soh-skeleton-loading 1.5s infinite;
  border-radius: 6px;
}
@keyframes soh-skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.soh-skeletons-wrapper {
  display: contents;
}

/* =============================== */
/* SOH MINI CART POPUP STYLES      */
/* =============================== */

.soh-mini-cart-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 18px 16px 24px 16px;
  max-width: 600px;
  width: 100%;
  font-family: inherit;
  z-index: 99999;
}
.soh-mini-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.soh-mini-cart-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.soh-mini-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.soh-mini-cart-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.soh-mini-cart-item-qty {
  color: #888;
  font-size: 13px;
  margin-left: 4px;
}
.soh-mini-cart-item-price {
  font-weight: 600;
  color: #222;
  font-size: 15px;
}
.soh-mini-cart-remove {
  background: none;
  border: none;
  color: #d9534f;
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.2s;
}
.soh-mini-cart-remove:hover {
  color: #b52a1a;
}
.soh-mini-cart-item-details {
  margin-top: 4px;
  margin-left: 2px;
}
.soh-mini-cart-mod-list,
.soh-mini-cart-variation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2px 0;
}
.soh-mini-cart-mod-group {
  font-size: 14px;
  color: #444;
  margin-bottom: 2px;
}
.soh-mini-cart-variation-attr {
  font-size: 13px;
  color: #666;
  margin-bottom: 2px;
}
.soh-mini-cart-total {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-top: 10px;
  margin-bottom: 8px;
  text-align: right;
}
.soh-mini-cart-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.soh-mini-cart-checkout.btn {
  background: #222;
  color: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
}
.soh-mini-cart-checkout.btn:hover {
  background: #d9534f;
}
.soh-mini-cart-empty {
  color: #888;
  font-size: 16px;
  text-align: center;
  margin: 30px 0;
}

/* MINI CART QTY CONTROLS */
.soh-mini-cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.soh-mini-cart-qty-minus,
.soh-mini-cart-qty-plus {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.soh-mini-cart-qty-minus:hover,
.soh-mini-cart-qty-plus:hover {
  background: #333;
  color: #fff;
}
.soh-mini-cart-item-qty {
  min-width: 22px;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  color: #444;
}

.soh-mini-cart-product-actions{
  display:flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.soh-fomo-image-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.soh-sale-badge {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  background: #28a745;
  border-radius: 8px 8px 0 0;
  line-height: 1.4;
  letter-spacing: 0.3px;
  width: 100%;
  box-sizing: border-box;
}

.soh-fomo-indicator {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
  border-radius: 0 0 8px 8px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .soh-sale-badge {
    font-size: 11px;
    padding: 6px 8px;
  }
  .soh-fomo-indicator {
    font-size: 11px;
    padding: 6px 8px;
  }
}
