:root {
  --ink:#172e29; --paper:#fffcf6; --line:#d6d7cd; --leaf:#e6eead;
  --quiet:#506459; --edge:clamp(18px,5vw,82px); --serif:Georgia,'Times New Roman',serif;
}
body {background:var(--paper);color:var(--ink);font-family:'Open Sans',Arial,sans-serif}
main {max-width:1600px}
header {display:flex;flex-wrap:nowrap;gap:clamp(10px,2vw,32px);padding:16px var(--edge);background:var(--paper);border-color:var(--line)}
header .identity {flex-shrink:0}
header nav {order:0;flex:1;display:flex;flex-wrap:nowrap;border:0;padding:0;gap:clamp(12px,2.4vw,36px);font-size:15px}
header .contact {border:0;padding:0;margin:0;font-variant-numeric:tabular-nums}
header .cart-trigger,.buy,.cart-dialog .primary,.button {background:var(--ink);color:white;border-radius:4px;padding:.7rem 1.15rem}
.cart-count {background:var(--leaf);border-radius:3px}
h1,h2,.article h1,.product-detail h1 {font-family:var(--serif);font-weight:400;letter-spacing:-.055em;line-height:1.04;text-wrap:balance}
h1,.article h1,.product-detail h1 {font-size:clamp(2.6rem,5.5vw,5.3rem)}
h2,.editorial h2 {font-size:clamp(2rem,3.8vw,3.9rem)}
main>section, .store-home main>section:not(.home-hero) {padding:clamp(40px,6vw,90px) var(--edge)}
.store-home .home-hero {background:var(--leaf);color:var(--ink);margin:0;width:100%;border-radius:0;padding:clamp(40px,7vw,100px) var(--edge);gap:clamp(25px,6vw,100px);grid-template-columns:1fr 1fr;min-height:min(760px,calc(100svh - 76px))}
.home-hero h1 {font-size:clamp(4.5rem,9vw,9.5rem);line-height:.87;margin:0}
.home-hero h1 em {font-weight:400}
.home-hero p {color:var(--ink);max-width:34ch;margin:1.75rem 0}
.home-hero form div {border:1px solid var(--ink);border-radius:4px;background:var(--paper)}
.home-hero form input {background:transparent}
.home-hero form button {color:white;background:var(--ink);border-radius:2px}
.hero-display {background:none;display:grid;padding:0}
.hero-display a {display:grid;place-items:center;width:100%}
.hero-display img {width:100%;max-width:500px;height:auto;max-height:490px;object-fit:contain;mix-blend-mode:multiply}
.store-home .category-grid {gap:0;border-top:1px solid var(--line);grid-template-columns:repeat(4,1fr)}
.store-home .category-tile {background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 10px;grid-template-columns:64px 1fr}
.store-home .category-tile img {width:56px;height:56px;display:block;mix-blend-mode:multiply}
.store-home #katalog {background:#f1f1e8}
.card,.store-home .card,.featured-card {background:var(--paper);border:0;border-radius:3px;box-shadow:none}
.card .photo,.product-detail .photo {background:#e8ebe1;border:0;border-radius:2px}
.card .photo img {height:clamp(125px,14vw,220px);transition:transform .25s ease}
.card:hover .photo img {transform:scale(1.025)}
.card .body {padding:1rem}
.card h3 {font-weight:600;letter-spacing:-.025em}
.card .price {font-weight:500;font-variant-numeric:tabular-nums}
.filters {gap:.4rem}.filters button,.more {border-radius:3px}.filters button {border-color:#b9c4ba}
.store-home .home-help {background:#193a31;color:var(--paper)}
.home-help a {color:var(--leaf)}
.trail {padding:24px var(--edge) 0;color:var(--quiet);font-size:.875rem}
.trail+section {padding-top:2rem}
.product-detail {align-items:center;margin-top:1.4rem}
.product-detail .photo {display:grid;place-items:center;min-height:clamp(260px,35vw,540px)}
.product-detail .photo img {width:90%;height:clamp(220px,30vw,420px)}
.product-detail .price {font-size:2rem;color:var(--ink)}
.product-detail .button {background:transparent;color:var(--ink);padding-left:0;text-decoration:underline}
.store-proizvod dl {display:grid;grid-template-columns:minmax(8rem,1fr) 2fr;max-width:850px;margin-bottom:2rem}
.store-proizvod dl>* {margin:0;padding:.65rem .4rem;border-top:1px solid var(--line)}
.store-blog main>section:not(:has(.blog-grid,.table-wrap)),.store-dostava main>section {max-width:1050px;margin:auto}
.store-blog .blog-grid {margin-top:2rem;gap:1rem}
.blog-grid .card {background:#e9eddf;padding:1.6rem;border-top:3px solid var(--ink)}
.blog-grid .card h2 {font-size:clamp(1.5rem,2.5vw,2.2rem)}
.places {list-style:none;padding:0;column-gap:2rem}
.places li {border-bottom:1px solid var(--line);padding:.5rem 0}
.places b {float:right}
footer {display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;padding:3rem var(--edge);background:var(--ink)}
footer h2 {font:600 1rem Arial,sans-serif;margin:0 0 .7rem;letter-spacing:0}
footer div>a:not(.identity) {display:block;width:fit-content;padding:.2rem 0}
.cart-dialog {border-radius:8px;background:var(--paper)}
.cart-dialog h2 {font-size:2.1rem}
.cart-dialog input,.cart-dialog button {border-radius:4px}
button,.category-tile,.hero-display img {transition:transform .18s ease,background-color .18s ease}
button:hover,.category-tile:hover {transform:translateY(-2px)}
button:active {transform:translateY(1px)}
@keyframes rise {from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:none}}
main h1,.hero-display {animation:rise .35s ease-out both}
@media(max-width:900px){
 header nav{display:none}header nav.open{display:flex;position:absolute;inset:100% 0 auto;background:var(--paper);padding:1rem var(--edge);border-bottom:1px solid var(--line)}
 header .contact{margin-left:auto}header .cart-trigger{margin-left:0}
 .store-home .category-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
 header{gap:.65rem}header .contact{display:none}header .cart-trigger{margin-left:auto}header .menu-toggle{padding:.6rem;font-size:.875rem}
 .store-home .home-hero{grid-template-columns:1fr;gap:1rem;padding:2rem var(--edge);min-height:0}
 .home-hero h1{font-size:clamp(3.9rem,12vw,5.3rem)}.home-hero h1 br{display:none}.home-hero h1 em:before{content:' '}
 .home-hero p{margin:1rem 0}.hero-display{display:grid}.hero-display img{height:170px;width:100%;object-fit:contain}
 .store-home .category-tile{grid-template-columns:36px 1fr;gap:.3rem}.store-home .category-tile img{width:32px;height:36px}
 footer{grid-template-columns:1fr 1fr}footer div:first-child{grid-column:1/-1}.store-proizvod dl{grid-template-columns:1fr 1.4fr}
}
@media(max-width:380px){header .identity img{width:26px;height:26px}header{gap:.4rem}header .cart-trigger{padding:.5rem}.card h3{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.nav-group{position:relative;padding:0;border:0}.nav-group summary{font:inherit;cursor:pointer;list-style-position:inside}.nav-group>div{position:absolute;top:100%;left:0;min-width:16rem;padding:.6rem;background:var(--paper);box-shadow:0 6px 22px #172e2926;border:1px solid var(--line);z-index:10}.nav-group>div a,#live-results a{display:block;padding:.45rem .7rem}.nav-group a:hover,#live-results a:hover{background:#e8ebe1}.home-hero h1 em{display:block}.guide-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}.guide-columns ul{list-style:none;padding:0}.guide-columns li{padding:.5rem 0;border-bottom:1px solid var(--line)}.guide-columns b{display:block}.home-help a{display:inline-block;margin:0 .9rem .35rem 0}.home-reading>p{max-width:70ch}.home-reading h2:not(:first-child){margin-top:2rem}#live-results{background:var(--paper);color:var(--ink);padding:.5rem;max-width:32rem;margin-bottom:.75rem;border:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:900px){header nav.open{display:grid;grid-template-columns:1fr;max-height:70vh;overflow:auto}.nav-group>div{position:static;box-shadow:none}}@media(max-width:680px){.guide-columns{grid-template-columns:1fr}.home-hero h1 em{display:inline}}

/* Catalog tiles share a baseline for price and action even with long product names. */
.store-home #katalog .card {
  border:1px solid #d5dad0; border-radius:14px; overflow:hidden;
  box-shadow:0 3px 12px #172e2908;
}
.store-home #katalog .card .photo {
  margin:8px 8px 0; border-radius:9px; padding:clamp(12px,2vw,26px);
  background:#ebeee4; display:grid;place-items:center;
}
.store-home #katalog [data-group-macun-med] .photo {background:#f4eadb}
.store-home #katalog [data-group-viagra] .photo,.store-home #katalog [data-group-cialis] .photo {background:#e8eef0}
.store-home #katalog .photo img {height:clamp(105px,11vw,168px)}
.store-home #katalog .product-family {color:var(--quiet);font-size:.875rem}
.store-home #katalog h3 {margin:.3rem 0 1rem;min-height:0;font:500 clamp(1.05rem,1.7vw,1.45rem)/1.16 var(--serif)}
.purchase-row {display:flex;align-items:center;justify-content:space-between;gap:.45rem;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:.75rem;margin-top:auto}
.store-home .purchase-row .price {margin:0;font-size:1.12rem}
.store-home .purchase-row .buy {width:auto;margin:0;padding:.52rem .95rem;border-radius:20px;min-height:42px}
.cart-dialog .cart-row {display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:.4rem .8rem;padding:.85rem 0}
.cart-row img {width:52px;height:52px;border-radius:8px;background:#eef0e9}
.cart-row .info {font-weight:600;line-height:1.3}
.cart-row .info small {margin-top:.25rem;font-weight:400;color:var(--quiet)}
.line-total,.order-summary dd,.qty-control {font-variant-numeric:tabular-nums}
.qty-control {grid-column:2 / -1;display:inline-flex;justify-self:start;align-items:center;gap:.5rem;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.qty-control span {min-width:1.3rem;text-align:center}
.cart-dialog .qty-control button {width:42px;height:42px;background:#eff1e9;color:var(--ink);border-radius:0}
.order-summary {display:grid;grid-template-columns:1fr auto;row-gap:.3rem;margin:1.2rem 0;background:#edf0e3;padding:1rem;border-radius:10px}
.order-summary dt,.order-summary dd {margin:0;font-weight:400}
.order-summary dd {text-align:right}
.order-summary :nth-last-child(-n+2) {border-top:1px solid #c9d1c0;padding-top:.6rem;margin-top:.4rem;font-weight:bold}
@media(max-width:480px){.store-home #katalog .card .body{padding:.75rem}.cart-dialog .cart-row{grid-template-columns:40px minmax(0,1fr) auto;gap:.4rem}.cart-row img{width:40px;height:40px}.line-total{font-size:.92rem}}
.buyer-guides {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:clamp(1rem,3vw,3rem);margin-bottom:1.75rem}
.buyer-guides article {border-top:2px solid var(--ink);padding-top:.75rem}
.buyer-guides h3 {font:500 1.45rem/1.2 var(--serif);margin-bottom:.55rem}
.buyer-guides a,#vodici>a {text-decoration:underline;text-underline-offset:.2em}
.card a.photo {display:grid;place-items:center;cursor:pointer}
@media(max-width:600px){
 .store-home #katalog .grid,.store-kategorija .grid{gap:.65rem}
 .store-home #katalog h3,.store-kategorija .card h3{overflow-wrap:anywhere}
 .store-home #katalog .purchase-row .buy,.cart-dialog .qty-control button{min-width:44px;min-height:44px}
 .cart-dialog input{font-size:16px}.cart-actions button{min-height:44px;flex:1}
 .buyer-guides a,#vodici>a{display:inline-flex;align-items:center;min-height:44px}
}
.product-intro {max-width:48ch}
.related-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:.5rem;list-style:none;padding:0}
.related-list a {display:flex;align-items:center;gap:.8rem;height:100%;padding:.65rem;background:#edf0e3;border-radius:8px;text-decoration:none}
.related-list img {flex:none;width:68px;height:68px;object-fit:contain;background:white;border-radius:5px}
.related-list span {overflow-wrap:anywhere;line-height:1.35}
.related-list a:hover span,.related-list a:focus-visible span {text-decoration:underline}

.product-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .65rem;
  max-width: 28rem;
  margin-block: 1.25rem;
}
.product-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: .55rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.product-actions > :is(.buy, .contact-action) {
  color: white;
  background: var(--ink);
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.product-actions > :is(.buy, .contact-action):hover { background: #285447; transform: translateY(-2px); }
.product-actions > :is(.buy, .contact-action):active { transform: translateY(1px); }
.product-actions > :focus-visible { outline: 3px solid #497439; outline-offset: 3px; }
.product-actions .contact-action { gap: .5rem; }
.contact-handset { flex: none; }
.cart-offer {display:grid;grid-template-columns:1fr auto;align-items:center;gap:.3rem .8rem;margin-top:1rem;border-top:1px solid var(--line);padding-top:.8rem}
.cart-offer small {grid-column:1/-1;color:var(--quiet)}
.cart-offer a {text-decoration:underline}
#checkout-page {max-width:64rem;padding:clamp(1rem,5vw,4rem) var(--edge);margin:auto}
#checkout-page h1 {font-size:clamp(2.4rem,5vw,4rem)}
#checkout-page h2 {font-size:1.75rem}
#checkout-status {overflow-wrap:anywhere}
#order-layout {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:2rem;margin:1.5rem 0}
#order-layout aside {grid-column:2;grid-row:1;background:#f0f3e7;padding:1.2rem;border-radius:.85rem}
#edit-cart {min-height:44px;background:white;border:1px solid var(--line);border-radius:.5rem;padding:.45rem .8rem;cursor:pointer}
#delivery-form {grid-column:1;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#delivery-form label {display:grid;gap:.3rem}
#delivery-form input {width:100%;min-height:46px;padding:.65rem;font:inherit;font-size:16px;border:1px solid #87978c;border-radius:.4rem}
#delivery-form .wide {grid-column:1/-1}#checkout-error {color:#8f2822;margin:0}#checkout-error:empty{display:none}
#checkout-page>a {display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}
@media(max-width:680px){#order-layout{display:flex;flex-direction:column;gap:1rem}#order-layout>*{width:100%}#delivery-form{grid-template-columns:1fr}.cart-offer button{min-height:44px}}
