/*
Theme Name: Merjema Shop
Theme URI: https://wordpress.org/
Author: Custom storefront
Description: Originalna WooCommerce tema za nebrendiranu robu; inspirisana funkcionalnošću modernih bh. webshopova, bez kopiranja tuđeg identiteta.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: merjema-shop
*/
:root{--ink:#142337;--muted:#637083;--orange:#e4552c;--orange-dark:#bd411e;--cream:#fff8f2;--line:#e6eaf0;--soft:#f3f6fa;--white:#fff;--radius:16px;--max:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.58;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit}button{cursor:pointer}.container{width:min(calc(100% - 40px),var(--max));margin:0 auto}.skip-link{position:absolute;top:-100px;left:20px;background:#fff;z-index:9999;padding:10px}.skip-link:focus{top:10px}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #f4aa80;outline-offset:3px}.topbar{background:#102033;color:#dfe7f1;font-size:13px}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 0}.topbar .topbar-right{display:flex;gap:20px}.topbar a:hover{color:white}.mainhead{background:#fff;border-bottom:1px solid var(--line)}.mainhead-inner{display:grid;grid-template-columns:215px minmax(200px,1fr) auto;align-items:center;gap:32px;padding:21px 0}.brand{display:flex;align-items:center;gap:11px;font-size:25px;font-weight:800;letter-spacing:-1.2px;white-space:nowrap}.brand-mark{width:44px;height:44px;border-radius:13px;background:#142337;color:#fff;display:grid;place-items:center;font-size:19px;font-weight:800;letter-spacing:-1px}.brand em{font-style:normal;color:var(--orange)}.site-search form{display:flex;border:1px solid #dce3eb;border-radius:12px;overflow:hidden;height:48px;background:#fff}.site-search input{flex:1;min-width:0;padding:0 17px;border:0;outline:none}.site-search button{background:var(--orange);color:#fff;border:0;padding:0 20px;font-weight:750}.head-actions{display:flex;align-items:center;gap:11px}.head-action{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;font-size:14px;font-weight:700}.cart-count{display:inline-grid;place-items:center;background:var(--orange);border-radius:99px;color:#fff;font-size:12px;width:22px;height:22px}.navshell{background:#fff;border-bottom:1px solid var(--line)}.nav-inner{display:flex;align-items:center;justify-content:space-between;min-height:52px}.main-nav ul{margin:0;padding:0;display:flex;gap:30px;list-style:none;align-items:center}.main-nav a{font-size:14px;font-weight:750;display:block;padding:14px 0}.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--orange)}.small-note{font-size:13px;color:#637083}.mobile-toggle{display:none;border:0;background:#fff;padding:10px;font-size:26px}.hero{padding:34px 0 18px}.hero-grid{display:grid;grid-template-columns:1.6fr .8fr;gap:20px}.hero-main{min-height:364px;border-radius:22px;background:linear-gradient(110deg,#132a45 0%,#213e5c 65%,#325b73 100%);color:white;overflow:hidden;display:grid;grid-template-columns:1fr 35%;align-items:center;padding:47px 46px;position:relative}.hero-main:after{content:'';position:absolute;border:1px solid rgba(255,255,255,.11);border-radius:50%;width:440px;height:440px;right:-170px;top:-180px}.hero-copy{position:relative;z-index:1}.eyebrow{display:inline-block;letter-spacing:.12em;text-transform:uppercase;font-size:11px;font-weight:850;color:#f7bd9a;margin:0 0 12px}.hero h1{font-size:clamp(31px,3.5vw,48px);letter-spacing:-1.7px;line-height:1.1;margin:0 0 17px;max-width:550px}.hero p{color:#dae5ee;max-width:480px;margin:0 0 27px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;background:var(--orange);color:white;font-size:14px;font-weight:800;padding:14px 23px;transition:background .2s}.btn:hover{background:var(--orange-dark);color:white}.btn-light{background:white;color:var(--ink)}.btn-light:hover{background:#f2eee9;color:var(--ink)}.hero-art{position:relative;height:260px;z-index:1;display:grid;place-items:center}.hero-art .orb{border-radius:50%;height:220px;width:220px;background:radial-gradient(circle at 30% 20%,#ffbb82,#e66b35 50%,#b73a1d 100%);box-shadow:0 30px 55px rgba(0,0,0,.25);display:grid;place-items:center;font-size:83px;transform:rotate(-10deg)}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:20px}.side-panel{border-radius:22px;padding:28px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.side-panel h2{font-size:26px;letter-spacing:-.8px;line-height:1.12;margin:8px 0}.side-panel p{font-size:13px;margin:0 0 12px;max-width:230px}.side-panel a{text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:800}.side-warm{background:#fff0e4}.side-sky{background:#eaf3fc}.side-panel .decor{font-size:73px;position:absolute;right:10px;bottom:3px;opacity:.8;transform:rotate(-14deg)}.promises{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px auto 55px}.promise{border:1px solid var(--line);border-radius:13px;padding:20px;display:flex;align-items:center;gap:15px}.promise-symbol{height:44px;width:44px;display:grid;place-items:center;border-radius:11px;background:#fff2eb;font-size:23px}.promise strong{display:block;font-size:14px}.promise span{display:block;font-size:12px;color:var(--muted)}.section{margin:0 auto 61px}.section-header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:23px}.section-title{font-size:29px;letter-spacing:-.8px;margin:0 0 4px}.section-sub{margin:0;color:var(--muted);font-size:14px}.text-link{font-size:14px;font-weight:800;color:var(--orange)}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.category-tile{background:#f7f9fb;border:1px solid #edf0f3;border-radius:16px;padding:22px 10px;text-align:center;transition:transform .2s,border-color .2s}.category-tile:hover{transform:translateY(-4px);border-color:#ffc4a9}.category-icon{font-size:39px;display:block;margin:0 auto 10px}.category-name{font-size:14px;font-weight:800;display:block}.category-small{font-size:12px;color:var(--muted);display:block}.feature-strip{background:#102238;color:#fff;border-radius:19px;padding:32px 36px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:64px}.feature-strip h2{font-size:28px;letter-spacing:-1px;margin:0 0 5px}.feature-strip p{margin:0;color:#c4d2df;font-size:14px}.empty-products{border:1px dashed #c7d0da;background:#f9fafc;border-radius:17px;padding:45px;text-align:center}.empty-products h3{margin:0 0 7px}.empty-products p{margin:0;color:var(--muted)}.site-main{padding:40px 0 65px;min-height:45vh}.page-title{font-size:36px;letter-spacing:-1px;line-height:1.2;margin:0 0 22px}.page-content{max-width:850px}.page-content h2,.page-content h3{margin-top:30px}.page-content a{color:var(--orange);text-decoration:underline}.page-content table{max-width:100%;display:block;overflow:auto}.page-content input,.page-content textarea{max-width:100%}.footer{background:#101e2f;color:#e9eff5;padding:58px 0 26px}.footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:40px;padding-bottom:43px}.footer .brand{font-size:23px;color:#fff}.footer h3{font-size:14px;margin:0 0 16px}.footer p,.footer a,.footer li{color:#c1cbd6;font-size:13px}.footer a:hover{color:#fff}.footer ul{margin:0;padding:0;list-style:none}.footer li{margin:9px 0}.footer-bottom{border-top:1px solid #314053;padding-top:20px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:12px;color:#b8c5d2}.notice-status{border:1px solid #f0dbc0;background:#fff8f1;border-radius:12px;padding:16px;margin-top:20px;color:#74502f;font-size:13px}.woocommerce .products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;clear:both}.woocommerce ul.products::before,.woocommerce ul.products::after{content:none!important}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto!important;margin:0!important;float:none!important;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:15px;padding:12px!important;background:#fff;transition:box-shadow .2s}.woocommerce ul.products li.product:hover{box-shadow:0 13px 34px rgba(12,32,51,.08)}.woocommerce ul.products li.product img{height:205px;width:100%;object-fit:contain;background:#f6f8fb;border-radius:9px;margin:0 0 13px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;font-weight:800;line-height:1.4;color:var(--ink);padding:0 5px!important;min-height:62px}.woocommerce ul.products li.product .price{color:#cf4b27!important;font-size:19px!important;font-weight:800!important;margin:5px 5px 12px!important}.woocommerce ul.products li.product .button,.woocommerce div.product form.cart .button,.woocommerce .button,.woocommerce button.button{background:var(--orange)!important;color:white!important;border-radius:9px!important;padding:12px 16px!important;font-size:13px!important;font-weight:800!important;display:inline-flex!important;justify-content:center!important;margin:0 5px 6px!important}.woocommerce ul.products li.product .onsale,.woocommerce span.onsale{background:var(--orange)!important}.woocommerce .woocommerce-breadcrumb{font-size:13px;color:var(--muted)}.woocommerce .woocommerce-breadcrumb a{color:var(--ink)}.woocommerce .quantity .qty{min-height:40px;border:1px solid #d8dfe8;border-radius:7px}.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{border-top-color:var(--orange)}.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--orange)!important}.woocommerce table.shop_table{border-radius:12px}.woocommerce input.input-text,.woocommerce select,.woocommerce textarea{padding:10px;border:1px solid #d7dee7;border-radius:7px}.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{max-width:100%}.pagination .page-numbers{padding:9px 12px;border-radius:6px}.search-results article{border-bottom:1px solid var(--line);padding:17px 0}
@media(max-width:1050px){.mainhead-inner{grid-template-columns:200px 1fr auto;gap:16px}.hero-main{padding:32px}.hero-art .orb{height:165px;width:165px;font-size:60px}.category-grid{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}.woocommerce .products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.container{width:min(calc(100% - 26px),var(--max))}.topbar-inner{justify-content:center;text-align:center}.topbar .topbar-right{display:none}.mainhead-inner{grid-template-columns:1fr auto;gap:12px;padding:13px 0}.brand{font-size:22px}.brand-mark{height:38px;width:38px}.site-search{grid-column:1/-1;grid-row:2}.head-actions .head-action:first-child{display:none}.head-action{padding:8px}.mobile-toggle{display:block}.small-note{display:none}.main-nav{display:none;position:absolute;z-index:100;left:0;right:0;top:100%;background:#fff;box-shadow:0 13px 20px #152c3c26}.navshell{position:relative}.main-nav.is-open{display:block}.main-nav ul{display:block;padding:10px 20px}.main-nav a{padding:12px 0}.nav-inner{min-height:44px}.hero{padding-top:18px}.hero-grid{grid-template-columns:1fr}.hero-main{min-height:340px;grid-template-columns:1fr;padding:34px 26px}.hero-art{position:absolute;right:0;bottom:0;height:135px;width:145px;opacity:.3}.hero-art .orb{height:170px;width:170px}.hero h1{font-size:36px;max-width:370px}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:1fr;gap:12px}.side-panel{padding:18px;min-height:150px}.side-panel h2{font-size:19px}.side-panel .decor{font-size:40px}.side-panel p{display:none}.promises{grid-template-columns:1fr;gap:8px;margin:14px auto 40px}.promise{padding:12px}.category-grid{grid-template-columns:repeat(3,1fr);gap:8px}.category-tile{padding:14px 5px}.category-icon{font-size:29px}.category-name{font-size:12px}.category-small{font-size:11px}.section{margin-bottom:42px}.section-title{font-size:24px}.feature-strip{padding:25px;align-items:start;flex-direction:column}.feature-strip h2{font-size:24px}.woocommerce .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.woocommerce ul.products li.product{padding:8px!important}.woocommerce ul.products li.product img{height:140px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;min-height:58px}.footer-grid{gap:22px}.site-main{padding-top:25px}.page-title{font-size:29px}}
@media(max-width:390px){.category-grid{grid-template-columns:repeat(2,1fr)}.hero-side{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.woocommerce .products{grid-template-columns:1fr 1fr}}




/* Merjema Shop v1.1.0: robust two-column WooCommerce product page.
   Do not lay out the whole WooCommerce product as flex; the extended blocks
   (tabs and related items) must sit below the image/summary grid. */
body.single-product .woocommerce div.product.mg-product {
  display:block !important;
  width:100%;
  max-width:100%;
  clear:both;
}
body.single-product .woocommerce .mg-product-layout {
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:42px;
  align-items:start;
  width:100%;
  margin:0 0 32px;
}
body.single-product .mg-product-media,
body.single-product .mg-product-info {min-width:0;width:100%;}
body.single-product .woocommerce div.product .mg-product-media div.images,
body.single-product .woocommerce div.product .mg-product-info div.summary,
body.single-product .woocommerce-page div.product .mg-product-media div.images,
body.single-product .woocommerce-page div.product .mg-product-info div.summary {
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}
body.single-product .woocommerce div.product .mg-product-media div.images {
  background:#f7f8fa;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}
body.single-product .woocommerce div.product .mg-product-media .woocommerce-product-gallery__wrapper {
  margin:0;
}
body.single-product .mg-product-media img {
  display:block;
  width:100%!important;
  max-width:410px!important;
  max-height:345px;
  height:auto!important;
  object-fit:contain;
  margin:auto!important;
  border-radius:10px;
}
body.single-product .mg-product-info .product_title {
  margin:0 0 16px;
  font-size:clamp(24px,3vw,35px);
  line-height:1.22;
  letter-spacing:-.6px;
}
body.single-product .mg-product-info .price {
  font-size:27px!important;
  line-height:1.3;
  font-weight:800!important;
  color:#cf4b27!important;
  margin:4px 0 18px!important;
}
body.single-product .mg-product-info .woocommerce-product-details__short-description {
  color:#526173;
  line-height:1.6;
  margin:12px 0 20px;
}
body.single-product .mg-product-info form.cart {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:18px 0!important;
}
body.single-product .mg-product-info form.cart .quantity,
body.single-product .mg-product-info form.cart .single_add_to_cart_button {
  float:none!important;
  margin:0!important;
}
body.single-product .mg-product-info form.cart .quantity input.qty {
  width:72px;min-height:46px;
}
body.single-product .mg-product-info form.cart .single_add_to_cart_button {
  min-height:46px;
  padding:13px 26px!important;
}
body.single-product .mg-product-info .product_meta {
  display:block;
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid var(--line);
  font-size:13px;
  color:#677587;
}
body.single-product .mg-product-extended {display:block;clear:both;width:100%}
body.single-product .mg-product-extended .woocommerce-tabs,
body.single-product .mg-product-extended .related,
body.single-product .mg-product-extended .upsells {
  display:block!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  clear:both!important;
  margin:28px 0 35px;
}
body.single-product .woocommerce-tabs ul.tabs,
body.single-product .woocommerce-tabs ul.tabs li {
  list-style:none;
}
body.single-product .woocommerce-tabs ul.tabs {
  padding:0;
  display:flex;
  gap:18px;
  border-bottom:1px solid var(--line);
}
body.single-product .woocommerce-tabs ul.tabs li {margin:0;padding:10px 5px}
body.single-product .woocommerce-tabs ul.tabs li.active {border-bottom:2px solid var(--orange)}
body.single-product .woocommerce-tabs .panel {padding:10px 0 0}
body.single-product .mg-product-extended .related > h2,
body.single-product .mg-product-extended .upsells > h2 {
  font-size:25px;letter-spacing:-.5px;margin:0 0 22px;
}
body.single-product .mg-product-extended ul.products,
body.single-product .mg-product-extended .products {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  padding:0!important;
  margin:0!important;
  list-style:none!important;
  width:100%;
}
body.single-product .mg-product-extended ul.products::before,
body.single-product .mg-product-extended ul.products::after {content:none!important}
body.single-product .mg-product-extended ul.products li.product {
  float:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:12px!important;
  display:flex!important;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:13px;
}
body.single-product .mg-product-extended ul.products li.product a {min-width:0;overflow-wrap:anywhere}
body.single-product .mg-product-extended ul.products li.product img {
  display:block;width:100%!important;height:168px!important;
  max-width:100%!important;object-fit:contain;
}
body.single-product .mg-product-extended ul.products li.product .button {
  white-space:normal;
  min-width:0;
  margin-top:auto!important;
}
/* Keep the promotional hero compact on the homepage. */
.hero-main{min-height:250px;padding:30px 34px}
.hero-art{height:175px}
.hero-art .orb{height:145px;width:145px;font-size:55px}
@media(max-width:950px){
  body.single-product .woocommerce .mg-product-layout{gap:24px}
  body.single-product .mg-product-extended ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  body.single-product .woocommerce .mg-product-layout{grid-template-columns:minmax(0,1fr)!important;gap:22px}
  body.single-product .mg-product-media img{max-height:280px}
  body.single-product .mg-product-extended ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.single-product .mg-product-extended ul.products li.product img{height:126px!important}
  .hero-main{padding:24px 22px;min-height:auto}
}
