/* ===== Mia Studio — glavni stil ===== */

:root {
  --wood-dark: #2e211a;
  --wood: #5b3a29;
  --wood-mid: #8a5a3c;
  --wood-light: #c9a17a;
  --cream: #faf5ee;
  --cream-2: #f1e6d8;
  --ink: #2b2118;
  --accent: #a8672f;
  --accent-2: #7a8c6f;
  --white: #fffdfb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(46, 33, 26, 0.12);
  --shadow-sm: 0 4px 14px rgba(46, 33, 26, 0.1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0 0 .5em;
  color: var(--wood-dark);
  letter-spacing: .3px;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.center { text-align: center; }
.muted { color: #6b5c4e; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #8f551f; }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--wood);
  color: var(--wood);
}
.btn-outline-dark:hover { background: var(--wood); color: var(--white); }

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, .93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(90, 60, 40, .1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--wood-dark);
  font-weight: 700;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--wood-mid), var(--wood-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--wood);
  position: relative;
  padding: 4px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--wood-dark);
  border: 2px solid var(--wood-dark);
  padding: 8px 16px;
  border-radius: 999px;
}
.cart-link:hover { background: var(--wood-dark); color: var(--cream); }
.cart-badge {
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--wood-dark); display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(30,20,14,.78) 0%, rgba(30,20,14,.55) 45%, rgba(30,20,14,.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: var(--wood-light); }
.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #f1e9df;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.page-hero {
  padding: 70px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid rgba(90,60,40,.08);
}
.page-hero p { max-width: 640px; margin: 0 auto; }

/* ===== Feature strip ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
}

/* ===== Category cards ===== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
}
.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,0) 40%, rgba(20,14,10,.85) 100%);
}
.cat-card .cat-label {
  position: relative;
  z-index: 2;
  padding: 22px;
  color: var(--white);
}
.cat-card .cat-label h3 { color: var(--white); margin-bottom: 4px; }
.cat-card .cat-label span { font-size: .85rem; color: var(--wood-light); font-weight: 600; }

/* ===== Products grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.product-img {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-img:hover img { transform: scale(1.05); }
.product-body h3 a:hover { color: var(--accent); }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { margin-bottom: 2px; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--accent); font-family: var(--serif); }
.product-meta { font-size: .82rem; color: #7a6a5a; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.product-desc { color: #55483c; font-size: .95rem; flex: 1; }
.product-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }

.qty-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddccb9;
  border-radius: 999px;
  overflow: hidden;
}
.qty-picker button {
  width: 34px; height: 34px;
  background: var(--cream-2);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--wood-dark);
}
.qty-picker input {
  width: 36px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-family: var(--sans);
  background: transparent;
}
.qty-picker input:focus { outline: none; }

.personalize-note {
  margin-top: 40px;
  background: var(--cream-2);
  border: 1px dashed var(--wood-light);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.personalize-note .icon { font-size: 1.8rem; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,14,10,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption {
  color: var(--cream);
  text-align: center;
  margin-top: 14px;
  font-size: .95rem;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ===== About page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }

.materials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.materials-list li {
  background: var(--white);
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--wood);
  display: flex;
  align-items: center;
  gap: 10px;
}
.materials-list li::before { content: "🪵"; }

/* ===== Product detail ===== */
.breadcrumb {
  font-size: .85rem;
  color: #8a7a68;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--wood); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.product-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.product-thumbs button {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  width: 84px;
  height: 64px;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.product-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs button.active { border-color: var(--accent); }

.product-detail-info .product-meta { margin-bottom: 6px; display: inline-block; }
.product-detail-info h1 { font-size: 2rem; margin-bottom: 10px; }
.product-detail-info .product-price { font-size: 1.6rem; margin-bottom: 18px; }
.product-detail-info .product-desc { font-size: 1.02rem; color: #4a3d32; }
.product-detail-info .product-actions { margin: 26px 0; }
.related-note {
  margin-top: 30px;
  font-size: .9rem;
  color: #7a6a5a;
}

/* ===== Cart / Checkout ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cart-table th, .cart-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--cream-2);
  font-size: .93rem;
}
.cart-table th { background: var(--cream-2); color: var(--wood-dark); font-family: var(--serif); }
.cart-row-product { display: flex; align-items: center; gap: 12px; }
.cart-row-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.cart-remove { color: #b23b3b; font-weight: 700; font-size: .85rem; cursor: pointer; border: none; background: none; }

.cart-empty {
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.summary-box, .form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: .95rem;
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.15rem;
  border-top: 1px solid var(--cream-2);
  margin-top: 8px;
  padding-top: 14px;
  color: var(--wood-dark);
}

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--wood-dark); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddccb9;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .95rem;
  background: var(--cream);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--wood-light); }
.field textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: .82rem; color: #7a6a5a; margin-top: 10px; }

.order-success {
  display: none;
  background: #e9f0e4;
  border: 1px solid var(--accent-2);
  color: #3e4d34;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.order-success.show { display: block; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-info-list .icon { font-size: 1.4rem; }
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wood-dark);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.social-row a:hover { background: var(--accent); }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--wood-dark), var(--wood));
  color: var(--white);
  border-radius: var(--radius);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #e6dccc; margin: 0; max-width: 480px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--wood-dark);
  color: #d8c9b8;
  padding: 56px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: var(--cream); font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #d8c9b8; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: 10px; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: #a8977f;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features, .cards-3, .products-grid { grid-template-columns: 1fr; }
  .about-grid, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: 2.3rem; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .cta-banner { flex-direction: column; text-align: center; }
}
