:root {
  --bg: #f3f4f2;
  --card: #ffffff;
  --text-main: #111;
  --text-soft: #6b6b6b;
  --accent-green: #1f3d2b;
  --accent-navy: #1e2a3a;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 68px;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}
section {
  position: relative;
  width: 100%;
  padding: clamp(80px, 12vw, 160px) 6%;
}

.container {
  max-width: 1200px;
  margin: 0 8%;
}

.bg-soft { background: var(--bg); }
.bg-white { background: white; }
.bg-dark {
  background: #111;
  color: white;
}



.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-hero {
  z-index: 1;
}


h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 0.3px;
}

h3 {
  font-size: 16px;
}

p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}


/* =========================
   HEADER (CLEAN + ORGANIZED)
   ========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;

  background: rgba(243, 244, 242, 0.85);
  border-bottom: 1px solid rgba(0,0,0,0.05);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}


/* blur ide u pseudo-element */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  z-index: -1;
}


/* INNER LAYOUT */
.header-inner {
  width: 100%;
  max-width: 1400px;
  padding: 0 6%;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* LEFT + RIGHT NAV */
.nav-left,
.nav-right {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

/* LINKS */
.header a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.header a:hover {
  color: var(--accent-navy);
  opacity: 0.85;
}

/* LOGO */
.logo a {
  font-size: 18px;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: var(--accent-green);
  text-decoration: none;
}



/* SECTIONS */
.editorial, .spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 120px 8%;
  gap: 60px;
  align-items: center;
}

.editorial img, .spotlight img { width: 100%; }


/* home hero */

.home-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  overflow: hidden;
  background: #f7f7f5; /* fallback */
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35; /* luksuzni, suptilno */
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}



.home-hero h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 300;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 20px;
  color: var(--accent-green);
  margin-bottom: 40px;
}

.hero-cta {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-navy);
  text-decoration: none;
}

.home-philosophy {
  padding: 160px 6%;
  background: #f6f6f6;

  display: flex;
  justify-content: center;
}

.philosophy-inner {
  max-width: 700px;
  text-align: center;
}

.home-philosophy h2 {
  font-size: 40px;
  font-weight: 300;
  margin: 20px 0 30px;
}

.home-philosophy p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.philosophy-strong {
  margin-top: 30px;
  font-weight: 500;
}


.home-visual {
  padding: 180px 6%;
  display: flex;
  justify-content: center;
}

.home-visual img {
  max-width: 520px;
}

.home-values {
  padding: 160px 6%;
  display: flex;
  justify-content: center;
}


.values-grid {
  max-width: 900px;
  text-align: center;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
}

.values-grid h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.values-grid p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}


@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}


.home-shop-link {
  padding: 400px 6%;
  text-align: center;
}

.home-shop-link h2 {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 36px;
}

.home-shop-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 16px 34px;
  border-radius: 999px;

  background: var(--accent-navy);
  color: white;

  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}
.home-shop-link a:hover {
  background: #162233; /* malo tamnije */
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}


.split-section {
  padding: 160px 6%;
}

.split-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.split-text h2 {
  font-size: 44px;
  font-weight: 300;
  margin: 20px 0;
}

.split-text p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 420px;
}

.split-section.alt {
  background: #f6f6f6;
}

.split-image img {
  width: 100%;
  border-radius: 28px;
}

.full-visual {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: #f2f2f2;
}

.full-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}


/* =========================
   SHOP INTRO / HERO TEXT
   ========================= */

.shop-intro {
  padding: 90px 6% 20px; /* manje praznog prostora gore */
  background: var(--bg);
}

.intro-inner {
  max-width: 880px; /* šire */
}


/* small label */
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: 20px;
}

/* main headline */
.shop-intro h1 {
  font-size: 50px;
  line-height: 1.06;
  font-weight: 300;
  margin: 0 0 20px;
  color: var(--text-main);
}

/* short punch line */
.shop-intro .lead {
  font-size: 18px;
  color: var(--accent-green);
  margin-bottom: 28px;
}

/* longer description */
.shop-intro .description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 620px;
}

.section-divider {
  margin: 40px 6% 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-divider::before {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

.section-divider span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-navy);
  white-space: nowrap;
}

.products {
  padding: 60px 6% 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.product {
  background: var(--card);
  padding: 20px;
  border-radius: 26px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.product img {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 16px;
}

.product h3 {
  margin: 6px 0 4px;
}

.product p {
  color: var(--accent-green);
  font-weight: 500;
}


.philosophy {
  text-align: center;
  padding: 90px 20%;
  background: #f6f6f6;
}

.newsletter {
  text-align: center;
  padding: 120px 8%;
}

.newsletter input {
  padding: 12px;
  width: 250px;
}

.newsletter button {
  padding: 12px 18px;
}


.footer {
  background: #111;
  color: #fff;
  padding: 80px 6%;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer h4 {
  font-weight: 400;
  margin-bottom: 16px;
}

.footer p {
  color: #bbb;
  line-height: 1.6;
}

.footer a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer a:hover {
  color: white;
}


@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}


img {
  border-radius: 22px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.img-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* MODAL */
.product {
  cursor: pointer;
}


.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.product-modal.active {
  display: block;
}

.modal-overlay {
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  max-width: 900px;
  margin: 5vh auto;
  background: white;
  border-radius: 26px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  animation: modalUp 0.5s ease;
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-image img {
  width: 100%;
  border-radius: 22px;
}

.modal-info h2 {
  font-weight: 400;
  font-size: 32px;
}

.modal-info .price {
  font-size: 18px;
  margin: 10px 0 20px;
}

.modal-info select {
  padding: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 16px 34px;
  border-radius: 999px;

  background: var(--accent-navy);
  color: white;

  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.cart-btn:hover {
  background: #162233;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.cart-page {
  max-width: 900px;
  margin: 140px auto 120px;
  padding: 0 6%;
}

.cart-page h1 {
  margin-bottom: 40px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cart-info span {
  display: block;
  font-size: 14px;
  color: #666;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-actions button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 18px;
}

.checkout-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 38px;
  border-radius: 999px;
  background: var(--accent-navy);
  color: white;
  text-decoration: none;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.cart-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}

.cart-info strong {
  display: block;
  font-size: 15px;
}

.cart-info span {
  font-size: 13px;
  color: #777;
}


.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
}

.search-result:hover {
  background: rgba(0,0,0,0.05);
}

.search-result img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.search-result span {
  font-weight: 500;
}
#noResults {
  text-align: center;
  opacity: 0.6;
  margin-top: 60px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-search {
  width: 180px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 14px;
  cursor: text;
}

.header-search::placeholder {
  color: #999;
}

.header-search:focus {
  outline: none;
  border-color: #000;
}
.header-search-wrapper {
  position: relative;
}

.header-search {
  width: 220px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
}

.header-search:focus {
  outline: none;
  border-color: #000;
}

/* DROPDOWN */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

/* SHOW WHEN ACTIVE */
.search-dropdown.active {
  display: block;
}

.search-result {
  display: flex;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
}

.search-result img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.search-result:hover {
  background: #f5f5f5;
}

.no-results {
  padding: 14px;
  color: #888;
  font-size: 14px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search-wrapper {
  position: relative;
}
/* ===================== */
/* MOBILE HEADER SEARCH */
/* ===================== */

@media (max-width: 768px) {

  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-left a {
    align-self: flex-start;
  }

  .shop-search {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px; /* ⛔ sprečava iOS zoom */
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
  }

  .shop-search::placeholder {
    color: #999;
  }

  .shop-search:focus {
    outline: none;
    border-color: #000;
  }
}
input {
  -webkit-appearance: none;
}
@media (max-width: 768px) {

  /* HEADER SEARCH WRAPPER */
  .header-search-wrapper {
    position: static;
    width: 100%;
  }

  /* INPUT */
  .header-search {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  /* DROPDOWN → FULL WIDTH BAR */
  .search-dropdown {
    position: fixed;
    top: 64px; /* visina headera */
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    overflow-y: auto;
    z-index: 1500;
  }
}
@media (max-width: 768px) {

  .search-result {
    padding: 16px 18px;
    gap: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .search-result img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    opacity: 0.9;
  }

  .search-result span {
    font-size: 15px;
    font-weight: 500;
  }

  .search-result:hover {
    background: transparent;
  }

  .search-result:active {
    background: rgba(0,0,0,0.05);
  }
}
@media (max-width: 768px) {
  .no-results {
    padding: 32px 18px;
    font-size: 14px;
    text-align: center;
    color: #777;
  }
}

@media (max-width: 768px) {

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }

  /* LOGO U CENTRU */
  .logo {
    justify-self: center;
  }

  /* SAKRI SECONDARY STVARI */
  .nav-left a,
  .nav-right a:not(#cartCount) {
    display: none;
  }
}
@media (max-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
  }

  /* Sakrij sve nepotrebno */
  .nav-left a,
  .nav-right a:not(#cartCount) {
    display: none;
  }

  /* Search */
  .shop-search {
    display: block;
    width: 100%;
    max-width: 180px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 999px;
  }

  /* Logo */
  .logo {
    justify-self: center;
  }

  /* Korpa */
  #cartCount {
    font-size: 14px;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .header {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85);
  }

  .shop-search {
    background: #f4f4f4;
    border: none;
  }
}
/* SEARCH WRAPPER */
.header-search-wrapper {
  position: relative;
}

/* INPUT */
.header-search {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
  width: 180px;
}

/* DROPDOWN */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.search-dropdown.active {
  display: block;
}

/* RESULT ITEM */
.search-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  text-decoration: none;
  color: #000;
}

.search-dropdown a:hover {
  background: #f4f4f4;
}
/* SEARCH WRAPPER */
.header-search-wrapper {
  position: relative;
}

/* INPUT */
.header-search {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
  width: 180px;
}

/* DROPDOWN */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.search-dropdown.active {
  display: block;
}

/* RESULT ITEM */
.search-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  text-decoration: none;
  color: #000;
}

.search-dropdown a:hover {
  background: #f4f4f4;
}
