/* =============================================
   FAMASKART — style.css
   ============================================= */

:root {
  --primary:      #1AABEA;
  --primary-dark: #0e8ec7;
  --primary-deep: #0a72a3;
  --dark:         #1E1E1E;
  --dark2:        #2C2C2C;
  --peach:        #F2C99A;
  --peach-dark:   #e0a96d;
  --white:        #FFFFFF;
  --gray:         #F5F7FA;
  --gray2:        #E8ECF0;
  --text:         #1E1E1E;
  --text-light:   #6B7280;
  --nav-h:        62px;
  --bottom-h:     64px;
  --radius:       16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--gray);
  color: var(--text);
  padding-top: var(--nav-h);
  padding-bottom: var(--bottom-h);
  overflow-x: hidden;
}

/* ---- TOAST ---- */
#toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--dark);
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  gap: 8px;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- TOP NAV ---- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: #1AABEA;
  padding: 0;
  display: block;
}
.nav-logo-fallback {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.nav-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.5px;
}
.nav-name span { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  position: relative;
}
.nav-btn:hover { background: var(--gray); }
.nav-btn svg {
  width: 22px; height: 22px;
  stroke: var(--dark2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: var(--peach-dark);
  border-radius: 50%;
  font-size: .52rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ---- ANNOUNCEMENT ---- */
.announcement {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, #3dc3f5 100%);
  color: #fff;
  padding: 28px 20px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.announcement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.announcement-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
  position: relative;
}
.announcement h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  position: relative;
}
.underline {
  position: relative;
  display: inline-block;
}
.underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--peach);
  border-radius: 2px;
}
.announcement p {
  font-size: clamp(.88rem, 3vw, 1rem);
  opacity: .92;
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.65;
  font-weight: 500;
  position: relative;
}
.usp-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.usp-chip {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: .78rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.usp-chip:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }

/* ---- COUNTDOWN ---- */
.countdown-wrap {
  background: #fff;
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray2);
  margin-bottom: 8px;
}
.countdown-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}
.countdown-boxes { display: flex; justify-content: center; gap: 10px; }
.cbox {
  background: var(--primary);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 68px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(26,171,234,.3);
}
.cnum {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  display: block;
}
.clbl {
  font-size: .6rem;
  font-weight: 800;
  color: rgba(255,255,255,.8);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
.countdown-sub {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 600;
}
.countdown-sub span { color: var(--primary); font-weight: 800; }

/* ---- SECTION HEADER ---- */
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
}
.sec-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
}
.sec-subtitle {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 2px;
}
.sec-badge {
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: .5px;
  white-space: nowrap;
}

/* ---- BANNER SLIDER ---- */
.banner-section {
  background: #fff;
  margin-bottom: 8px;
}
.banner-slider { overflow: hidden; position: relative; }
.banner-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.banner-slide {
  min-width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 24px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}
.banner-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.banner-title .accent { color: var(--peach); }
.banner-sub { font-size: .82rem; opacity: .9; font-weight: 600; }
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 10px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray2);
  transition: all .3s;
  cursor: pointer;
  border: none;
}
.dot.active { width: 20px; border-radius: 4px; background: var(--primary); }

/* ---- CATEGORIES ---- */
.categories-section {
  background: #fff;
  margin-bottom: 8px;
  padding-bottom: 16px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 4px;
  border-radius: var(--radius);
  transition: background .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.cat-card:hover, .cat-card:active {
  background: var(--gray);
  transform: scale(.96);
}
.cat-img-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray2);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.cat-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cat-name {
  font-size: .7rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
}
.cat-soon {
  font-size: .6rem;
  color: var(--primary);
  font-weight: 700;
}

/* ---- PRODUCTS ---- */
.products-section {
  background: #fff;
  margin-bottom: 8px;
  padding-bottom: 16px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 14px;
}
@media (min-width: 500px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  border: 1.5px solid var(--gray2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.product-card:active { transform: scale(.97); }
.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--gray);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.ribbon {
  position: absolute;
  top: 10px; right: -24px;
  font-size: .55rem;
  font-weight: 800;
  padding: 3px 30px;
  transform: rotate(35deg);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.ribbon.hot { background: var(--peach-dark); }
.ribbon.new { background: var(--primary); }
.product-info { padding: 10px 10px 12px; }
.product-name {
  font-size: .82rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 5px;
}
.product-tag-row { display: flex; gap: 4px; flex-wrap: wrap; }
.ptag {
  background: var(--gray);
  border-radius: 50px;
  padding: 2px 9px;
  font-size: .65rem;
  font-weight: 800;
  color: var(--primary);
}

/* ---- SUGGESTION FORM ---- */
.form-section {
  background: linear-gradient(160deg, #f0f9ff 0%, #e8f4fb 100%);
  margin-bottom: 8px;
  padding-bottom: 28px;
}
.form-inner {
  padding: 0 16px;
}
.form-desc {
  font-size: .86rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
}
.input-group { margin-bottom: 14px; }
.input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--dark2);
  letter-spacing: .5px;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.label-icon {
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .65rem;
  flex-shrink: 0;
}
.req { color: var(--primary); }
.opt-tag {
  font-size: .62rem;
  background: var(--gray2);
  border-radius: 50px;
  padding: 2px 9px;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 2px;
}
.inp {
  width: 100%;
  background: #fff;
  border: 2px solid var(--gray2);
  border-radius: 14px;
  padding: 13px 16px;
  color: var(--dark);
  font-family: 'Nunito', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.inp::placeholder { color: #b0bec5; font-weight: 500; }
.inp:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,171,234,.12);
}
.inp.error { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
textarea.inp { resize: vertical; min-height: 110px; line-height: 1.6; }
.err-msg {
  font-size: .72rem;
  color: #ef4444;
  font-weight: 700;
  margin-top: 5px;
  display: none;
  padding-left: 4px;
}
.err-msg.show { display: block; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 400px) { .form-row-2 { grid-template-columns: 1fr; } }

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 8px 24px rgba(26,171,234,.4);
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(26,171,234,.45); }
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.success-box {
  display: none;
  text-align: center;
  padding: 36px 20px;
  animation: fadeUp .5s ease both;
}
.success-ring {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 2.2rem;
  box-shadow: 0 8px 28px rgba(26,171,234,.35);
}
.success-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 8px;
}
.success-box p { font-size: .88rem; color: var(--text-light); font-weight: 600; line-height: 1.65; max-width: 300px; margin: 0 auto; }

/* ---- CONTACT ---- */
.contact-section {
  background: #fff;
  margin-bottom: 8px;
  padding-bottom: 20px;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}
.contact-card {
  background: var(--gray);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--dark);
  transition: background .2s, transform .2s, color .2s;
  border: 1.5px solid var(--gray2);
}
.contact-card:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.contact-card:hover .cc-label { color: rgba(255,255,255,.8); }
.contact-card:hover .cc-val { color: #fff; }
.contact-card:hover .cc-icon { background: rgba(255,255,255,.2); }
.cc-icon {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background .2s;
}
.cc-label {
  font-size: .62rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}
.cc-val {
  font-size: .78rem;
  font-weight: 700;
  margin-top: 1px;
  word-break: break-all;
  transition: color .2s;
}
.social-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px 0;
}
.social-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  color: #fff;
}
.social-btn:hover { transform: translateY(-2px); opacity: .9; }
.social-insta {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-wa {
  background: #25D366;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.footer-note {
  text-align: center;
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 600;
  padding: 18px 0 0;
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: #fff;
  border-top: 1px solid var(--gray2);
  display: flex;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.bnav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  cursor: pointer;
  border: none; background: transparent;
  color: var(--text-light);
  transition: color .2s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.bnav-item.active { color: var(--primary); }
.bnav-item svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s;
}
.bnav-label { font-size: .6rem; font-weight: 800; letter-spacing: .3px; }
.bnav-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: opacity .2s;
}
.bnav-item.active .bnav-dot { opacity: 1; }

/* ---- KEYFRAMES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 380px) {
  .cbox { min-width: 60px; padding: 10px 8px; }
  .cnum { font-size: 1.7rem; }
  .cat-grid { gap: 6px; }
  .cat-img-wrap { width: 52px; height: 52px; }
}
