/* =========================================================
   Homepage sections
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, #F3F7EE 0%, #EAF3E4 55%, #E3EFDC 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 420px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  max-width: 10ch;
}

.hero-copy .hero-sub {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 320px;
  overflow: hidden;
}

.hero-visual .leaf-art {
  position: absolute;
  inset: 0;
}

.hero-arrows {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-arrows button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(27, 94, 32, 0.25);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
}

.hero-arrows button:hover {
  background: var(--color-white);
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(27, 94, 32, 0.3);
}

.hero-dots span.active {
  background: var(--color-primary-dark);
  width: 20px;
  border-radius: 999px;
}

/* ---------- Category shortcuts ---------- */
.shortcuts {
  padding: 40px 0 8px;
}

.shortcuts-row {
  display: flex;
  justify-content: center;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}

.shortcuts-row::-webkit-scrollbar {
  display: none;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: 96px;
  text-align: center;
}

.shortcut-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.shortcut-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.shortcut-item:hover .shortcut-circle {
  border-color: var(--color-primary);
}

/* ---------- Anniversary banner ---------- */
.anniversary-banner {
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.16) 0 26px, transparent 26px 60px),
    linear-gradient(100deg, #E7B740 0%, #D89A22 55%, #C67F16 100%);
  color: #4A2A00;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.anniversary-copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

/* Phase 8: admin-managed homepage banners. Kept visually simple and
   consistent with the rest of the site (rather than mimicking the
   anniversary banner's specific festival styling above), since these
   can hold arbitrary admin-entered content. */
.admin-banner {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  border: 1px solid #C7E2C4;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-banner-copy h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--color-primary-dark);
}
.admin-banner-copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.admin-banner img {
  max-width: 120px;
  border-radius: var(--radius-md);
}

.anniversary-copy .big-number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--color-red);
  font-weight: 700;
}

.anniversary-copy h2 {
  color: #4A2A00;
  font-size: 1.7rem;
}

.anniversary-offer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.15rem;
}

.anniversary-offer .pill {
  background: var(--color-red);
  color: #fff;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1.05;
  text-align: center;
}

/* ---------- Product cards / grids ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.product-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-badge.deal {
  background: var(--color-red);
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.wishlist-btn svg {
  width: 16px;
  height: 16px;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: var(--color-red);
}

.product-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.product-rating .stars {
  color: #E0A400;
  font-weight: 700;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
}

.product-price .current {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.product-price .original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.product-price .discount {
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 600;
}

.add-to-cart {
  margin-top: 6px;
  width: 100%;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.add-to-cart:hover {
  background: var(--color-primary-dark);
}

/* ---------- API fallback notice (Phase 2) ---------- */
.api-fallback-notice {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
}

/* ---------- Season deals ---------- */
.deals-section {
  background: linear-gradient(100deg, #D89A22, #C67F16);
  border-radius: var(--radius-lg);
  padding: 26px 28px 30px;
  color: #4A2A00;
}

.deals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.deals-head h2 {
  color: #4A2A00;
  font-size: 1.4rem;
}

.deals-head p {
  font-size: 0.85rem;
  color: #5C3A00;
  margin-top: 2px;
}

.deals-head .view-all {
  color: #4A2A00;
  font-weight: 700;
}

.countdown {
  display: flex;
  gap: 8px;
}

.countdown .unit {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
  min-width: 52px;
}

.countdown .unit strong {
  display: block;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.countdown .unit span {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ---------- Two-column split (best of week / new arrivals) ---------- */
.split-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ---------- Shop by category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.category-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
}

.category-card .leaf-art {
  aspect-ratio: 4 / 3;
}

.category-card-body {
  padding: 14px;
}

.category-card-body h3 {
  font-size: 0.95rem;
  color: var(--color-text);
}

.category-card-body p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.category-card-body .shop-now {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Physical store ---------- */
.store-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.store-photo {
  min-height: 100%;
}

.store-info {
  background: var(--color-white);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.store-info h2 {
  font-size: 1.4rem;
}

.store-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-text);
}

.store-detail svg {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.store-cta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.store-map {
  background: #DCE9DA;
  position: relative;
}

.store-map .map-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

.store-map .map-pin {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -100%);
  color: var(--color-red);
}

.store-map .map-pin svg {
  width: 30px;
  height: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #D9E7D5;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 48px 0 32px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #B9CDB4;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 0.85rem;
  color: #C7DAC2;
}

.footer-col a:hover {
  color: #fff;
}

.newsletter-form {
  display: flex;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
}

.newsletter-form input::placeholder {
  color: #9FB89A;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  border: 0;
  background: var(--color-primary);
  color: #fff;
  width: 44px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons svg {
  width: 15px;
  height: 15px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: #9FB89A;
}

.payment-badges {
  display: flex;
  gap: 8px;
}

.payment-badges span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.68rem;
  color: #D9E7D5;
}
