/* Cafrepay storefront modernization â uses existing theme CSS variables */

/* ââ Site header & logo (shared on public + account pages) âââââââââ */
.sf-site-header {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.sf-site-header #header-main {
  padding: 10px 0 12px;
}

.sf-site-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none !important;
}

.sf-site-brand-link {
  line-height: 1.2;
}

.sf-site-brand-text {
  display: inline-block;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--primary-color, #ff6600);
  line-height: 1.15;
  white-space: nowrap;
}

.sf-site-logo,
.sf-site-header .header-logo .brand-logo,
.sf-site-header .sf-site-logo {
  display: block;
  max-height: 52px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sf-mobile-drawer__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none !important;
}

.sf-mobile-drawer__logo,
.sf-mobile-drawer__brand .sf-site-logo {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

.sf-mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sf-auth-modal-logo {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.auth-modal .sf-auth-modal-logo img,
.auth-modal .sf-auth-modal-logo .sf-site-logo,
.auth-modal .sf-auth-modal-logo__img {
  border-radius: 0 !important;
  width: auto !important;
  max-width: 160px !important;
  margin: 0 auto 12px !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.sf-footer-brand__logo-img,
.sf-footer-brand__logo .sf-site-logo {
  max-height: 42px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.sf-footer-brand__logo .sf-site-brand-text {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-modal .sf-auth-modal-logo .sf-site-brand-text {
  border-radius: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: -48px auto 12px !important;
  font-size: 1.5rem;
  line-height: 1.2;
}

.sf-page-loader .sf-site-brand-text {
  margin-bottom: 24px;
  font-size: 1.75rem;
  color: var(--primary-color, #ff6600);
}

@media (max-width: 575px) {
  .sf-site-logo,
  .sf-site-header .header-logo .brand-logo {
    max-height: 40px;
    max-width: 130px;
  }

  .sf-site-brand-text {
    font-size: 1.1rem;
    max-width: 120px;
    white-space: normal;
  }
}

/* ââ Skeleton loading âââââââââââââââââââââââââââââââââââââââââââââââ */
@keyframes sf-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.sf-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%);
  background-size: 800px 100%;
  animation: sf-shimmer 1.4s ease infinite;
  border-radius: var(--border-radius, 6px);
}

.sf-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-color, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sf-page-loader.sf-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sf-page-loader__logo {
  max-height: 48px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.sf-page-loader__bar {
  width: 200px;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

.sf-page-loader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--primary-color, #ff6600);
  border-radius: 4px;
  animation: sf-bar-slide 1s ease-in-out infinite;
}

@keyframes sf-bar-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.sf-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

.sf-skeleton-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
}

.sf-skeleton-card .sf-img {
  height: 160px;
}

.sf-skeleton-card .sf-line {
  height: 12px;
  margin: 12px 12px 6px;
}

.sf-skeleton-card .sf-line.short {
  width: 60%;
  margin-bottom: 12px;
}

/* ââ Homepage location hero âââââââââââââââââââââââââââââââââââââââââ */
.home-location-hero {
  background: linear-gradient(135deg, var(--primary-color, #ff6600) 0%, var(--primary-dark, #cc5200) 100%);
  color: #fff;
  padding: 28px 0;
  margin-bottom: 0;
}

.home-location-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.home-location-hero__text h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}

.home-location-hero__text p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.home-location-picker {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: none;
  text-align: left;
  width: 100%;
}

.home-location-picker:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.home-location-picker__icon {
  color: var(--primary-color, #ff6600);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.home-location-picker__body {
  flex: 1;
  min-width: 0;
}

.home-location-picker__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary-text, #868e8e);
  font-weight: 600;
}

.home-location-picker__value {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-text, #333e48);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-location-picker__value.is-empty {
  color: var(--secondary-text, #868e8e);
  font-weight: 400;
}

.home-location-picker__action {
  flex-shrink: 0;
  background: var(--primary-color, #ff6600);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.home-location-picker__action:hover {
  background: var(--primary-dark, #cc5200);
  color: #fff;
}

.home-section-heading {
  margin-bottom: 20px;
}

.home-section-heading h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-text, #333e48);
  margin: 0 0 4px;
}

.home-section-heading p {
  color: var(--secondary-text, #868e8e);
  margin: 0;
  font-size: 0.9rem;
}

.home-section-heading .accent-line {
  width: 48px;
  height: 3px;
  background: var(--primary-color, #ff6600);
  border-radius: 2px;
  margin-top: 10px;
}

/* ââ Account sidebar ââââââââââââââââââââââââââââââââââââââââââââââââ */
.sf-account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.sf-account-sidebar {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.sf-account-sidebar__profile {
  background: linear-gradient(135deg, var(--primary-color, #ff6600), var(--primary-dark, #cc5200));
  padding: 24px 18px;
  text-align: center;
  color: #fff;
}

.sf-account-sidebar__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.45);
  margin: 0 auto 12px;
  display: block;
}

.sf-account-sidebar__name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.sf-account-sidebar__since {
  font-size: 0.78rem;
  opacity: 0.88;
  margin: 6px 0 0;
}

.sf-account-nav {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.sf-account-nav__section {
  padding: 10px 12px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sf-account-nav li:not(.sf-account-nav__section) a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--primary-text, #334155);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sf-account-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.sf-account-nav li:not(.sf-account-nav__section) a:hover {
  background: #fff7ed;
  color: var(--primary-color, #ff6600);
  text-decoration: none;
}

.sf-account-nav li:not(.sf-account-nav__section) a:hover .sf-account-nav__icon {
  background: rgba(255, 102, 0, 0.12);
  color: var(--primary-color, #ff6600);
}

.sf-account-nav li.active a {
  background: var(--primary-color, #ff6600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.22);
}

.sf-account-nav li.active a .sf-account-nav__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sf-account-nav__sub a {
  padding-left: 28px !important;
  font-size: 0.86rem !important;
}

.sf-account-nav__sub .sf-account-nav__icon {
  width: 28px;
  height: 28px;
  font-size: 0.82rem;
}

.sf-account-sidebar__footer {
  padding: 0 12px 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}

.sf-account-sidebar__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.sf-account-sidebar__logout:hover {
  background: #fef2f2;
  color: #b91c1c;
  text-decoration: none;
}

.sf-account-nav__toggle {
  display: none;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  font-weight: 600;
  color: var(--primary-text, #334155);
  margin-bottom: 12px;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.sf-account-nav__toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sf-account-nav__toggle-left i {
  color: var(--primary-color, #ff6600);
}

.sf-account-nav__toggle-chevron {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.sf-account-nav__toggle[aria-expanded="true"] .sf-account-nav__toggle-chevron {
  transform: rotate(180deg);
}

/* ââ Mobile storefront nav (clean drawer) âââââââââââââââââââââââââââ */
@media (max-width: 991px) {
  .sf-mobile-drawer.main-menu.mobile-mega-menu {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 2002;
    background: #fff;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    min-height: unset !important;
  }

  .sf-mobile-drawer.main-menu.mobile-mega-menu.open {
    display: flex !important;
    transform: translateX(0);
  }

  .close-sidebar {
    z-index: 2001 !important;
  }

  .close-sidebar strong {
    display: none !important;
  }

  .sf-mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
  }

  .sf-mobile-drawer__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
  }

  .sf-mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 102, 0, 0.1);
    color: var(--primary-color, #ff6600);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease;
  }

  .sf-mobile-drawer__close:hover,
  .sf-mobile-drawer__close:focus {
    background: rgba(255, 102, 0, 0.18);
    outline: none;
  }

  .sf-mobile-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sf-mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 12px;
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .sf-mobile-drawer__link:hover,
  .sf-mobile-drawer__link:focus {
    background: #fff7ed;
    color: var(--primary-color, #ff6600) !important;
    text-decoration: none !important;
  }

  .sf-mobile-drawer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .sf-mobile-drawer__link:hover .sf-mobile-drawer__icon,
  .sf-mobile-drawer__link:focus .sf-mobile-drawer__icon {
    background: rgba(255, 102, 0, 0.12);
    color: var(--primary-color, #ff6600);
  }

  .sf-mobile-drawer__link--accent {
    margin-top: 6px;
    background: rgba(255, 102, 0, 0.06);
    color: var(--primary-color, #ff6600) !important;
  }

  .sf-mobile-drawer__link--accent .sf-mobile-drawer__icon {
    background: rgba(255, 102, 0, 0.14);
    color: var(--primary-color, #ff6600);
  }

  .sf-mobile-drawer__footer {
    flex-shrink: 0;
    padding: 14px 18px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
  }

  .sf-mobile-drawer__lang {
    margin-bottom: 10px;
  }

  .sf-mobile-drawer__lang-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 6px;
  }

  .sf-mobile-drawer__lang select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.9rem;
  }

  .sf-mobile-drawer__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: background 0.15s ease;
  }

  .sf-mobile-drawer__logout:hover {
    background: #fef2f2;
    text-decoration: none !important;
  }

  .rtl .sf-mobile-drawer.main-menu.mobile-mega-menu {
    left: auto;
    right: 0;
    transform: translateX(110%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .rtl .sf-mobile-drawer.main-menu.mobile-mega-menu.open {
    transform: translateX(0);
  }
}

/* Legacy mobile nav classes â keep hidden */
.sf-mobile-nav,
.main-menu-top,
.main-menu-bottom {
  display: none !important;
}

/* ââ Dashboard content ââââââââââââââââââââââââââââââââââââââââââââââ */
.sf-dashboard-welcome {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sf-dashboard-welcome__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sf-dashboard-welcome__greeting h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-text, #333e48);
}

.sf-dashboard-welcome__greeting p {
  margin: 0;
  color: var(--secondary-text, #868e8e);
  font-size: 0.9rem;
}

.sf-dashboard-welcome__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sf-dashboard-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.sf-stat-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.sf-stat-card:hover {
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.12);
  border-color: var(--primary-light, #ff944d);
  text-decoration: none;
  color: inherit;
}

.sf-stat-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color, #ff6600);
  line-height: 1.2;
}

.sf-stat-card__label {
  display: block;
  font-size: 0.8rem;
  color: var(--secondary-text, #868e8e);
  margin-top: 4px;
}

.sf-stat-card__icon {
  font-size: 1.1rem;
  color: var(--primary-light, #ff944d);
  margin-bottom: 6px;
}

.sf-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sf-panel__head {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-text, #333e48);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sf-panel__body {
  padding: 0;
}

.sf-panel .table {
  margin-bottom: 0;
}

.sf-panel .table > thead > tr > th {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--secondary-text, #868e8e);
  font-weight: 600;
}

.sf-panel .table > tbody > tr > td {
  vertical-align: middle;
  font-size: 0.9rem;
}

.sf-account-content {
  min-width: 0;
}

.sf-account-content .page-header {
  margin-bottom: 0;
}

.sf-account-content .nav-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 16px;
}

.sf-btn-primary {
  background: var(--primary-color, #ff6600);
  border-color: var(--primary-color, #ff6600);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.sf-btn-primary:hover,
.sf-btn-primary:focus {
  background: var(--primary-dark, #cc5200);
  border-color: var(--primary-dark, #cc5200);
  color: #fff;
}

a.sf-btn-primary,
.modal-footer a.sf-btn-primary,
.modal-footer a.btn.sf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid var(--primary-color, #ff6600);
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}

a.sf-btn-primary:hover,
a.sf-btn-primary:focus,
.modal-footer a.sf-btn-primary:hover,
.modal-footer a.sf-btn-primary:focus {
  color: #fff !important;
  text-decoration: none !important;
}

.sf-address-select-modal .modal-footer {
  align-items: center;
  gap: 12px;
}

.sf-address-select-modal .modal-footer .sf-btn-primary {
  flex: 1 1 auto;
  max-width: 100%;
  font-size: 0.92rem;
}

/* Modernize account section tables globally */
.account-section .table-bordered {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.account-section .table-bordered > thead > tr > th {
  background: #fafafa;
}

.nearby-store-card {
  border-radius: 12px !important;
  border: 1px solid #eee !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nearby-store-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.nearby-store-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 8px !important;
}

.nearby-store-card .btn {
  padding: 4px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.nearby-store-card .product-info-rating {
  font-size: 0.75rem;
  margin: 4px 0 0;
}

.nearby-store-card .product-info-rating .rating-count {
  display: none;
}

/* Hide legacy account sidebar styles */
.sf-account-layout .account-sidebar-nav,
.sf-account-layout .account-sidebar-nav-title {
  display: none !important;
}

/* ââ Responsive âââââââââââââââââââââââââââââââââââââââââââââââââââââ */
/* Homepage: address selector lives in hero, hide header duplicate */
body.sf-homepage .top-nav-left .delivery-location-chip {
  display: none;
}

/* Content area fade-in after skeleton */
#content-wrapper {
  animation: sf-fade-in 0.35s ease;
}

@keyframes sf-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Account pages â panel wrapper for inner tabs */
.sf-account-content > .row:first-child,
.sf-account-content > form:first-child {
  margin-bottom: 16px;
}

.sf-account-content h4.title {
  font-weight: 600;
  color: var(--primary-text, #333e48);
}

@media (max-width: 991px) {
  .sf-account-layout {
    grid-template-columns: 1fr;
  }

  .sf-account-sidebar {
    position: static;
    display: none;
    margin-bottom: 16px;
  }

  .sf-account-sidebar.is-open {
    display: block;
  }

  .sf-account-nav__toggle {
    display: flex;
  }

  .sf-account-nav {
    display: block;
  }

  .sf-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-location-hero__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .home-location-picker {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .sf-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sf-stat-card__value {
    font-size: 1.35rem;
  }

  .home-location-hero {
    padding: 20px 0;
  }

  .home-location-hero__text h1 {
    font-size: 1.2rem;
  }

  .home-location-picker {
    flex-wrap: wrap;
    padding: 12px;
  }

  .home-location-picker__action {
    width: 100%;
    text-align: center;
  }
}

/* ââ Footer âââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.sf-footer {
  margin-top: 40px;
}

.sf-footer-newsletter {
  background: linear-gradient(135deg, var(--primary-color, #ff6600), var(--primary-dark, #cc5200));
  padding: 32px 0;
}

.sf-footer-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sf-footer-newsletter__text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  flex: 1;
  min-width: 260px;
}

.sf-footer-newsletter__icon {
  font-size: 2rem;
  opacity: 0.9;
}

.sf-footer-newsletter__text h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.sf-footer-newsletter__text p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.sf-footer-newsletter__form {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.sf-footer-newsletter__input-group {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sf-footer-newsletter__input-group input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.sf-footer-newsletter__input-group button {
  border: none;
  background: var(--primary-text, #333e48);
  color: #fff;
  padding: 0 22px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.sf-footer-newsletter__input-group button:hover {
  background: #222;
}

.sf-footer-main {
  background: #1a1d21;
  color: #c8cdd3;
  padding: 48px 0 32px;
}

.sf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px 24px;
}

.sf-footer-brand__logo img,
.sf-footer-brand__logo-img,
.sf-footer-brand__logo .sf-site-logo {
  max-height: 42px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.sf-footer-brand__slogan {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #9aa3ad;
}

.sf-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.sf-footer-contact li i {
  color: var(--primary-color, #ff6600);
  margin-top: 3px;
  flex-shrink: 0;
}

.sf-footer-contact a {
  color: #c8cdd3;
}

.sf-footer-contact a:hover {
  color: var(--primary-light, #ff944d);
}

.sf-footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-footer-col ul li {
  margin-bottom: 10px;
}

.sf-footer-col ul li a {
  color: #9aa3ad;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.sf-footer-col ul li a:hover {
  color: var(--primary-light, #ff944d);
  padding-left: 4px;
  text-decoration: none;
}

.sf-footer-seller-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 600 !important;
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 102, 0, 0.4);
  border-radius: 8px;
  padding: 8px 12px !important;
}

.sf-footer-seller-link:hover {
  background: var(--primary-color, #ff6600) !important;
  color: #fff !important;
  padding-left: 12px !important;
}

.sf-footer-seller-link i {
  color: var(--primary-light, #ff944d);
}

.sf-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.sf-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sf-footer-social a:hover {
  background: var(--primary-color, #ff6600);
  transform: translateY(-2px);
  color: #fff;
}

.sf-footer-bottom {
  background: #12151a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}

.sf-footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sf-footer-bottom__copy {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.sf-footer-bottom__copy a {
  color: #9aa3ad;
}

.sf-footer-bottom__copy a:hover {
  color: var(--primary-light, #ff944d);
}

.sf-footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-footer-bottom__links a {
  font-size: 0.82rem;
  color: #6b7280;
  text-decoration: none;
}

.sf-footer-bottom__links a:hover {
  color: var(--primary-light, #ff944d);
}


@media (max-width: 991px) {
  .sf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sf-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .sf-footer-grid {
    grid-template-columns: 1fr;
  }

  .sf-footer-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .sf-footer-newsletter__form {
    max-width: none;
  }

  .sf-footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ââ Empty stores state âââââââââââââââââââââââââââââââââââââââââââââââ */
.sf-empty-stores {
  background: #fff;
  border: 1px dashed #e0e0e0;
  border-radius: 14px;
  padding: 40px 24px;
  margin: 8px 0 24px;
}

.sf-empty-stores__icon {
  font-size: 3rem;
  color: var(--primary-light, #ff944d);
  margin-bottom: 12px;
  line-height: 1;
}

.sf-empty-stores__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-text, #333e48);
  margin: 0 0 8px;
}

.sf-empty-stores__text {
  color: var(--secondary-text, #868e8e);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 8px;
}

/* ââ Stores listing page ââââââââââââââââââââââââââââââââââââââââââââ */
.sf-stores-page {
  background: #f8fafc;
}

.sf-stores-page .nearby-stores-section {
  padding-top: 28px;
}

.sf-stores-page .home-section-heading .accent-line {
  width: 48px;
  height: 3px;
  background: var(--primary-color, #ff6600);
  border-radius: 2px;
  margin-top: 10px;
}

.sf-stores-grid .nearby-store-card {
  padding: 16px 12px 14px;
  background: #fff;
  height: 100%;
}

.sf-stores-view-all {
  border-color: var(--primary-color, #ff6600) !important;
  color: var(--primary-color, #ff6600) !important;
  font-weight: 600;
}

.sf-stores-view-all:hover {
  background: var(--primary-color, #ff6600) !important;
  color: #fff !important;
}

.sf-stores-pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-bottom: 16px;
}

.sf-stores-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.sf-stores-pagination .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sf-stores-pagination .pagination a:hover:not(.disabled):not(.active) {
  border-color: var(--primary-color, #ff6600);
  color: var(--primary-color, #ff6600);
}

.sf-stores-pagination .pagination a.active {
  background: var(--primary-color, #ff6600);
  border-color: var(--primary-color, #ff6600);
  color: #fff;
}

.sf-stores-pagination .pagination a.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Homepage nearby stores â paginated grid (no "view all" link) */
.sf-home-stores-section {
  padding-top: 36px;
  scroll-margin-top: 110px;
}

.sf-home-stores-head {
  margin-bottom: 24px;
}

.sf-home-stores-head__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sf-home-stores-head__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-text, #1e293b);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-home-stores-head__title i {
  color: var(--primary-color, #ff6600);
  font-size: 1.1rem;
}

.sf-home-stores-head__location {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 720px;
}

.sf-home-stores-head__location i {
  color: var(--primary-color, #ff6600);
  margin-top: 3px;
  flex-shrink: 0;
}

.sf-home-stores-head__meta {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 500;
}

.sf-home-stores-section .sf-stores-grid .nearby-store-card {
  padding: 16px 12px 14px;
  background: #fff;
  height: 100%;
}

/* Legacy alias â keep until cached CSS clears */
.sf-vendors-page,
.sf-vendors-grid,
.sf-vendors-view-all,
.sf-vendors-pagination,
.sf-vendors-hero { /* mapped via duplicate rules below */ }

.sf-vendors-page { background: #f8fafc; }
.sf-vendors-page .nearby-stores-section { padding-top: 28px; }
.sf-vendors-grid .nearby-store-card { padding: 16px 12px 14px; background: #fff; height: 100%; }

.sf-shop-card__meta {
  font-size: 0.72rem;
  color: var(--secondary-text, #868e8e);
  margin: 0;
}

.sf-shop-card__meta i {
  color: var(--primary-color, #ff6600);
  margin-right: 4px;
}

/* ââ Account page shell (dashboard redesign) âââââââââââââââââââââââ */
.sf-dashboard-page {
  background: #f8fafc;
  padding-top: 28px;
}

.sf-account-page-head {
  margin-bottom: 20px;
}

.sf-account-page-head__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sf-account-page-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-text, #1e293b);
}

.sf-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.sf-alert--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.sf-alert--danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.sf-account-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sf-account-section {
  scroll-margin-top: 110px;
}

.sf-account-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.sf-account-section__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: var(--primary-color, #ff6600);
  flex-shrink: 0;
  font-size: 1rem;
}

.sf-account-section__icon--danger {
  background: #fef2f2;
  color: #dc2626;
}

.sf-account-section__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.sf-account-section__hint {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.sf-account-settings .sf-address-toolbar {
  margin-bottom: 16px;
}

.sf-account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.sf-account-tabs li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sf-account-tabs li a:hover {
  border-color: rgba(255, 102, 0, 0.35);
  color: var(--primary-color, #ff6600);
  text-decoration: none;
}

.sf-account-tabs li.active a {
  background: var(--primary-color, #ff6600);
  border-color: var(--primary-color, #ff6600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.22);
}

.sf-form-panel {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.sf-form-panel--danger {
  max-width: 560px;
  margin: 0 auto;
}

.sf-form-group {
  margin-bottom: 16px;
}

.sf-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #334155;
}

.sf-input,
.sf-form .form-control {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  min-height: 44px;
  box-shadow: none !important;
}

.sf-input:focus,
.sf-form .form-control:focus {
  border-color: var(--primary-color, #ff6600) !important;
}

.sf-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sf-avatar-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.sf-avatar-card__remove {
  position: absolute;
  top: 12px;
  right: 12px;
}

.sf-avatar-card__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.sf-address-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sf-address-toolbar__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.sf-address-toolbar__hint {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.sf-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sf-address-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sf-address-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.sf-address-card__type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color, #ff6600);
}

.sf-address-card__actions {
  display: flex;
  gap: 6px;
}

.sf-address-card__body {
  padding: 14px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
}

.sf-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.sf-empty-state i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

#myDynamicModal[data-onboarding="1"] .sf-address-create-modal .modal-header .close {
  display: none;
}

.sf-address-select-modal__header {
  position: relative;
}

.sf-address-select-modal__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  opacity: 0.65;
  font-size: 1.75rem;
  z-index: 2;
}

.sf-address-select-modal__close:hover,
.sf-address-select-modal__close:focus {
  opacity: 1;
}

.sf-address-select-modal .modal-footer .btn-default {
  min-width: 96px;
}

.sf-shop-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff7ed;
  box-sizing: border-box;
}

.sf-shop-logo-frame--sm {
  width: 56px;
  height: 56px;
}

.sf-shop-logo-frame--md {
  width: 88px;
  height: 88px;
}

.sf-shop-logo-frame--lg {
  width: 120px;
  height: 120px;
}

.sf-shop-logo-frame img.sf-shop-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #fff7ed;
}

.sf-shop-logo-frame img.sf-shop-logo.sf-shop-logo--default {
  object-fit: contain;
  padding: 18%;
}

/* Legacy standalone store logos without a frame */
img.sf-shop-logo:not(.sf-shop-logo-frame img) {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff7ed;
  display: inline-block;
}

img.sf-shop-logo.sf-shop-logo--default:not(.sf-shop-logo-frame img) {
  object-fit: contain;
  padding: 18%;
}

.seller-info .seller-info-logo.sf-shop-logo {
  width: auto;
  height: auto;
  border: none;
  padding: 0;
}

.shopping-cart-wrapper .logo-wrapper .sf-shop-logo-frame {
  vertical-align: middle;
}

.shopping-cart-wrapper .logo-wrapper img.vendor-logo.sf-shop-logo {
  width: 56px;
  height: 56px;
  max-height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.sell-header .sf-shop-logo-frame {
  margin-bottom: 0.25rem;
}

#profile-container .profile-header .sf-shop-logo-frame {
  margin-bottom: 0;
}

.card-box .sf-shop-logo-frame {
  margin-bottom: 0.25rem;
}

.sf-address-select-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sf-address-grid--select {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding-right: 4px;
}

.sf-address-card--selectable {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid #e8edf2;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sf-address-card--selectable:hover,
.sf-address-card--selectable:focus {
  border-color: rgba(255, 102, 0, 0.35);
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.08);
  outline: none;
}

.sf-address-card--selectable.sf-address-card--active {
  border-color: var(--primary-color, #ff6600);
  box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.15);
}

.sf-address-card--selectable.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.sf-address-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-color, #ff6600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-address-select-modal .modal-title {
  font-weight: 700;
  color: #0f172a;
}

/* ââ Address wizard (create / edit modal) âââââââââââââââââââââââââââ */
.sf-address-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #334155;
}

.sf-address-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 8px;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.sf-address-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.sf-address-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color, #ff6600);
  color: #fff;
  flex-shrink: 0;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.28);
}

.sf-address-modal__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.sf-address-modal__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.sf-address-modal__close {
  margin: 0;
  padding: 4px 8px;
  opacity: 0.55;
  font-size: 1.75rem;
  line-height: 1;
}

.sf-address-modal__close:hover,
.sf-address-modal__close:focus {
  opacity: 1;
}

.sf-address-modal__body {
  padding: 8px 24px 24px;
  font-family: inherit;
}

.sf-address-modal__required {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.sf-address-wizard {
  font-family: inherit;
}

.sf-address-wizard__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  padding: 4px;
}

.sf-address-wizard__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sf-address-wizard__step.is-active {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.18);
}

.sf-address-wizard__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sf-address-wizard__step.is-active .sf-address-wizard__step-num {
  background: var(--primary-color, #ff6600);
  color: #fff;
}

.sf-address-wizard__step-line {
  width: 32px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 6px;
  flex-shrink: 0;
}

.sf-address-wizard__intro {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.sf-address-wizard__search {
  position: relative;
  z-index: 20;
}

.sf-input-icon-wrap {
  position: relative;
}

.sf-input-icon-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.sf-input-icon-wrap .form-control,
.sf-input-icon-wrap .sf-input {
  padding-left: 42px !important;
}

.sf-address-wizard__map-card {
  position: relative;
  margin-top: 4px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}

.sf-address-wizard .location-map-canvas {
  width: 100%;
  height: 280px;
  background: #e2e8f0;
}

.sf-address-wizard .location-map-current-btn {
  position: absolute;
  right: 14px;
  bottom: 48px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-color, #ff6600);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-address-wizard .location-map-current-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.25);
}

.sf-address-wizard__map-hint {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #64748b;
  background: #fff;
  border-top: 1px solid #eef2f7;
}

.sf-address-wizard__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-address-wizard__divider::before,
.sf-address-wizard__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.sf-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #fff !important;
  color: #334155 !important;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sf-btn-outline:hover,
.sf-btn-outline:focus {
  border-color: rgba(255, 102, 0, 0.45) !important;
  color: var(--primary-color, #ff6600) !important;
  background: #fff7ed !important;
}

.addr-wizard-use-gps.is-loading,
.sf-address-wizard .location-map-current-btn.is-loading,
#locationModal .location-map-current-btn.is-loading,
.addr-wizard-map-gps.is-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

.addr-wizard-map-gps.is-loading,
.sf-address-wizard .location-map-current-btn.is-loading,
#locationModal .location-map-current-btn.is-loading {
  color: var(--primary-color, #ff6600);
}

#locationModal #useCurrentLocationBtn.is-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

.sf-address-wizard__preview {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.88rem;
  line-height: 1.45;
}

.sf-address-wizard__preview > i {
  color: #16a34a;
  margin-top: 2px;
  flex-shrink: 0;
}

.sf-address-wizard__preview.alert-danger,
.sf-address-wizard__preview.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.sf-address-wizard__preview.alert-danger > i,
.sf-address-wizard__preview.is-error > i {
  color: #dc2626;
}

.sf-address-wizard__next,
.sf-address-wizard__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 16px;
  border-radius: 12px !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.sf-address-wizard__next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sf-address-wizard__picked {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sf-address-wizard__picked-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: var(--primary-color, #ff6600);
  flex-shrink: 0;
}

.sf-address-wizard__picked-body {
  flex: 1;
  min-width: 0;
}

.sf-address-wizard__picked-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.sf-address-wizard__picked-body .addr-wizard-selected-text {
  display: block;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
  word-break: break-word;
}

.sf-address-wizard__change {
  flex-shrink: 0;
  padding: 0 !important;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--primary-color, #ff6600) !important;
  text-decoration: none !important;
}

.sf-address-wizard__change:hover {
  text-decoration: underline !important;
}

.sf-address-wizard__autocomplete,
.sf-address-wizard .location-autocomplete-list {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 100060;
}

.sf-address-wizard__autocomplete li,
.sf-address-wizard .location-autocomplete-list li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s ease;
}

.sf-address-wizard__autocomplete li:hover,
.sf-address-wizard .location-autocomplete-list li:hover {
  background: #fff7ed;
  color: #c2410c;
}

.sf-address-wizard .sf-form-group {
  margin-bottom: 14px;
}

.sf-address-wizard .sf-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #334155;
}

.sf-address-wizard .form-control,
.sf-address-wizard .sf-input {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  min-height: 44px;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 0.92rem;
  color: #334155;
  width: 100%;
}

.sf-address-wizard .form-control:focus,
.sf-address-wizard .sf-input:focus {
  border-color: var(--primary-color, #ff6600) !important;
  outline: none;
}

.sf-address-wizard .sf-btn-primary,
.sf-address-wizard .btn.sf-btn-primary {
  background: var(--primary-color, #ff6600);
  border-color: var(--primary-color, #ff6600);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
}

.sf-address-wizard .sf-btn-primary:hover,
.sf-address-wizard .sf-btn-primary:focus,
.sf-address-wizard .btn.sf-btn-primary:hover,
.sf-address-wizard .btn.sf-btn-primary:focus {
  background: var(--primary-dark, #cc5200);
  border-color: var(--primary-dark, #cc5200);
  color: #fff;
}

.sf-address-wizard select.form-control {
  appearance: auto;
  font-family: inherit;
}

.sf-address-wizard .row {
  margin-left: -8px;
  margin-right: -8px;
}

.sf-address-wizard .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 767px) {
  .sf-address-modal__header,
  .sf-address-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sf-address-wizard__step-label {
    display: none;
  }

  .sf-address-wizard__step {
    padding: 8px 10px;
  }

  .sf-address-wizard .location-map-canvas {
    height: 220px;
  }

  .sf-address-wizard__picked {
    flex-wrap: wrap;
  }

  .sf-address-wizard__change {
    width: 100%;
    text-align: left;
    margin-top: 4px;
  }

  .sf-account-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sf-account-tabs li {
    flex: 0 0 auto;
  }

  .sf-form-panel {
    padding: 18px 16px;
  }

  .sf-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sf-shop-card__badge {
  font-size: 0.8rem;
}

/* ââ Wallet (Cafre-pay) dashboard âââââââââââââââââââââââââââââââââââ */
.sf-wallet-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sf-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sf-wallet-actions .btn {
  border-radius: 10px;
  font-weight: 600;
}

.sf-stat-card--action {
  cursor: default;
}

.sf-stat-card--action:hover {
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.12);
}

.sf-stat-card--action .sf-stat-card__value {
  font-size: 1.1rem;
}

.sf-wallet-deposit {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sf-wallet-deposit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
}

.sf-wallet-deposit__panel {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.sf-wallet-deposit__panel-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.sf-wallet-deposit .payment-option {
  margin-right: 8px;
}

.sf-wallet-deposit #submit-btn-block {
  margin-top: 16px;
}

@media (max-width: 991px) {
  .sf-wallet-deposit__grid {
    grid-template-columns: 1fr;
  }
}

/* ââ Store page âââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.sf-store {
  background: #f4f6f8;
  padding-bottom: 48px;
}

.sf-store__hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #0f172a;
}

.sf-store__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-store__hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.sf-store__shell {
  margin-top: -72px;
  position: relative;
  z-index: 2;
}

.sf-store__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 280px);
  gap: 24px;
  align-items: start;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.sf-store__logo-wrap .sf-shop-logo-frame,
.sf-store__logo {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(15, 23, 42, 0.12);
}

.sf-store__logo img,
.sf-store__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-store__name {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.sf-store__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sf-store__rating {
  margin: 8px 0 12px;
}

.sf-store__about {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 62ch;
}

.sf-store__more {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color, #ff6600);
}

.sf-store__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sf-store__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.sf-store__btn--primary {
  background: var(--primary-color, #ff6600);
  color: #fff !important;
}

.sf-store__btn--ghost {
  background: #fff7ed;
  color: #9a3412 !important;
  border: 1px solid #fed7aa;
}

.sf-store__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
}

.sf-store__stat strong {
  display: block;
  font-size: 1.4rem;
  color: #0f172a;
  font-weight: 800;
}

.sf-store__stat span {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-store__meta {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-store__meta i {
  color: var(--primary-color, #ff6600);
  width: 16px;
}

.sf-store__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 20px 0 16px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 999px;
}

.sf-store__tabs a {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none !important;
}

.sf-store__tabs a.is-active,
.sf-store__tabs a:hover {
  background: var(--primary-color, #ff6600);
  color: #fff;
}

.sf-store__body {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 20px;
  padding: 20px 16px 28px;
  min-height: 240px;
}

.sf-store__shelf {
  margin: 28px 0;
}

.sf-store__shelf-head,
.sf-pdp__band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sf-store__shelf-head h2,
.sf-pdp__band-head h2,
.sf-pdp__band h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.sf-store__shelf-nav {
  display: flex;
  gap: 8px;
}

.sf-store__shelf-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.sf-store__policy,
.sf-store__reviews {
  max-width: 760px;
  margin: 12px auto;
  padding: 8px 12px 24px;
}

.sf-store__review {
  padding: 16px 0;
  border-bottom: 1px solid #eef2f6;
}

.sf-store__review header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sf-store__empty {
  text-align: center;
  color: #64748b;
  padding: 48px 0;
}

@media (max-width: 991px) {
  .sf-store__identity {
    grid-template-columns: 1fr;
  }

  .sf-store__hero {
    height: 180px;
  }

  .sf-store__shell {
    margin-top: -48px;
  }
}

/* ââ Product page âââââââââââââââââââââââââââââââââââââââââââââââââââ */
.sf-pdp {
  background: #f4f6f8;
  padding-bottom: 40px;
}

.sf-pdp-crumb {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  padding: 12px 0;
}

.sf-pdp-crumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.sf-pdp-crumb__list li + li::before {
  content: "/";
  margin-right: 10px;
  color: #cbd5e1;
}

.sf-pdp-crumb__list a {
  color: #475569;
}

.sf-pdp-crumb__list .active {
  color: #0f172a;
  font-weight: 600;
}

.sf-pdp__stage {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 20px;
  margin-top: 20px;
  padding: 24px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.sf-pdp__gallery {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
}

.sf-pdp__gallery .product-img {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
  max-height: 480px;
}

.sf-pdp__gallery .jqzoom-thumbs {
  gap: 8px;
  flex-wrap: wrap;
}

.sf-pdp__gallery .jqzoom-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
}

.sf-pdp__gallery .zoomThumbActive img {
  border-color: var(--primary-color, #ff6600);
}

.sf-pdp__video {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.sf-pdp__video video {
  display: block;
  width: 100%;
  max-height: 480px;
  background: #000;
}

.sf-pdp__video-thumb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  height: 64px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.sf-pdp__video-thumb-btn i {
  font-size: 16px;
}

.sf-pdp__video-thumb-btn.is-active {
  border-color: var(--primary-color, #ff6600);
}

.product-video-field__preview {
  margin-bottom: 10px;
}

.product-video-field__preview[hidden],
.product-video-field__empty[hidden] {
  display: none !important;
}

.product-video-field__preview video {
  display: block;
  width: 100%;
  max-height: 260px;
  background: #0f172a;
  border-radius: 8px;
}

.product-video-field__delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: normal;
}

.product-video-field__empty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 18px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
}

.product-video-field__empty .fa {
  font-size: 18px;
  color: #94a3b8;
}


.sf-pdp .product-info-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.25;
}

.sf-pdp .product-info-price-new {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-color, #ff6600);
}

.sf-pdp .old-price {
  color: #94a3b8;
  margin-left: 8px;
}

.sf-pdp__options,
.sf-pdp__calc {
  margin-top: 16px;
}

.sf-pdp__cta {
  gap: 10px;
  margin-top: 20px;
}

.sf-pdp__cta .btn-lg {
  border-radius: 12px;
  font-weight: 700;
  flex: 1 1 160px;
  text-align: center;
}

.sf-pdp__cta #buy-now-btn[disabled],
.sf-pdp__cta #buy-now-btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.sf-pdp__cta #buy-now-btn:not([disabled]):not(.disabled) {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

.sf-pdp__cta .add-to-card-now-btn {
  background: #0f172a;
  color: #fff;
}

.sf-pdp__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sf-pdp__seller,
.sf-pdp__features,
.sf-pdp__fbt-mini {
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 16px;
}

.sf-pdp__seller-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 10px;
}

.sf-pdp__seller-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-pdp__seller-actions .btn {
  margin: 0;
  border-radius: 10px;
}

.sf-pdp__features h3,
.sf-pdp__fbt-mini h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.sf-pdp__band {
  padding: 28px 0 8px;
}

.sf-pdp__details {
  margin-top: 8px;
}

.sf-pdp__tabs {
  border: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.sf-pdp__tabs > li > a {
  border: 0 !important;
  font-weight: 700;
  color: #64748b;
  padding: 16px 18px;
}

.sf-pdp__tabs > li.active > a,
.sf-pdp__tabs > li > a:hover {
  color: var(--primary-color, #ff6600);
  background: #fff7ed !important;
}

.sf-pdp__tab-body {
  background: #fff;
  border: 1px solid #e8edf2;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  padding: 24px;
}

.sf-pdp__specs th {
  width: 35%;
  color: #64748b;
  font-weight: 600;
}

.sf-pdp__review {
  padding: 16px 0;
  border-bottom: 1px solid #eef2f6;
}

.sf-pdp__review header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1199px) {
  .sf-pdp__aside {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .sf-pdp__stage {
    margin-top: 12px;
    padding: 16px 10px;
  }

  .sf-pdp .product-info-title {
    font-size: 1.25rem;
  }

  .sf-pdp__cta .btn-lg {
    flex: 1 1 100%;
  }
}

.sf-checkout__intro {
  margin: 8px 0 24px;
}

.sf-checkout__intro h1 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.sf-checkout__intro p {
  color: #64748b;
  margin: 0;
}

.sf-checkout__stores {
  margin: 0 0 20px;
}

.sf-checkout__store-block {
  padding: 16px;
}

.sf-checkout__store-block-head {
  margin-bottom: 12px;
}

.sf-checkout__store-block.is-oor {
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.sf-checkout__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.sf-checkout__store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
}

.sf-checkout__stores-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
}

.sf-checkout__store-group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.sf-checkout__store-group.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.sf-checkout__store-group.is-oor {
  border-color: #fecaca;
}

.sf-checkout__store-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sf-checkout__store-group-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-checkout__store-group-items li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-checkout__store-group-items img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sf-checkout__store-group-items span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.sf-checkout__store-group-items small {
  color: #64748b;
  font-size: 12px;
}

.sf-checkout__store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-checkout__store-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  max-width: 220px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.sf-checkout__store-tab:hover {
  border-color: #93c5fd;
  text-decoration: none;
  color: #0f172a;
}

.sf-checkout__store-tab.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.sf-checkout__store-tab.is-oor {
  border-color: #fecaca;
}

.sf-checkout__store-tab-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-checkout__store-tab-meta {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.sf-checkout__store-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 2px 6px;
  border-radius: 999px;
  width: fit-content;
}

.sf-checkout__store-badge--danger {
  background: #fef2f2;
  color: #b91c1c;
}

.sf-checkout__store-badge--warn {
  background: #fffbeb;
  color: #b45309;
}

.sf-checkout__oor {
  border-radius: 12px;
}

.sf-checkout__change-store {
  margin-left: auto;
}

.sf-checkout__card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  overflow: hidden;
}

.sf-checkout__seller {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
}

.sf-checkout__aside {
  background: #f8fafc;
  border-left: 1px solid #e8edf2;
}

.sf-checkout__section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.sf-checkout__fulfilment {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.sf-checkout__fulfil-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

.sf-checkout__address {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
}

.sf-checkout__address-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sf-checkout__change-addr {
  border: 0;
  background: transparent;
  color: var(--primary-color, #ff6600);
  font-weight: 700;
  padding: 0;
}

.sf-checkout__current-addr {
  margin-bottom: 12px;
}

.sf-checkout__add-addr {
  margin: 12px 0 8px;
  text-align: right;
}

.sf-checkout__pay {
  margin-top: 16px;
}

@media (max-width: 991px) {
  .sf-checkout__aside {
    border-left: 0;
    border-top: 1px solid #e8edf2;
  }
}

/* ââ Order confirmation + delivery location âââââââââââââââââââââââ */
.sf-order-confirm {
  padding: 8px 0 48px;
}

.sf-order-confirm__header {
  padding: 18px 0 0;
}

.sf-order-confirm__hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f3fbf6 0%, #eef6ff 100%);
  border: 1px solid #d7ebe0;
}

.sf-order-confirm__hero.is-pending {
  background: linear-gradient(135deg, #fff8eb 0%, #fff3e0 100%);
  border-color: #f0d7a8;
}

.sf-order-confirm__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #16a34a;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
}

.sf-order-confirm__hero.is-pending .sf-order-confirm__icon {
  background: #d97706;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.25);
}

.sf-order-confirm__hero-copy h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.sf-order-confirm__hero-copy p {
  margin: 0;
  color: #475569;
  font-size: 0.98rem;
  max-width: 40rem;
}

.sf-order-confirm__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.sf-order-confirm__meta-item {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}

.sf-order-confirm__meta-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.sf-order-confirm__meta-item strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
  word-break: break-word;
}

.sf-order-confirm__notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  color: #9a3412;
}

.sf-order-confirm__panel {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 20px 0;
}

.sf-order-confirm__panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.sf-order-confirm__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-order-confirm__items li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
}

.sf-order-confirm__items li:first-child {
  border-top: 0;
  padding-top: 0;
}

.sf-order-confirm__items img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: #f8fafc;
  flex-shrink: 0;
}

.sf-order-confirm__items strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
}

.sf-order-confirm__items span {
  color: #64748b;
  font-size: 0.88rem;
}

.sf-order-confirm__download + .sf-order-confirm__download {
  margin-top: 16px;
}

.sf-order-confirm__download h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.sf-order-confirm__download ul {
  margin: 0;
  padding-left: 18px;
}

.sf-order-confirm__download li {
  margin-bottom: 8px;
}

.sf-order-confirm__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sf-order-location {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 18px 20px 20px;
  margin: 20px 0;
}

.sf-order-location--compact {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 12px 8px 16px;
  background: transparent;
}

.sf-order-location__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.sf-order-location__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.sf-order-location__title i {
  color: var(--primary-color, #ff6600);
  margin-right: 6px;
}

.sf-order-location__lead {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.sf-order-location__badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.sf-order-location__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.sf-order-location__map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  min-height: 240px;
  background: #f8fafc;
}

.sf-order-location__map {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  display: block;
}

.sf-order-location__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-order-location__card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px 14px;
}

.sf-order-location__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
}

.sf-order-location__address address,
.sf-order-location__address {
  margin: 0;
  color: #0f172a;
  line-height: 1.45;
  font-style: normal;
}

.sf-order-location__address--muted,
.sf-order-location__address--muted address {
  color: #475569;
  font-size: 0.9rem;
}

.sf-order-location__store {
  font-weight: 700;
  margin-bottom: 4px;
}

.sf-order-location__coords {
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.sf-order-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.order-detail-location-cell {
  padding: 0 !important;
  border-bottom: 1px solid #e8edf2;
  background: #fff;
}

@media (max-width: 991px) {
  .sf-order-confirm__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-order-location__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .sf-order-confirm__hero {
    padding: 20px 16px;
  }

  .sf-order-confirm__hero-copy h1 {
    font-size: 1.3rem;
  }

  .sf-order-confirm__meta {
    grid-template-columns: 1fr;
  }

  .sf-order-location__head {
    flex-direction: column;
  }
}

/* -- Account list/detail pages (orders, wishlist, messages, etc.) -- */
.sf-account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sf-account-toolbar__search {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.sf-account-toolbar__search .form-control {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  min-height: 42px;
  box-shadow: none !important;
}

.sf-account-toolbar__search .btn {
  border-radius: 10px;
  min-width: 44px;
}

.sf-order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sf-order-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sf-order-card__head {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.9fr;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.sf-order-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

.sf-order-card__meta span {
  color: #94a3b8;
  font-weight: 600;
  margin-right: 4px;
}

.sf-order-card__meta a {
  font-weight: 600;
  color: var(--primary-color, #ff6600);
}

.sf-order-card__meta .label {
  margin-left: 6px;
  vertical-align: middle;
}

.sf-order-card__body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
}

.sf-order-card__items {
  padding: 0;
}

.sf-order-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.sf-order-item:last-child {
  border-bottom: none;
}

.sf-order-item__img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eef2f7;
}

.sf-order-item__info {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  color: #334155;
}

.sf-order-item__amount {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.sf-order-card__actions {
  padding: 14px 16px;
  border-left: 1px solid #eef2f7;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-order-card__actions .btn {
  margin: 0 !important;
  border-radius: 8px;
  white-space: normal;
}

.sf-order-card__actions form {
  margin: 0;
}

.sf-order-card__note {
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  background: #fffbeb;
  font-size: 0.88rem;
  color: #92400e;
  margin: 0;
}

.sf-order-card__note strong,
.sf-order-card__note span {
  font-weight: 700;
}

.sf-wishlist-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sf-wishlist-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sf-wishlist-item__media {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  flex-shrink: 0;
}

.sf-wishlist-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-wishlist-item__media a.product-link {
  position: absolute;
  inset: 0;
}

.sf-wishlist-item__labels {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sf-wishlist-item__labels li {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff7ed;
  color: var(--primary-color, #ff6600);
  padding: 3px 8px;
  border-radius: 999px;
}

.sf-wishlist-item__title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  text-decoration: none;
}

.sf-wishlist-item__title:hover {
  color: var(--primary-color, #ff6600);
  text-decoration: none;
}

.sf-wishlist-item__meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 6px;
}

.sf-wishlist-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

.sf-wishlist-item__actions .btn {
  border-radius: 8px;
  white-space: nowrap;
}

.sf-wishlist-item__actions form {
  margin: 0;
}

.sf-message-list {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sf-message-list__count {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.sf-message-row {
  display: grid;
  grid-template-columns: 160px 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.sf-message-row:last-child {
  border-bottom: none;
}

.sf-message-row:hover {
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.sf-message-row__shop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  min-width: 0;
}

.sf-message-row__shop img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.sf-message-row__subject {
  min-width: 0;
  font-size: 0.9rem;
  color: #475569;
}

.sf-message-row__subject a {
  color: inherit;
  text-decoration: none;
}

.sf-message-row__subject a.unread {
  font-weight: 700;
  color: #0f172a;
}

.sf-message-row__subject a:hover {
  color: var(--primary-color, #ff6600);
}

.sf-message-row__meta,
.sf-message-row__date {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
}

.sf-message-row__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sf-message-row__actions a {
  color: #64748b;
  font-size: 0.95rem;
}

.sf-message-row__actions a:hover {
  color: var(--primary-color, #ff6600);
  text-decoration: none;
}

.sf-message-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.sf-message-bubble {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.sf-message-bubble--me {
  margin-left: auto;
  flex-direction: row-reverse;
}

.sf-message-bubble__meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.sf-message-bubble__meta strong {
  color: #475569;
  display: block;
  font-size: 0.85rem;
}

.sf-message-bubble__body {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
}

.sf-message-bubble--me .sf-message-bubble__body {
  background: #fff7ed;
  border-color: #fed7aa;
}

.sf-message-bubble__body h5 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.sf-message-bubble__attach {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sf-message-reply {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.sf-coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.sf-coupon-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.sf-coupon-card--expired {
  opacity: 0.65;
}

.sf-coupon-card__value {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  padding: 18px 16px;
  text-align: center;
  border-bottom: 1px dashed #fed7aa;
}

.sf-coupon-card__value strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color, #ff6600);
}

.sf-coupon-card__limit {
  display: block;
  font-size: 0.75rem;
  color: #9a3412;
  margin-top: 4px;
}

.sf-coupon-card__body {
  padding: 14px 16px;
  flex: 1;
}

.sf-coupon-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sf-coupon-card__store {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.sf-coupon-card__validity {
  font-size: 0.82rem;
  color: #64748b;
}

.sf-gift-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sf-gift-card--expired {
  opacity: 0.65;
}

.sf-gift-card__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color, #ff6600);
  margin-bottom: 8px;
}

.sf-gift-card__serial {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
}

.sf-gift-card__meta {
  font-size: 0.82rem;
  color: #64748b;
}

.sf-detail-page {
  background: #f8fafc;
  padding: 24px 0 40px;
}

.sf-detail-page .container {
  max-width: 1100px;
}

.sf-detail-page .sf-panel {
  margin-bottom: 20px;
}

.sf-detail-page .sf-panel__body {
  padding: 16px 18px;
}

.sf-detail-page .sf-panel__body.table-responsive {
  padding: 0;
}

.sf-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 18px;
}

.sf-detail-meta-grid__item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.sf-detail-meta-grid__item strong,
.sf-detail-meta-grid__item div {
  font-size: 0.92rem;
  color: #334155;
}

.sf-dispute-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.sf-dispute-help {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sf-dispute-help h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}

.sf-dispute-help p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 14px;
}

.sf-dispute-help .lead {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.sf-feedback-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  align-items: start;
}

.sf-feedback-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 16px;
}

.sf-feedback-card__hint {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.sf-feedback-product {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sf-feedback-product:last-child {
  border-bottom: none;
}

.sf-feedback-product img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #eef2f7;
}

.sf-track-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sf-track-box iframe {
  width: 100%;
  min-height: 560px;
  border: 0;
  border-radius: 10px;
}

.sf-track-box .input-group .form-control {
  border-radius: 10px 0 0 10px !important;
  border: 1px solid #e2e8f0 !important;
  min-height: 48px;
  box-shadow: none !important;
}

.sf-track-box .input-group .btn {
  border-radius: 0 10px 10px 0;
  min-height: 48px;
}

.sf-account-content .pagenav-wrapper {
  margin-top: 8px;
}

.sf-account-content .sf-empty-state {
  margin-bottom: 16px;
}

@media (max-width: 991px) {
  .sf-order-card__head {
    grid-template-columns: 1fr;
  }

  .sf-order-card__body {
    grid-template-columns: 1fr;
  }

  .sf-order-card__actions {
    border-left: none;
    border-top: 1px solid #eef2f7;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sf-order-card__actions .btn {
    flex: 1 1 calc(50% - 4px);
  }

  .sf-wishlist-item {
    grid-template-columns: 90px 1fr;
  }

  .sf-wishlist-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sf-message-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .sf-message-row__shop {
    grid-column: 1 / -1;
  }

  .sf-message-row__subject {
    grid-column: 1 / -1;
  }

  .sf-dispute-layout,
  .sf-feedback-layout,
  .sf-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .sf-message-bubble {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .sf-wishlist-item {
    grid-template-columns: 1fr;
  }

  .sf-wishlist-item__media {
    width: 100%;
    height: 180px;
  }
}

/* ========== Customer LiveChat inbox (app-style) ========== */
.cpc {
  --cpc-accent: var(--primary-color, #ff6600);
  --cpc-accent-soft: color-mix(in srgb, var(--primary-color, #ff6600) 12%, transparent);
  --cpc-ink: #0f172a;
  --cpc-muted: #64748b;
  --cpc-line: #e2e8f0;
  --cpc-soft: #f8fafc;
  --cpc-out: var(--primary-color, #ff6600);
  --cpc-in: #ffffff;
  height: min(72vh, 720px);
  min-height: 520px;
  margin: 0;
}

.cpc__shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  height: 100%;
  background: #fff;
  border: 1px solid var(--cpc-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.cpc__inbox {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--cpc-line);
  background: linear-gradient(180deg, #fff 0%, var(--cpc-soft) 100%);
}

.cpc__inbox-head {
  padding: 14px 18px 8px;
}

.cpc__inbox-head p {
  margin: 0;
  font-size: 12px;
  color: var(--cpc-muted);
}

.cpc__search {
  position: relative;
  margin: 0 14px 12px;
}

.cpc__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.cpc__search input {
  width: 100%;
  border: 1px solid var(--cpc-line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px 10px 34px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.cpc__search input:focus {
  border-color: color-mix(in srgb, var(--cpc-accent) 55%, #fff);
  box-shadow: 0 0 0 3px var(--cpc-accent-soft);
}

.cpc__list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 14px;
  min-height: 0;
}

.cpc__empty-list {
  text-align: center;
  padding: 48px 16px;
  color: var(--cpc-muted);
}

.cpc__empty-list i {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: .5;
  display: block;
}

.cpc__empty-list p {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--cpc-ink);
}

.cpc__empty-list span {
  font-size: 12px;
  line-height: 1.4;
}

.cpc-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .15s ease;
  margin-bottom: 2px;
}

.cpc-row:hover {
  background: var(--cpc-accent-soft);
}

.cpc-row.is-active {
  background: var(--cpc-accent-soft);
  box-shadow: inset 3px 0 0 var(--cpc-accent);
}

.cpc-row.is-unread .name-meta {
  font-weight: 700;
  color: var(--cpc-ink);
}

.cpc-row.is-unread .excerpt {
  font-weight: 600;
  color: #475569;
}

.cpc-row__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.cpc-row__avatar-wrap img,
.cpc-row img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}

.cpc-row__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cpc-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.cpc-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpc-row__top,
.cpc-row__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cpc-row .name-meta {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpc-row .time-meta {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
}

.cpc-row.is-unread .time-meta {
  color: var(--cpc-accent);
  font-weight: 600;
}

.cpc-row .excerpt {
  font-size: 12px;
  color: var(--cpc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.cpc-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cpc-accent);
  flex-shrink: 0;
}

.cpc__thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, var(--cpc-accent-soft), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.cpc__placeholder {
  margin: auto;
  text-align: center;
  padding: 40px 24px;
  max-width: 340px;
}

.cpc__placeholder-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--cpc-accent);
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.cpc__placeholder h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--cpc-ink);
}

.cpc__placeholder p {
  margin: 0;
  color: var(--cpc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cpc-thread__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cpc-line);
  flex-shrink: 0;
}

.cpc-thread__back {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--cpc-soft);
  color: var(--cpc-ink);
  cursor: pointer;
}

.cpc-thread__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.cpc-thread__peer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.cpc-thread__peer strong {
  font-size: 15px;
  color: var(--cpc-ink);
}

.cpc-thread__peer span {
  font-size: 12px;
  color: var(--cpc-muted);
}

.cpc-thread__store {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cpc-muted);
  background: var(--cpc-soft);
  text-decoration: none;
}

.cpc-thread__store:hover {
  color: var(--cpc-accent);
}

.cpc-thread__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.cpc-thread__hint {
  margin: auto;
  color: var(--cpc-muted);
  font-size: 13px;
}

.cpc-day {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.cpc-day span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--cpc-line);
  padding: 4px 10px;
  border-radius: 999px;
}

.cpc-bubble {
  display: flex;
  max-width: min(78%, 420px);
}

.cpc-bubble--in { align-self: flex-start; }
.cpc-bubble--out { align-self: flex-end; }

.cpc-bubble__body {
  position: relative;
  padding: 10px 12px 18px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.cpc-bubble--in .cpc-bubble__body {
  background: var(--cpc-in);
  border: 1px solid var(--cpc-line);
  border-bottom-left-radius: 6px;
  color: #1e293b;
}

.cpc-bubble--out .cpc-bubble__body {
  background: var(--cpc-out);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.cpc-bubble__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.cpc-bubble__body time {
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-size: 10px;
  opacity: .7;
}

.cpc-bubble--in .cpc-bubble__body time { color: #64748b; }
.cpc-bubble--out .cpc-bubble__body time { color: rgba(255, 255, 255, .85); }

.cpc-bubble .chat-quote {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  margin: 0 0 8px;
  background: rgba(0, 0, 0, .06);
  border-left: 3px solid var(--cpc-accent, #ff6600);
  cursor: pointer;
}
.cpc-bubble--out .chat-quote {
  background: rgba(255, 255, 255, .16);
  border-left-color: #fff;
  color: #fff;
}
.cpc-bubble .chat-quote strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cpc-bubble .chat-quote span {
  display: block;
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpc-share {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 8px;
  min-width: 200px;
}

.cpc-bubble--in .cpc-share { background: #f8fafc; }

.cpc-share img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

.cpc-share__title {
  font-size: 13px;
  font-weight: 600;
}

.cpc-share__price {
  font-size: 12px;
  opacity: .85;
  margin: 2px 0 4px;
}

.cpc-share a {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
}

.cpc-atts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cpc-atts img {
  max-width: 160px;
  max-height: 120px;
  border-radius: 8px;
  display: block;
}

.cpc-atts__file {
  color: inherit;
  font-size: 12px;
}

.cpc-composer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid var(--cpc-line);
}

.cpc-composer__preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--cpc-accent-soft);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--cpc-ink);
}

.cpc-composer__preview:not([hidden]) {
  display: flex;
}

.cpc-composer__preview[hidden] {
  display: none !important;
}

.cpc-composer__preview button {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
}

.cpc-quote-preview {
  display: none;
  align-items: stretch;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--cpc-line);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.cpc-quote-preview:not([hidden]) { display: flex; }
.cpc-quote-preview__bar {
  width: 3px;
  border-radius: 3px;
  background: var(--cpc-accent, #ff6600);
  flex-shrink: 0;
}
.cpc-quote-preview__meta { flex: 1; min-width: 0; }
.cpc-quote-preview__meta strong {
  display: block;
  font-size: 12px;
  color: var(--cpc-accent, #ff6600);
}
.cpc-quote-preview__meta span {
  display: block;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cpc-quote-preview button {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.cpc-composer__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--cpc-line);
  border-radius: 14px;
  padding: 8px;
  transition: border-color .15s, box-shadow .15s;
}

.cpc-composer__form:focus-within {
  border-color: color-mix(in srgb, var(--cpc-accent) 55%, #fff);
  box-shadow: 0 0 0 3px var(--cpc-accent-soft);
}

.cpc-composer__attach {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--cpc-soft);
}

.cpc-composer__attach input { display: none; }

.cpc-composer__form textarea {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  min-height: 38px;
  max-height: 120px;
  padding: 8px 4px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--cpc-ink);
}

.cpc-composer__send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--cpc-accent);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, opacity .15s;
}

.cpc-composer__send:hover { filter: brightness(0.95); }
.cpc-composer__send:disabled { opacity: .55; cursor: wait; }
.cpc-composer__send:active { transform: scale(.96); }

.cpc-composer__error {
  margin: 8px 4px 0;
  color: #dc2626;
  font-size: 12px;
}

@media (max-width: 900px) {
  .cpc {
    height: calc(100vh - 200px);
    min-height: 420px;
  }

  .cpc__shell {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .cpc__inbox,
  .cpc__thread {
    grid-area: 1 / 1;
  }

  .cpc__thread { visibility: hidden; pointer-events: none; }
  .cpc.cpc--thread-open .cpc__inbox { visibility: hidden; pointer-events: none; }
  .cpc.cpc--thread-open .cpc__thread { visibility: visible; pointer-events: auto; }

  .cpc-thread__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========== Homepage banners ========== */
.banner-block {
  width: 100%;
  margin: 1.5rem 0;
}

.banner-block + .banner-block {
  margin-top: 1.75rem;
}

/* Full-bleed (single / slider) */
.banner-block.banner-block--full {
  max-width: 100%;
  padding: 0;
}

.banner-block--full .banner-block__inner,
.banner-block--full .banner-block__bleed {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.banner-block--full .row {
  margin-left: 0;
  margin-right: 0;
}

.banner-block--full [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.banner-block--full .image-banner {
  margin: 0;
}

.banner-block--full .banner-box {
  margin: 0;
}

.banner-block--full .banner-box img {
  width: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.banner-block--full .banner-box-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.banner-block--full .image-banner--image-only .banner-overlay {
  display: none !important;
}

@media (min-width: 992px) {
  .banner-block--full .single-banner .banner-box img {
    max-height: none;
    min-height: 180px;
  }
}

/* 3 banners per row â contained with gaps (not full-bleed) */
.banner-block.banner-block--third {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.banner-block--third .banner-block__inner {
  width: 100%;
}

.banner-block--third .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.banner-block--third [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 16px;
}

.banner-block--third .image-banner {
  height: 100%;
}

.banner-block--third .banner-box {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.banner-block--third .banner-box img {
  width: 100%;
  display: block;
  min-height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.banner-block--third .banner-box-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Colour-based banners */
.image-banner--colour .banner-box {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-banner--colour .banner-box__colour-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.image-banner--colour .banner-overlay--colour {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 1.5rem;
  background: transparent;
}

.image-banner--colour .banner-overlay-title h3,
.image-banner--colour .banner-overlay-text p {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Homepage banner slider (uses existing .banner-slider slick init) */
.banner-block--slider .homepage-banner-slider {
  width: 100%;
}

.banner-block--slider .homepage-banner-slide .banner-box {
  margin: 0;
}

.banner-block--slider .homepage-banner-slide .banner-box img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.banner-block--slider .slick-dots {
  bottom: 12px;
}



/* Product share — aligned with wishlist / chat actions */
.product-info-actions .col-6 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-info-actions .btn-link,
.product-info-actions .sf-share__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  border-radius: 0;
}

.product-info-actions .sf-share__trigger:hover,
.product-info-actions .sf-share__trigger:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: underline;
  outline: none;
}

.sf-share {
  margin-top: 0;
}

.sf-share-modal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
}

.sf-share-modal .modal-title {
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-share-modal .modal-body {
  padding: 20px;
}

.sf-share-modal__product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sf-share-modal__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
}

.sf-share-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-share-modal__meta {
  min-width: 0;
  flex: 1;
}

.sf-share-modal__name {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.sf-share-modal__desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.sf-share-modal__price {
  font-weight: 600;
  font-size: 15px;
}

.sf-share-modal__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sf-share-modal__link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.sf-share-modal__link-row .form-control {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.sf-share-modal__copy {
  white-space: nowrap;
}

.sf-share-modal__copied {
  font-size: 12px;
  margin: 0 0 12px;
}

.sf-share-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.sf-share-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sf-share-modal__action:hover,
.sf-share-modal__action:focus {
  background: #f7f7f7;
  border-color: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
}

@media (max-width: 575px) {
  .sf-share-modal__link-row {
    flex-direction: column;
  }

  .sf-share-modal__actions {
    grid-template-columns: 1fr;
  }
}

/* Homepage featured products — always-visible horizontal row (no Slick) */
.featured-items-inner {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 0;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.featured-items-inner .items-slider {
  flex: 0 0 184px;
  max-width: 184px;
  width: 184px;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Category tiles are smaller than product cards — square image + name only. */
.featured-categories-items .items-slider {
  flex: 0 0 110px;
  max-width: 110px;
  width: 110px;
  margin: 0 6px;
}

.featured-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.featured-category-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: #f2f2f2;
  background-size: cover;
  background-position: center;
}

.featured-category-card__name {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media screen and (max-width: 767px) {
  .featured-items-inner .items-slider {
    flex: 0 0 31%;
    max-width: 31%;
    width: 31%;
  }

  .featured-categories-items .items-slider {
    flex: 0 0 110px;
    max-width: 110px;
    width: 110px;
  }
}

/* Deal of the Day uses the same product card row as Featured */
.deal-of-the-day-items {
  overflow-x: visible;
}

/* ── Search results page ─────────────────────────────────────────────
   Scoped under .sf-search-page so nothing here touches the category
   browse pages, which still use the legacy product_list.blade.php. ── */
.sf-search-page {
  background: #f8fafc;
}

.sf-search-hero {
  background: linear-gradient(135deg, var(--primary-color, #ff6600) 0%, var(--primary-dark, #cc5200) 100%);
  color: #fff;
  padding: 20px 0 28px;
  margin-bottom: 28px;
}

.sf-search-breadcrumb.nav-breadcrumb {
  background: transparent;
  padding: 0 0 14px;
  margin: 0;
}

.sf-search-breadcrumb.nav-breadcrumb li,
.sf-search-breadcrumb.nav-breadcrumb li a {
  color: rgba(255, 255, 255, 0.85);
}

.sf-search-breadcrumb.nav-breadcrumb li.active,
.sf-search-breadcrumb.nav-breadcrumb > li + li::before {
  color: rgba(255, 255, 255, 0.6);
}

.sf-search-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.sf-search-hero__text h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  word-break: break-word;
}

.sf-search-hero__text p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.sf-search-hero__form {
  flex: 1 1 520px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.sf-search-hero__field {
  flex: 2 1 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f6f8;
  border-radius: 10px;
  padding: 0 12px;
  min-width: 0;
}

.sf-search-hero__field i {
  color: var(--secondary-text, #868e8e);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.sf-search-hero__field input {
  border: none;
  background: transparent;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
  font-size: 0.92rem;
  color: var(--primary-text, #333e48);
}

.sf-search-hero__field input:focus {
  outline: none;
}

.sf-search-hero__submit {
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 0 22px;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
}

@media (max-width: 767px) {
  .sf-search-hero__form {
    flex-direction: column;
  }

  .sf-search-hero__field,
  .sf-search-hero__submit {
    flex: 1 1 auto;
    width: 100%;
  }
}

.sf-search-hero__location {
  margin-top: 16px;
  max-width: 520px;
}

/* Layout: sidebar + results */
.sf-search-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 40px;
}

.sf-search-sidebar-col {
  flex: 0 0 270px;
  max-width: 270px;
}

.sf-search-content-col {
  flex: 1 1 auto;
  min-width: 0;
}

/* Filter sidebar */
.sf-search-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: var(--primary-text, #333e48);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.sf-search-filters {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  position: sticky;
  top: 88px;
}

.sf-search-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.sf-search-filters__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-text, #333e48);
}

.sf-search-filters__head h3 i {
  color: var(--primary-color, #ff6600);
  margin-right: 6px;
}

.sf-search-filters__clear {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary-text, #868e8e);
  text-decoration: none;
}

.sf-search-filters__clear:hover {
  color: var(--primary-color, #ff6600);
}

.sf-filter-section {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sf-filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sf-filter-section h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary-text, #333e48);
}

.sf-filter-section__clear {
  text-transform: none;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--primary-color, #ff6600);
  letter-spacing: normal;
}

.sf-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--primary-text, #333e48);
  font-weight: 400;
}

.sf-filter-check:last-child {
  margin-bottom: 0;
}

.sf-filter-crumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-filter-crumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--primary-text, #333e48);
  text-decoration: none;
  background: #f8fafc;
}

.sf-filter-crumb:hover {
  background: #f0f2f5;
  color: var(--primary-color, #ff6600);
}

.sf-filter-crumb--active {
  background: rgba(255, 102, 0, 0.08);
  color: var(--primary-color, #ff6600);
  font-weight: 600;
}

.sf-filter-crumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}

.sf-filter-crumb a:hover {
  opacity: 1;
}

.sf-filter-rating-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-filter-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--secondary-text, #868e8e);
}

.sf-filter-rating:hover,
.sf-filter-rating.is-active {
  background: rgba(255, 102, 0, 0.08);
  color: var(--primary-color, #ff6600);
}

.sf-filter-rating__stars {
  color: #f6a623;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.sf-filter-rating.is-active .sf-filter-rating__stars,
.sf-filter-rating:hover .sf-filter-rating__stars {
  color: #f6a623;
}

.sf-filter-rating__label {
  font-size: 0.78rem;
}

.sf-filter-price-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.sf-filter-chip-btn {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--primary-text, #333e48);
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: lowercase;
}

.sf-filter-chip-btn:hover {
  background: #f0f2f5;
  color: var(--primary-color, #ff6600);
}

.sf-filter-chip-btn.is-active {
  background: var(--primary-color, #ff6600);
  color: #fff;
}

.sf-filter-price-slider {
  width: 100%;
}

@media (max-width: 991px) {
  .sf-search-filter-toggle {
    display: flex;
  }

  .sf-search-sidebar-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .sf-search-filters {
    display: none;
    position: static;
  }
}

/* Top bar: quick toggles + sort */
.sf-search-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.sf-search-topbar__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.sf-search-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--primary-text, #333e48);
  font-weight: 400;
}

.sf-search-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-search-sort label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--secondary-text, #868e8e);
  white-space: nowrap;
}

.sf-search-sort__select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--primary-text, #333e48);
  background: #fff;
}

/* Product grid */
.sf-search-grid {
  margin: 0 -8px;
}

.sf-search-grid > [class*="col-"] {
  padding: 0 8px;
}

.sf-search-pagination {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding-bottom: 16px;
}

.sf-search-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.sf-search-pagination .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sf-search-pagination .pagination a:hover:not(.disabled):not(.active) {
  border-color: var(--primary-color, #ff6600);
  color: var(--primary-color, #ff6600);
}

.sf-search-pagination .pagination a.active {
  background: var(--primary-color, #ff6600);
  border-color: var(--primary-color, #ff6600);
  color: #fff;
}

.sf-search-pagination .pagination a.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.sf-search-empty {
  margin-top: 4px;
}

/* ── Canonical product card ──────────────────────────────────────────
   Used everywhere a product is shown as a card: category/shop grids,
   search results, and every homepage slider (featured, deal of the
   day, best selling, related items, recently viewed, ...). Deliberately
   global (not page-scoped) so every card in the system matches.

   The image box is a fixed-ratio frame with object-fit: cover and the
   title is clamped to two lines, so a portrait photo, a landscape
   photo, or a two-word vs. two-line title never changes the card's
   footprint — every card in a row lines up the same height. ──────── */
.sf-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sf-product-card:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sf-product-card .sf-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f6f8;
  margin-bottom: 0;
}

.sf-product-card .sf-product-card__media .product-img-primary,
.sf-product-card .sf-product-card__media .product-img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sf-product-card .product-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
}

.sf-product-card .product-info-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  font-size: 0.85rem;
  line-height: 1.2em;
}

.sf-product-card .product-info-availability {
  display: none;
}

.sf-product-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  min-width: 0;
}

.sf-product-card .product-info-price {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 0;
  min-height: 0;
  min-width: 0;
  font-size: 15px;
}

.sf-product-card .product-info-price-new {
  white-space: nowrap;
  font-weight: 700;
}

.sf-product-card .product-info-price .old-price {
  flex: 0 1 auto;
  flex-basis: auto;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
}

.sf-product-card .product-info-feature-list {
  position: static !important;
  display: block;
  margin: 0;
  padding: 0;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.sf-product-card__shop {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--secondary-text, #868e8e);
  text-decoration: none;
  margin: 1px 0 6px;
  min-width: 0;
}

.sf-product-card__shop:hover {
  color: var(--primary-color, #ff6600);
}

.sf-product-card__shop i {
  font-size: 0.72rem;
  flex-shrink: 0;
}

.sf-product-card__shop-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sf-product-card__distance {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Homepage / related-items sliders now render the same card inside
   each fixed-width slide. Gives the gap between cards that used to come
   from the old .box wrapper (margin: 1px 5px), which the redesign dropped. */
.items-slider {
  margin: 0 6px;
}

.items-slider .sf-product-card {
  width: 100%;
  height: 100%;
}

@media (max-width: 575px) {
  .items-slider {
    margin: 0 6px;
  }
}

/* Store distance — product info block (product page + quick view) */
.product-info-seller-distance {
  color: var(--secondary-text, #868e8e);
  font-weight: 400;
}

.sf-pdp__seller-distance {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--secondary-text, #868e8e);
}

.sf-pdp__seller-distance i {
  color: var(--primary-color, #ff6600);
  margin-right: 3px;
}

/* Recently Added uses the same compact product card as homepage sliders. */
.sf-product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 184px);
  gap: 12px;
  justify-content: flex-start;
}

@media (max-width: 991px) {
  .sf-product-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 575px) {
  .sf-product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

/* ── Quick view modal ────────────────────────────────────────────── */
.sf-quickview-dialog {
  max-width: 960px;
}

.sf-quickview {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.sf-quickview__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text, #333e48);
  cursor: pointer;
  opacity: 1;
}

.sf-quickview__close:hover {
  background: var(--primary-color, #ff6600);
  color: #fff;
}

.sf-quickview__body {
  margin: 0;
}

.sf-quickview__gallery {
  background: #f8fafc;
  padding: 32px;
  display: flex;
  align-items: center;
}

.sf-quickview__info {
  padding: 32px 32px 28px;
  max-height: 82vh;
  overflow-y: auto;
}

.sf-quickview__features {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.sf-quickview__features h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: var(--primary-text, #333e48);
  margin: 0 0 10px;
}

.sf-quickview__wholesale {
  margin-top: 16px;
}

.sf-quickview__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.sf-quickview__actions .btn {
  margin: 0;
  border-radius: 10px;
}

.sf-quickview__view-details {
  font-weight: 600;
  color: var(--primary-color, #ff6600);
}

.sf-quickview__view-details:hover {
  color: var(--primary-dark, #cc5200);
}

.sf-quickview__offers-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--secondary-text, #868e8e);
}

@media (max-width: 767px) {
  .sf-quickview__gallery,
  .sf-quickview__info {
    padding: 20px;
  }
}

/* ── Out-of-delivery-range flag on product cards ─────────────────────
   Browsing shows every product (no radius cutoff) but a shop farther
   than its own delivery radius will still be blocked at checkout —
   flag it on the card itself so buyers know before they try. ──────── */
.sf-badge-out-of-range {
  display: flex !important;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: #feaf20 !important;
}

.sf-product-card--out-of-range .sf-product-card__media {
  opacity: 0.85;
}

.sf-product-card__shop--out-of-range {
  color: #feaf20;
}

.sf-product-card__shop--out-of-range:hover {
  color: #d9930a;
}

.sf-product-card__shop--out-of-range .sf-product-card__distance {
  font-weight: 600;
}
