/* ── FreshCart Product Card — fc- prefix to avoid Bootstrap conflicts ── */

/* ── Grid ── */
.fc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fc-product-col {
  width: calc(50% - 8px);
}

@media (min-width: 768px) {
  .fc-product-col { width: calc(25% - 12px); }
}

@media (min-width: 1024px) {
  .fc-product-col { width: calc(20% - 13px); }
}

/* ── Card ── */
.fc-card {
  background: transparent;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e5e7eb;
  transition: box-shadow 0.2s;
  height: 100%;
}

.fc-card:hover {
  box-shadow: 0 0 0 1.5px #16a34a, 0 4px 16px rgba(22, 163, 74, 0.15);
}

[data-bs-theme="dark"] .fc-card {
  box-shadow: 0 0 0 1px #334155;
}
[data-bs-theme="dark"] .fc-card:hover {
  box-shadow: 0 0 0 1.5px #4ade80, 0 4px 16px rgba(74, 222, 128, 0.15);
}

.fc-card-body { padding: 16px; }

/* ── Image ── */
.fc-img-wrap {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding: 0;
  margin: -16px -16px 0; /* bleed to the card edges (cancels fc-card-body padding) */
}

.fc-img-wrap a { display: block; width: 100%; }

.fc-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;        /* product thumbnails are 800x600 (4:3): frame follows the card width */
  object-fit: contain;        /* show the whole image, never crop (square images get side space) */
  object-position: center;
  display: block;
  transition: opacity 0.35s ease;
}

.fc-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3; /* same frame as the image so every card lines up */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2rem;
}

.fc-img-hover {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important; /* same box as the default image */
  height: 100% !important;
  opacity: 0;
  visibility: hidden;
}

.fc-card:hover .fc-img-hover { visibility: visible; }

.fc-card:hover .fc-img-default { opacity: 0; }
.fc-card:hover .fc-img-hover   { opacity: 1; }

/* ── Badge ── */
.fc-badge-sale {
  display: none;
  position: absolute;
  top: 0; left: 0;
  background-color: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1;
  z-index: 1;
}

/* ── Action Buttons ── */
.fc-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 0 4px;
  transition: opacity 0.3s, visibility 0.3s;
}

.fc-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  position: relative;
}

.fc-action-btn.fc-quick-view svg {
  width: 16px !important;
  height: 16px !important;
}

/* Mobile: always colored */
.fc-action-btn.fc-quick-view { background-color: #2563eb; color: #fff; }
.fc-action-btn.fc-wishlist   { background-color: #ef4444; color: #fff; }
.fc-action-btn.fc-add-cart   { background-color: #16a34a; color: #fff; }

/* Desktop: hide until hover */
@media (hover: hover) {
  .fc-actions { opacity: 0; visibility: hidden; }
  .fc-card:hover .fc-actions { opacity: 1; visibility: visible; }

  .fc-action-btn.fc-quick-view,
  .fc-action-btn.fc-wishlist,
  .fc-action-btn.fc-add-cart {
    background-color: #fff;
    color: #374151;
  }

  .fc-card:hover .fc-action-btn.fc-quick-view { background-color: #2563eb; color: #fff; }
  .fc-card:hover .fc-action-btn.fc-wishlist   { background-color: #ef4444; color: #fff; }
  .fc-card:hover .fc-action-btn.fc-add-cart   { background-color: #16a34a; color: #fff; }
}

/* ── Meta ── */
.fc-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.fc-category {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.fc-name a { color: #111827; text-decoration: none; transition: color 0.2s; }
.fc-name a:hover { color: #16a34a; }

/* ── Star Rating ── */
.fc-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #eab308;
}

.fc-stars svg { width: 14px; height: 14px; }

.fc-rating-text {
  display: flex;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
}

/* ── Price Row ── */
.fc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fc-price-wrap { min-width: 0; }

.fc-price-current {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.fc-price-old {
  font-size: 14px;
  color: #ef4444;
  text-decoration: line-through;
  margin-left: 4px;
}

/* ── Buy Button ── */
.fc-btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  background-color: #16a34a;
  color: #fff;
  border: 1px solid #16a34a;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.fc-btn-buy:hover { background-color: #15803d; border-color: #15803d; color: #fff; }

/* ── Order Summary Card (matches cart item visual style) ── */
.fc-summary-card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px 20px;
  transition: box-shadow 0.2s;
  margin-bottom: 1rem;
}

[data-bs-theme="dark"] .fc-summary-card {
  background: var(--background-white);
  border-color: var(--border-color);
}

.fc-summary-card h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark, #111827);
}

.fc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dark, #111827);
}

.fc-summary-row.fc-summary-total {
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
  margin-bottom: 0;
}

.fc-summary-row.fc-summary-total .fc-summary-total-value {
  color: #16a34a;
}

[data-bs-theme="dark"] .fc-summary-row { color: var(--text-dark); }

/* ══════════════════════════════════════════════════════════
   CART PANEL — Unified Cart Items + Order Summary Container
   ══════════════════════════════════════════════════════════ */

.cart-panel {
  background: var(--background-white, #fff);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

/* Panel header */
.cart-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(10,173,10,0.06) 0%, rgba(10,173,10,0.01) 100%);
}

.cart-panel-icon {
  width: 32px; height: 32px;
  background: var(--primary-green, #0aad0a);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.cart-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  flex: 1;
  margin: 0;
}

.cart-panel-count {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* Column label row */
.cart-col-labels {
  display: grid;
  grid-template-columns: 64px 1fr 1fr auto 1fr 40px;
  gap: 12px;
  padding: 8px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-col-labels .col-price,
.cart-col-labels .col-qty,
.cart-col-labels .col-total { text-align: center; }

/* ── Cart Item Row (inside panel) ── */
.fc-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr 1fr auto 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
  transition: background 0.15s;
}

.fc-cart-item + .fc-cart-item { margin-top: 0; }
.fc-cart-item:last-of-type { border-bottom: none; }
.fc-cart-item:hover { background: #fafafa; }

.fc-cart-img {
  width: 60px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.fc-cart-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fc-cart-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 1.2rem;
}

.fc-cart-name-col { min-width: 0; }

.fc-cart-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-cart-variants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #6b7280;
  margin-top: 3px;
}

.fc-cart-color-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

.fc-cart-price {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  text-align: center;
}

.fc-cart-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-green, #0aad0a);
  white-space: nowrap;
  text-align: center;
}

/* ── Qty Control ── */
.fc-qty-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  justify-self: center;
  background: #fff;
}

.fc-qty-btn {
  background: transparent;
  border: none;
  padding: 5px 9px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  color: #374151;
}

.fc-qty-btn:hover { background: #f3f4f6; }

.fc-qty-input {
  border: none;
  text-align: center;
  width: 36px;
  padding: 5px 2px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  outline: none;
  background: transparent;
}

/* ── Remove Button ── */
.fc-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  display: flex; align-items: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  justify-self: center;
}

.fc-remove-btn:hover { background: #fee2e2; }

/* ── Order Summary Section (bottom of panel) ── */
.cart-summary-section {
  border-top: 2px dashed #e5e7eb;
  background: linear-gradient(135deg, rgba(10,173,10,0.05) 0%, rgba(10,173,10,0.01) 100%);
  padding: 18px 24px;
}

.cart-summary-inner {
  max-width: 340px;
  margin-left: auto;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #374151;
  padding: 5px 0;
}

.cart-summary-muted { color: #9ca3af; font-size: 12px; }

.cart-summary-total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #d1fae5;
  font-size: 15px;
}

.cart-summary-total-value {
  color: var(--primary-green, #0aad0a);
  font-size: 17px;
}

/* ── Dark Mode ── */
[data-bs-theme="dark"] .cart-panel {
  background: #1e2330;
  border-color: #2d3748;
}

[data-bs-theme="dark"] .cart-panel-header {
  background: linear-gradient(135deg, rgba(10,173,10,0.12) 0%, rgba(10,173,10,0.03) 100%);
  border-color: #2d3748;
}

[data-bs-theme="dark"] .cart-panel-title { color: #e2e8f0; }
[data-bs-theme="dark"] .cart-panel-count { background: #2d3748; color: #9ca3af; }

[data-bs-theme="dark"] .cart-col-labels {
  background: #171e2c;
  border-color: #2d3748;
}

[data-bs-theme="dark"] .fc-cart-item { border-color: #2d3748; }
[data-bs-theme="dark"] .fc-cart-item:hover { background: rgba(255,255,255,0.03); }
[data-bs-theme="dark"] .fc-cart-name { color: #e2e8f0; }
[data-bs-theme="dark"] .fc-cart-price { color: #d1d5db; }
[data-bs-theme="dark"] .fc-cart-img { background: #2d3748; border-color: #374151; }

[data-bs-theme="dark"] .fc-qty-ctrl { border-color: #4b5563; background: #2d3748; }
[data-bs-theme="dark"] .fc-qty-btn { color: #e2e8f0; }
[data-bs-theme="dark"] .fc-qty-btn:hover { background: #374151; }
[data-bs-theme="dark"] .fc-qty-input { color: #e2e8f0; }

[data-bs-theme="dark"] .cart-summary-section {
  background: linear-gradient(135deg, rgba(10,173,10,0.1) 0%, rgba(10,173,10,0.03) 100%);
  border-color: #2d3748;
}

[data-bs-theme="dark"] .cart-summary-row { color: #d1d5db; }
[data-bs-theme="dark"] .cart-summary-total { border-color: rgba(10,173,10,0.25); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .fc-card-body { padding: 10px; }
  .fc-img-wrap { margin: -10px -10px 0; }
  .fc-name { font-size: 13px; }
  .fc-price-current { font-size: 14px; }
  .fc-price-old { font-size: 12px; }
  .fc-btn-buy { padding: 5px 8px; font-size: 12px; }
  .cart-col-labels { display: none; }
  .fc-cart-item { grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; gap: 8px; padding: 12px 16px; }
  .fc-cart-price { display: none; }
  .fc-cart-total { grid-column: 2; text-align: left; }
  .fc-qty-ctrl { grid-column: 2; justify-self: start; }
  .fc-remove-btn { position: absolute; top: 10px; right: 10px; }
  .fc-cart-item { position: relative; }
  .cart-summary-inner { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   POPULAR PRODUCTS — Section Layout & Carousel Navigation
   ══════════════════════════════════════════════════════════ */

.popular-section { margin-top: 0; margin-bottom: 0; }
@media (min-width: 1024px) { .popular-section { margin-top: 0; margin-bottom: 0; } }

.popular-section .main-container {
    padding-bottom: 20px;
}

.popular-heading { font-size: 1.125rem; font-weight: 600; color: #111827; }

.popular-products-container-wrapper {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
    min-height: 0;
    height: auto;
}

.popular-products-wrapper {
    overflow: visible;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
    min-height: 0;
    height: auto;
}

.popular-nav-btn {
    position: absolute;
    z-index: 10;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.popular-nav-btn:hover { background-color: #16a34a; border-color: #16a34a; color: white; }
.popular-nav-btn:hover svg { stroke: white; }
.popular-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; background-color: #f3f4f6; }
.popular-nav-btn:disabled:hover { background-color: #f3f4f6; border-color: #d1d5db; }
.popular-nav-left  { left: -20px; }
.popular-nav-right { right: -20px; }
.popular-nav-btn svg { display: block; }

@media (min-width: 768px) {
    .popular-products-wrapper,
    .popular-products-container-wrapper,
    .main-container .popular-products-grid {
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}
@media (max-width: 767px) {
    .popular-nav-btn { display: none !important; }
    .popular-products-wrapper { min-height: 0 !important; height: auto !important; }
    .popular-products-container-wrapper,
    .main-container .popular-products-grid { min-height: 0 !important; height: auto !important; }
}

.main-container .popular-products-grid {
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: start;
    align-content: start;
    margin-bottom: 0;
    padding-bottom: 0;
    grid-auto-rows: min-content;
}
.main-container .popular-products-grid > * { width: 100%; min-width: 0; }

/* ── Popular Loading Spinner ── */
.popular-loading-spinner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
}
.popular-loading-spinner.show { display: flex; }

/* ══════════════════════════════════════════════════════════
   RECENT ARRIVALS — Grid, Carousel Navigation & Category Tabs
   ══════════════════════════════════════════════════════════ */

.recent-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) { .recent-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .recent-products-grid { grid-template-columns: repeat(5, 1fr); } }

/* Recent product cards: suppress mystery background/border; box-shadow ring comes from .fc-card above */
.recent-products-grid .fc-card {
    background: transparent !important;
    border: none !important;
}
.recent-products-grid .fc-img-wrap {
    background: transparent !important;
    border: none !important;
}

.recent-products-wrapper { position: relative; }
.recent-arrivals-container-wrapper { position: relative; }

.recent-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.recent-nav-btn:hover { background-color: #16a34a; border-color: #16a34a; color: white; }
.recent-nav-btn:hover svg { stroke: white; }
.recent-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; background-color: #f3f4f6; }
.recent-nav-btn:disabled:hover { background-color: #f3f4f6; border-color: #d1d5db; }
.recent-nav-left  { left: -20px; }
.recent-nav-right { right: -20px; }
.recent-nav-btn svg { display: block; }

@media (max-width: 767px) { .recent-nav-btn { display: none !important; } }

.recent-loading-spinner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
}
.recent-loading-spinner.show { display: flex; }

.recent-load-more-wrapper { position: relative; margin-top: 0.75rem; margin-bottom: 0.5rem; }
.recent-load-more-container { text-align: right; display: block; }
.recent-load-more-container.hidden { display: none; }

/* ══════════════════════════════════════════════════════════
   LOAD MORE BUTTON & SHARED SPINNERS
   ══════════════════════════════════════════════════════════ */

.load-more-stylish-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-green);
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(10,173,10,0.25);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    min-width: 180px;
}
.load-more-stylish-btn:hover {
    background-color: var(--primary-green-dark);
    box-shadow: 0 3px 8px rgba(10,173,10,0.35);
    transform: translateY(-1px);
}
.load-more-stylish-btn:active { transform: translateY(0); box-shadow: none; }
.load-more-stylish-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.load-more-stylish-btn:disabled:hover { background-color: var(--primary-green); }
.load-more-stylish-btn:hover .load-more-icon { transform: translateY(2px); }

.load-more-text { position: relative; z-index: 1; font-weight: 500; }
.load-more-icon { position: relative; z-index: 1; font-size: 1rem; line-height: 1; transition: transform 0.2s ease; }

.load-more-spinner {
    display: inline-block;
    width: 1.25rem; height: 1.25rem;
    position: relative; z-index: 1;
    border: 0.25rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fc-spin 0.75s linear infinite;
}
.load-more-spinner.hidden { display: none !important; }

.hidden { display: none; }

.spinner-border {
    display: inline-block;
    width: 2rem; height: 2rem;
    vertical-align: text-bottom;
    border: 0.25rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fc-spin 0.75s linear infinite;
}

@keyframes fc-spin { to { transform: rotate(360deg); } }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ══════════════════════════════════════════════════════════
   DARK MODE — Section Navigation & Load More
   ══════════════════════════════════════════════════════════ */

[data-bs-theme="dark"] .popular-heading,
[data-bs-theme="dark"] .popular-section { background: transparent; color: #f1f5f9; }
[data-bs-theme="dark"] .popular-nav-btn { background-color: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-bs-theme="dark"] .popular-nav-btn svg { stroke: #e2e8f0; }
[data-bs-theme="dark"] .popular-nav-btn:hover { background-color: #16a34a; border-color: #16a34a; color: white; }
[data-bs-theme="dark"] .popular-nav-btn:hover svg { stroke: white; }
[data-bs-theme="dark"] .popular-nav-btn:disabled { background-color: #0f172a; border-color: #1e293b; }
[data-bs-theme="dark"] .load-more-stylish-btn { background-color: var(--primary-green); color: #ffffff; }
[data-bs-theme="dark"] .load-more-stylish-btn:hover { background-color: var(--primary-green-dark); }
[data-bs-theme="dark"] .load-more-stylish-btn:active { background-color: var(--primary-green-dark); }

/* ── Dark mode: product card ── */
[data-bs-theme="dark"] .fc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
[data-bs-theme="dark"] .fc-category { color: #94a3b8; }
[data-bs-theme="dark"] .fc-name a { color: #f1f5f9; }
[data-bs-theme="dark"] .fc-name a:hover { color: #4ade80; }
[data-bs-theme="dark"] .fc-rating-text { color: #94a3b8; }
[data-bs-theme="dark"] .fc-price-current { color: #f8fafc; }
[data-bs-theme="dark"] .fc-action-btn.fc-quick-view,
[data-bs-theme="dark"] .fc-action-btn.fc-wishlist,
[data-bs-theme="dark"] .fc-action-btn.fc-add-cart { background-color: #334155; color: #e2e8f0; }

[data-bs-theme="dark"] .product-display-section { background: transparent; }
[data-bs-theme="dark"] .product-section-heading { color: #f1f5f9; }
[data-bs-theme="dark"] .recent-section .product-section-heading { color: #f8fafc; }
[data-bs-theme="dark"] .category-filter-tabs.filter-pills .category-tab { color: #64748b; }
[data-bs-theme="dark"] .category-filter-tabs.filter-pills .category-tab:hover,
[data-bs-theme="dark"] .category-filter-tabs.filter-pills .category-tab:focus { color: #4ade80; }
[data-bs-theme="dark"] .category-filter-tabs.filter-pills .category-tab.active { color: #4ade80; }
[data-bs-theme="dark"] .recent-nav-btn { background-color: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-bs-theme="dark"] .recent-nav-btn svg { stroke: #e2e8f0; }
[data-bs-theme="dark"] .recent-nav-btn:hover { background-color: #16a34a; border-color: #16a34a; color: white; }
[data-bs-theme="dark"] .recent-nav-btn:hover svg { stroke: white; }
[data-bs-theme="dark"] .recent-nav-btn:disabled { background-color: #0f172a; border-color: #1e293b; }
.product-catalog,
.product-content-area,
.tab-content,
.tab-pane { background: transparent; }
[data-bs-theme="dark"] .product-section-header { background: transparent; border-bottom-color: #334155; }

/* ══════════════════════════════════════════════════════════
   RECENT ARRIVALS — Section & Tab Bar
   ══════════════════════════════════════════════════════════ */

/* Section spacing */
.recent-section {
    margin-top: 0;
    margin-bottom: 0;
    background: transparent;
}

.recent-section .product-content-area {
    background: transparent;
}

.recent-section .main-container {
    background: #ffffff;
    padding-bottom: 20px;
}

[data-bs-theme="dark"] .recent-section .main-container {
    background: #1e293b;
}

@media (min-width: 1024px) {
    .recent-section {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.recent-section .product-section-heading {
    position: relative;
    display: inline-block;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 0;
}


.recent-section .product-section-header {
    margin-bottom: 1.6rem;
}

.recent-section .product-section-header.product-section-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.recent-section .product-section-header.product-section-header-center .product-section-heading {
    margin-bottom: 0.4rem;
}

/* Center the tab list */
.recent-section .product-section-header.product-section-header-center .category-filter-tabs {
    justify-content: center;
}

/* Tab system */
.recent-section .tab-content { padding: 0; }
.recent-section .tab-pane { display: none; }
.recent-section .tab-pane.active { display: block; }
.recent-section .fade { transition: opacity 0.15s linear; }
.recent-section .fade:not(.show) { opacity: 0; }
.recent-section .show { display: block; }

/* Category Filter Tabs */
.category-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.category-tab {
    display: block;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-tab:focus { outline: none; }

/* Pills style — text only, no box */
.category-filter-tabs.filter-pills .category-tab {
    position: relative;
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.3rem 0.75rem;
    border: none;
    background: none;
    transition: color 0.2s ease;
}

.category-filter-tabs.filter-pills .category-tab:hover,
.category-filter-tabs.filter-pills .category-tab:focus {
    color: var(--primary-green);
}

.category-filter-tabs.filter-pills .category-tab.active {
    color: var(--primary-green);
    font-weight: 600;
}

/* Animated underline for active */
.category-filter-tabs.filter-pills .category-tab::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 2px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.category-filter-tabs.filter-pills .category-tab.active::after {
    transform: scaleX(1);
}

/* Animated border — not needed */
.category-filter-tabs.filter-border-anim .category-tab:before { display: none; }
/* Tooltip Dark Mode */
[data-bs-theme="dark"] .tooltip {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* Spinner Dark Mode */
[data-bs-theme="dark"] .spinner-border {
    color: #10b981;
}

/* Smooth transitions for theme switching */
[data-bs-theme="dark"] * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Override Bootstrap dark mode for product cards - keep white */
[data-bs-theme="dark"] .bg-white {
    background-color: #ffffff !important;
}

/* Border colors in dark mode - keep light for white cards */
[data-bs-theme="dark"] .border-gray-300 {
    border-color: #d1d5db !important;
}

/* Shadow adjustments for dark mode */
[data-bs-theme="dark"] .shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Main content background */
[data-bs-theme="dark"] .main-content {
    background-color: #0f172a;
}

/* Product catalog dark mode */
[data-bs-theme="dark"] .product-catalog {
    background: transparent;
}

/* Container dark mode */
[data-bs-theme="dark"] .main-container {
    background: transparent;
}

/* Small text in dark mode */
[data-bs-theme="dark"] small {
    color: #94a3b8;
}

/* Links in dark mode */
[data-bs-theme="dark"] a.text-decoration-none {
    color: inherit;
}

[data-bs-theme="dark"] a.text-decoration-none:hover {
    color: #10b981;
}

/* Placeholder for missing images in dark mode */
[data-bs-theme="dark"] .fas.fa-image {
    color: #475569;
}

/* Product content area dark mode */
[data-bs-theme="dark"] .product-content-area {
    background: transparent;
}

/* Responsive container */
[data-bs-theme="dark"] .popular-products-container-wrapper,
[data-bs-theme="dark"] .recent-arrivals-container-wrapper {
    background: transparent;
}

/* Badge styling in dark mode */
[data-bs-theme="dark"] .badge {
    background-color: #16a34a;
    color: white;
}

/* Alert/notification styles */
[data-bs-theme="dark"] .alert {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

/* Featured Categories - Freshcart Style */

/* ============================================
   CATEGORIES — Section container + Amazon-style image row
   ============================================ */

.categories-showcase-section {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Banner card: no border/padding/background so the banner spans exactly the same
   width as the Popular Products card below, with matching rounded corners. */
.categories-showcase-section .main-container.section-card {
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
}
[data-bs-theme="dark"] .categories-showcase-section .main-container.section-card {
    background: transparent;
    border: none;
}

.categories-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.categories-view-all {
    font-size: 0.813rem;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.categories-view-all:hover {
    gap: 8px;
    color: #059669;
}

/* Full-width banner slider: one banner per view on all screens, sliding
   one after another via horizontal scroll-snap, with arrow + dot controls. */
.categories-slider {
    position: relative;
    width: 100%;
}

.categories-grid-new {
    display: flex;
    gap: 0;
    overflow-x: auto;
    width: 100%;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide the scrollbar — navigation is via arrows and dots */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-grid-new::-webkit-scrollbar { display: none; }

/* Prev / next arrows */
.cat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cat-nav:hover { transform: translateY(-50%) scale(1.15); }
.cat-nav-prev { left: 6px; }
.cat-nav-next { right: 6px; }
.cat-nav.is-hidden { opacity: 0; pointer-events: none; }

/* Dot pagination */
.categories-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cat-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.cat-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #fff;
}

/* Each item = one full-width banner */
.category-card-new {
    flex: 0 0 100%;
    min-width: 100%;
    display: block;
    background: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    overflow: hidden;
    scroll-snap-align: start;
}

.category-card-new:hover { opacity: 0.8; }

.category-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 500;
    object-fit: cover;
    background: #fff;
    box-sizing: border-box;
}

.category-placeholder-new {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #10b981;
    font-size: 2.5rem;
}

/* Banner ratio adapts per screen size so the height stays balanced:
   wider (shorter) on big screens, taller as the screen narrows.
   Desktop (>=992px) uses the base 1920/500 ratio above. */
@media (max-width: 991px) {
    .category-img,
    .category-placeholder-new {
        aspect-ratio: 5 / 2;   /* tablet */
    }
}

@media (max-width: 640px) {
    .category-img,
    .category-placeholder-new {
        aspect-ratio: 5 / 3;   /* mobile */
    }
}

/* Dark mode */
[data-bs-theme="dark"] .categories-showcase-section { background: transparent; }
[data-bs-theme="dark"] .category-card-new {
    background: #1e293b;
    border-color: #334155;
}
[data-bs-theme="dark"] .category-img { background: #1e293b; }
[data-bs-theme="dark"] .category-placeholder-new { background: #0f172a; }
