/* Public Menu CSS - Uber Eats Inspired */
:root {
  --primary: #FF6B35;
  --primary-dark: #e05524;
  --dark: #1A1A1A;
  --gray: #666666;
  --light-gray: #F5F5F5;
  --bg: #FFFFFF;
  --border: #EEEEEE;
  --font: 'Poppins', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); }
body { background: var(--bg); color: var(--dark); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { position: sticky; top: 0; background: #000; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.05); padding: 5px 0; display: flex; align-items: center; }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.site-logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 6px; background: #25D366; color: white; padding: 10px 20px; border-radius: 24px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); transition: transform 0.2s, box-shadow 0.2s; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4); }

/* Hero Slider */
.hero-slider { position: relative; height: 300px; overflow: hidden; background: var(--dark); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.5s; }
.hero-slide.active { opacity: 1; }
.hero-slide-content { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: white; }
.hero-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }

/* Category Nav */
.cat-nav { position: sticky; top: 100px; background: white; z-index: 90; border-bottom: 1px solid var(--border); }
.cat-nav-inner { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item { padding: 8px 20px; background: var(--light-gray); border-radius: 24px; font-weight: 500; font-size: 0.9rem; white-space: nowrap; cursor: pointer; transition: 0.2s; border: none; }
.cat-nav-item.active, .cat-nav-item:hover { background: var(--primary); color: white; }
.cat-nav-mobile { padding: 16px; background: white; }
.cat-select-wrapper { position: relative; width: 100%; }
.cat-select-wrapper::after { content: ''; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; pointer-events: none; }
.cat-select { width: 100%; padding: 14px 45px 14px 20px; border-radius: 30px; border: 2px solid rgba(255,107,53,0.3); font-size: 1.05rem; font-weight: 600; color: var(--dark); background: #FFF9F6; outline: none; appearance: none; -webkit-appearance: none; box-shadow: 0 4px 12px rgba(255,107,53,0.1); cursor: pointer; transition: all 0.3s; }
.cat-select:focus { border-color: var(--primary); box-shadow: 0 6px 16px rgba(255,107,53,0.2); }
.desktop-only { display: none; }
.mobile-only { display: block; }

/* Category Grid */
.categories-section { padding: 2rem 0; }
.section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.category-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.cat-card-img { width: 100%; height: 100%; object-fit: contain; background: var(--light-gray); transition: transform 0.3s; }
.category-card:hover .cat-card-img { transform: scale(1.05); }
.cat-card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%); }
.cat-card-content { position: absolute; bottom: 0; padding: 1rem; color: white; width: 100%; }
.cat-card-name { font-weight: 600; font-size: 1.1rem; }

/* Product Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; padding: 2rem 0; }
.product-card { background: #242426; color: #ffffff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transition: 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.product-card-img-wrap { position: relative; padding-top: 100%; overflow: hidden; background: #1c1c1e; }
.product-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.discount-badge { background: var(--primary); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.25rem; color: #ffffff; }
.product-card-desc { font-size: 0.85rem; color: #a1a1aa; margin-bottom: 0.75rem; }
.product-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price-regular { font-weight: 700; font-size: 1.1rem; color: #ffffff; }
.price-promo { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.price-was { text-decoration: line-through; font-size: 0.85rem; color: #71717a; margin-right: 0.5rem; }

/* Product Detail */
.product-detail-page { padding: 2rem 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.5rem; font-weight: 600; color: var(--primary); transition: opacity 0.2s; }
.back-link:hover { opacity: 0.8; }
.product-detail-card { background: #242426; color: #ffffff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.gallery-main { width: 100%; border-radius: var(--radius); aspect-ratio: 1/1; object-fit: contain; margin-bottom: 1rem; background: #1c1c1e; }
.product-info { padding: 1rem 0; }
.product-info h1 { margin-bottom: 0.5rem; }
.product-desc { color: #a1a1aa; line-height: 1.6; }
.product-price-block { background: #1c1c1e; padding: 1.5rem; border-radius: var(--radius); margin: 1.5rem 0; border: 1px solid #3f3f46; }
.price-regular-large { font-size: 2.2rem; font-weight: 700; color: #ffffff; }
.price-was-large { color: #71717a; text-decoration: line-through; margin-bottom: 5px; font-weight: 500; }

/* Promo Modal */
.promo-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: none; justify-content: center; align-items: center; padding: 1rem; }
.promo-overlay.is-open { display: flex; }
.promo-modal { background: white; border-radius: 16px; width: 100%; max-width: 400px; overflow: hidden; position: relative; }
.promo-close { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.8); border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.promo-modal-img { width: 100%; height: 200px; object-fit: cover; }
.promo-modal-body { padding: 1.5rem; text-align: center; }
.btn-promo-primary { display: block; width: 100%; padding: 12px; background: var(--primary); color: white; border-radius: 8px; font-weight: 600; margin-top: 1rem; }

@media(min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .desktop-only { display: flex; }
  .mobile-only { display: none; }
}
