/*
Theme Name: Brza Prodavnica Clone
Theme URI: https://floralwhite-elephant-574704.hostingersite.com/
Author: Codex
Description: Static ecommerce-style homepage inspired by Brza Prodavnica.
Version: 1.0
*/

:root {
  --header: #343b4d;
  --header-dark: #303648;
  --accent: #c8463f;
  --accent-dark: #b73831;
  --text: #202020;
  --muted: #6f7480;
  --line: #eeeeee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header { background: var(--header); color: #fff; min-height: 134px; }
.header-inner { width: min(1110px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 36px; min-height: 134px; }
.logo img { width: 122px; height: 122px; object-fit: contain; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px 40px; font-size: 13px; font-weight: 700; }
.main-nav a { padding: 8px 0; }
.main-nav a:hover { color: #f06f65; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 2px; color: #e3524a; font-weight: 900; }
.cart-icon { font-size: 26px; }
#cartCount { transform: translate(-8px, -10px); font-size: 12px; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 28px; }

.hero { padding: 36px 0 18px; }
.hero-media { position: relative; width: min(1072px, calc(100% - 40px)); min-height: 538px; margin: 0 auto; overflow: hidden; background: #111827; }
.hero-media img { width: 100%; height: 538px; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; color: #fff; text-align: center; }
.hero-copy p { margin: 0 0 10px; font-size: 17px; font-weight: 900; }
.hero-copy h1 { margin: 0 0 12px; font-family: "Roboto Slab", Georgia, serif; font-size: clamp(34px, 5vw, 46px); line-height: 1.08; }
.hero-copy span { display: block; max-width: 720px; font-size: clamp(20px, 2.5vw, 25px); line-height: 1.55; }
.primary-btn, .checkout-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 20px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 900; letter-spacing: 0; cursor: pointer; }
.primary-btn:hover, .checkout-btn:hover { background: var(--accent-dark); }

.promise-row { width: min(1072px, calc(100% - 40px)); margin: 26px auto 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.promise-row article { display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; align-items: center; }
.promise-row span { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); font-weight: 900; }
.promise-row h2 { margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.promise-row p { margin: 0; color: var(--muted); line-height: 1.45; }

.categories, .shop, .order-band { width: min(1110px, calc(100% - 40px)); margin: 0 auto; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; padding-bottom: 54px; }
.category-grid a { text-align: center; color: #595f69; font-weight: 700; }
.category-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 12px; }
.shop h2, .order-band h2 { margin: 0 0 38px; color: #2a2f3d; text-align: center; font-family: "Roboto Slab", Georgia, serif; font-size: clamp(26px, 3.4vw, 38px); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px 30px; }
.product-card { position: relative; min-width: 0; text-align: center; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.sale-badge { position: absolute; top: 12px; left: 12px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; }
.product-card h3 { min-height: 44px; margin: 0 0 8px; font-size: 16px; line-height: 1.35; font-weight: 700; }
.price { min-height: 22px; margin: 0 0 14px; color: #333; font-weight: 700; }
.old-price { color: #9aa0a8; text-decoration: line-through; margin-right: 8px; font-weight: 400; }
.add-btn { min-height: 41px; padding: 0 22px; border: 0; border-radius: 999px; background: #3d4455; color: #fff; font-weight: 900; cursor: pointer; }
.add-btn:hover { background: var(--accent); }

.order-band { margin-top: 64px; padding: 52px 24px; text-align: center; border-top: 1px solid var(--line); }
.order-band p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
.float-contact { position: fixed; left: 28px; top: 68%; z-index: 20; display: grid; gap: 8px; transform: translateY(-50%); }
.float-contact a, .float-contact button, .to-top { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 25px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,.14); cursor: pointer; }
.phone { background: #4d91dc; }
.whatsapp { background: #50da60; }
.viber { background: #3c2eab; }
.float-contact button { background: #8266c5; }
.to-top { position: fixed; right: 22px; bottom: 20px; z-index: 20; border-radius: 4px; background: #f3b5a9; }

.cart-panel { position: fixed; top: 0; right: 0; z-index: 50; width: min(390px, 100%); height: 100vh; padding: 28px; background: #fff; box-shadow: -12px 0 32px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .25s ease; overflow: auto; }
.cart-panel.open { transform: translateX(0); }
.cart-close { float: right; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.cart-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 58px; height: 58px; object-fit: cover; }
.cart-row p { margin: 0; font-size: 14px; font-weight: 700; }
.cart-row span { color: var(--accent); font-weight: 900; }

.site-footer { margin-top: 20px; padding: 42px max(20px, calc((100% - 1110px) / 2)) 22px; display: grid; grid-template-columns: 1fr 1fr 140px; gap: 34px; background: var(--header-dark); color: #fff; }
.site-footer h2 { margin: 0 0 18px; font-size: 18px; }
.site-footer a { display: block; margin: 0 0 10px; color: #dce1ea; }
.site-footer img { width: 120px; }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; color: #dce1ea; font-size: 14px; }

@media (max-width: 900px) {
  .header-inner { width: calc(100% - 28px); gap: 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: 134px; left: 0; right: 0; z-index: 30; display: none; padding: 18px 28px; background: var(--header); justify-content: flex-start; }
  .main-nav.open { display: flex; }
  .cart-link { margin-left: 0; }
  .hero-media, .hero-media img { min-height: 430px; height: 430px; }
  .promise-row, .category-grid, .product-grid, .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header, .header-inner { min-height: 104px; }
  .logo img { width: 92px; height: 92px; }
  .main-nav { top: 104px; }
  .hero { padding-top: 24px; }
  .hero-media, .hero-media img { width: calc(100% - 24px); min-height: 390px; height: 390px; }
  .promise-row, .category-grid, .product-grid, .site-footer { grid-template-columns: 1fr; }
  .float-contact { left: 12px; }
  .shop h2 { margin-bottom: 28px; }
}
