/* Amar Kashimpur Homepage — single file, no stacked overrides */
.ak-home {
  width: 100%;
  background: #F7FAF9;
  color: #1F2937;
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  padding: 0 0 48px;
  box-sizing: border-box;
}
.ak-home *,
.ak-home *::before,
.ak-home *::after { box-sizing: border-box; }

.ak-home-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.ak-hero {
  background: linear-gradient(135deg, #00B795 0%, #009F82 100%);
  color: #fff;
  border-radius: 0 0 20px 20px;
  padding: 28px 0 32px;
  margin: 0 0 20px;
}
.ak-home-container > .ak-hero {
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 0;
}
.ak-hero-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.ak-hero-sub {
  margin: 0 0 16px;
  font-size: 0.92rem;
  opacity: 0.95;
  color: #fff;
  max-width: 560px;
}
.ak-hero-search {
  display: flex;
  max-width: 560px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.ak-hero-search input {
  flex: 1;
  border: 0;
  padding: 13px 18px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
  color: #1F2937;
}
.ak-hero-search button {
  border: 0;
  background: #F59E0B;
  color: #fff;
  padding: 13px 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* Sections */
.ak-section { margin: 28px 0; width: 100%; }
.ak-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ak-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F2937;
}
.ak-section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00B795 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Categories — balanced row, not left-clustered */
.ak-category-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.ak-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  text-decoration: none !important;
  color: #1F2937 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  transition: border-color 0.15s, transform 0.1s;
}
.ak-category-card:active { transform: scale(0.97); }
.ak-category-card.is-active {
  border-color: #00B795;
  background: #e6f9f5;
  color: #009F82 !important;
}
.ak-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e6f9f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.ak-category-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Compact empty state */
.ak-empty {
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
  text-align: center;
  color: #64748b;
}
.ak-empty-compact {
  padding: 20px 16px;
  min-height: 0;
  max-height: 160px;
}
.ak-empty-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 6px;
}
.ak-empty p { margin: 0; font-size: 0.9rem; }

/* Vendors */
.ak-vendor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}
.ak-vendor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.ak-vendor-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00B795, #14b8a6);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ak-vendor-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ak-vendor-info strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ak-vendor-info span {
  font-size: 0.78rem;
  color: #64748b;
}
.ak-vendor-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}
.ak-vendor-status.is-open {
  background: #d1fae5;
  color: #065f46;
}

/* Products — full-width grid; 1 item = 1 normal cell */
.ak-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.ak-product-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.ak-product-media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e8f8f4;
  overflow: hidden;
  text-decoration: none !important;
}
.ak-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ak-product-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, #ccfbf1 0%, transparent 50%),
    linear-gradient(160deg, #e6f9f5, #f0fdfa);
}
.ak-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #F59E0B;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
}
.ak-product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.ak-product-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1F2937 !important;
  text-decoration: none !important;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ak-product-vendor {
  font-size: 0.75rem;
  color: #64748b !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ak-product-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 8px;
}
.ak-product-price {
  font-weight: 800;
  color: #00B795;
  font-size: 1rem;
}
.ak-product-old {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.ak-product-cart {
  margin-top: auto;
  width: 100%;
  border: 0;
  background: #00B795;
  color: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

/* How it works */
.ak-how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ak-how-step {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid #eef2f7;
}
.ak-how-step span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00B795;
  color: #fff;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.ak-how-step strong { display: block; font-size: 0.9rem; }

/* Banners */
.ak-banner {
  border-radius: 16px;
  padding: 24px 18px;
  margin: 24px 0;
  text-align: center;
  color: #fff;
}
.ak-banner h2 { margin: 0 0 8px; color: #fff; font-size: 1.15rem; }
.ak-banner p { margin: 0 0 12px; opacity: 0.95; font-size: 0.9rem; }
.ak-banner-delivery { background: linear-gradient(135deg, #0f766e, #00B795); }
.ak-banner-vendor { background: linear-gradient(135deg, #1e293b, #334155); }
.ak-banner-btn {
  display: inline-block;
  background: #F59E0B;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
}

/* Responsive */
@media (min-width: 640px) {
  .ak-category-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ak-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .ak-vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-how-grid { grid-template-columns: repeat(3, 1fr); }
  .ak-hero-title { font-size: 1.7rem; }
}
@media (min-width: 900px) {
  .ak-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ak-vendor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ak-section { margin: 36px 0; }
  .ak-hero { padding: 36px 0 40px; }
  .ak-hero-title { font-size: 1.9rem; }
}
@media (max-width: 639px) {
  .ak-home-container { padding: 0 14px; }
  .ak-home-container > .ak-hero {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .ak-category-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .ak-category-row::-webkit-scrollbar { display: none; }
  .ak-category-card {
    flex: 0 0 88px;
  }
}
