/* main.css — nakup.pl */

:root {
  --accent:       #C8550A;
  --accent-dark:  #A8440A;
  --dark:         #2C2218;
  --dark-mid:     #444441;
  --sand:         #111d11;
  --sand-dark:    #E8E0D5;
  --sand-mid:     #F0EAE0;
  --warm-gold:    #C8A97E;
  --white:        #1A2A1A;
  --text:         #F0F0F0;
  --text-muted:   #AAAAAA;
  --text-light:   #777777;
  --text-hint:    #555555;
  --green:        #3B6D11;
  --green-bg:     #EAF3DE;
  --blue:         #185FA5;
  --blue-bg:      #E6F1FB;
  --red:          #A32D2D;
  --red-bg:       #FCEBEB;
  --amber-bg:     #FAEEDA;
  --amber:        #854F0B;
  --border:       #1e2e1e;
  --border-mid:   #253525;
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    14px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10);
  --transition:   all .15s ease;
}

/* ===== PAGE VISIBILITY ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: var(--warm-gold);
  padding: 7px 2rem;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== HEADER ===== */
.site-header {
  background: #0f1a0f;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  font-size: 24px;
  font-weight: 600;
  color: #F0F0F0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.logo:hover { opacity: .85; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 0; flex: 1; justify-content: center; }
.main-nav button {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #AAA;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav button:hover,
.main-nav button.active { color: var(--accent); background: #FFF3ED; }
.promo-nav-btn { color: var(--accent) !important; }
.header-icons { display: flex; gap: 5px; align-items: center; }
.icon-btn {
  background: none;
  border: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #555;
  transition: background .15s;
}
.icon-btn:hover { background: var(--sand); }
.user-chip {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.user-chip:hover { border-color: var(--accent); color: var(--accent); }
.user-chip.admin-chip { background: #FFF3ED; border-color: var(--accent); color: var(--accent); }
.cart-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.cart-btn:hover { background: var(--accent-dark); }
.cart-count {
  background: var(--white);
  color: var(--accent);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: stretch;
  overflow: hidden;
  background: var(--dark);
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,15,5,.97) 0%,
    rgba(5,15,5,.95) 20%,
    rgba(5,15,5,.88) 38%,
    rgba(5,15,5,.45) 55%,
    rgba(5,15,5,.10) 75%,
    rgba(5,15,5,.0)  100%
  );
}
.hero-bg-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(10,1fr);
  grid-template-rows: repeat(5,1fr);
  gap: 2px;
  opacity: .10;
}
.hero-tile { background: var(--warm-gold); }
.hero-content {
  position: relative; z-index: 2;
  text-align: left;
  padding: 4.5rem 2rem 4.5rem 5%;
  max-width: 560px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 11px; font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: .5px;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero h1 {
  font-size: 48px; font-weight: 600;
  color: #FFFFFF;
  line-height: 1.12;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.9), 0 0 30px rgba(0,0,0,.8), 2px 2px 0px rgba(0,0,0,.6);
}
.hero h1 em { color: #FFD060; font-style: normal; text-shadow: 0 2px 8px rgba(0,0,0,.9), 0 0 20px rgba(0,0,0,.8); }
.hero p { color: #FFFFFF; font-size: 17px; margin-bottom: 2rem; text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 0 20px rgba(0,0,0,.8); font-weight: 500; }
.hero-btns { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent); color: var(--white);
  border: none; padding: 13px 30px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline-w {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 13px 30px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
}
.btn-outline-w:hover { border-color: var(--warm-gold); color: var(--warm-gold); }
.back-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: #555;
  padding: 8px 17px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 1.3rem;
  display: inline-block;
  transition: var(--transition);
}
.back-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: #0d180d;
  border-bottom: 1px solid #1e2e1e;
  border-top: 1px solid #1e2e1e;
  padding: 11px 2rem;
  display: flex; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #90A890; }

/* ===== SECTIONS ===== */
.section { padding: 2.5rem 2rem; max-width: 1280px; margin: 0 auto; }
.sec-hdr { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.4rem; flex-wrap: wrap; gap: .5rem; }
.sec-title { font-size: 21px; font-weight: 600; color: #D8F0D8; }
.sec-sub { font-size: 13px; color: #6A8A6A; margin-top: 3px; }
.page-wrap { max-width: 1000px; margin: 0 auto; padding: 1.5rem 2rem 0; }
.page-title { font-size: 21px; font-weight: 600; margin-bottom: 1.4rem; }
.sort-sel {
  padding: 7px 11px;
  border: 1px solid #1e3020;
  border-radius: var(--radius-md);
  font-size: 13px; background: #142014; color: #C0E0C0;
  outline: none; cursor: pointer;
}

/* ===== CATEGORIES ===== */
.cats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.cat-card {
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer;
  background: #142014;
  border: 1px solid #1e3020;
  transition: var(--transition);
}
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.cat-img-wrap { height: 180px; overflow: hidden; position: relative; }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card:hover .cat-img-wrap img { transform: scale(1.04); }
.cat-img-emoji { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 54px; }
.cg { background: #162e16; } .cb { background: #1a2a16; }
.cr { background: #2a1a0e; } .cbl { background: #141e2a; }
.cat-body { padding: .9rem 1rem; }
.cat-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: #E8E8E8; }
.cat-cnt { font-size: 12px; color: #7A9A7A; }

/* ===== PRODUCTS ===== */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.prod-card {
  background: #142014;
  border-radius: var(--radius-lg);
  border: 1px solid #1e3020;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.prod-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.prod-img-wrap { height: 180px; position: relative; background: #0e180e; overflow: hidden; }
.prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prod-card:hover .prod-img-wrap img { transform: scale(1.05); }
.prod-img-wrap .prod-emoji-big { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 54px; }
.prod-body { padding: .9rem; }
.prod-cat-lbl { font-size: 10px; color: #5A8A5A; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; }
.prod-name { font-size: 14px; font-weight: 500; margin-bottom: 7px; line-height: 1.35; color: #E0E0E0; }
.prod-prices { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.prod-price { font-size: 17px; font-weight: 600; color: var(--accent); }
.prod-old { font-size: 12px; color: var(--text-hint); text-decoration: line-through; }
.prod-pct { font-size: 10px; background: #FFF3ED; color: var(--accent); padding: 2px 6px; border-radius: 4px; font-weight: 500; }
.add-btn {
  width: 100%; padding: 9px;
  background: #1e3820; color: #C8E8C8;
  border: none; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  transition: background .15s;
}
.add-btn:hover { background: var(--accent); }

/* ===== PRODUCT DETAIL ===== */
.product-detail { max-width: 1000px; margin: 0 auto; padding: 1.5rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.prod-img-big {
  background: #0e180e; border-radius: var(--radius-xl);
  height: 380px; display: flex; align-items: center; justify-content: center;
  font-size: 90px; border: 1px solid var(--border); overflow: hidden; position: relative;
}
.prod-img-big img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.prod-img-big .pe { font-size: 90px; z-index: 1; }
.prod-cat-tag { font-size: 11px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }
.big-price { font-size: 32px; font-weight: 600; color: var(--accent); margin-bottom: 5px; }
.old-price-lg { font-size: 14px; color: var(--text-hint); text-decoration: line-through; margin-bottom: 14px; }
.prod-desc-txt { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.4rem; }
.attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 1.4rem; }
.attr { background: #0e180e; border-radius: var(--radius-md); padding: 9px 11px; }
.attr-l { font-size: 11px; color: var(--text-light); margin-bottom: 1px; }
.attr-v { font-size: 13px; font-weight: 500; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid #2a3e2a; border-radius: var(--radius-md); overflow: hidden; }
.qty-btn { background: #0e180e; border: none; width: 34px; height: 34px; font-size: 17px; color: #555; transition: background .15s; }
.qty-btn:hover { background: var(--sand); }
.qty-num { width: 40px; text-align: center; font-size: 14px; font-weight: 500; border: none; border-left: 1px solid #2a3e2a; border-right: 1px solid #2a3e2a; height: 34px; outline: none; background: #0e180e; color: #E0E0E0; }
.buy-btn { width: 100%; padding: 13px; background: var(--accent); color: var(--white); border: none; border-radius: 9px; font-size: 15px; font-weight: 600; margin-bottom: 9px; transition: background .15s; }
.buy-btn:hover { background: var(--accent-dark); }

/* ===== CART ===== */
.cart-page { max-width: 840px; margin: 0 auto; padding: 2rem; }
.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.cart-item {
  background: #142014; border: 1px solid #1e3020;
  border-radius: 11px; padding: .9rem 1.1rem;
  display: grid; grid-template-columns: 54px 1fr auto auto auto;
  align-items: center; gap: 1rem; margin-bottom: 9px;
}
.cart-item-img { font-size: 30px; background: #0e180e; border-radius: 7px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.cart-item-name { font-size: 14px; font-weight: 500; }
.cart-item-sub { font-size: 12px; color: var(--text-light); margin-top: 1px; }
.cart-item-price { font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.remove-btn { background: none; border: none; color: var(--text-hint); font-size: 17px; transition: color .15s; }
.remove-btn:hover { color: #E24B4A; }
.cart-summary-box { background: #142014; border: 1px solid #1e3020; border-radius: 11px; padding: 1.4rem; margin-top: .8rem; }
.summary-title { font-size: 15px; font-weight: 600; margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: #8AAA8A; }
.sum-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 7px; }
.checkout-btn { width: 100%; padding: 13px; background: var(--accent); color: var(--white); border: none; border-radius: 9px; font-size: 15px; font-weight: 600; margin-top: .9rem; transition: background .15s; }
.checkout-btn:hover { background: var(--accent-dark); }

/* ===== CHECKOUT ===== */
.checkout-page { max-width: 1060px; margin: 0 auto; padding: 0 2rem 2rem; display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }
.form-sec { background: #142014; border: 1px solid #1e3020; border-radius: 11px; padding: 1.4rem; margin-bottom: .9rem; }
.form-sec h3 { font-size: 14px; font-weight: 600; margin-bottom: .9rem; padding-bottom: 8px; border-bottom: 1px solid var(--sand-mid); }
.pay-opt { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1.5px solid #2a3e2a; border-radius: var(--radius-md); margin-bottom: 7px; font-size: 14px; transition: var(--transition); background: #0e180e; color: #E0E0E0; }
.pay-opt:hover { border-color: var(--accent); cursor: pointer; }
.pay-opt.sel { border-color: var(--accent); background: #FFF3ED; }
.pay-opt input { accent-color: var(--accent); }
.pay-logo { font-size: 20px; margin-right: 3px; }
.pay-info { font-size: 11px; color: var(--text-light); display: block; margin-top: 1px; }
.blik-input { display: none; margin-top: 8px; }
.blik-code-input { padding: 10px !important; font-size: 18px !important; letter-spacing: 4px; text-align: center; }

/* ===== FORMS ===== */
.fg { margin-bottom: 12px; }
.fg label, .fg-label { display: block; font-size: 11px; color: var(--text-light); margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
.fg-input {
  width: 100%; padding: 9px 11px;
  border: 1px solid #2a3e2a;
  border-radius: var(--radius-md);
  font-size: 14px; background: #0e180e; color: #E0E0E0;
  outline: none; transition: border-color .15s;
}
.fg-input:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.rich-editor { min-height: 100px; resize: vertical; line-height: 1.7; }
.form-box { background: #142014; border: 1px solid #1e3020; border-radius: 11px; padding: 1.5rem; }
.form-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 1rem; padding-bottom: 9px; border-bottom: 1px solid var(--sand-mid); }
.checkbox-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; cursor: pointer; }
.checkbox-group input { accent-color: var(--accent); }

/* ===== AUTH ===== */
.auth-wrap { max-width: 430px; margin: 2.5rem auto; padding: 0 1rem; }
.auth-box { background: #142014; border: 1px solid #1e3020; border-radius: var(--radius-xl); padding: 2rem; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.auth-tab { flex: 1; background: none; border: none; padding: 10px; font-size: 14px; font-weight: 500; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-title { font-size: 19px; font-weight: 600; margin-bottom: 3px; }
.auth-sub { font-size: 13px; color: var(--text-light); margin-bottom: 1.2rem; }
.auth-err { background: var(--red-bg); color: var(--red); border-radius: var(--radius-md); padding: 9px 13px; font-size: 13px; margin-bottom: 12px; display: none; }
.auth-btn { width: 100%; padding: 12px; background: var(--accent); color: var(--white); border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; margin-top: .4rem; transition: background .15s; }
.auth-btn:hover { background: var(--accent-dark); }
.auth-hint { text-align: center; font-size: 12px; color: var(--text-hint); margin-top: 10px; }

/* ===== ACCOUNT ===== */
.account-page { max-width: 860px; margin: 0 auto; padding: 2rem; }
.acc-hdr { background: #142014; border: 1px solid #1e3020; border-radius: var(--radius-lg); padding: 1.4rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.acc-av { width: 52px; height: 52px; border-radius: 50%; background: #FFF3ED; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; color: var(--accent); }
.acc-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.acc-tab { background: none; border: none; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.acc-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.order-card { background: #142014; border: 1px solid #1e3020; border-radius: 11px; padding: 1.1rem 1.3rem; margin-bottom: 10px; }
.order-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-footer { display: flex; justify-content: space-between; align-items: center; }

/* ===== BADGES ===== */
.badge { padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.b-new  { background: var(--blue-bg);  color: var(--blue);  }
.b-sent { background: var(--green-bg); color: var(--green); }
.b-proc { background: var(--amber-bg); color: var(--amber); }
.b-paid   { background: var(--green-bg); color: var(--green); }
.b-unpaid { background: var(--red-bg);   color: var(--red);   }
.tag { display: inline-block; background: var(--sand); color: var(--text-light); font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-left: 5px; }
.admin-tag { background: #FFF3ED; color: var(--accent); }

/* ===== STATIC PAGES ===== */
.static-page { max-width: 800px; margin: 0 auto; padding: 2rem; }
.static-content { background: #142014; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid #1e3020; line-height: 1.8; font-size: 15px; color: #C0D8C0; }
.static-content h2 { font-size: 20px; font-weight: 600; margin-bottom: 1rem; margin-top: 1.5rem; color: var(--text); }
.static-content h2:first-child { margin-top: 0; }
.static-content p { margin-bottom: .8rem; }

/* ===== SUCCESS ===== */
.success-page { max-width: 500px; margin: 4rem auto; text-align: center; padding: 2rem; }
.success-icon { font-size: 64px; margin-bottom: 1rem; }
.success-page h1 { font-size: 24px; font-weight: 600; margin-bottom: .8rem; }
.success-page p { font-size: 15px; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }

/* ===== ADMIN ===== */
.admin-page { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.admin-page-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-title { font-size: 21px; font-weight: 600; }
.admin-sub { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.admin-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 13px; margin-bottom: 1.8rem; }
.stat-card { background: #142014; border: 1px solid #1e3020; border-radius: 11px; padding: 1.1rem; }
.stat-lbl { font-size: 11px; color: var(--text-light); margin-bottom: 5px; }
.stat-val { font-size: 26px; font-weight: 600; }
.sv-orange { color: var(--accent); } .sv-green { color: var(--green); }
.sv-blue { color: var(--blue); } .sv-red { color: var(--red); }
.a-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; flex-wrap: wrap; }
.a-tab { background: none; border: none; padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: var(--transition); }
.a-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-table { width: 100%; border-collapse: collapse; background: #142014; border-radius: 11px; overflow: hidden; border: 1px solid #1e3020; }
.admin-table th { background: #0e180e; padding: 11px 14px; text-align: left; font-size: 11px; color: var(--text-light); font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }
.admin-table td { padding: 11px 14px; font-size: 13px; border-top: 1px solid #1e3020; vertical-align: middle; color: #D0E8D0; }
.edit-btn { background: var(--sand); border: 1px solid var(--border); color: #555; padding: 5px 11px; border-radius: var(--radius-sm); font-size: 12px; transition: var(--transition); }
.edit-btn:hover { background: #FFF3ED; border-color: var(--accent); color: var(--accent); }
.del-btn { background: none; border: none; color: var(--text-hint); font-size: 16px; padding: 4px; transition: color .15s; }
.del-btn:hover { color: #E24B4A; }
.cli-av { width: 30px; height: 30px; border-radius: 50%; background: #1a3820; border: 1px solid #4CAF50; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #7FD87F; vertical-align: middle; margin-right: 7px; }
.editor-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.editor-tab { background: var(--sand); border: 1px solid var(--border); padding: 7px 14px; border-radius: var(--radius-md); font-size: 13px; color: #555; transition: var(--transition); }
.editor-tab.active { background: #FFF3ED; border-color: var(--accent); color: var(--accent); font-weight: 500; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: #142014; border-radius: var(--radius-xl); padding: 1.8rem; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; margin: 1rem; }
.modal-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.3rem; }
.modal-hdr h3 { font-size: 17px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; color: var(--text-light); line-height: 1; transition: color .15s; }
.modal-close:hover { color: var(--text); }
.img-upload-area { border: 2px dashed var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; cursor: pointer; margin-bottom: 8px; transition: border-color .15s; }
.img-upload-area:hover { border-color: var(--accent); }
.img-preview { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display: none; margin-bottom: 8px; }
.emoji-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ep-item { font-size: 22px; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); }
.ep-item:hover, .ep-item.sel { border-color: var(--accent); background: #FFF3ED; }
.save-btn { width: 100%; padding: 12px; background: var(--accent); color: var(--white); border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; margin-top: .8rem; transition: background .15s; }
.save-btn:hover { background: var(--accent-dark); }

/* ===== NOTIFICATION ===== */
.notif { position: fixed; top: 20px; right: 20px; background: var(--text); color: var(--white); padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 9999; opacity: 0; transition: opacity .3s; pointer-events: none; max-width: 300px; box-shadow: var(--shadow-md); }
.notif.show { opacity: 1; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: #A89880; padding: 2.8rem 2rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 21px; font-weight: 600; color: #F5F0EB; margin-bottom: 8px; }
.footer-logo span { color: var(--warm-gold); }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: #F5F0EB; margin-bottom: 10px; letter-spacing: .5px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 13px; color: #A89880; margin-bottom: 6px; cursor: pointer; transition: color .15s; }
.footer-col a:hover { color: var(--warm-gold); }
.footer-bottom { border-top: 1px solid #3D3028; padding-top: .9rem; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: #A89880; cursor: pointer; transition: color .15s; }
.footer-bottom a:hover { color: var(--warm-gold); }

/* ===== DARK GREEN BACKGROUND EFFECT ===== */
body {
  background-color: #0a140a;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(20,60,20,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(10,40,10,.30) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(15,50,15,.25) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Animowane drobinki trawy/zieleni */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg opacity='0.07'%3E%3Cellipse cx='40' cy='80' rx='2' ry='12' fill='%2344AA44' transform='rotate(-15,40,80)'/%3E%3Cellipse cx='120' cy='200' rx='1.5' ry='10' fill='%2333AA33' transform='rotate(10,120,200)'/%3E%3Cellipse cx='200' cy='50' rx='2' ry='14' fill='%2355BB44' transform='rotate(-8,200,50)'/%3E%3Cellipse cx='280' cy='160' rx='1.5' ry='9' fill='%2344AA44' transform='rotate(20,280,160)'/%3E%3Cellipse cx='350' cy='300' rx='2' ry='12' fill='%2333BB33' transform='rotate(-12,350,300)'/%3E%3Cellipse cx='80' cy='340' rx='1.5' ry='11' fill='%2344AA55' transform='rotate(8,80,340)'/%3E%3Cellipse cx='160' cy='280' rx='2' ry='10' fill='%2355AA44' transform='rotate(-18,160,280)'/%3E%3Cellipse cx='320' cy='380' rx='1.5' ry='13' fill='%2344BB44' transform='rotate(15,320,380)'/%3E%3Cellipse cx='60' cy='160' rx='2' ry='8' fill='%2333AA44' transform='rotate(-5,60,160)'/%3E%3Cellipse cx='240' cy='320' rx='1.5' ry='11' fill='%2355AA55' transform='rotate(25,240,320)'/%3E%3Ccircle cx='100' cy='120' r='1.5' fill='%2344AA44' opacity='0.5'/%3E%3Ccircle cx='220' cy='240' r='1' fill='%2355BB44' opacity='0.4'/%3E%3Ccircle cx='300' cy='100' r='1.5' fill='%2333AA33' opacity='0.5'/%3E%3Ccircle cx='180' cy='360' r='1' fill='%2344BB55' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  animation: grassDrift 25s linear infinite;
}

@keyframes grassDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 400px 400px; }
}

/* Wszystkie sekcje strony z lekką przezroczystością */
.section, .cart-page, .account-page, .admin-page,
.auth-wrap, .static-page, .checkout-page,
.product-detail, .page-wrap {
  position: relative;
  z-index: 1;
}

/* Naprawa nawigacji header */
.main-nav button:hover,
.main-nav button.active {
  color: #7FBF7F !important;
  background: rgba(40,80,40,.4) !important;
}

/* Trust bar tekst */
.trust-bar { background: #0d180d !important; }

/* Sekcje tytułów */
.sec-title { color: #C8E8C8 !important; }
.sec-sub   { color: #6A9A6A !important; }

/* Karty produktów — hover */
.prod-card:hover { border-color: #4CAF50 !important; box-shadow: 0 4px 20px rgba(40,120,40,.25) !important; }
.cat-card:hover  { border-color: #4CAF50 !important; }

/* Przycisk dodaj — ciemniejszy zielony */
.add-btn { background: #1a3820 !important; color: #90D090 !important; border: 1px solid #2a5030 !important; }
.add-btn:hover { background: #4CAF50 !important; color: #fff !important; }

/* Ceny */
.prod-price, .big-price, .cart-item-price, .order-total { color: #7FD87F !important; }
.prod-old { color: #4A6A4A !important; }

/* Wyprzedaż badge */
.prod-pct { background: rgba(40,100,40,.5) !important; color: #90E090 !important; }

/* Page title */
.page-title { color: #C8E8C8 !important; }

/* Admin stats */
.stat-lbl { color: #6A9A6A !important; }

/* Acc tabs / admin tabs */
.acc-tabs, .a-tabs, .auth-tabs { border-bottom-color: #1e3020 !important; }
.acc-tab, .a-tab, .auth-tab { color: #5A8A5A !important; }
.acc-tab.active, .a-tab.active, .auth-tab.active { color: #7FD87F !important; border-bottom-color: #4CAF50 !important; }

/* Footer */
.site-footer { background: #060e06 !important; }
.footer-bottom { border-top-color: #1a2a1a !important; }

/* Notif */
.notif { background: #1a3820 !important; border: 1px solid #2a5030 !important; color: #C0E8C0 !important; }

/* Back button */
.back-btn { border-color: #2a3e2a !important; color: #7A9A7A !important; }
.back-btn:hover { border-color: #4CAF50 !important; color: #7FD87F !important; }

/* Form labels */
.fg label, .fg-label { color: #6A8A6A !important; }

/* Checkout summary */
.summary-title { color: #C0E0C0 !important; }
.sum-total span { color: #C0E0C0 !important; }

/* Attr labels */
.attr-l { color: #5A8A5A !important; }
.attr-v { color: #D0E8D0 !important; }

/* Cart item name/sub */
.cart-item-name { color: #D0E8D0 !important; }
.cart-item-sub  { color: #5A8A5A !important; }

/* Modal */
.modal-hdr h3 { color: #C8E8C8 !important; }
.modal-close { color: #5A8A5A !important; }
.img-upload-area { border-color: #2a3e2a !important; background: #0e180e !important; }
.img-upload-area p { color: #5A8A5A !important; }

/* User chip */
.user-chip { background: #142014 !important; border-color: #1e3020 !important; color: #90C090 !important; }

/* Logo main color fix */
.logo { color: #E0E0E0 !important; }

/* ===== HERO TEXT FIX — wyraźny tekst na zdjęciu ===== */
.hero-content {
  background: linear-gradient(to right, rgba(3,10,3,.75) 0%, rgba(3,10,3,.60) 60%, transparent 100%);
  border-radius: 0 20px 20px 0;
  padding-left: 5% !important;
  padding-right: 4rem !important;
}
.hero h1 {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 0 rgba(0,0,0,.8), 0 0 20px rgba(0,0,0,.9), 0 4px 12px rgba(0,0,0,.7) !important;
}
.hero h1 em {
  color: #FFD060 !important;
  text-shadow: 2px 2px 0 rgba(0,0,0,.8), 0 0 20px rgba(0,0,0,.9) !important;
}
.hero p {
  color: #F0F0F0 !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,.8), 0 0 15px rgba(0,0,0,.8) !important;
}
.hero-badge {
  background: #E8650F !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.6) !important;
}
.btn-outline-w {
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,.7) !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,.6) !important;
  background: rgba(0,0,0,.3) !important;
}

/* ===== ADMIN TABLE DARK FIX ===== */
.admin-table td { color: #D0E8D0 !important; }
.admin-table th { color: #7FBF7F !important; background: #0a140a !important; }
.admin-table tr:hover td { background: #1a2e1a !important; }
.cli-av { background: #1a3820 !important; border: 1px solid #4CAF50 !important; color: #7FD87F !important; }
.stat-val { color: #D0E8D0 !important; }
.stat-lbl { color: #6A9A6A !important; }
.admin-title { color: #C8E8C8 !important; }
.admin-sub   { color: #6A9A6A !important; }
.a-tab { color: #6A9A6A !important; }
.a-tab.active { color: #7FD87F !important; border-bottom-color: #4CAF50 !important; }
.edit-btn { background: #1a3820 !important; border-color: #2a5030 !important; color: #90D090 !important; }
.edit-btn:hover { background: #2a5030 !important; border-color: #4CAF50 !important; color: #7FD87F !important; }
.form-box h3 { color: #C8E8C8 !important; }
.form-sec h3 { color: #C8E8C8 !important; }
.fg label    { color: #6A9A6A !important; }
.badge.b-new    { background: #162030 !important; color: #4A9FE0 !important; }
.badge.b-sent   { background: #1A2E22 !important; color: #4CAF6F !important; }
.badge.b-proc   { background: #2A2010 !important; color: #E0A030 !important; }
.badge.b-paid   { background: #1A2E22 !important; color: #4CAF6F !important; }
.badge.b-unpaid { background: #2E1616 !important; color: #E05454 !important; }
select option { background: #1a2e1a; color: #D0E8D0; }

/* ===== AUTH DARK FIX ===== */
.auth-title { color: #C8E8C8 !important; }
.auth-sub   { color: #6A9A6A !important; }
.auth-box h2, .auth-box p, .auth-box label { color: #C8E8C8 !important; }
.auth-sub, .auth-box .auth-sub { color: #6A9A6A !important; }
#auth-login-form p, #auth-reg-form p { color: #6A9A6A !important; }
#auth-login-form h2, #auth-reg-form h2 { color: #C8E8C8 !important; }

/* ===== ACCOUNT PAGE FIX ===== */
.acc-av {
  background: #1a3820 !important;
  border: 2px solid #4CAF50 !important;
  color: #7FD87F !important;
  width: 54px !important; height: 54px !important;
  border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 20px !important; font-weight: 600 !important;
  flex-shrink: 0 !important;
}
.acc-hdr {
  background: #142014 !important;
  border: 1px solid #1e3020 !important;
  color: #C8E8C8 !important;
}
.acc-hdr div { color: #C8E8C8 !important; }

/* ===== STRONA PRODUKTU — NAPRAWA KOLORÓW ===== */
.product-detail h2 { color: #FFFFFF !important; }
.prod-cat-tag      { color: var(--accent) !important; }
.big-price         { color: #7FD87F !important; }
.old-price-lg      { color: #5A7A5A !important; }
.prod-desc-txt     { color: #B0C8B0 !important; }
.attr-l            { color: #6A9A6A !important; }
.attr-v            { color: #D0E8D0 !important; }
.attr              { background: #0e180e !important; }
.qty-row span      { color: #B0C8B0 !important; }
.qty-num           { color: #FFFFFF !important; background: #0e180e !important; }
.qty-btn           { color: #7FD87F !important; background: #0e180e !important; }
.prod-img-big      { background: #0e180e !important; }

/* Puste zdjęcie produktu/kategorii — bez emoji */
.prod-no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0e1a0e 0%, #142014 50%, #0e1a0e 100%);
}
.prod-img-wrap:has(.prod-no-img)  { background: #0e1a0e; }
.cat-img-emoji:empty              { background: #0e180e !important; }
