/* ===========================================================================
   duseci.rs — Casper.com estetika sa Sognare brend paletom
   =========================================================================== */

:root {
  --brand-primary:   #13BECF;
  --brand-dark:      #292929;
  --color-cta:       #FF751A;
  --color-cta-hover: #e5650f;
  --color-accent:    #D1BC92;
  --bg-main:         #FFFFFF;
  --bg-muted:        #F5F5F5;
  --text-primary:    #1A1A1A;
  --text-secondary:  #7A7A7A;
  --border-color:    #EAEAEA;
  --radius-img:      16px;
  --radius-card:     20px;
  --radius-hero:     32px;
  --radius-pill:     9999px;
  --shadow-soft:     0 4px 6px -1px rgba(0,0,0,.05), 0 10px 24px -8px rgba(0,0,0,.08);
  --font-head: 'Jost', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-main);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-dark);
}

a { color: var(--brand-primary); text-decoration: none; transition: color .3s ease-in-out; }
a:hover { color: var(--color-cta); }

img { max-width: 100%; }

/* ---------------- Announcement bar ---------------- */
.announcement-bar {
  background: var(--brand-primary);
  color: #fff;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 7px 0;
  font-weight: 500;
}

/* ---------------- Header ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  z-index: 1030;
}
.site-header .nav-link {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-dark);
  padding-left: .9rem;
  padding-right: .9rem;
  transition: color .3s ease-in-out;
}
.site-header .nav-link:hover { color: var(--brand-primary); }
.dropdown-menu { font-size: 14px; padding: .6rem; }
.dropdown-item { border-radius: 10px; padding: .45rem .8rem; }
.dropdown-item:hover { background: var(--bg-muted); color: var(--brand-primary); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-dark);
  transition: all .3s ease-in-out;
}
.icon-btn:hover { background: var(--bg-muted); color: var(--brand-primary); }

.cart-count-badge {
  position: absolute;
  top: 2px; right: 0;
  background: var(--color-cta);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------------- Dugmad (pill) ---------------- */
.btn-pill {
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  font-size: 13.5px;
  padding: .7rem 1.7rem;
  transition: all .3s ease-in-out;
}
.btn-cta {
  background: var(--color-cta);
  border: 2px solid var(--color-cta);
  color: #fff;
}
.btn-cta:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); color: #fff; transform: translateY(-1px); }
.btn-brand {
  background: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  color: #fff;
}
.btn-brand:hover { background: #0fa9b8; border-color: #0fa9b8; color: #fff; }
.btn-outline-dark {
  border: 2px solid var(--brand-dark);
  color: var(--brand-dark);
}
.btn-outline-dark:hover { background: var(--brand-dark); color: #fff; }
.btn-outline-light-pill {
  border: 2px solid #fff; color: #fff; background: transparent;
}
.btn-outline-light-pill:hover { background: #fff; color: var(--brand-dark); }

/* ---------------- Hero ---------------- */
.hero-section { padding: 24px 0 8px; }
.hero-card {
  border-radius: var(--radius-hero);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  background: linear-gradient(120deg, #e8f7f9 0%, #f7f3ea 100%);
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay-box {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.94);
  border-radius: 24px;
  padding: 2.2rem 2.4rem;
  margin: 2.2rem;
  max-width: 520px;
  box-shadow: var(--shadow-soft);
}
.hero-overlay-box h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: .8rem; }
.hero-overlay-box p { color: var(--text-secondary); margin-bottom: 1.4rem; }

/* ---------------- Value props ---------------- */
.value-props { padding: 44px 0 12px; }
.value-prop {
  text-align: center;
  padding: 1.2rem .8rem;
}
.value-prop .vp-icon {
  width: 54px; height: 54px;
  margin: 0 auto .8rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--brand-primary);
}
.value-prop .vp-text {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-dark);
}

/* ---------------- Brand showcase ---------------- */
.brand-showcase { padding: 30px 0; }
.brand-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .5rem .2rem;
  scrollbar-width: thin;
}
.brand-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: .55rem 1.3rem .55rem .6rem;
  background: #fff;
  transition: all .3s ease-in-out;
  color: var(--brand-dark);
}
.brand-chip:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-soft); color: var(--brand-primary); }
.brand-chip img {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg-muted);
}
.brand-chip .bc-name {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
}
.brand-chip .bc-discount {
  font-size: 11px;
  background: var(--color-cta);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------------- Tabs (pill) ---------------- */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}
.pill-tab {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--brand-dark);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12.5px;
  font-weight: 600;
  padding: .5rem 1.3rem;
  transition: all .3s ease-in-out;
}
.pill-tab:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pill-tab.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* ---------------- Product card ---------------- */
.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s ease-in-out, transform .3s ease-in-out;
}
.product-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.product-card .pc-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
}
.product-card .pc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease-in-out;
}
.product-card:hover .pc-img-wrap img { transform: scale(1.03); }
.pc-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--color-cta);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  z-index: 2;
}
.pc-brand-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.92);
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 11px;
  z-index: 2;
  border: 1px solid var(--border-color);
}
.product-card .pc-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-title {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.product-card .pc-title a { color: var(--brand-dark); }
.product-card .pc-title a:hover { color: var(--brand-primary); }
.product-card .pc-cat { color: var(--text-secondary); font-size: 12.5px; margin-bottom: .5rem; }
.product-card .pc-price { margin-top: auto; font-weight: 600; font-size: 15.5px; color: var(--brand-dark); }
.product-card .pc-price .old { color: var(--text-secondary); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-right: 6px; }
.product-card .pc-price .from { color: var(--text-secondary); font-weight: 400; font-size: 12.5px; }

/* ---------------- Sekcije ---------------- */
.section { padding: 54px 0; }
.section-muted { background: var(--bg-muted); }
.section-title { text-align: center; margin-bottom: .6rem; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.section-sub { text-align: center; color: var(--text-secondary); max-width: 620px; margin: 0 auto 2rem; }

/* ---------------- Reviews ---------------- */
.review-big-stat .rb-score { font-size: 3rem; font-weight: 700; font-family: var(--font-head); color: var(--brand-dark); line-height: 1; }
.review-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
  height: 100%;
}
.review-card .rc-author { font-weight: 600; font-size: 14px; }
.review-card .rc-text { color: var(--text-secondary); font-size: 14px; }
.stars { color: #F5A623; letter-spacing: 2px; font-size: 15px; }
.stars .off { color: var(--border-color); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--brand-dark);
  color: #fff;
  padding: 54px 0 10px;
  margin-top: 70px;
}
.footer-logo { filter: brightness(0) invert(1); }
.footer-title {
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: 14px; }
.footer-links a:hover { color: var(--brand-primary); }
.footer-muted { color: rgba(255,255,255,.55); }
.footer-muted a { color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.newsletter-row { display: flex; align-items: center; max-width: 320px; }
.newsletter-input {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  padding: .45rem 0;
  flex: 1;
  outline: none;
  border-radius: 0;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-input:focus { border-bottom-color: var(--brand-primary); }
.newsletter-submit {
  background: transparent; border: 0; color: #fff; padding: .4rem .6rem;
  transition: color .3s ease-in-out;
}
.newsletter-submit:hover { color: var(--brand-primary); }

/* ---------------- Drawer korpa ---------------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20,20,20,.45);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 94vw);
  height: 100dvh;
  background: #fff;
  z-index: 1060;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,.15);
}
.cart-drawer-head { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border-color); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.cart-drawer-foot { padding: 1.1rem 1.3rem; border-top: 1px solid var(--border-color); background: var(--bg-muted); }
.cart-line { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--border-color); }
.cart-line img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; background: var(--bg-muted); }
.cart-line .cl-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.cart-line .cl-name a { color: var(--brand-dark); }
.cart-line .cl-brand { font-size: 11px; color: var(--brand-primary); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.cart-line .cl-variant { font-size: 12px; color: var(--text-secondary); }
.cart-line .cl-price { font-size: 13.5px; font-weight: 600; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: 999px; overflow: hidden; }
.qty-control button { border: 0; background: #fff; width: 30px; height: 30px; font-size: 15px; line-height: 1; color: var(--brand-dark); }
.qty-control button:hover { background: var(--bg-muted); }
.qty-control .qty-val { min-width: 30px; text-align: center; font-size: 13.5px; font-weight: 600; }
.cl-remove { border: 0; background: transparent; color: var(--text-secondary); font-size: 12px; text-decoration: underline; }
.cl-remove:hover { color: #d33; }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs { font-size: 12.5px; color: var(--text-secondary); padding: 1rem 0 .4rem; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--brand-primary); }
.breadcrumbs .sep { margin: 0 .45rem; color: var(--border-color); }

/* ---------------- PDP ---------------- */
.pdp-wrap { padding-bottom: 30px; }
.pdp-gallery img {
  width: 100%;
  border-radius: var(--radius-img);
  margin-bottom: 1rem;
  background: var(--bg-muted);
}
.pdp-buybox {
  position: sticky;
  top: 90px;
}
.pdp-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: .3rem 1rem .3rem .35rem;
  margin-bottom: .9rem;
  background: #fff;
}
.pdp-brand-badge img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: var(--bg-muted); }
.pdp-brand-badge span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--brand-dark); }
.pdp-brand-badge span b { color: var(--brand-primary); }
.pdp-title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .4rem; }
.pdp-price-now { font-size: 1.9rem; font-weight: 700; font-family: var(--font-head); color: var(--brand-dark); }
.pdp-price-old { font-size: 1.1rem; color: var(--text-secondary); text-decoration: line-through; margin-left: .6rem; }
.pdp-short { color: var(--text-secondary); font-size: 14.5px; }

.size-tiles { display: flex; flex-wrap: wrap; gap: .55rem; }
.size-tile {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  padding: .55rem .95rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  transition: all .25s ease-in-out;
  text-align: center;
}
.size-tile small { display: block; font-weight: 400; color: var(--text-secondary); font-size: 11.5px; }
.size-tile:hover { border-color: var(--brand-primary); }
.size-tile.active {
  border: 2.5px solid var(--brand-primary);
  padding: calc(.55rem - 1px) calc(.95rem - 1px);
  box-shadow: 0 0 0 3px rgba(19,190,207,.12);
}
.size-tile.outofstock { opacity: .45; cursor: not-allowed; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1rem; }
.trust-badges .tb { display: flex; align-items: center; gap: .45rem; font-size: 12px; color: var(--text-secondary); }
.trust-badges .tb svg { color: var(--brand-primary); flex: 0 0 auto; }

.pdp-sticky-mobile {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: .7rem 1rem;
  z-index: 1040;
  display: none;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 -6px 24px rgba(0,0,0,.08);
  transform: translateY(110%);
  transition: transform .3s ease-in-out;
}
.pdp-sticky-mobile.visible { transform: translateY(0); }

/* Anatomija */
.anatomy-img img { border-radius: var(--radius-img); width: 100%; }
.accordion-duseci .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}
.accordion-duseci .accordion-button {
  background: transparent;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-dark);
  box-shadow: none;
  padding: 1rem .2rem;
}
.accordion-duseci .accordion-button:not(.collapsed) { color: var(--brand-primary); }
.accordion-duseci .accordion-body { color: var(--text-secondary); font-size: 14.5px; padding: 0 .2rem 1.1rem; }

/* Compare tabela */
.compare-scroll { overflow-x: auto; }
.compare-table { min-width: 640px; }
.compare-table th, .compare-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.compare-table thead th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; }

/* ---------------- Listing / shop ---------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-bottom: 1.6rem;
}
.filter-bar .form-select {
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  font-size: 13.5px;
  padding: .45rem 2.2rem .45rem 1.1rem;
  width: auto;
}
.pagination-duseci { display: flex; gap: .4rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.pagination-duseci a, .pagination-duseci span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  color: var(--brand-dark);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .3s ease-in-out;
}
.pagination-duseci a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pagination-duseci .current { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.category-desc { color: var(--text-secondary); font-size: 14.5px; max-width: 860px; }
.category-desc a { color: var(--brand-primary); }

/* Brand hero */
.brand-hero {
  border-radius: var(--radius-hero);
  background: var(--bg-muted);
  padding: 2.4rem;
  display: flex;
  gap: 1.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.brand-hero img { width: 96px; height: 96px; border-radius: 24px; object-fit: contain; background: #fff; box-shadow: var(--shadow-soft); }

/* ---------------- Blog ---------------- */
.blog-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: box-shadow .3s ease-in-out, transform .3s ease-in-out;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.blog-card .bc-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-muted); }
.blog-card .bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease-in-out; }
.blog-card:hover .bc-img img { transform: scale(1.03); }
.blog-card .bc-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-card h2 { font-size: 15.5px; letter-spacing: .8px; }
.blog-card h2 a { color: var(--brand-dark); }
.blog-card h2 a:hover { color: var(--brand-primary); }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body img { border-radius: var(--radius-img); height: auto; }
.article-body h2, .article-body h3 { margin-top: 1.8rem; font-size: 1.15rem; }
.article-body p { color: #3c3c3c; }
.article-cover { border-radius: var(--radius-hero); width: 100%; max-height: 440px; object-fit: cover; }

/* ---------------- Forms / checkout ---------------- */
.form-control, .form-select { border-color: var(--border-color); border-radius: 12px; padding: .6rem .9rem; font-size: 14.5px; }
.form-control:focus, .form-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(19,190,207,.12); }
.checkout-summary {
  background: var(--bg-muted);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.cart-table th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--text-secondary); border: 0; }
.cart-table td { vertical-align: middle; border-color: var(--border-color); }

.payment-option {
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  cursor: pointer;
  transition: all .25s ease-in-out;
}
.payment-option:hover { border-color: var(--brand-primary); }
.payment-option.selected { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(19,190,207,.1); }

/* ---------------- Toast ---------------- */
.duseci-toast {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--brand-dark);
  color: #fff;
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-size: 13.5px;
  z-index: 1080;
  opacity: 0;
  pointer-events: none;
}

/* ---------------- 404 ---------------- */
.page-404 { text-align: center; padding: 90px 0; }
.page-404 .code { font-size: 5.5rem; font-weight: 700; font-family: var(--font-head); color: var(--brand-primary); line-height: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  .pdp-buybox { position: static; }
  .pdp-sticky-mobile { display: flex; }
  .hero-overlay-box { margin: 1.2rem; padding: 1.5rem 1.4rem; }
  .hero-card { min-height: 400px; }
}
@media (max-width: 575.98px) {
  .section { padding: 38px 0; }
  .hero-card { min-height: 340px; }
}
