/*
 * Amar Subscription — Design V1
 * Purpose: a reversible visual refresh for the compiled storefront.
 * Loaded AFTER the generated Tailwind bundle. It does not change data, JS, checkout, or auth.
 */

:root {
  --as-ink: #101827;
  --as-brand: #df2433;
  --as-brand-dark: #b91d2a;
  --as-line: #e7ecf2;
  --as-surface: #f7f9fc;
  --as-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fff 0, var(--as-surface) 620px, #fff 1450px);
  color: var(--as-ink);
}

/* Announcement + main header */
.marquee-track {
  letter-spacing: 0.01em;
}

header.sticky {
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.045);
}

header nav {
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.035);
}

header nav a {
  padding-inline: 14px !important;
}

/* Hero */
.hero-box {
  border-radius: 22px !important;
  background: #f8fafc !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11) !important;
  ring: 0;
}

.hero-box > button[aria-label] {
  height: 42px !important;
  width: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(16, 24, 39, 0.7) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.hero-box > button[aria-label]:hover {
  background: var(--as-brand) !important;
}

.hero-box > div:last-child button {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

/* Category chips */
.no-scrollbar > a.rounded-full {
  border-color: var(--as-line) !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease !important;
}

.no-scrollbar > a.rounded-full:hover {
  border-color: rgba(223, 36, 51, 0.55) !important;
  box-shadow: 0 8px 18px rgba(223, 36, 51, 0.11);
  transform: translateY(-1px);
}

/* Section rhythm */
main section.mx-auto.max-w-7xl {
  padding-block: 32px !important;
}

main section h2 {
  color: var(--as-ink);
  letter-spacing: -0.025em;
}

/* Product cards */
.group.rounded-card {
  border: 1px solid var(--as-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.065) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .group.rounded-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(223, 36, 51, 0.24) !important;
    box-shadow: var(--as-shadow) !important;
  }
}

.group.rounded-card > a.relative.block.aspect-square {
  background: #edf1f6 !important;
}

.group.rounded-card > a.relative.block.aspect-square::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 18, 30, 0.14));
}

.group.rounded-card > a.relative.block.aspect-square > img {
  transition: transform 260ms ease, filter 260ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .group.rounded-card:hover > a.relative.block.aspect-square > img {
    transform: scale(1.035) !important;
    filter: saturate(1.05);
  }
}

.group.rounded-card > .flex.flex-1.flex-col.p-3 {
  padding: 14px 14px 15px !important;
}

.group.rounded-card > .flex.flex-1.flex-col > a[href^="/product/"] {
  min-height: 38px;
  color: var(--as-ink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.012em;
  line-height: 1.35 !important;
}

.group.rounded-card div[title^="৳"] {
  margin-top: 10px !important;
}

.group.rounded-card div[title^="৳"] > span {
  color: var(--as-brand) !important;
  font-size: 15px !important;
  letter-spacing: -0.015em;
}

.group.rounded-card div[title^="৳"] > s {
  color: #9aa4b2 !important;
}

.group.rounded-card > .flex.flex-1.flex-col > .mt-auto > a[href^="/product/"] {
  height: 42px !important;
  margin-top: 12px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #111827, #263348) !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
  font-size: 13px !important;
  letter-spacing: -0.01em;
}

.group.rounded-card > .flex.flex-1.flex-col > .mt-auto > a[href^="/product/"]:hover {
  background: linear-gradient(135deg, var(--as-brand), var(--as-brand-dark)) !important;
  box-shadow: 0 8px 16px rgba(223, 36, 51, 0.23);
}

/* Make discount, stock, and wishlist signals compact rather than noisy. */
.group.rounded-card > a.relative > span[class*="left-2"][class*="top-2"] {
  padding: 5px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px !important;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.19) !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

.group.rounded-card > a.relative > span[class*="right-2"][class*="top-2"] {
  padding: 4px 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 9.5px !important;
  line-height: 1 !important;
}

button[aria-label="Add to wishlist"] {
  height: 32px !important;
  width: 32px !important;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.14) !important;
}

button[aria-label="Add to wishlist"]:hover {
  color: var(--as-brand) !important;
}

/* Trust/service and FAQ cards further down the home page */
.rounded-2xl.border.border-gray-100.bg-white.shadow-card,
.rounded-2xl.border.border-gray-100.bg-gray-50\/60.p-4.shadow-card {
  border-color: var(--as-line) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055) !important;
}

/* Floating support action: leave enough clearance above the mobile bottom bar. */
.am-fab > a[aria-label="WhatsApp"] {
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(18, 130, 75, 0.32) !important;
}

@media (max-width: 639px) {
  body {
    background: #f8fafc;
  }

  .marquee-track {
    font-size: 11.5px;
  }

  header.sticky > div {
    min-height: 64px;
    padding-block: 10px !important;
  }

  .hero-box {
    border-radius: 15px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1) !important;
  }

  .hero-box > button[aria-label] {
    height: 32px !important;
    width: 32px !important;
  }

  main section.mx-auto.max-w-7xl {
    padding-block: 24px !important;
  }

  main section h2 {
    font-size: 18px !important;
  }

  .mt-4.grid.grid-cols-2.gap-4 {
    gap: 11px !important;
  }

  .group.rounded-card {
    border-radius: 14px !important;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.07) !important;
  }

  .group.rounded-card > .flex.flex-1.flex-col.p-3 {
    padding: 10px 10px 11px !important;
  }

  .group.rounded-card > .flex.flex-1.flex-col > a[href^="/product/"] {
    min-height: 34px;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .group.rounded-card div[title^="৳"] {
    margin-top: 8px !important;
  }

  .group.rounded-card div[title^="৳"] > span {
    font-size: 13px !important;
  }

  .group.rounded-card > .flex.flex-1.flex-col > .mt-auto > a[href^="/product/"] {
    height: 38px !important;
    margin-top: 9px !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
  }

  .group.rounded-card > a.relative > span[class*="right-2"][class*="top-2"] {
    display: none;
  }

  .group.rounded-card > a.relative > span[class*="left-2"][class*="top-2"] {
    padding: 4px 6px !important;
    font-size: 9px !important;
  }

  button[aria-label="Add to wishlist"] {
    height: 29px !important;
    width: 29px !important;
  }

  .am-fab {
    right: 14px !important;
    bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }

  .am-fab > a[aria-label="WhatsApp"] {
    height: 46px !important;
    width: 46px !important;
  }
}
