/* =====================================================
   FIROOZKALA — Brand, mobile navigation and wallet visual
   Shared by public, checkout, admin and seller pages.
===================================================== */

:root {
  --fk-brand-green: #16a34a;
  --fk-brand-green-dark: #08783d;
  --fk-brand-orange: #f59e0b;
  --fk-brand-orange-dark: #d97706;
}

/* ---------- Amazing offers: MVC-compatible template styling ---------- */
.amazing-card .amazing-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 2.45rem;
  padding: .55rem .9rem;
  color: var(--fk-brand-orange) !important;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, .18);
  border-radius: .75rem;
  box-shadow: 3px 3px 8px rgba(174, 181, 189, .24), -3px -3px 8px rgba(255, 255, 255, .92);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.amazing-card .amazing-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(174, 181, 189, .28), -4px -4px 10px rgba(255, 255, 255, .96);
}

.AmazingSlider .small-card .amazing-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 2.4rem;
  min-height: 2.4rem;
  padding-inline: .2rem;
  color: var(--fk-brand-green);
  background-color: var(--fk-surface, #f8f9fa);
  background-image: none;
  border: 1.5px solid var(--fk-brand-green);
  border-radius: 999px;
  box-shadow: 4px 4px 9px rgba(174, 181, 189, .24), -4px -4px 9px rgba(255, 255, 255, .96);
  font-family: inherit;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.AmazingSlider .small-card .amazing-add-cart:hover {
  color: var(--fk-brand-green-dark);
  border-color: var(--fk-brand-green-dark);
  transform: translateY(-2px);
}

.AmazingSlider .small-card .amazing-add-cart:active,
.amazing-card .amazing-view-all:active {
  transform: translateY(1px);
}

@media (max-width: 390px) {
  .AmazingSlider .small-card .amazing-add-cart {
    height: 2.05rem;
    min-height: 2.05rem;
    font-size: .57rem;
  }

  .amazing-card .amazing-view-all {
    min-width: 6.4rem;
    min-height: 2.2rem;
    padding: .45rem .7rem;
    font-size: .65rem;
  }
}

/* ---------- Brand logo ---------- */
.fk-brand-logo-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
}

.fk-brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 9px rgba(8, 120, 61, .10));
}

.fk-brand-logo--desktop {
  width: 190px;
  height: 76px;
}

.fk-brand-logo--mobile {
  width: 122px;
  height: 50px;
}

.fk-brand-logo--drawer {
  width: 132px;
  height: 52px;
}

/* Preserve the short subtitle under the desktop wordmark. */
.fk-desktop-brand {
  flex-direction: column;
  gap: .12rem;
  margin-left: 3.25rem !important;
}

.fk-desktop-brand > p {
  margin-top: -.45rem;
  font-size: .7rem;
}

/* Keep the official wordmark geometrically centered even with two action icons on the left. */
@media (max-width: 1023px) {
  .fk-mobile-brand-link {
    position: absolute;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
  }
}

/* ---------- Mobile top actions ---------- */
.mobile-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  direction: ltr;
  flex: 0 0 auto;
}

.mobile-favorite-link,
.mobile-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mobile-favorite-link {
  color: var(--fk-brand-green);
  background: var(--surface, #f3f4f6);
  border: 1px solid rgba(22, 163, 74, .13);
  box-shadow: 5px 5px 12px rgba(166, 171, 180, .34), -5px -5px 12px rgba(255, 255, 255, .88);
}

.mobile-favorite-link svg,
.mobile-cart-link svg {
  width: 22px;
  height: 22px;
}

.mobile-favorite-link:hover,
.mobile-cart-link:hover {
  transform: translateY(-1px);
}

.mobile-favorite-link:active,
.mobile-cart-link:active {
  transform: translateY(0) scale(.96);
}

.dark .mobile-favorite-link {
  color: #4ade80;
  background: #1f2937;
  border-color: rgba(74, 222, 128, .18);
  box-shadow: 5px 5px 12px rgba(9, 14, 24, .52), -5px -5px 12px rgba(55, 65, 81, .44);
}

/* ---------- Mobile bread categories ---------- */
.category-slide.fk-mobile-category-slide,
.category-slide.fk-mobile-category-slide .detail-category {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.fk-mobile-category-intro {
  margin: .9rem 0 .8rem;
  color: #6b7280;
  font-size: .72rem;
  line-height: 1.85;
}

.dark .fk-mobile-category-intro {
  color: #cbd5e1;
}

.fk-mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  padding-bottom: 1.2rem;
}

.fk-mobile-category-grid > li {
  min-width: 0;
}

.mobile-bread-category-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 132px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  text-align: right;
  background: #1f2937;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 8px 8px 18px rgba(15, 23, 42, .14), -5px -5px 14px rgba(255, 255, 255, .80);
  isolation: isolate;
}

.mobile-bread-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 34, 21, .02) 22%, rgba(5, 35, 20, .82) 100%);
}

.mobile-bread-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.mobile-bread-category-card:hover img {
  transform: scale(1.05);
}

.mobile-bread-category-card__label {
  position: absolute;
  right: .65rem;
  bottom: .6rem;
  left: .65rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
}

.mobile-bread-category-card__label strong {
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.5;
}

.mobile-bread-category-card__label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  color: #123421;
  background: var(--fk-brand-orange);
  border-radius: 999px;
}

.mobile-bread-category-card__label svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}

.fk-mobile-category-detail {
  padding: 1rem;
}

.fk-mobile-category-detail__head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 1rem !important;
  padding: .7rem .8rem !important;
  color: #111827;
  background: linear-gradient(135deg, rgba(22, 163, 74, .10), rgba(245, 158, 11, .10));
  border: 1px solid rgba(22, 163, 74, .10);
  border-radius: .9rem !important;
}

.dark .fk-mobile-category-detail__head {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(74, 222, 128, .12), rgba(251, 191, 36, .10));
  border-color: rgba(255, 255, 255, .08);
}

.fk-mobile-category-detail__head strong {
  font-size: .82rem;
}

.fk-mobile-category-detail__head svg {
  width: 17px;
  height: 17px;
}

.fk-mobile-category-links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 0 .1rem 1.4rem;
}

.fk-mobile-category-links > li {
  display: block !important;
  padding: 0 !important;
}

.fk-mobile-category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  width: 100%;
  padding: .75rem .8rem;
  color: #374151;
  text-decoration: none;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: .85rem;
  box-shadow: 4px 4px 10px rgba(15, 23, 42, .06);
}

.fk-mobile-category-links a::after {
  content: "‹";
  color: var(--fk-brand-orange);
  font-size: 1.1rem;
  font-weight: 900;
}

.dark .fk-mobile-category-links a {
  color: #e5e7eb;
  background: rgba(17, 24, 39, .72);
  border-color: rgba(255, 255, 255, .07);
}

/* ---------- Footer expand button ---------- */
.footer-about-toggle {
  color: #4ade80 !important;
  font-weight: 800;
}

.footer-about-toggle:hover {
  color: #fbbf24 !important;
}

.footer-about-toggle svg {
  transition: transform .3s ease;
}

.footer-about-more h3 {
  color: #f3f4f6;
}

.social-neu .fk-social-icon {
  color: #4ade80 !important;
}

/* ---------- Checkout branding ---------- */
.checkout-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.checkout-brand .fk-checkout-logo {
  display: block;
  width: 116px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(8, 120, 61, .08));
}

.checkout-brand > span {
  margin-top: -.12rem !important;
}

/* ---------- Seller/admin branding ---------- */
.sp-brand {
  align-items: flex-start;
  text-decoration: none;
}

.sp-brand .fk-panel-logo {
  display: block;
  width: 142px;
  height: 54px;
  object-fit: contain;
  object-position: right center;
}

.sp-brand > span {
  margin-top: -.2rem;
}

.sp-login-brand .fk-seller-login-logo {
  display: block;
  width: 176px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .16));
}

.sp-login-mobile-brand .fk-seller-login-logo {
  display: block;
  width: 150px;
  height: 58px;
  margin-inline: auto;
  object-fit: contain;
}

/* ---------- Branded wallet visual ---------- */
.wallet-hero.fk-wallet-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(190px, .68fr) minmax(210px, .78fr);
  align-items: stretch;
}

.wallet-brand-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
  padding: .45rem;
  background: linear-gradient(145deg, rgba(22, 163, 74, .07), rgba(245, 158, 11, .07));
  border: 1px solid rgba(22, 163, 74, .10);
  border-radius: 1.2rem;
}

.wallet-brand-visual::before {
  content: "";
  position: absolute;
  inset: 12% 14%;
  background: radial-gradient(circle, rgba(34, 197, 94, .16), transparent 68%);
  filter: blur(14px);
}

.wallet-brand-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 290px);
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(8, 120, 61, .15));
}

.fk-wallet-mini-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.dashboard-link--wallet {
  position: relative;
  min-height: 106px;
  overflow: hidden;
  padding-left: 5.5rem !important;
  border-color: rgba(22, 163, 74, .12) !important;
  background: linear-gradient(135deg, rgba(22, 163, 74, .07), rgba(245, 158, 11, .05)) !important;
}

.dashboard-wallet-art {
  position: absolute;
  left: .7rem;
  bottom: .35rem;
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: .98;
  pointer-events: none;
}

.wallet-payment-card {
  position: relative;
  overflow: hidden;
  padding-left: 4.5rem !important;
}

.wallet-payment-card > .wallet-payment-art {
  position: absolute;
  left: .75rem;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  object-fit: contain;
  pointer-events: none;
}

.subscription-payment-method .wallet-payment-method-art {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 1023px) {
  .fk-desktop-brand {
    margin-left: 0 !important;
  }
}

@media (max-width: 900px) {
  .wallet-hero.fk-wallet-hero {
    grid-template-columns: 1fr 1fr;
  }

  .wallet-brand-visual {
    grid-column: 1 / -1;
    min-height: 170px;
  }
}

@media (max-width: 640px) {
  .fk-brand-logo--mobile {
    width: 108px;
    height: 44px;
  }

  .mobile-header-actions {
    gap: .32rem;
  }

  .mobile-favorite-link,
  .mobile-cart-link {
    width: 37px;
    height: 37px;
  }

  .mobile-favorite-link svg,
  .mobile-cart-link svg {
    width: 20px;
    height: 20px;
  }

  .fk-mobile-category-grid {
    gap: .55rem;
  }

  .mobile-bread-category-card {
    min-height: 120px;
  }

  .checkout-brand .fk-checkout-logo {
    width: 102px;
    height: 38px;
  }

  .checkout-brand > span {
    font-size: .56rem !important;
  }

  .wallet-hero.fk-wallet-hero {
    grid-template-columns: 1fr;
  }

  .wallet-brand-visual {
    grid-column: auto;
    min-height: 155px;
  }

  .wallet-brand-visual img {
    width: min(100%, 250px);
  }

  .dashboard-link--wallet {
    padding-left: 5rem !important;
  }

  .dashboard-wallet-art {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 360px) {
  .fk-brand-logo--mobile {
    width: 98px;
  }

  .mobile-favorite-link,
  .mobile-cart-link {
    width: 35px;
    height: 35px;
  }

  .mobile-bread-category-card {
    min-height: 112px;
  }

  .mobile-bread-category-card__label strong {
    font-size: .7rem;
  }
}

/* ---------- Subscription hero uses the uploaded official wordmark ---------- */
.subscription-hero-mark.subscription-hero-mark--brand {
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,253,244,.92));
  border: 1px solid rgba(22,163,74,.12);
  color: var(--fk-brand-green-dark);
}

.subscription-hero-mark--brand img {
  display: block;
  width: 178px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(8,120,61,.12));
}

.subscription-hero-mark--brand small {
  color: #08783d;
  background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.12);
}

/* The seller-login visual has a dark background, so give the official logo a clean plate. */
.sp-login-brand {
  padding: .38rem .7rem .45rem;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 1.05rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.sp-login-brand small {
  color: #6b7280 !important;
}

@media (max-width: 640px) {
  .subscription-hero-mark--brand img {
    width: 135px;
  }
}


/* ---------- Footer quick links ---------- */
.footer-quick-links li a {
  color: #9ca3af;
  transition: color .2s ease, transform .2s ease;
}

.footer-quick-links li a:hover {
  color: #4ade80;
}

/* ---------- Support page ---------- */
.fk-support-shell {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.fk-support-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(22,163,74,.13), rgba(245,158,11,.12));
}

.fk-support-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: -70px;
  bottom: -90px;
  border-radius: 999px;
  background: rgba(245,158,11,.12);
  filter: blur(2px);
}

.fk-support-hero h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 900;
  color: #111827;
}

.dark .fk-support-hero h1 {
  color: #f9fafb;
}

.fk-support-hero p {
  margin: 0;
  max-width: 620px;
  color: #6b7280;
  line-height: 2;
}

.dark .fk-support-hero p {
  color: #cbd5e1;
}

.fk-support-hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 210px;
  justify-self: end;
  padding: .9rem;
  border-radius: 1.35rem;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 35px rgba(8,120,61,.12);
}

.fk-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.fk-support-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 132px;
  padding: 1.25rem;
  border-radius: 1.4rem;
}

.fk-support-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 1.15rem;
  color: #fff;
  background: linear-gradient(145deg, var(--fk-brand-green), var(--fk-brand-green-dark));
  box-shadow: 0 12px 24px rgba(22,163,74,.22);
}

.fk-support-card--hours .fk-support-card__icon {
  background: linear-gradient(145deg, var(--fk-brand-orange), var(--fk-brand-orange-dark));
  box-shadow: 0 12px 24px rgba(245,158,11,.22);
}

.fk-support-card__icon svg {
  width: 27px;
  height: 27px;
}

.fk-support-card small,
.fk-support-card p {
  display: block;
  margin: .25rem 0 0;
  color: #6b7280;
  line-height: 1.8;
}

.dark .fk-support-card small,
.dark .fk-support-card p {
  color: #cbd5e1;
}

.fk-support-card strong {
  display: block;
  color: #111827;
  font-size: 1rem;
}

.dark .fk-support-card strong {
  color: #f9fafb;
}

.fk-support-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 180px;
  margin-top: .85rem;
  padding: .8rem 1rem;
  border-radius: 1rem;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, var(--fk-brand-green), var(--fk-brand-green-dark));
  box-shadow: 0 12px 25px rgba(22,163,74,.20);
}

.fk-support-call svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 700px) {
  .fk-support-shell {
    padding-top: 1.25rem;
  }

  .fk-support-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fk-support-hero-logo {
    width: 170px;
    justify-self: center;
    grid-row: 1;
  }

  .fk-support-grid {
    grid-template-columns: 1fr;
  }

  .fk-support-card {
    min-height: 118px;
  }
}
