/**
 * ZAKUPON Theme v1.1 — matches the provided homepage design
 * Blue + Yellow geometric style
 */

:root {
  --z-blue: #0B3D91;
  --z-blue-dark: #062A6B;
  --z-blue-mid: #1A56B5;
  --z-yellow: #F5A623;
  --z-yellow-hover: #E09400;
  --z-yellow-light: #FFF8E7;
  --z-white: #FFFFFF;
  --z-bg: #F5F7FA;
  --z-text: #1A1A2E;
  --z-muted: #6B7280;
  --z-border: #E5E7EB;
  --z-radius: 12px;
  --z-radius-sm: 8px;
  --z-shadow: 0 4px 20px rgba(11, 61, 145, 0.08);
  --z-shadow-hover: 0 10px 30px rgba(11, 61, 145, 0.14);
}

/* ========== Base ========== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--z-text);
  background: var(--z-bg);
  line-height: 1.5;
}

a { color: var(--z-blue); transition: color .2s; }
a:hover { color: var(--z-yellow); text-decoration: none; }

h1,h2,h3,h4,h5,h6 { color: var(--z-blue-dark); font-weight: 700; }

/* ========== Top bar ========== */
#top, .header-top, .zakupon-topbar {
  background: var(--z-blue-dark) !important;
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
#top a, .zakupon-topbar a {
  color: rgba(255,255,255,.9) !important;
  margin-right: 18px;
}
#top a:hover { color: var(--z-yellow) !important; }

/* ========== Header main ========== */
header, #header {
  background: #fff;
  box-shadow: var(--z-shadow);
  position: relative;
  z-index: 100;
}

.zakupon-header-main {
  padding: 16px 0;
}

#logo img {
  max-height: 52px;
  width: auto;
}

/* Search */
#search .form-control,
.zakupon-search input {
  border: 2px solid var(--z-border);
  border-radius: 50px 0 0 50px;
  padding: 12px 20px;
  height: 48px;
  font-size: 15px;
}
#search .form-control:focus {
  border-color: var(--z-blue);
  box-shadow: 0 0 0 3px rgba(11,61,145,.12);
}
#search .btn,
.zakupon-search button {
  background: var(--z-blue) !important;
  border: none !important;
  border-radius: 0 50px 50px 0 !important;
  height: 48px;
  width: 56px;
  color: #fff !important;
}
#search .btn:hover { background: var(--z-blue-dark) !important; }

/* Wishlist / Cart icons */
.zakupon-header-icons a {
  color: var(--z-blue);
  font-size: 15px;
  font-weight: 500;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.zakupon-header-icons a:hover { color: var(--z-yellow); }
.zakupon-header-icons .badge {
  background: var(--z-yellow);
  color: var(--z-blue-dark);
  font-weight: 700;
}

/* ========== Catalog button + main menu ========== */
.zakupon-nav-wrap {
  background: var(--z-blue);
  position: relative;
}

.zakupon-catalog-btn {
  background: var(--z-yellow) !important;
  color: var(--z-blue-dark) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px !important;
  border: none !important;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.zakupon-catalog-btn:hover {
  background: var(--z-yellow-hover) !important;
  color: var(--z-blue-dark) !important;
}
.zakupon-catalog-btn .fa-bars { font-size: 18px; }

#menu, .zakupon-main-menu {
  background: transparent !important;
  border: none !important;
  margin: 0;
  min-height: auto;
}
#menu .nav > li > a,
.zakupon-main-menu .nav-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 14px;
  padding: 15px 18px !important;
  text-transform: none;
}
#menu .nav > li > a:hover,
.zakupon-main-menu .nav-link:hover {
  background: rgba(0,0,0,.15) !important;
  color: var(--z-yellow) !important;
}

.zakupon-nav-right {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 15px 0;
}

/* ========== Left category sidebar (common look) ========== */
.zakupon-sidebar-cats {
  background: #fff;
  border-radius: var(--z-radius);
  box-shadow: var(--z-shadow);
  overflow: hidden;
}
.zakupon-sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  color: var(--z-text);
  border-bottom: 1px solid var(--z-border);
  font-size: 14px;
  transition: all .15s;
}
.zakupon-sidebar-cats a:hover {
  background: var(--z-yellow-light);
  color: var(--z-blue);
  padding-left: 22px;
}
.zakupon-sidebar-cats a i.fa-angle-right { color: var(--z-muted); font-size: 12px; }

/* ========== Hero / Banner ========== */
.zakupon-hero {
  background: linear-gradient(135deg, #E8F0FE 0%, #fff 50%, #FFF8E7 100%);
  border-radius: var(--z-radius);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  box-shadow: var(--z-shadow);
}
.zakupon-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: var(--z-blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: .9;
}
.zakupon-hero::after {
  content: '';
  position: absolute;
  bottom: -30px; right: 80px;
  width: 140px; height: 140px;
  background: var(--z-yellow);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: .85;
}
.zakupon-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 50px;
  max-width: 480px;
}
.zakupon-hero h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--z-blue-dark);
}
.zakupon-hero p {
  color: var(--z-muted);
  margin-bottom: 22px;
  font-size: 15px;
}
.zakupon-hero .btn {
  background: var(--z-yellow);
  color: var(--z-blue-dark);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 15px;
}
.zakupon-hero .btn:hover {
  background: var(--z-yellow-hover);
  color: var(--z-blue-dark);
}

/* ========== Features row ========== */
.zakupon-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.zakupon-feature {
  background: #fff;
  border-radius: var(--z-radius-sm);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--z-shadow);
  transition: transform .2s;
}
.zakupon-feature:hover { transform: translateY(-3px); }
.zakupon-feature i {
  font-size: 28px;
  color: var(--z-blue);
  margin-bottom: 8px;
  display: block;
}
.zakupon-feature strong {
  display: block;
  font-size: 14px;
  color: var(--z-blue-dark);
  margin-bottom: 2px;
}
.zakupon-feature span {
  font-size: 12px;
  color: var(--z-muted);
}

/* ========== Section titles ========== */
.zakupon-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--z-blue-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.zakupon-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--z-yellow), transparent);
  max-width: 80px;
}

/* ========== Product cards ========== */
.product-thumb,
.product-layout .product-thumb {
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius);
  box-shadow: var(--z-shadow);
  transition: all .25s ease;
  overflow: hidden;
  height: 100%;
  position: relative;
}
.product-thumb:hover {
  transform: translateY(-5px);
  box-shadow: var(--z-shadow-hover);
  border-color: #c5d4f0;
}
.product-thumb .image {
  position: relative;
  background: #fafafa;
  padding: 12px;
}
.product-thumb .image img {
  border-radius: 8px;
}

/* Badges */
.zakupon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.zakupon-badge-hit { background: var(--z-blue); color: #fff; }
.zakupon-badge-new { background: #10B981; color: #fff; }
.zakupon-badge-sale { background: var(--z-yellow); color: var(--z-blue-dark); }

.product-thumb .caption {
  padding: 14px 16px 18px;
}
.product-thumb h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
  min-height: 38px;
}
.product-thumb h4 a { color: var(--z-text); }
.product-thumb h4 a:hover { color: var(--z-blue); }

.product-thumb .price {
  color: var(--z-blue);
  font-weight: 700;
  font-size: 18px;
  margin: 8px 0 12px;
}
.product-thumb .price-old {
  color: var(--z-muted);
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 400;
  margin-right: 6px;
}
.product-thumb .price-new {
  color: #E11D48;
  font-weight: 700;
}

.product-thumb .btn-primary,
.product-thumb .button {
  background: var(--z-blue) !important;
  border: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  width: 100%;
}
.product-thumb .btn-primary:hover {
  background: var(--z-blue-dark) !important;
}

/* ========== Category tiles ========== */
.zakupon-cat-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.zakupon-cat-tile {
  background: #fff;
  border-radius: var(--z-radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--z-shadow);
  transition: all .2s;
  border: 1px solid transparent;
}
.zakupon-cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--z-shadow-hover);
  border-color: #c5d4f0;
}
.zakupon-cat-tile img {
  max-height: 70px;
  margin-bottom: 12px;
}
.zakupon-cat-tile strong {
  display: block;
  font-size: 14px;
  color: var(--z-blue-dark);
  margin-bottom: 4px;
}
.zakupon-cat-tile span {
  font-size: 12px;
  color: var(--z-muted);
}

/* ========== Buttons global ========== */
.btn-primary {
  background: var(--z-blue) !important;
  border-color: var(--z-blue) !important;
  border-radius: var(--z-radius-sm);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--z-blue-dark) !important;
  border-color: var(--z-blue-dark) !important;
}
.btn-warning, #button-cart, .btn-cart {
  background: var(--z-yellow) !important;
  border-color: var(--z-yellow) !important;
  color: var(--z-blue-dark) !important;
  font-weight: 700;
  border-radius: var(--z-radius-sm);
}
.btn-warning:hover, #button-cart:hover {
  background: var(--z-yellow-hover) !important;
  color: var(--z-blue-dark) !important;
}

/* ========== Footer ========== */
footer, #footer, .zakupon-footer {
  background: var(--z-blue-dark) !important;
  color: rgba(255,255,255,.85);
  padding-top: 50px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}
.zakupon-footer::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 280px; height: 180px;
  background: var(--z-blue);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .4;
}
.zakupon-footer::after {
  content: '';
  position: absolute;
  bottom: 20px; right: 40px;
  width: 120px; height: 120px;
  background: var(--z-yellow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: .7;
}
footer a, #footer a { color: rgba(255,255,255,.8); }
footer a:hover, #footer a:hover { color: var(--z-yellow); }
footer h5, #footer h5 {
  color: var(--z-yellow);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.zakupon-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  margin-top: 40px;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

/* Newsletter */
.zakupon-newsletter input {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 12px 18px;
  height: 46px;
}
.zakupon-newsletter button {
  background: var(--z-yellow) !important;
  color: var(--z-blue-dark) !important;
  border: none !important;
  border-radius: 0 50px 50px 0 !important;
  height: 46px;
  padding: 0 20px;
  font-weight: 700;
}

/* Social */
.zakupon-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  margin-right: 8px;
  color: #fff !important;
  transition: all .2s;
}
.zakupon-social a:hover {
  background: var(--z-yellow);
  color: var(--z-blue-dark) !important;
}

/* ========== Forms / misc ========== */
.form-control {
  border: 1.5px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  padding: 10px 14px;
}
.form-control:focus {
  border-color: var(--z-blue);
  box-shadow: 0 0 0 3px rgba(11,61,145,.12);
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--z-blue) !important;
  border-color: var(--z-blue) !important;
}

/* Modules headings */
.module h3, .box-heading, .panel-heading {
  background: var(--z-blue) !important;
  color: #fff !important;
  border-radius: var(--z-radius-sm) var(--z-radius-sm) 0 0;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Responsive */
@media (max-width: 991px) {
  .zakupon-features { grid-template-columns: repeat(2, 1fr); }
  .zakupon-cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .zakupon-hero h2 { font-size: 24px; }
}
@media (max-width: 575px) {
  .zakupon-features { grid-template-columns: 1fr; }
  .zakupon-cat-tiles { grid-template-columns: 1fr; }
}
