/* Flavio-style two-column menu */
.srm-wrapper[data-style="flavio"] {
  max-width: 1100px;
  margin: 0 auto;
}
.srm-flavio-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  background: var(--srm-filters-bg, transparent);
  padding: var(--srm-filters-padding, 0);
  margin: var(--srm-filters-margin, 0 0 18px 0);
  height: var(--srm-filters-height, auto);
}
.srm-flavio-headings {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.srm-flavio-h {
  font-family: inherit;
  letter-spacing: 2px;
  color: var(--srm-title-color, #7a5232);
}
.srm-flavio-h.left {
  text-align: left;
}
.srm-flavio-h.right {
  text-align: right;
}
.srm-flavio-header button {
  border: 0;
  background: var(--srm-filter-btn-bg, #eee);
  color: var(--srm-filter-btn-color, #333);
  padding: 8px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
}
.srm-flavio-header button:hover {
  background: var(--srm-filter-btn-hover-bg, var(--srm-accent-color, #c6b19b));
  color: var(--srm-filter-btn-hover-color, #111);
}
.srm-flavio-header button.active {
  background: var(--srm-filter-btn-active-bg, var(--srm-accent-color, #c6b19b));
  color: var(--srm-filter-btn-active-color, #fff);
}
.srm-flavio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
/* One column mode when items are too few */
.srm-flavio-grid.srm-one-col {
  grid-template-columns: 1fr !important;
}
.srm-flavio-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.srm-item {
  position: relative;
  padding-left: 100px;
}
.srm-avatar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--srm-avatar-size, 86px);
  height: var(--srm-avatar-size, 86px);
  border-radius: var(--srm-avatar-radius, 999px);
  object-fit: cover;
  overflow: hidden; /* ensure rounded corners clip */
}
.srm-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.srm-title {
  font-weight: 700;
  color: var(--srm-title-color, #7a5232);
}
.srm-price {
  font-weight: 700;
  color: var(--srm-price-color, #2d2d2d);
}
.srm-dots {
  flex: 1;
  border-bottom: 1px dotted var(--srm-dots-color, #7f7f7f);
  height: 0;
  margin-top: 10px;
}
.srm-excerpt {
  color: #666;
  margin-top: 6px;
}
:root {
  --srm-accent-color: #fe0000;
  --srm-title-color: #fe0000;
  --srm-price-color: #2d2d2d;
  --srm-dots-color: #7f7f7f;
  --srm-font-size: 16px;
  --srm-avatar-size: 86px;
  --srm-avatar-radius: 999px;
}
.srm-wrapper[data-style="flavio"] {
  font-size: var(--srm-font-size);
}
/* Floating Cart Button */
.srm-floating-cart-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  background: #fe0000;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
  display: none; /* Hidden by default, shown when items added */
}

.srm-floating-cart-btn:hover {
  background: #fe0000;
  transform: scale(1.1);
}

.srm-floating-cart-btn.active {
  background: #fbb615;
}

.srm-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid white;
}

/* Cart Sidebar */
.srm-cart-sidebar {
  position: fixed;
  bottom: 100px;
  left: 20px;
  width: 400px;
  max-height: 70vh;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  border: 1px solid #f0f0f0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.srm-cart-sidebar.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 1000;
}

.srm-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.srm-cart-header h3 {
  margin: 0;
  color: var(--srm-title-color, #7a5232);
  font-size: 18px;
  font-weight: 600;
}

.srm-cart-clear {
  background: var(--srm-accent-color, #c6b19b);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s ease;
}

.srm-cart-clear:hover {
  background: #b5a08b;
}

.srm-cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.srm-cart-empty {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
}

.srm-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  position: relative;
}

.srm-cart-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.srm-cart-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--srm-accent-color, #c6b19b),
    #a08c70
  );
  border-radius: 12px 0 0 12px;
}

.srm-cart-item-info {
  flex: 1;
  min-width: 0;
}

.srm-cart-item-name {
  font-weight: 700;
  color: var(--srm-title-color, #7a5232);
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.srm-cart-item-variant {
  font-size: 13px;
  color: #888;
  background: #e8f4fd;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 500;
}

.srm-cart-item-price {
  font-weight: 700;
  color: var(--srm-price-color, #2d2d2d);
  font-size: 16px;
  display: block;
}

.srm-cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.srm-cart-item-quantity {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 4px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.srm-cart-item-quantity button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--srm-accent-color, #c6b19b);
  transition: all 0.15s ease;
}

.srm-cart-item-quantity button:hover {
  background: rgba(198, 177, 155, 0.1);
  color: #a08c70;
  transform: scale(1.1);
}

.srm-cart-item-quantity button:active {
  transform: scale(0.95);
}

.srm-cart-item-quantity span {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  padding: 0 8px;
}

.srm-cart-remove {
  background: #ffeaea;
  border: 1px solid #ffcccc;
  color: #ff4757;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
}

.srm-cart-remove:hover {
  background: #ff4757;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.srm-cart-remove:active {
  transform: scale(0.95);
}

.srm-cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

.srm-cart-total {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--srm-price-color, #2d2d2d);
  margin-bottom: 15px;
}

.srm-cart-whatsapp-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: background 0.15s ease;
}

.srm-cart-whatsapp-btn:hover {
  background: #1da851;
}

/* Item Actions */
.srm-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.srm-whatsapp-right {
  margin-left: auto;
}

/* Add to Cart Button */
.srm-add-to-cart-btn,
.srm-add-to-cart {
  background: #fe0000c4;
  color: #eead13;
  border: none;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  padding: 2px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(254, 0, 0, 0.2);
}

.srm-add-to-cart-btn:hover,
.srm-add-to-cart:hover {
  background: #d10000c4;
  transform: scale(1.1);
  color: #ffcc00;
  box-shadow: 0 4px 8px rgba(254, 0, 0, 0.3);
}

.srm-add-to-cart-btn:active,
.srm-add-to-cart:active {
  transform: scale(0.95);
}

/* Size variations - overridden by user's exact spec */
.srm-add-to-cart-btn.srm-size-small,
.srm-add-to-cart.srm-size-small {
  width: 31px;
  height: 31px;
  font-size: 14px;
}

.srm-add-to-cart-btn.srm-size-medium,
.srm-add-to-cart.srm-size-medium {
  width: 31px;
  height: 31px;
}

.srm-add-to-cart-btn.srm-size-large,
.srm-add-to-cart.srm-size-large {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

/* WhatsApp button adjustments for cart */
.srm-whatsapp-btn.srm-size-small {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.srm-whatsapp-btn.srm-size-medium {
  width: 40px;
  height: 40px;
}

.srm-whatsapp-btn.srm-size-large {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

@media (max-width: 900px) {
  .srm-flavio-grid {
    grid-template-columns: 1fr;
  }
  .srm-item {
    padding-left: 88px;
  }
  .srm-cart-sidebar {
    z-index: 0;
    height: auto;
    max-height: 400px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: 95%;
    transform: translateX(-340px);
  }
}
