/*
Theme Name: Beveragenation Child
Description: Custom Temu-style homepage for beveragenation.shop (child theme of Astra)
Author: Beveragenation
Template: astra
Version: 1.0.0
Text Domain: bev-child
*/

:root {
  --bev-accent: #f97316;
  --bev-accent-dark: #c2410c;
  --bev-red: #e11d48;
  --bev-text: #111827;
  --bev-muted: #6b7280;
  --bev-border: #e5e7eb;
  --bev-bg: #f5f5f5;
  --bev-card: #ffffff;
}

.bev-home {
  background: var(--bev-bg);
  color: var(--bev-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.bev-home a { text-decoration: none; color: inherit; }

/* Search */
.bev-search {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bev-accent);
  padding: 10px 12px;
}
.bev-search form {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}
.bev-search input[type="search"] {
  flex: 1;
  border: 0;
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
  min-width: 0;
}
.bev-search button {
  border: 0;
  background: var(--bev-accent-dark);
  color: #fff;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}

/* Category strip */
.bev-cats {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 12px;
  background: #fff;
  scrollbar-width: none;
}
.bev-cats::-webkit-scrollbar { display: none; }
.bev-cat {
  flex: 0 0 auto;
  font-size: 13px;
  text-align: center;
  width: 72px;
}
.bev-cat__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bev-accent-dark);
  overflow: hidden;
}
.bev-cat__icon img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.bev-section {
  background: var(--bev-card);
  margin: 10px 0;
  padding: 14px 12px 16px;
}
.bev-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.bev-section__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.bev-section__title--deal { color: var(--bev-red); }
.bev-section__more {
  font-size: 13px;
  color: var(--bev-accent-dark);
  font-weight: 600;
}

/* Product grid */
.bev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bev-section--plain { background: transparent; padding: 0 12px; }

/* Product card */
.bev-card {
  background: var(--bev-card);
  border: 1px solid var(--bev-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bev-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fafafa;
}
.bev-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bev-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--bev-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}
.bev-card__body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bev-card__title {
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bev-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--bev-text);
  margin-bottom: 8px;
}
.bev-card__price del {
  color: var(--bev-muted);
  font-weight: 400;
  font-size: 12px;
  margin-right: 4px;
}
.bev-card__price ins { text-decoration: none; color: var(--bev-red); }
.bev-card__btn {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--bev-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 999px;
}
.bev-card__btn:hover { background: var(--bev-accent-dark); }

/* Load more */
.bev-more-wrap { text-align: center; padding: 16px 12px; }
.bev-more {
  background: #fff;
  border: 1px solid var(--bev-accent);
  color: var(--bev-accent-dark);
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.bev-more:disabled { opacity: .6; cursor: default; }

.bev-notice {
  padding: 24px 12px;
  text-align: center;
  color: var(--bev-muted);
}

/* Tablet and desktop */
@media (min-width: 640px) {
  .bev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .bev-card__title { font-size: 14px; }
}
@media (min-width: 900px) {
  .bev-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bev-search { position: static; padding: 14px 0; background: transparent; }
  .bev-search form { max-width: 640px; margin: 0 auto; }
  .bev-search button { min-width: 120px; }
  .bev-section--plain { padding: 0; }
  .bev-cats { padding: 16px; }
}
