:root {
  --primary: #006420;
  --primary-light: #43B649;
  --primary-hover: #00B05A;
  --accent: #2CCF80;
  --danger: #E20F38;
  --dark: #242625;
  --text: #5C657F;
  --bg: #F6F6F6;
  --white: #FFFFFF;
  --border: #ECEDED;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,100,32,0.12);
  --transition: 0.3s ease-in-out;
  --container: 1328px;
  --header-h: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════ HEADER (zabka.pl style) ══════ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0px 4px 39px 0px #eaedef;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.main-header .container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 32px;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -1px;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover { background: var(--bg); }
.nav-link.active { background: var(--primary); color: var(--white); }

.header-icons {
  display: flex;
  gap: 16px;
}

.header-icon-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header-icon-link:hover { background: var(--bg); }
.header-icon { font-size: 1.1rem; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
}

/* ══════ HERO SLIDER ══════ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container {
  position: relative;
  max-width: 100%;
}

.slides {
  position: relative;
  height: 420px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.slide-text { max-width: 600px; }

.slide-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slide-title .highlight {
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-time {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.slide-time sup { font-size: 0.6em; }

.slide-promo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-label {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.promo-price {
  color: #FFD700;
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-desc {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.slide-btn {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.slide-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active { background: var(--white); transform: scale(1.2); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover { background: rgba(255,255,255,0.4); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* ══════ SECTIONS ══════ */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--dark);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.see-all {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.see-all:hover { color: var(--primary-hover); }

.categories-section, .products-section, .services-section {
  padding: 48px 0;
}

.products-section { background: var(--bg); }

/* ══════ CATEGORIES ══════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.category-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.category-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: var(--bg);
  border-radius: 50%;
}

/* ══════ PRODUCTS ══════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.product-image {
  position: relative;
  height: 180px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-light);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
}

.product-info { padding: 16px; }

.product-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-desc {
  color: var(--text);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

.product-price sup {
  font-size: 0.5em;
  font-weight: 700;
}

.product-price-old {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: line-through;
}

/* ══════ SERVICES ══════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.service-card h4 { margin-bottom: 6px; font-weight: 700; }
.service-card p { color: var(--text); font-size: 0.85rem; }

/* ══════ APP PROMO ══════ */
.app-promo {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
}

.promo-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.promo-content p { opacity: 0.9; margin-bottom: 24px; font-size: 1.1rem; }

/* ══════ BUTTONS ══════ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ══════ PAGE HERO ══════ */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.5rem; font-weight: 800; }

/* ══════ FILTER BAR ══════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 16px 0;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  border: 2px solid var(--border);
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.catalog-section { padding: 40px 0; }
.empty-state { text-align: center; padding: 60px; color: var(--text); }

/* ══════ DOWNLOAD ══════ */
.download-section { padding: 60px 0; }

.download-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  text-align: center;
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 16px rgba(0,100,32,0.3);
}

.captcha-block {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.captcha-image { background: var(--bg); padding: 8px; border-radius: var(--radius-sm); }
.captcha-image svg { max-width: 100%; }
.captcha-refresh { color: var(--primary); text-decoration: none; font-size: 0.9rem; }

.form-group { margin-bottom: 16px; }

.form-group input, .captcha-form input[type="text"] {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .captcha-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.download-success .success-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.token-display {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 16px 0;
  color: var(--primary);
  border: 2px dashed var(--primary-light);
}

.token-hint { color: var(--text); font-size: 0.85rem; margin-bottom: 24px; }

.btn-large { padding: 16px 40px; font-size: 1.1rem; background: var(--primary); color: white; }
.btn-large:hover { background: var(--primary-hover); }

/* ══════ ABOUT ══════ */
.about-section { padding: 60px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: center;
}

.about-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-content p { color: var(--text); margin-bottom: 12px; line-height: 1.7; }
.text-green { color: var(--primary-light); }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.stat-card {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-number { display: block; font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.stat-label { color: var(--text); font-size: 0.85rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text); font-size: 0.9rem; }

/* ══════ FOOTER ══════ */
.main-footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-desc { color: rgba(255,255,255,0.6); margin-top: 12px; font-size: 0.9rem; }
.footer-col h4 { margin-bottom: 16px; }

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--accent); }
.footer-col p { color: rgba(255,255,255,0.6); margin-bottom: 4px; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.footer-logo .logo-text { color: var(--white); font-size: 1.8rem; }

/* ══════ ALERTS ══════ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

/* ══════ ADMIN (dark theme) ══════ */
.admin-body { background: #1a1d23; padding-top: 0; }
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-card { background: #2a2d35; padding: 40px; border-radius: var(--radius); width: 100%; max-width: 400px; text-align: center; }
.admin-login-card h1 { color: var(--primary-light); margin-bottom: 24px; }
.admin-wrapper { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #2a2d35; padding: 24px 16px; display: flex; flex-direction: column; }
.sidebar-header { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; padding: 0 8px; }
.sidebar-header h2 { color: var(--primary-light); }
.admin-badge { background: var(--primary); color: white; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 0.7rem; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sidebar-link { display: block; padding: 10px 16px; color: rgba(255,255,255,0.7); text-decoration: none; border-radius: var(--radius-sm); transition: var(--transition); }
.sidebar-link:hover, .sidebar-link.active { background: var(--primary); color: white; }
.sidebar-logout { color: rgba(255,255,255,0.5); text-decoration: none; padding: 10px 16px; font-size: 0.9rem; }
.admin-main { padding: 32px; overflow-y: auto; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-tab h2 { color: white; margin-bottom: 24px; }
.admin-form { background: #2a2d35; padding: 20px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-row input, .form-row select { padding: 10px 14px; border: 1px solid #3a3d45; background: #1a1d23; color: white; border-radius: var(--radius-sm); font-size: 0.9rem; flex: 1; min-width: 120px; }
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--primary-light); }
.checkbox-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.admin-table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #2a2d35; border-radius: var(--radius-sm); overflow: hidden; }
.admin-table th { padding: 12px 16px; text-align: left; color: rgba(255,255,255,0.5); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid #3a3d45; }
.admin-table td { padding: 12px 16px; color: rgba(255,255,255,0.8); border-bottom: 1px solid #3a3d45; font-size: 0.9rem; }
.table-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.inactive-row { opacity: 0.5; }
.mono { font-family: 'Courier New', monospace; font-size: 0.85rem; }
.items-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; }
.status-badge.active { background: rgba(67,182,73,0.2); color: var(--primary-light); }
.status-badge.inactive { background: rgba(226,15,56,0.2); color: var(--danger); }
.btn-small { padding: 6px 12px; border: 1px solid #3a3d45; background: transparent; color: rgba(255,255,255,0.7); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; transition: var(--transition); }
.btn-small:hover { border-color: var(--primary-light); color: white; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: rgba(226,15,56,0.1); }
.hint { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 12px; }

/* ══════ RESPONSIVE ══════ */
@media (max-width: 992px) {
  .header-icons { display: none; }
  .header-icons.open { display: flex; position: absolute; top: var(--header-h); right: 0; background: white; padding: 16px; flex-direction: column; box-shadow: var(--shadow); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .slides { height: 300px; }
  .slide-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: flex; }
  .slides { height: 260px; }
  .slide-title { font-size: 1.8rem; }
  .slide-content { padding: 0 24px; }
  .slider-arrow { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .admin-wrapper { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
