/* Public pages reuse homepage.css as the master theme. Only route-specific
   layout differences and the shared wordmark belong here. */
.gaming-storefront .logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gaming-storefront .store-wordmark { color: #f7f8fa; font: 800 2.3rem/1 var(--ff-josefin-sans); letter-spacing: -.04em; }
.gaming-storefront .header .navbar-list > li:nth-child(3), .gaming-storefront .header .navbar-list > li:nth-child(4) { display: block; }
.gaming-storefront .header .header-inner { gap: 24px; }
.gaming-storefront .header .navbar-link { font-size: 1.2rem; }
.gaming-storefront .footer .logo img { width: auto; height: 36px; }
.gaming-storefront .footer .store-wordmark { font-size: 2rem; }
.gaming-storefront.catalog-page, .gaming-storefront.detail-page, .gaming-storefront.builder-page { color: var(--white); padding-block-start: 0; font-family: var(--ff-roboto); }
.gaming-storefront .product-card__gallery, .gaming-storefront .product-gallery__thumbs { overflow-x: auto; scrollbar-width: none; }
.gaming-storefront .product-card__gallery::-webkit-scrollbar, .gaming-storefront .product-gallery__thumbs::-webkit-scrollbar { display: none; }

/* Catalog: same surfaces and controls, vertical ecommerce cards. */
.catalog-page .shop-header { padding-block: 42px 28px; background: var(--bg-dark); border-bottom: 1px solid var(--border-color); }
.catalog-page .shop-header h1 { margin: 0; font-size: 4rem; line-height: 1.15; letter-spacing: -.04em; }
.catalog-page .catalog-description { margin-top: 9px; color: var(--text-gray); font-size: 1.5rem; }
.catalog-page .shop-status { margin-top: 10px; margin-bottom: 0; font-size: 1.3rem; }
.catalog-page .shop-toolbar { margin-top: 24px; align-items: stretch; grid-template-columns: minmax(0,1fr) 180px 180px; }
.catalog-page .shop-search { background: #232a32; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; min-height: 46px; }
.catalog-page .shop-search input { font-size: 1.4rem; }
.catalog-page .shop-search button { color: #fff; background: var(--accent-red); flex: 0 0 48px; }
.catalog-page .shop-select { font-family: var(--ff-roboto); font-size: 0; gap: 0; }
.catalog-page .shop-select select { min-width: 0; width: 100%; height: 46px; padding-inline: 12px 30px; border: 1px solid var(--border-color); border-radius: 8px; background: #232a32; color: var(--white); font: 400 1.4rem var(--ff-roboto); }
.catalog-page .shop-filter-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; }
.catalog-page .shop-filter-list .filter-btn { display: flex; align-items: center; min-height: 40px; border-radius: 8px; background: #20262d; color: var(--text-gray); border: 1px solid var(--border-color); }
.catalog-page .shop-filter-list .filter-btn.active { background: var(--accent-red); border-color: var(--accent-red); color: white; box-shadow: none; }
.catalog-page .shop-filter-list .filter-btn:hover:not(.active) { background: #232a32; color: white; }
.catalog-page .shop-results { padding-block: 30px 44px; }
.catalog-page .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.catalog-page .product-grid .product-card { display: flex; flex-direction: column; height: 100%; border-radius: 11px; }
.catalog-page .product-grid .product-card:hover { transform: translateY(-2px); border-color: #63313a; }
.catalog-page .product-grid .product-card__media { display: block; margin: 0; border: 0; border-bottom: 1px solid var(--border-color); }
.catalog-page .product-grid .product-card__image-link { display: block; }
.catalog-page .product-grid .photo-stage { display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 0; --photo-surface: #20262d; --photo-padding: 10px; background: var(--photo-surface); }
.catalog-page .product-grid .product-card__gallery { gap: 6px; padding: 7px 10px; background: #232a32; }
.catalog-page .product-grid .product-card__thumb { flex: 0 0 44px; width: 44px; height: 44px; background: #232a32; border-radius: 6px; border: 1px solid var(--border-color); }
.catalog-page .product-grid .product-card__thumb.is-active { border-color: var(--accent-red); }
.catalog-page .product-grid .product-card__content { flex: 1; padding: 16px; }
.catalog-page .product-grid .product-card__category { font: 500 1rem var(--ff-roboto); padding: 4px 7px; }
.catalog-page .product-grid .product-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 4.7rem; font-size: 1.7rem; line-height: 1.38; }
.catalog-page .product-grid .product-card__specs { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; width: 100%; min-height: 7.8rem; max-height: 7.8rem; font-size: 1.3rem; line-height: 1.5; }
.catalog-page .product-grid .product-card__price { color: white; font: 800 2.4rem/1.3 var(--ff-roboto); margin-top: 14px; }
.catalog-page .product-grid .product-card__stock { font-size: 1.25rem; margin-bottom: 14px; }
.catalog-page .product-grid .product-card__order { min-height: 46px; font-size: 1.35rem; border-radius: 8px; gap: 8px; }
.catalog-page .product-grid .product-card__order ion-icon { font-size: 1.9rem; }
.catalog-page .empty-state { padding-block: 40px; }

/* Details: existing gallery, specifications and quantity/order bindings. */
.detail-page .product-detail-shell { padding-block: 30px 44px; }
.detail-page .product-detail-layout { gap: 36px; }
.detail-page .product-gallery .product-gallery__main.photo-stage { --photo-surface: #20262d; --photo-padding: 12px; aspect-ratio: 4 / 3; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: none; background: var(--photo-surface); }
.detail-page .product-gallery__thumb { flex: 0 0 48px; width: 48px; height: 48px; padding: 3px; background: #232a32; border: 1px solid var(--border-color); border-radius: 7px; }
.detail-page .product-gallery__thumb.is-active, .detail-page .product-gallery__thumb:hover { border-color: var(--accent-red); box-shadow: none; }
.detail-page .product-detail-info h1 { font-size: clamp(2.8rem,3vw,4rem); line-height: 1.2; letter-spacing: -.035em; }
.detail-page .product-detail__price { color: white; font: 800 2.8rem/1.3 var(--ff-roboto); }
.detail-page .product-detail__stock.is-available { color: #23e35d; }
.detail-page .product-detail__stock.is-available > span { background: #23e35d; box-shadow: none; }
.detail-page .product-detail__summary { color: var(--text-gray); }
.detail-page .product-detail__order-row input { background: #232a32; border: 1px solid var(--border-color); border-radius: 8px; font-family: var(--ff-roboto); height: 44px; }
.detail-page .product-detail__order { min-height: 48px; border-radius: 8px; }
.detail-page .product-specifications { margin-top: 36px; padding-top: 24px; }
.detail-page .product-specifications li { border-color: var(--border-color); color: #c6cbd2; }
.detail-page .mobile-order-bar { background: #151a20; border-color: var(--border-color); }
.detail-page .mobile-order-bar strong { color: white; font-family: var(--ff-roboto); }

/* Builder: retain IDs, selection handlers, modal and WhatsApp action. */
.builder-page .section { padding-block: 36px 44px; }
.builder-page .section-title { text-align: left; margin-bottom: 26px; font-size: 3.6rem; }
.builder-page .builder-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; gap: 24px; }
.builder-page .category-row { padding: 20px; border-radius: 11px; background: #1a2026; gap: 16px; }
.builder-page .category-row h3 { font-size: 1.7rem; }
.builder-page .selected-item-display { color: var(--accent-red); overflow-wrap: anywhere; }
.builder-page .cat-info { min-width: 0; }
.builder-page .btn { min-height: 44px; border-radius: 8px; font-size: 1.3rem; background: var(--accent-red); color: white; text-transform: none; flex-shrink: 0; box-shadow: none; }
.builder-page .btn:hover { background: #e91c31; transform: none; }
.builder-page .builder-summary { position: sticky; top: 102px; padding: 24px; border: 1px solid var(--border-color); border-radius: 11px; background: #1a2026; }
.builder-page .builder-summary h3 { font-size: 2rem; }
.builder-page .summary-total { margin-top: 24px; }
.builder-page #total-price { margin-top: 8px; color: white; font-size: 2.6rem; }
.builder-page .btn.builder-whatsapp { background: var(--whatsapp-green); color: #072b13; }
.builder-page .modal-overlay { z-index: 2000; }
.builder-page .modal-content { background: #1a2026; border: 1px solid var(--border-color); border-radius: 12px; }
.builder-page .modal-item { background: #232a32; padding: 14px; gap: 12px; }
.builder-page .modal-item > div { min-width: 0; }
.builder-page .modal-item span { color: white; overflow-wrap: anywhere; }
.builder-page .modal-item strong { white-space: nowrap; color: white; }
.builder-page .modal-item img { background: #232a32 !important; }
@media (max-width: 1199px) {
  .gaming-storefront .header .header-inner { gap: 14px; }
  .gaming-storefront .header .navbar-link { font-size: 1.1rem; }
  .gaming-storefront .store-wordmark { font-size: 2rem; }
  .catalog-page .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 992px) {
  .gaming-storefront .header .header-inner { gap: 8px 12px; }
  .gaming-storefront .header .navbar-link { font-size: 1.5rem; }
  .gaming-storefront .header .store-wordmark { font-size: 2rem; }
  .catalog-page .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .builder-page .builder-grid { grid-template-columns: minmax(0,1fr); }
  .builder-page .builder-summary { position: static; }
}
@media (max-width: 680px) {
  .catalog-page .shop-header { padding-block: 28px 22px; }
  .catalog-page .shop-header h1 { font-size: 3rem; }
  .catalog-page .shop-toolbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .catalog-page .shop-search { grid-column: 1 / -1; }
  .catalog-page .shop-filter-list { flex-wrap: nowrap; overflow-x: auto; padding-block: 2px; scrollbar-width: none; }
  .catalog-page .shop-filter-list > li { flex: 0 0 auto; }
  .catalog-page .product-grid { grid-template-columns: minmax(0,1fr); }
  .catalog-page .product-grid .product-card__title { min-height: 0; }
  .detail-page { padding-bottom: 78px; }
  .detail-page .product-detail-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .builder-page .section-title { font-size: 2.8rem; }
  .builder-page .category-row { padding: 16px; }
  .builder-page .category-row h3 { font-size: 1.45rem; }
  .builder-page .category-row .btn { font-size: 1.15rem; padding: 8px 12px; }
  .builder-page .modal-item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-page .product-grid .product-card:hover { transform: none; }
}
