/* Home page specific styles for ShopGamePL. Builds on base.css without duplicating utilities. */

/* Layout helpers */
.section { margin-top: var(--space-16); }
.section-head { margin-bottom: var(--space-6); }
.section-cta { margin-top: var(--space-6); text-align: center; }

/* Hero */
.hero { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.hero-grid { display: grid; gap: var(--grid-gap); grid-template-columns: 1.2fr 1fr; align-items: center; }
.hero-copy p { max-width: 55ch; }
.hero-search { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.hero-cta { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Products */
.product-grid { align-items: stretch; }
.product-card .product-media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.product-card .product-title { margin-bottom: var(--space-2); }
.product-card .product-meta { color: var(--color-text-light); margin-bottom: var(--space-2); }
.product-card .product-price { font-size: var(--font-size-lg); }
.product-actions { display: flex; justify-content: space-between; align-items: center; }
.more-card { display: flex; align-items: center; justify-content: center; text-align: center; }

/* Promos carousel */
.promos { position: relative; }
.promos-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: var(--grid-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-2) var(--space-8); }
.promos-track:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.promo-card { min-height: 180px; scroll-snap-align: start; background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light)); }
.promo-card .badge { margin-bottom: var(--space-3); }
.promo-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--color-white); border-radius: var(--radius-full); width: 42px; height: 42px; display: grid; place-items: center; box-shadow: var(--shadow-md); color: var(--color-primary-dark); }
.promo-nav:hover { background: var(--color-primary-light); }
.promo-nav.prev { left: 0; }
.promo-nav.next { right: 0; }

/* Categories */
.categories-grid .category-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); border: 2px dashed var(--color-neutral-200); background: var(--color-background-alt); }
.categories-grid .icon-xl { color: var(--color-primary-dark); }
.categories-grid .category-card:hover { border-color: var(--color-primary-light); background: var(--color-white); }

/* Reviews */
.reviews-grid .avatar { background: var(--color-accent-mint); color: var(--color-neutral-900); }
.review-card .text-sm { color: var(--color-text-light); }

/* Secure */
.secure-grid .secure-card h3 { display: flex; align-items: center; gap: var(--space-3); }

/* Support */

.support-card h3 { display: flex; align-items: center; gap: var(--space-3); }

/* Chat panel */
.chat-panel { position: fixed; right: var(--space-4); bottom: var(--space-4); width: min(360px, 92vw); background: var(--color-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; overflow: hidden; z-index: var(--z-index-popover); }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); background: var(--color-primary); color: var(--color-white); }
.chat-body { padding: var(--space-4) var(--space-5); max-height: 40vh; overflow: auto; background: var(--color-background-soft); }
.chat-form { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 2px solid var(--color-neutral-200); }
.chat-close { color: var(--color-white); }
.chat-panel[hidden] { display: none; }

/* Minor tweaks */
.footer-grid, .header-inner { gap: var(--space-4); }
