/* =========================================================
   PRICELIST MODE STYLING â€” Single Row Layout (Optimized Controls)
========================================================= */
.sf-pricelist-wrapper {
  padding: 0px 0px;
  max-width: 1200px;
}

.sf-price-cat {
  color: var(--color-primary, #28a745);
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
}

.sf-price-table {
  width: 100%;
}

/* =========================================================
   Product Row & Description
========================================================= */
.sf-price-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}
.sf-price-row:hover {
  background: #f9f9f9;
}

/* The main row layout (product line) */
.sf-row-main {
  display: grid;
  grid-template-columns: 2fr 1fr auto auto;
  align-items: center;
  padding: 0px 0px;
  gap: 10px;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
}

/* ======================================================
   Pricelist Description with Image
====================================================== */
.sf-short-desc {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
}

.sf-short-desc.active {
  max-height: 220px;
  opacity: 1;
  padding: 0px 0px;
}

.sf-desc-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0px;
}

.sf-desc-img {
  width: 80px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #ddd;
}

.sf-desc-text {
  flex: 1;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  word-break: break-word;
}


/* =========================================================
   Product Text
========================================================= */
.sf-pname {
  font-weight: 600;
  color: #222;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.sf-pprice {
  font-weight: 700;
  color: var(--color-primary, #28a745);
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
   Quantity Control â€” Larger Buttons, Narrower Input
========================================================= */
.sf-pqty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-qty-btn {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease;
    color: var(--mh-primary-dark);
}

.sf-qty-btn:hover {
  background: #e5e5e5;
}

.sf-qty-input {
    width: 42px;
    text-align: center;
    border: solid white;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.2;
    color: var(--mh-primary-dark);
}

/* Remove arrows from qty input */
.sf-qty-input {
  -moz-appearance: textfield !important;
}

.sf-qty-input::-webkit-inner-spin-button,
.sf-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}


/* =========================================================
   Add to Cart Button
========================================================= */
.sf-add-btn {
    background: var(--mh-primary-dark);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 4px 9px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: background 0.2s;
    white-space: nowrap;
    /* line-height: 1; */
}
.sf-add-btn:hover {
  background: #218838;
}
.sf-add-btn.loading {
  opacity: 0.6;
  cursor: wait;
}

/* âœ… Adjust Lucide Cart Icon */
.sf-add-btn svg.lucide {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2;
    position: relative;
    flex-shrink: 0;
    margin-right: 3px;
}
/* =========================================================
   Empty State
========================================================= */
.sf-empty-msg {
  text-align: center;
  color: #888;
  padding: 20px 0;
}

/* =========================================================
   PRICELIST HEADER STYLING
========================================================= */
.pricelist-header {
  text-align: center;
  margin-bottom: 18px;
}

.pricelist-header .storefront-title {
  font-size: 18px;
  font-weight: 700;
  color: #155724;
  margin-bottom: 4px;
}

.pricelist-header .storefront-subtitle {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.pricelist-header .storefront-subtitle small {
  font-size: 12px;
  color: #555;
}

/* ---------------------------------------------------------
   CATEGORY HEADER â€“ MODERN TAG STYLE
--------------------------------------------------------- */
.sf-price-cat.modern {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #155724;
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.25);
  border-radius: 30px;
  padding: 8px 16px;
  margin: 22px 0 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sf-price-cat.modern i {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.sf-price-cat.modern span {
  flex: 1;
  line-height: 1.3;
  word-break: break-word;
}

@media (max-width: 768px) {
  .sf-price-cat.modern {
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 0px;
    margin: 18px 0 10px;
  }
  .sf-price-cat.modern i {
    width: 16px;
    height: 16px;
  }
}


/* =========================================================
   Responsive Adjustments
========================================================= */
@media (max-width: 768px) {
  .sf-row-main {
    grid-template-columns: 1.5fr 1.2fr auto auto;
    gap: 6px;
    font-size: 14px;
  }

  .sf-pname {
    font-size: 14px;
  }

.sf-qty-btn {
    padding: 0px 0px;
    font-size: 18px;
}

  .sf-qty-input {
    width: 38px;
    font-size: 12.5px;
  }

  .sf-add-btn {
    padding: 6px 7px;
    font-size: 11.5px;
  }

  .sf-short-desc.active {
    max-height: 120px; /* allow a bit more room for mobile */
  }
}

/* =========================================================
   ðŸŽ¨ Refined Tap / Hover Effects â€” Limit to Name & Price Only
========================================================= */

/* Disable background flash for buttons and inputs */
.sf-qty-btn,
.sf-qty-input,
.sf-add-btn {
  background-clip: padding-box;
}

/* Make product name & price visibly clickable */
.sf-pname,
.sf-pprice {
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 2px;
}

/* Subtle hover/tap effect */
.sf-pname:hover,
.sf-pprice:hover {
  background: rgba(40, 167, 69, 0.08); /* light green tint */
  color: var(--color-primary, #28a745);
}

/* Remove pointer cursor from quantity & buttons */
.sf-qty-btn,
.sf-qty-input,
.sf-add-btn {
  cursor: default;
}
/* ---------------------------------------------------------
   CATEGORY BLOCK LAYOUT (CLEAN GROUPED STYLE)
--------------------------------------------------------- */
.sf-category-block {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 22px;
  padding: 10px 12px 6px;
}

/* Category header bar */
.sf-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 8px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.sf-cat-header i {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.sf-cat-title {
  font-size: 17px;
  font-weight: 600;
  color: #155724;
  margin: 0;
}

/* Compact list layout under each category */
.sf-product-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-price-row {
  border-bottom: 1px dashed rgba(0,0,0,0.05);
  padding: 0px 0;
}

.sf-price-row:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .sf-category-block {
    padding: 8px 10px 4px;
    margin-bottom: 16px;
  }
  .sf-cat-title { font-size: 15px; }
  .sf-price-row { padding: 0px 0; }
}

/* =========================================================
   Typing Effect for Short Description
========================================================= */
.sf-short-desc {
  display: none;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
  background: #fefefe;
  border-top: 1px solid #eee;
  line-height: 1.45;
  overflow: hidden;
  white-space: normal;
}

.sf-short-desc.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   Category Title Styling
=============================== */

.sf-cat-title {
  display: inline-block;
  color: #28a745;           /* FreshMarket green */
  font-size: 1.1rem;       /* moderate, readable size */
  font-weight: 700;
  letter-spacing: 0.3px;
}
