:root {
  /* Xerografia.pl brand colors */
  --primary: #008DD2;
  --primary-hover: #0077b3;
  --primary-glow: rgba(0, 141, 210, 0.2);
  --accent: #E62E82;
  --accent-hover: #d01a6e;
  --accent-glow: rgba(230, 46, 130, 0.2);
  --secondary: #1a1a2e;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --text-main: #1a1a2e;
  --text-muted: #6c757d;
  --border-color: #e0e4e8;
  --radius: 14px;
  --radius-pill: 50px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 35px rgba(0,141,210,0.12);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--secondary); color: #9ca3af; padding: 6px 0; font-size: 0.8rem; letter-spacing: 0.3px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #d1d5db; margin-left: 15px; transition: color 0.2s; }
.top-bar a:hover { color: var(--accent); }

/* ===== HEADER ===== */
.header { background: #fff; padding: 12px 0; box-shadow: 0 1px 8px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; min-width: 180px; }
.logo img { height: 44px; width: auto; max-width: 100%; display: block; }

/* Nav — pill-shaped style like xerografia.pl */
.nav-links { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 600; font-size: 0.88rem; padding: 8px 18px; border-radius: var(--radius-pill); transition: var(--transition); border: 2px solid transparent; }
.nav-links a:hover { color: var(--primary); border-color: var(--primary); background: rgba(0,141,210,0.04); }
.nav-links .cart-nav-link a { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-links .cart-nav-link a:hover { background: var(--primary-hover); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background: #fff; min-width: 230px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border-radius: 12px; top: calc(100% + 8px); left: 0; padding: 8px 0; list-style: none; z-index: 10; border: 1px solid var(--border-color); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li a { display: block; padding: 10px 22px; font-weight: 500; border-radius: 0; border: none; font-size: 0.88rem; }
.dropdown-content li a:hover { background: var(--bg-color); color: var(--primary); border: none; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%); color: #fff; padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(ellipse at 70% 50%, rgba(0,141,210,0.15) 0%, transparent 70%); }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40%; height: 100%; background: radial-gradient(ellipse at 30% 80%, rgba(230,46,130,0.1) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; margin-bottom: 16px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 35px; opacity: 0.85; line-height: 1.7; }
.hero .btn-primary { display: inline-block; width: auto; padding: 14px 40px; border-radius: var(--radius-pill); }

/* ===== SECTION TITLE ===== */
.section-title { text-align: center; font-size: 1.8rem; font-weight: 800; margin: 60px 0 10px; color: var(--text-main); letter-spacing: -0.5px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1rem; margin-bottom: 40px; }

/* ===== PRODUCT GRID ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); text-decoration: none; color: inherit; display: flex; flex-direction: column; border: 1px solid var(--border-color); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(0,141,210,0.2); }
.card-img { height: 260px; overflow: hidden; background: #f8f9fb; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.card-body h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 700; }
.card-body .price { font-weight: 800; color: var(--accent); font-size: 1.15rem; margin-bottom: 12px; }
.btn-outline { display: inline-block; padding: 8px 22px; border: 2px solid var(--primary); color: var(--primary); border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem; transition: var(--transition); }
.card:hover .btn-outline { background: var(--primary); color: #fff; }

/* ===== PRODUCT DETAIL ===== */
.product-config { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.main-image-container { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--border-color); }
.main-image-container img { width: 100%; display: block; transition: transform 0.4s ease; }
.main-image-container:hover img { transform: scale(1.03); }
.image-gallery { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid var(--border-color); transition: var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.product-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; color: var(--secondary); }
.product-description { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.8px; }
.form-control { width: 100%; padding: 12px 16px; border: 2px solid var(--border-color); border-radius: 10px; font-size: 0.95rem; background: #fff; transition: var(--transition); appearance: none; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

.total-price-box { background: #fff; padding: 22px; border-radius: 12px; margin: 24px 0; display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--border-color); }
.total-price-box span:first-child { font-weight: 700; font-size: 1rem; color: var(--text-muted); }
#live-price { font-size: 1.8rem; font-weight: 800; color: var(--accent); transition: transform 0.2s ease; }
#live-price.pulse { animation: pricePulse 0.3s ease; }
@keyframes pricePulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

.btn-primary { background: var(--accent); color: #fff; border: none; padding: 16px 28px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.05rem; width: 100%; cursor: pointer; transition: var(--transition); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--primary); color: #fff; border: none; padding: 14px 28px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition); display: inline-block; }
.btn-secondary:hover { background: var(--primary-hover); }

/* ===== PROGRESS STEPS ===== */
.progress-steps { display: flex; justify-content: center; gap: 40px; margin-bottom: 50px; }
.step { text-align: center; color: #c4c9d0; font-weight: 700; font-size: 0.85rem; }
.step.active { color: var(--primary); }
.step.completed { color: #10b981; }
.step-num { width: 42px; height: 42px; line-height: 42px; background: #e8ecf0; border-radius: 50%; margin: 0 auto 8px; font-weight: 800; transition: var(--transition); }
.step.active .step-num { background: var(--primary); color: #fff; box-shadow: 0 4px 15px var(--primary-glow); }
.step.completed .step-num { background: #10b981; color: #fff; }

/* ===== TRUST BADGES ===== */
.trust-row { display: flex; gap: 18px; margin: 20px 0 28px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; background: #f0f4f8; padding: 6px 14px; border-radius: var(--radius-pill); }
.trust-badge .icon { font-size: 1rem; }

/* ===== FEATURES ROW ===== */
.features-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 60px 0; }
.feature-card { text-align: center; padding: 30px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border-color); transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-card .feat-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--secondary); }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ===== CART ===== */
.cart-container { max-width: 900px; margin: 0 auto; padding: 40px 20px 80px; }
.cart-header { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; color: var(--secondary); }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--border-color); transition: var(--transition); }
.cart-item:hover { border-color: rgba(0,141,210,0.2); }
.cart-item-img { width: 90px; height: 90px; border-radius: 10px; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cart-item-info .meta { font-size: 0.82rem; color: var(--text-muted); }
.cart-item-qty input { width: 56px; text-align: center; padding: 8px; border: 2px solid var(--border-color); border-radius: 8px; font-weight: 700; }
.cart-item-price { font-size: 1.1rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: #c4c9d0; cursor: pointer; font-size: 1.2rem; transition: color 0.2s; padding: 5px; }
.cart-item-remove:hover { color: var(--accent); }
.cart-summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-top: 24px; border: 1px solid var(--border-color); }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.cart-summary-row:last-child { border-bottom: none; }
.cart-summary-row.total { font-size: 1.2rem; font-weight: 800; border-top: 2px solid var(--secondary); padding-top: 18px; margin-top: 8px; }
.cart-summary-row.total .cart-sum-val { color: var(--accent); font-size: 1.4rem; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-muted); }
.cart-empty a { color: var(--primary); font-weight: 700; }
.cart-flash { color: #10b981; font-weight: 700; animation: flashIn 0.3s ease; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FOOTER ===== */
footer { background: var(--secondary); color: #9ca3af; padding: 50px 0 24px; margin-top: 80px; text-align: center; font-size: 0.85rem; }
footer a { color: var(--primary); }
footer p { opacity: 0.7; }

/* ===== PLACEHOLDER ===== */
.img-placeholder { width: 100%; height: 300px; background: #e8ecf0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); color: #c4c9d0; font-size: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .product-config { grid-template-columns: 1fr; gap: 30px; }
  .cart-item { grid-template-columns: 70px 1fr; gap: 12px; }
  .cart-item-price { grid-column: 2; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 6px 12px; font-size: 0.82rem; }
  .progress-steps { gap: 20px; }
  .features-row { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
}
