/*
Theme Name: Alluvi
Description: ALLUVI UK, premium tema za pre-filled research penove (WooCommerce, klasični cart i checkout).
Version: 1.1.0
Requires PHP: 8.1
Text Domain: alluvi
*/

:root{
  --bg:#FFFFFF; --soft:#F5F6F6; --ink:#0E1418; --muted:#6A747B; --line:#E6E8E9; --ice:#EDF2F4; --ok:#1F8A5B;
  --font:'Geist',system-ui,sans-serif; --mono:'Geist Mono',ui-monospace,monospace;
  /* WooCommerce varijable za polja forme */
  --wc-form-border-color:#E6E8E9; --wc-form-border-radius:4px; --wc-form-border-width:1px; --wc-form-color-background:#fff;
}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font:16px/1.6 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
.wrap{max-width:1360px;margin:0 auto;padding:0 40px}
.logo{display:block;aspect-ratio:1000/275;background:currentColor;-webkit-mask:url(assets/img/logo-mask.png) center/contain no-repeat;mask:url(assets/img/logo-mask.png) center/contain no-repeat}
.mono{font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.ico{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.topbar{background:var(--ink);color:#C9D1D6;text-align:center;padding:9px 16px;font-size:11px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid transparent;transition:border-color .3s}
.site-header.scrolled,.not-home .site-header{border-bottom-color:var(--line)}
.admin-bar .site-header{top:32px}
.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:76px}
.nav ul{display:flex;gap:32px;list-style:none;font-size:14px;color:var(--muted)}
.nav ul a{transition:color .2s}.nav ul a:hover,.nav ul .current-menu-item a{color:var(--ink)}
.nav .logo{width:108px;color:var(--ink)}
.nav .tools{justify-self:end;display:flex;gap:22px;align-items:center;font-size:14px}
.menu-toggle{display:none;background:none;border:0;color:inherit;cursor:pointer}
.mobile-menu{display:none}

/* buttons, links */
.btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt{display:inline-flex;align-items:center;justify-content:center;gap:12px;height:54px;padding:0 30px;background:var(--ink);color:#fff;font:500 15px/1 var(--font);border:0;border-radius:4px;transition:background .25s;cursor:pointer}
.btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#26323A;color:#fff}
.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{background:var(--ink);color:#fff;opacity:.4;padding:0 30px}
.link{display:inline-flex;gap:8px;align-items:center;font-size:15px;font-weight:500;border-bottom:1px solid currentColor;padding-bottom:2px}
.link svg{transition:transform .25s}.link:hover svg{transform:translateX(3px)}

/* hero */
.hero{position:relative;height:clamp(620px,52vw,880px);overflow:hidden;background:var(--ice);display:flex;align-items:center}
.hero .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 50%;animation:kb 30s ease-in-out infinite alternate}
@keyframes kb{to{transform:scale(1.05)}}
.hero:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(237,242,244,.96) 0%,rgba(237,242,244,.82) 30%,rgba(237,242,244,0) 55%)}
.hero .wrap{position:relative;z-index:2;width:100%}
.hero .copy{max-width:560px}
.hero .mono{color:var(--muted)}
h1{font-size:clamp(52px,6.4vw,96px);line-height:.96;font-weight:500;letter-spacing:-.045em;margin:22px 0 26px}
.lead{font-size:18px;color:var(--muted);max-width:440px}
.cta{display:flex;gap:28px;align-items:center;margin-top:38px}

.sec{padding:120px 0}
.sh{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:48px}
h2{font-size:clamp(36px,4vw,56px);line-height:1.02;font-weight:500;letter-spacing:-.04em}
.sh .mono,.eyebrow{color:var(--muted);display:block;margin-bottom:16px}

/* product grid (naslovnica i shop) */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:56px 28px}
.item .ph{display:block;aspect-ratio:1/1;overflow:hidden;background:var(--soft);border-radius:2px}
.item .ph img{width:100%;height:100%;object-fit:cover;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.item:hover .ph img{transform:scale(1.04)}
.item .row{display:flex;justify-content:space-between;align-items:baseline;margin-top:20px;gap:16px}
.item h3{font-size:19px;font-weight:500;letter-spacing:-.015em}
.item .price{font-size:17px}
.item p{font-size:14px;color:var(--muted);margin-top:2px}
.item .add{display:inline-flex;gap:8px;align-items:center;margin-top:14px;font-size:14px;font-weight:500;opacity:.55;transition:opacity .2s;background:none;border:0;padding:0;cursor:pointer;color:inherit}
.item:hover .add,.item .add.added{opacity:1}
.item .add.loading{opacity:.3}
.item a.added_to_cart{display:inline-block;margin-left:14px;font-size:14px;border-bottom:1px solid}
.tag{display:inline-block;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-left:10px;vertical-align:2px}

.split{display:grid;grid-template-columns:1.05fr 1fr;gap:96px;align-items:center}
.split .ph{aspect-ratio:1/1;overflow:hidden;border-radius:2px}
.split .ph img{width:100%;height:100%;object-fit:cover}
.split p.l,.lab p.l{color:var(--muted);font-size:17px;margin:22px 0 36px;max-width:460px}
.specs{list-style:none;border-top:1px solid var(--line)}
.specs li{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);font-size:15px}
.specs li span:first-child{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding-top:3px}

.lab{background:var(--soft)}
.lab .wrap{display:grid;grid-template-columns:1fr 1fr;gap:96px;align-items:center}
.coa{background:#fff;border:1px solid var(--line);padding:36px 40px}
.coa .hd{display:flex;justify-content:space-between;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--line)}
.coa .hd .logo{width:84px;color:var(--ink)}
.coa .pass{font-family:var(--mono);font-size:11px;letter-spacing:.12em;color:var(--ok)}
.coa .big{font-size:84px;font-weight:400;letter-spacing:-.05em;line-height:1;margin:34px 0 6px}
.coa .big small{font-size:30px;letter-spacing:-.02em;color:var(--muted)}
.coa .cap{font-size:14px;color:var(--muted);margin-bottom:26px}
.coa dl{display:grid;grid-template-columns:1fr auto;border-top:1px solid var(--line)}
.coa dt,.coa dd{padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}
.coa dt{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding-top:15px}
.coa dd{text-align:right}

.faq{max-width:880px}
.faq details{border-bottom:1px solid var(--line)}
.faq details:first-of-type{border-top:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 0;font-size:19px;font-weight:500;letter-spacing:-.01em}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";font-weight:300;font-size:26px;line-height:1;transition:transform .3s}
.faq details[open] summary:after{transform:rotate(45deg)}
.faq details p{color:var(--muted);padding:0 0 26px;max-width:680px}

/* obične stranice */
.page-head{padding:96px 0 48px;border-bottom:1px solid var(--line)}
.page-head h1{font-size:clamp(44px,5vw,72px);margin:0}
.entry{padding:64px 0 120px}
.entry-content{max-width:760px;font-size:17px;color:#2B353B}
.entry-content>*+*{margin-top:1.1em}
.entry-content h2{font-size:30px;margin-top:2em;color:var(--ink)}
.entry-content h3{font-size:21px;font-weight:500;margin-top:1.6em;color:var(--ink)}
.entry-content ul,.entry-content ol{padding-left:1.2em}
.entry-content a{border-bottom:1px solid}

/* footer */
.site-footer{border-top:1px solid var(--line);padding:80px 0 36px;font-size:14px;color:var(--muted)}
.fgrid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:40px}
.fgrid .logo{width:120px;color:var(--ink);margin-bottom:18px}
.site-footer h4{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:400;color:var(--ink);margin-bottom:14px}
.site-footer ul{list-style:none;display:grid;gap:9px}
.site-footer ul a:hover{color:var(--ink)}
.disc{margin-top:64px;padding-top:24px;border-top:1px solid var(--line);font-size:12.5px;display:flex;justify-content:space-between;gap:24px}

/* animacije */
.rv{opacity:0;transform:translateY(28px);transition:opacity 1s cubic-bezier(.2,.7,.2,1) var(--d,0ms),transform 1s cubic-bezier(.2,.7,.2,1) var(--d,0ms)}
.rv.in{opacity:1;transform:none}
.hero .copy>*{animation:up 1.1s cubic-bezier(.2,.7,.2,1) both}
.hero .copy>*:nth-child(2){animation-delay:.1s}.hero .copy>*:nth-child(3){animation-delay:.2s}.hero .copy>*:nth-child(4){animation-delay:.3s}
@keyframes up{from{opacity:0;transform:translateY(24px)}}
@media (prefers-reduced-motion:reduce){.rv,.hero .copy>*{opacity:1;transform:none;animation:none;transition:none}.hero .bg{animation:none}}

/* ---------- WooCommerce ---------- */
.woo-main{padding:56px 0 120px}
.woocommerce-breadcrumb{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:28px}
.woocommerce-breadcrumb a{color:var(--muted)}
.woocommerce-products-header__title{font-size:clamp(40px,4.4vw,64px);font-weight:500;letter-spacing:-.04em;line-height:1;margin-bottom:12px}
.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{font-size:14px;color:var(--muted);margin-bottom:36px}
.woocommerce .woocommerce-ordering select{font:inherit;font-size:16px;border:1px solid var(--line);border-radius:4px;padding:8px 12px;background:#fff}

/* shop petlja u istom stilu kao naslovnica */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,1fr);gap:56px 28px;margin:0}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;padding:0}
.woocommerce ul.products li.product a img{aspect-ratio:1/1;object-fit:cover;margin:0 0 20px;background:var(--soft);transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font:500 19px/1.3 var(--font);letter-spacing:-.015em;padding:0;color:var(--ink)}
.woocommerce ul.products li.product .price{color:var(--ink);font-size:17px;margin:4px 0 0}
.woocommerce ul.products li.product .button{height:auto;padding:0;background:none;color:var(--ink);font-size:14px;margin-top:14px;opacity:.6}
.woocommerce ul.products li.product .button:hover{background:none;opacity:1}
.woocommerce ul.products li.product .onsale,.woocommerce span.onsale{display:none}

/* single */
.woocommerce div.product{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;align-items:start}
.woocommerce div.product div.images,.woocommerce div.product div.summary{width:auto!important;float:none!important;margin:0!important}
.woocommerce div.product div.images img{background:var(--soft)}
.woocommerce div.product .product_title{font-size:clamp(36px,3.6vw,52px);font-weight:500;letter-spacing:-.04em;line-height:1.02;margin-bottom:14px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-size:24px;margin-bottom:22px}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--muted);font-size:17px;margin-bottom:28px}
.woocommerce div.product form.cart{display:flex;gap:12px;align-items:stretch;margin-bottom:28px}
.woocommerce div.product form.cart div.quantity{margin:0}
.woocommerce .quantity .qty{width:84px;height:54px;border:1px solid var(--line);border-radius:4px;font:16px var(--font);text-align:center}
.woocommerce div.product form.cart .button{flex:1}
.alluvi-spec{list-style:none;border-top:1px solid var(--line);margin:8px 0 26px}
.alluvi-spec li{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px}
.alluvi-spec li span:first-child{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding-top:3px}
.alluvi-note{font-size:13px;color:var(--muted)}
.woocommerce div.product .product_meta{display:none}
.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:40px 0 0;border-bottom:1px solid var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs:before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;border-radius:0;margin:0 28px 0 0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li:before,.woocommerce div.product .woocommerce-tabs ul.tabs li:after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:14px 0;font-weight:500;color:var(--muted)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ink);box-shadow:inset 0 -2px 0 var(--ink)}
.woocommerce div.product .woocommerce-tabs .panel{padding:32px 0;max-width:760px;color:#2B353B}
.woocommerce div.product .woocommerce-tabs .panel h2{display:none}
.woocommerce table.shop_attributes{border:0}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{background:none!important;border-bottom:1px solid var(--line);padding:12px 0;font-style:normal}
.woocommerce table.shop_attributes th{font:400 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);text-align:left;width:200px}
.related>h2,.upsells>h2{font-size:32px!important;margin:64px 0 32px}

/* poruke */
.woocommerce-message,.woocommerce-info,.woocommerce-error{border:1px solid var(--line);border-left:3px solid var(--ink);background:var(--soft);color:var(--ink);font-size:15px;border-radius:2px}
.woocommerce-message:before,.woocommerce-info:before{color:var(--ink)}
.woocommerce-message .button,.woocommerce-info .button{height:40px!important;padding:0 18px!important}

/* forme: 16px da iOS Safari ne zumira */
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.select2-container .select2-selection--single,.woocommerce-cart table.cart td.actions .coupon .input-text{font:16px var(--font);border:1px solid var(--line);border-radius:4px;padding:13px 14px;background:#fff;height:auto;line-height:1.4}
.select2-container .select2-selection--single{height:50px;display:flex;align-items:center}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:48px}
.woocommerce form .form-row label{font-size:13px;color:var(--muted);margin-bottom:4px}
.woocommerce form .form-row{margin:0 0 14px}

/* košarica i checkout */
.woocommerce table.shop_table{border:0;border-collapse:collapse;border-radius:0;margin:0 0 32px}
.woocommerce table.shop_table th{font:400 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:14px 12px 14px 0}
.woocommerce table.shop_table td{border-top:1px solid var(--line);padding:20px 12px 20px 0}
.woocommerce table.shop_table img{width:84px!important;background:var(--soft)}
.woocommerce a.remove{color:var(--muted)!important;font-weight:300}
.woocommerce a.remove:hover{background:none;color:var(--ink)!important}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout-review-order{background:var(--soft);padding:32px}
.woocommerce .cart-collaterals .cart_totals h2,#order_review_heading,.woocommerce-billing-fields h3,.woocommerce-additional-fields h3{font-size:24px;font-weight:500;letter-spacing:-.02em;margin-bottom:18px}
.woocommerce .cart-collaterals .cart_totals table.shop_table td,.woocommerce .cart-collaterals .cart_totals table.shop_table th{border-top:1px solid var(--line)}
.woocommerce-checkout #payment{background:none;border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--line);padding:0 0 16px}
.woocommerce-checkout #payment div.payment_box{background:#fff;color:var(--muted);font-size:14px}
.woocommerce-checkout #payment div.payment_box:before{border-bottom-color:#fff}
.woocommerce-checkout #payment div.form-row{padding:16px 0 0}
#place_order{width:100%}

/* checkout u dva stupca: podaci lijevo, narudžba desno */
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:1.25fr 1fr;grid-template-rows:auto 1fr;gap:0 72px;align-items:start}
.woocommerce-checkout form.checkout>.woocommerce-NoticeGroup{grid-column:1/-1}
.woocommerce-checkout #customer_details{grid-column:1;grid-row:1/span 2;width:auto}
.woocommerce-checkout #customer_details .col-1,.woocommerce-checkout #customer_details .col-2{float:none;width:100%}
.woocommerce-checkout #customer_details .col-2{margin-top:24px}
.woocommerce-checkout #order_review_heading{grid-column:2;margin-top:0}
.woocommerce-checkout #order_review{grid-column:2;position:sticky;top:100px}
#ship-to-different-address{font-size:16px;font-weight:500;margin-bottom:14px}
#ship-to-different-address label{display:flex;gap:10px;align-items:center;cursor:pointer}
.woocommerce form .form-row textarea,.woocommerce-checkout form .form-row textarea{min-height:110px;border:1px solid var(--line)}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus{outline:none;border-color:var(--ink)}

/* košarica: kupon i gumbi */
.woocommerce-cart table.cart td.actions .coupon{display:flex;gap:10px}
.woocommerce-cart table.cart td.actions .coupon .input-text{width:220px!important;margin:0!important}
.woocommerce-cart table.cart td.actions{padding-top:24px}
.woocommerce .cart .button[name=update_cart]{background:#fff;color:var(--ink);border:1px solid var(--line)}
.woocommerce .cart .button[name=update_cart]:hover{background:var(--soft);color:var(--ink)}
.woocommerce .cart button.button[name=update_cart]:disabled[disabled]{background:#fff;color:var(--ink);border:1px solid var(--line);opacity:.45}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{width:100%;font-size:15px;margin-bottom:0}
.woocommerce-notices-wrapper :focus,.woocommerce-message:focus{outline:none}

@media (max-width:1100px){
  .split,.lab .wrap{gap:56px}
  .grid,.woocommerce ul.products{gap:44px 20px}
  .woocommerce div.product{gap:48px}
}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:760px){
  .wrap{padding:0 16px}
  .nav{grid-template-columns:auto 1fr;height:62px}
  .nav>nav,.nav .tools .hide-m{display:none}
  .nav .tools{justify-self:end}
  .nav .logo{width:92px;grid-row:1;grid-column:1}
  .nav .tools{grid-column:2;gap:18px}
  .menu-toggle{display:block}
  .mobile-menu.open{display:block;border-top:1px solid var(--line);padding:8px 16px 18px}
  .mobile-menu ul{list-style:none}
  .mobile-menu a{display:block;padding:12px 0;font-size:17px;border-bottom:1px solid var(--line)}
  .hero{display:block;height:auto;background:var(--bg)}
  .hero .bg{position:relative;height:380px;object-position:76% 50%}
  .hero:before{display:none}
  .hero .wrap{padding-top:30px;padding-bottom:26px}
  h1{font-size:50px;margin:16px 0 18px}
  .lead{font-size:16px}
  .cta{margin-top:28px;gap:22px}
  .btn{height:50px;padding:0 24px}
  .sec{padding:72px 0}
  .sh{flex-direction:column;align-items:flex-start;margin-bottom:30px}
  .grid,.woocommerce ul.products{grid-template-columns:1fr 1fr;gap:34px 12px}
  .item .row{flex-direction:column;gap:2px;margin-top:12px}
  .item h3,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px}
  .item .price{font-size:15px}
  .item p{font-size:12.5px}
  .item .add{opacity:1;font-size:13px;margin-top:10px}
  .tag{display:block;margin:4px 0 0}
  .split,.lab .wrap{grid-template-columns:1fr;gap:36px}
  .coa{padding:24px}
  .coa .big{font-size:64px}
  .faq summary{font-size:16px;padding:20px 0}
  .fgrid{grid-template-columns:1fr 1fr;gap:28px}
  .fgrid>div:first-child{grid-column:1/-1}
  .disc{flex-direction:column}
  .page-head{padding:56px 0 28px}
  .entry{padding:40px 0 72px}
  .woo-main{padding:28px 0 72px}
  .woocommerce div.product{grid-template-columns:1fr;gap:28px}
  .woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout-review-order{padding:20px}
  .woocommerce-checkout form.checkout{grid-template-columns:1fr}
  .woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{grid-column:1;grid-row:auto;position:static}
  .woocommerce-checkout #order_review_heading{margin-top:28px}
  .woocommerce-cart table.cart td.actions .coupon{flex-direction:column}
  .woocommerce-cart table.cart td.actions .coupon .input-text{width:100%!important}
  .woocommerce table.shop_table_responsive tr td{padding:12px 0}
}
