/* =========================================================================
   EPSiLON Verlag – Pop-Art / Comic Template (epsilon_comic) 1.0.6
   ========================================================================= */

/* ---------- Local web fonts (SIL OFL 1.1, see ../fonts/OFL.txt) – no external requests ---------- */
@font-face{font-family:"Bangers";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/bangers-latin-ext-400-normal.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bangers";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/bangers-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Anton";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/anton-latin-ext-400-normal.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Anton";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/anton-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --red:#E23B2E; --red-dark:#B32A20;
  --blue:#2C7CB0; --blue-dark:#1E5E86; --blue-deep:#173A52;
  --yellow:#F6C21C; --yellow-2:#F2A81C;
  --paper:#F3EAD5; --paper-2:#EDE2C8; --panel:#FFFDF6;
  --ink:#141210; --line:#141210;
  --muted:#6b6355;
  --outline:3px solid var(--ink);
  --shadow:4px 4px 0 var(--ink);
  --shadow-sm:3px 3px 0 var(--ink);
  --comic:"Bangers",system-ui,cursive;
  --head:"Anton",Impact,system-ui,sans-serif;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --sitewidth:1200px;
  --accent:var(--red);
}
[data-accent="blue"]{--accent:var(--blue)}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55;
  background-color:var(--paper);
  background-image:radial-gradient(var(--paper-2) 1.4px, transparent 1.6px);
  background-size:12px 12px;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue-dark);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--head);font-weight:400;line-height:1.05;letter-spacing:.01em;color:var(--ink);text-transform:uppercase}
.ec-wrap{max-width:var(--ec-sitewidth,var(--sitewidth));margin:0 auto;padding:0 18px;width:100%}

.ec-skip{position:absolute;left:-9999px;top:0;background:var(--yellow);color:var(--ink);padding:8px 14px;z-index:1000;font-weight:800;border:var(--outline)}
.ec-skip:focus{left:8px;top:8px}

/* Screen-reader-only text: own class and the Joomla core class "visually-hidden" (no Bootstrap in this template).
   Exception: text inside the password toggle of mod_login (without an icon font the button would be empty). */
.ec-sr-only,.ec-site .visually-hidden:not(.input-password-toggle *){position:absolute !important;width:1px !important;height:1px !important;
  padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important}

/* ---------- Buttons ---------- */
.ec-btn,input.addtocart-button,.ec-panel-body .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--head);
  text-transform:uppercase;letter-spacing:.03em;font-size:15px;padding:10px 18px;cursor:pointer;
  background:var(--yellow);color:var(--ink);border:var(--outline);box-shadow:var(--shadow-sm);
  text-decoration:none;transition:transform .05s ease}
.ec-btn:hover,input.addtocart-button:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--ink);text-decoration:none}
.ec-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.ec-btn-red{background:var(--red);color:#fff}
.ec-btn-blue{background:var(--blue);color:#fff}
.ec-btn:focus-visible,input.addtocart-button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* ---------- Top bar ---------- */
.ec-topbar{background:var(--blue);color:#fff;font-size:13px;border-bottom:var(--outline)}
.ec-topbar a{color:#fff}
.ec-topbar-inner{display:flex;justify-content:space-between;align-items:center;min-height:34px;gap:14px;flex-wrap:wrap}
.ec-note{font-family:var(--head);text-transform:uppercase;letter-spacing:.03em;font-size:12.5px;color:var(--yellow)}
.ec-top-right{display:flex;gap:14px;align-items:center}

/* ---------- Header ---------- */
.ec-header{background:var(--red);border-bottom:var(--outline);position:relative}
.ec-header-inner{display:flex;align-items:center;gap:18px;padding:14px 18px 16px}
.ec-logo{flex:none;background:var(--panel);border:var(--outline);box-shadow:var(--shadow);
  padding:8px 16px;transform:skewX(-4deg)}
.ec-logo img{height:56px;width:auto;transform:skewX(4deg)}
.ec-header-tools{margin-left:auto;display:flex;align-items:center;gap:14px}
.ec-search form{margin:0}
.ec-search .search{margin:0}
.ec-search input[type=text],.ec-search input[type=search]{
  border:var(--outline);border-radius:0;padding:9px 14px;min-width:220px;font-family:var(--sans);
  font-size:14px;background:#fff;color:var(--ink);box-shadow:var(--shadow-sm)}
.ec-search button,.ec-search .btn{border:var(--outline);background:var(--yellow);box-shadow:var(--shadow-sm);padding:8px 12px}
.ec-cart{font-family:var(--head);text-transform:uppercase}
/* VirtueMart cart module in the header: summary + "show cart" only (product list stays in the DOM for update_cart.js) */
.ec-cart .vmCartModule{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 10px;color:var(--ink);
  font-size:15px;letter-spacing:.02em}
.ec-cart .vm_cart_products,.ec-cart .hiddencontainer,.ec-cart .payments-signin-button{display:none !important}
.ec-cart .total{float:none !important;order:2}
.ec-cart .total_products{order:1}
.ec-cart .show_cart{order:3}
.ec-cart .show_cart a{display:inline-block;background:var(--yellow);color:var(--ink);border:var(--outline);box-shadow:var(--shadow-sm);
  padding:4px 10px}
.ec-cart .show_cart a:hover{background:#fff}
.ec-cart .vmCartModule > div[style*="clear"]{display:none}

.ec-burger{display:none;flex-direction:column;gap:5px;background:var(--yellow);border:var(--outline);
  box-shadow:var(--shadow-sm);cursor:pointer;padding:8px}
.ec-burger span{width:22px;height:3px;background:var(--ink);display:block}

/* ---------- Menu ---------- */
.ec-menu{background:var(--red-dark);border-top:3px solid var(--ink)}
.ec-menu .ec-wrap{padding-top:0;padding-bottom:0}
.ec-menu ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.ec-menu ul.mod-menu__sub{display:none}
.ec-menu li{position:relative}
.ec-menu a,.ec-menu .nav-header,.ec-menu span.separator{
  display:flex;align-items:center;font-family:var(--head);text-transform:uppercase;letter-spacing:.04em;
  color:#fff;font-size:16px;padding:0 18px;height:46px;text-decoration:none}
.ec-menu a:hover,.ec-menu .current > a,.ec-menu .active > a{background:var(--yellow);color:var(--ink);text-decoration:none}
.ec-menu li:hover > ul.mod-menu__sub{display:block;position:absolute;top:46px;left:0;min-width:220px;
  background:#fff;border:var(--outline);box-shadow:var(--shadow);z-index:60}
.ec-menu ul.mod-menu__sub a{color:var(--ink);height:auto;padding:11px 16px;font-family:var(--sans);
  font-weight:700;text-transform:none;border-bottom:2px solid var(--ink);font-size:14px}
.ec-menu ul.mod-menu__sub a:hover{background:var(--yellow)}

/* ---------- Banner / hero ---------- */
.ec-banner{margin:18px 0;border:var(--outline);box-shadow:var(--shadow);overflow:hidden;
  background:var(--blue);color:#fff;position:relative}
.ec-banner::before{content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.18) 2px,transparent 2.5px);background-size:14px 14px;pointer-events:none}
.ec-banner img{width:100%;display:block}
.ec-banner .ec-bubble{font-family:var(--comic);font-size:34px;background:#fff;color:var(--ink);
  border:var(--outline);border-radius:40% 40% 40% 8px;padding:10px 20px;display:inline-block;box-shadow:var(--shadow-sm)}

/* ---------- Layout ---------- */
.ec-main{padding:6px 0 44px}
.ec-grid{display:grid;gap:22px;align-items:start;grid-template-columns:1fr}
.ec-grid.has-left.has-right{grid-template-columns:250px minmax(0,1fr) 250px}
.ec-grid.has-left:not(.has-right){grid-template-columns:250px minmax(0,1fr)}
.ec-grid.has-right:not(.has-left){grid-template-columns:minmax(0,1fr) 250px}
.ec-component{min-width:0}

/* ---------- Breadcrumbs (mod_breadcrumbs) ---------- */
.ec-breadcrumb ol.mod-breadcrumbs{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;align-items:center;
  font-size:14px;color:var(--muted)}
.ec-breadcrumb .mod-breadcrumbs__here{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;
  clip:rect(0,0,0,0) !important;white-space:nowrap !important;margin:-1px !important;padding:0 !important;border:0 !important}
.ec-breadcrumb .mod-breadcrumbs__item + .mod-breadcrumbs__item::before{content:"\203A";margin:0 .5em;color:var(--muted);font-weight:700}
.ec-breadcrumb a{color:var(--blue-dark);font-weight:600}
.ec-breadcrumb .active{color:var(--ink)}

/* ---------- Article info (com_content core layout) ---------- */
.ec-component dl.article-info{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0 0 14px;font-size:13px;color:var(--muted)}
.ec-component dl.article-info dt{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;
  clip:rect(0,0,0,0) !important;white-space:nowrap !important}
.ec-component dl.article-info dd{margin:0}
.ec-component .item-title a{color:var(--blue-dark)}

/* ---------- Comic panels (modules) ---------- */
.ec-panel{background:var(--panel);border:var(--outline);box-shadow:var(--shadow);margin-bottom:20px}
.ec-panel-title{margin:0;font-family:var(--head);text-transform:uppercase;letter-spacing:.03em;
  font-size:19px;color:#fff;background:var(--blue);border-bottom:var(--outline);padding:9px 14px}
.ec-side-left .ec-panel:nth-child(even) .ec-panel-title,
.ec-panel.ec-filter .ec-panel-title{background:var(--yellow-2);color:var(--ink)}
.ec-panel-body{padding:12px 14px;font-size:14.5px}
.ec-panel-body ul{margin:0;padding:0;list-style:none}
.ec-panel-body ul li{padding:6px 0;border-bottom:2px solid var(--paper-2)}
.ec-panel-body ul li:last-child{border-bottom:0}
.ec-panel-body a{color:var(--ink);font-weight:600}
.ec-panel-body a:hover{color:var(--red)}

/* ---------- Drop-down navigation (module layouts mod_virtuemart_category / mod_virtuemart_manufacturer "dropdown") ---------- */
.ec-selnav{margin:0}
.ec-selnav-row{display:flex;gap:6px;align-items:stretch}
.ec-selnav select{flex:1 1 auto;min-width:0;width:100%;min-height:42px;border:var(--outline);border-radius:0;background:#fff;
  color:var(--ink);font:inherit;font-size:14px;padding:6px 8px}
.ec-selnav .ec-btn{flex:none;padding:6px 10px;font-size:13px;min-height:42px}
.ec-selnav select:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* ---------- Login (mod_login in a sidebar) ---------- */
.ec-side .mod-login input[type=text],.ec-side .mod-login input[type=password]{width:100%;border:var(--outline);padding:6px 8px;
  font:inherit;background:#fff;box-sizing:border-box}
.ec-side .mod-login .btn,.ec-side .mod-login button[type=submit]{border:var(--outline);background:var(--yellow);box-shadow:var(--shadow-sm);
  padding:6px 12px;font-family:var(--head);text-transform:uppercase;cursor:pointer;color:var(--ink)}
.ec-side .mod-login .input-group{display:flex;gap:4px}
.ec-side .mod-login span.input-group-text{display:none}  /* icon wrapper only (empty without icon font) */
.ec-side .mod-login .input-password-toggle{border:var(--outline);background:var(--paper-2);padding:0 6px;font-size:12px;
  font-family:var(--sans);cursor:pointer;color:var(--ink)}
.ec-side .mod-login ul{margin:.5rem 0 0}
.ec-side .mod-login .form-check{display:flex;align-items:center;gap:6px}
.ec-side .mod-login__options li{border-bottom:0}

/* main content headline like the mockup */
.ec-component > .com-content,.ec-component .page-header h1,.ec-component h1{font-family:var(--comic);
  font-weight:400;letter-spacing:.02em}
.ec-component h1,.ec-component h2.ec-heading{font-family:var(--comic);font-size:40px;color:var(--ink)}

/* ---------- Footer ---------- */
.ec-footer{border-top:var(--outline);background:var(--paper-2);margin-top:10px;padding:18px 0 0}
.ec-footer-a{display:flex;gap:0;flex-wrap:wrap;align-items:stretch;margin-bottom:12px}
.ec-footer-a .ec-panel,.ec-footer-a .moduletable{flex:1;min-width:200px;margin:0}
.ec-footer-b{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:14px}
.ec-footer a{color:var(--ink);font-weight:600}
.ec-footer-strip{border-top:var(--outline);padding:14px 0;display:flex;justify-content:space-between;
  flex-wrap:wrap;gap:10px;font-size:13px;color:var(--muted);font-weight:600}

/* ---------- Offcanvas (panel above the scrim: the scrim follows the panel in the DOM) ---------- */
.ec-offcanvas{position:fixed;inset:0;z-index:1200;display:none}
.ec-offcanvas.is-open{display:block}
.ec-offcanvas-scrim{position:absolute;inset:0;z-index:0;background:rgba(20,17,14,.55)}
.ec-offcanvas-panel{position:absolute;z-index:1;top:0;bottom:0;left:0;width:84%;max-width:340px;background:var(--paper);
  border-right:var(--outline);display:flex;flex-direction:column;transform:translateX(-100%);transition:transform .22s ease}
.ec-offcanvas.is-open .ec-offcanvas-panel{transform:translateX(0)}
.ec-offcanvas-head{background:var(--red);border-bottom:var(--outline);display:flex;justify-content:space-between;align-items:center;padding:12px 14px}
.ec-offcanvas-head img{height:32px;background:#fff;border:var(--outline);padding:3px}
.ec-offcanvas-close{background:var(--yellow);border:var(--outline);color:var(--ink);font-size:20px;cursor:pointer;line-height:1;padding:2px 10px}
.ec-offcanvas-body{overflow-y:auto}
.ec-offcanvas-body ul{list-style:none;margin:0;padding:0}
.ec-offcanvas-body a{display:block;padding:13px 16px;border-bottom:2px solid var(--ink);font-family:var(--head);
  text-transform:uppercase;color:var(--ink)}
.ec-offcanvas-body a:hover{background:var(--yellow);text-decoration:none}

/* =========================================================================
   VirtueMart – even tile grid
   Shop / category / search / manufacturer filter (products-view), front page blocks (featured-, latest-, topten-,
   recent-, discontinued-view), category tiles (category-view) and manufacturer list (manufacturer-view-default).
   VirtueMart renders rows (.row) of n floated boxes (.vm-col-N / .floatleft.width33) and its CSS is loaded AFTER
   template.css. Therefore: selectors start with ".ec-site .ec-component" (higher specificity), the rows are
   dissolved (display:contents) and every tile becomes an item of ONE grid with equal column widths; grid rows
   stretch the tiles to equal height, fixed image frames and clamped texts keep the heights equal across rows.
   ========================================================================= */
.ec-site .ec-component{--ec-tile-min:200px;--ec-tile-gap:18px}
.ec-site .ec-component :is(.products-view,.featured-view,.discontinued-view,.latest-view,.topten-view,.recent-view,.category-view,.manufacturer-view-default){
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(var(--ec-tile-min),100%),1fr));gap:var(--ec-tile-gap);
  align-items:stretch}
.ec-site .ec-component :is(.products-view,.featured-view,.discontinued-view,.latest-view,.topten-view,.recent-view,.category-view,.manufacturer-view-default) > *{
  grid-column:1 / -1;min-width:0}
.ec-site .ec-component :is(.products-view,.featured-view,.discontinued-view,.latest-view,.topten-view,.recent-view,.category-view,.manufacturer-view-default) > .row{
  display:contents}
.ec-site .ec-component :is(.products-view,.featured-view,.discontinued-view,.latest-view,.topten-view,.recent-view,.category-view,.manufacturer-view-default) > :is(.horizontal-separator,.clear),
.ec-site .ec-component :is(.products-view,.featured-view,.discontinued-view,.latest-view,.topten-view,.recent-view,.category-view,.manufacturer-view-default) > .row > :is(.clear,br){
  display:none}
.ec-site .ec-component .row > :is(.product.vm-col,.category,.manufacturer){
  grid-column:auto;display:flex;width:auto;max-width:none;min-width:0;float:none;margin:0;padding:0;border:0;text-align:left}
.ec-site .ec-component :is(.products-view,.featured-view,.discontinued-view,.latest-view,.topten-view,.recent-view) > h4{
  margin:0;font-size:22px}

/* tile = comic panel */
.ec-site .ec-component .row > .product > .product-container,
.ec-site .ec-component .row > :is(.category,.manufacturer) > .spacer{
  display:flex;flex-direction:column;width:100%;min-width:0;margin:0;padding:0;background:var(--panel);border:var(--outline);
  box-shadow:var(--shadow);position:relative}

/* product image: fixed frame (4:3), whole cover visible */
.ec-site .ec-component .row > .product > .product-container > .vm-product-media-container{
  aspect-ratio:4 / 3;display:flex;align-items:center;justify-content:center;width:auto;max-width:none;float:none;margin:0;padding:10px;
  background:#fff;border-bottom:var(--outline);overflow:hidden}
.ec-site .ec-component .row > .product > .product-container > .vm-product-media-container a{
  display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.ec-site .ec-component .row > .product > .product-container > .vm-product-media-container img{
  width:100%;height:100%;max-width:100%;object-fit:contain;display:block;margin:0}

/* rating / stock line */
.ec-site .ec-component .row > .product > .product-container > .vm-product-rating-container{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 6px;min-height:30px;width:auto;float:none;margin:0;
  padding:4px 12px 0;overflow:hidden}
.ec-site .ec-component .row > .product > .product-container > .vm-product-rating-container .ratingbox{min-width:0;max-width:100%;overflow:hidden}

/* title (max. 2 lines) and short description (max. 2 lines); this block takes the free height → price/button at the bottom */
.ec-site .ec-component .row > .product > .product-container > [class^="vm-product-descr-container"]{
  flex:1 1 auto;display:flex;flex-direction:column;gap:4px;width:auto;float:none;margin:0;padding:6px 12px 6px;text-align:left}
.ec-site .ec-component .row > .product > .product-container h2{
  margin:0;font-family:var(--comic);font-size:19px;font-weight:400;line-height:1.15;letter-spacing:.01em;text-transform:none;text-align:left;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.3em;overflow-wrap:anywhere}
.ec-site .ec-component .row > .product > .product-container h2 a{color:var(--ink)}
.ec-site .ec-component .row > .product > .product-container h2 a:hover{color:var(--red)}
.ec-site .ec-component .row > .product > .product-container p.product_s_desc{
  height:auto;margin:0;padding:0;font-size:13.5px;line-height:1.4;color:var(--muted);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.8em}

/* price + add to cart + details: bottom aligned */
.ec-site .ec-component .row > .product > .product-container > [class^="vm3pr-"]{margin:0;padding:0 12px;min-height:0}
.ec-site .ec-component .row > .product > .product-container .product-price{float:none;text-align:left;min-height:0;margin:0}
.ec-site .ec-component .row > .product > .product-container div.PricesalesPrice,
.ec-site .ec-component .row > .product > .product-container div.PricebasePriceWithTax{margin:0}
.ec-site .ec-component .row > .product > .product-container .vm-prices-info{font-size:12px;line-height:1.35;color:var(--muted);margin:0 0 4px}
.ec-site .ec-component .row > .product > .product-container .addtocart-area{margin:0;padding:6px 0 10px;min-height:0}
.ec-site .ec-component .row > .product > .product-container form.product{margin:0;padding:0;border:0;box-shadow:none;background:none;display:block}
.ec-site .ec-component .row > .product > .product-container .addtocart-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0}
.ec-site .ec-component .row > .product > .product-container .quantity-box input{width:3.2em;height:34px;border:2px solid var(--ink);border-radius:0;
  text-align:center;font:inherit;font-size:14px;background:#fff;margin:0}
.ec-site .ec-component .row > .product > .product-container span.addtocart-button{flex:1 1 100%;display:block;margin:0}
.ec-site .ec-component .row > .product > .product-container input.addtocart-button{width:calc(100% - 3px);font-size:14px !important;white-space:normal}
.ec-site .ec-component .row > .product > .product-container > .vm-details-button{margin:0;padding:0;border-top:2px solid var(--paper-2);text-align:center}
.ec-site .ec-component .row > .product > .product-container > .vm-details-button a.product-details{display:block;width:auto;margin:0;padding:8px 12px;
  border:0;border-radius:0;box-shadow:none;background:none;font-family:var(--head);font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--blue-dark)}
.ec-site .ec-component .row > .product > .product-container > .vm-details-button a.product-details:hover{background:var(--yellow);color:var(--ink);text-decoration:none}

/* category tiles: <h2><a>name<br><img></a></h2> → image frame on top, name below */
.ec-site .ec-component .row > .category > .spacer h2{margin:0;height:100%;font-size:inherit;text-align:center}
.ec-site .ec-component .row > .category > .spacer h2 a{display:flex;flex-direction:column-reverse;justify-content:flex-end;align-items:stretch;
  height:100%;padding:0 10px 12px;color:var(--ink);font-family:var(--comic);font-size:18px;font-weight:400;line-height:1.15;
  letter-spacing:.01em;text-transform:none;overflow-wrap:anywhere}
.ec-site .ec-component .row > .category > .spacer h2 a:hover{color:var(--red);text-decoration:none}
.ec-site .ec-component .row > .category > .spacer h2 a br{display:none}
.ec-site .ec-component .row > .category > .spacer h2 a img{width:calc(100% + 20px);max-width:none;height:auto;aspect-ratio:4 / 3;object-fit:contain;
  margin:0 -10px 10px;padding:10px;background:#fff;border-bottom:var(--outline);box-sizing:border-box}

/* manufacturer tiles: <h2><a>name</a></h2><a><img></a> (placeholder images are hidden) */
.ec-site .ec-component .row > .manufacturer > .spacer{justify-content:center;min-height:64px}
.ec-site .ec-component .row > .manufacturer > .spacer h2{order:2;margin:0;padding:10px 12px;font-family:var(--comic);font-size:18px;font-weight:400;
  line-height:1.15;text-transform:none;text-align:center;overflow-wrap:anywhere}
.ec-site .ec-component .row > .manufacturer > .spacer h2 a{color:var(--ink)}
.ec-site .ec-component .row > .manufacturer > .spacer > a{order:1;display:block}
.ec-site .ec-component .row > .manufacturer > .spacer > a img{width:100%;height:auto;aspect-ratio:4 / 3;object-fit:contain;padding:10px;
  background:#fff;border-bottom:var(--outline);margin:0}
.ec-site .ec-component .row > .manufacturer > .spacer > a:has(img[src*="/typeless/noimage"]){display:none}

/* starburst price badge */
.PricesalesPrice,.PricebasePriceWithTax,.product_s_price .PricesalesPrice{
  font-family:var(--comic);font-size:20px;color:var(--ink);display:inline-block;
  background:var(--yellow);border:var(--outline);padding:8px 12px;margin:6px 12px;
  clip-path:polygon(50% 0,61% 12%,79% 6%,77% 25%,96% 30%,84% 45%,100% 55%,82% 62%,90% 82%,70% 78%,64% 98%,50% 84%,36% 98%,30% 78%,10% 82%,18% 62%,0 55%,16% 45%,4% 30%,23% 25%,21% 6%,39% 12%)}
.priceColor2,.product-price .price-taxinfo{font-size:11px;color:var(--muted);display:block;padding:0 12px 4px;font-weight:600}
.addtocart-bar,.addtocart-area{padding:8px 12px 12px;margin-top:auto}
span.addtocart-button{display:block}
input.addtocart-button{width:100%;background:var(--yellow) !important;color:var(--ink) !important;
  border:var(--outline) !important;box-shadow:var(--shadow-sm);font-family:var(--head) !important;
  text-transform:uppercase !important;font-size:14px !important;padding:10px !important;border-radius:0 !important}
input.addtocart-button:hover{background:var(--yellow-2) !important}
.availability,.product-availability{color:var(--blue-dark);font-weight:700;font-size:12px;padding:2px 12px}
/* NEU! corner burst: product CSS suffix product-new / featured */
.ec-site .ec-component .row > .product.product-new > .product-container::after,
.ec-site .ec-component .row > .product.featured > .product-container::after{content:"NEU!";position:absolute;top:6px;right:6px;
  font-family:var(--comic);font-size:18px;background:var(--red);color:#fff;border:var(--outline);
  padding:8px 10px;transform:rotate(8deg);
  clip-path:polygon(50% 0,63% 15%,82% 8%,78% 28%,100% 32%,86% 50%,100% 68%,78% 72%,82% 92%,63% 85%,50% 100%,37% 85%,18% 92%,22% 72%,0 68%,14% 50%,0 32%,22% 28%,18% 8%,37% 15%)}

/* product detail */
.productdetails-view h1,.product-name h1{font-family:var(--comic);font-size:38px}
.productdetails-view .product-price,.product-price-block{background:var(--panel);border:var(--outline);
  box-shadow:var(--shadow);padding:14px;margin:12px 0}
.productdetails-view .PricebasePriceWithTax,.productdetails-view .PricesalesPrice{font-size:30px}
/* VirtueMart print icon points to an image missing in Joomla 5 ("src=/") → text instead */
.ec-component a.printModal img[src="/"]{display:none}
.ec-component a.printModal:has(img[src="/"])::after{content:"Drucken";font-size:14px}

/* =========================================================================
   Error & offline
   ========================================================================= */
.ec-errorpage,.ec-offlinepage{display:grid;place-items:center;min-height:100vh;background:var(--paper);text-align:center}
.ec-error,.ec-offline{max-width:560px;padding:36px 24px;background:var(--panel);border:var(--outline);box-shadow:var(--shadow);margin:20px}
.ec-error-code{font-family:var(--comic);font-size:100px;color:var(--red);line-height:1}
.ec-offline-logo{height:66px;margin:0 auto 16px;border:var(--outline);background:#fff;padding:6px}

/* Price starburst only around the amount; the label ("Verkaufspreis") sits above it and is not clipped */
div.PricesalesPrice,.product-price div.PricesalesPrice,.product_s_price div.PricesalesPrice,
div.PricebasePriceWithTax,.product-price div.PricebasePriceWithTax{
  display:block;background:none;border:0;clip-path:none;padding:0;margin:6px 12px}
div.PricesalesPrice > .vm-price-desc,div.PricebasePriceWithTax > .vm-price-desc{
  display:block;font-family:var(--head);font-size:12px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink);line-height:1.2;margin:0 0 2px}
div.PricesalesPrice > span.PricesalesPrice,div.PricebasePriceWithTax > span.PricebasePriceWithTax{margin:4px 0 6px}

/* Mobile: no horizontal overflow from VirtueMart page navigation, cart table and wide article tables (desktop unchanged) */
@media (max-width:767px){
  .vm-pagination,.vm-pagination ul{max-width:100%}
  .vm-pagination ul{display:flex;flex-wrap:wrap;gap:4px;padding-left:0}
  .vm-pagination li{max-width:100%}
  .cart-view fieldset,fieldset.vm-fieldset-pricelist{min-width:0;max-width:100%}
  table.cart-summary{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .ec-component .com-content-article__body table,.ec-component .item-content table{display:block;max-width:100%;overflow-x:auto;
    -webkit-overflow-scrolling:touch}
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width:991px){
  .ec-grid.has-left.has-right,.ec-grid.has-left:not(.has-right),.ec-grid.has-right:not(.has-left){grid-template-columns:1fr}
  /* content first, then the sidebars */
  .ec-grid > .ec-component{order:1}
  .ec-grid > .ec-side-left{order:2}
  .ec-grid > .ec-side-right{order:3}
  .ec-burger{display:flex}
  .ec-menu{display:none}
  .ec-logo{margin:0 auto}
  .ec-header-inner{justify-content:space-between;flex-wrap:wrap}
  /* search and cart as their own row below logo/burger */
  .ec-header-tools{order:3;flex-basis:100%;margin-left:0;justify-content:space-between;gap:10px}
  .ec-header-tools .ec-search{display:block;flex:1 1 auto;min-width:0}
  .ec-search input[type=text],.ec-search input[type=search]{min-width:0;width:100%;box-sizing:border-box}
  .ec-cart .vmCartModule{font-size:13px}
}
@media (max-width:560px){
  body{font-size:15px}
  .ec-logo img{height:46px}
  .ec-header-tools{flex-wrap:wrap}
  .ec-header-tools .ec-search{flex-basis:100%}
  .ec-cart{flex-basis:100%}
  .ec-cart .vmCartModule{justify-content:center}
  .ec-site .ec-component{--ec-tile-min:140px;--ec-tile-gap:12px}
  .ec-site .ec-component .row > .product > .product-container h2{font-size:16px}
  .ec-site .ec-component .row > .product > .product-container > .vm-product-rating-container{padding:4px 8px 0}
  .ec-site .ec-component .row > .product > .product-container > [class^="vm-product-descr-container"],
  .ec-site .ec-component .row > .product > .product-container > [class^="vm3pr-"]{padding-left:8px;padding-right:8px}
  .ec-site .ec-component .row > .product > .product-container input.addtocart-button{font-size:12px !important;padding:8px 4px !important}
}
@media print{.ec-topbar,.ec-menu,.ec-side,.ec-footer,.ec-offcanvas,.ec-burger,.ec-banner{display:none !important}}

/* =========================================================================
   Background watermark (option "watermark_enable")
   Fixed layer behind the content, centred on the content column, starts at the
   header's lower edge and scales with the display. --ec-wm-* are set by template.js;
   --ec-wm-image / --ec-wm-opacity come from the template parameters (index.php).
   ========================================================================= */
.ec-watermark{position:fixed;z-index:-1;pointer-events:none;
  top:var(--ec-wm-top,180px);left:var(--ec-wm-left,0);width:var(--ec-wm-w,100%);bottom:0;
  background-image:var(--ec-wm-image,none);background-repeat:no-repeat;background-position:center center;
  background-size:min(86%,74vh) auto;opacity:var(--ec-wm-opacity,.16)}
@media (max-width:991px){
  /* Sidebar drops below the content -> centre the watermark on the full width */
  .ec-watermark{left:0;width:100%;background-size:min(80%,60vh) auto}
}
@media print{.ec-watermark{display:none !important}}
@media (prefers-reduced-motion: no-preference){.ec-watermark{transition:opacity .2s ease}}

/* =========================================================================
   1.0.5 – touch/mobile form controls (≤ 991 px): 16 px text (no iOS zoom on focus)
   and 44 px touch targets for the drop-downs (Serien/Verlage), the shop search,
   quantity fields (tiles, product page, cart) and their buttons.
   ========================================================================= */
@media (max-width:991px){
  .ec-site input[type=text],.ec-site input[type=search],.ec-site input[type=email],.ec-site input[type=tel],
  .ec-site input[type=password],.ec-site input[type=number],.ec-site select,.ec-site textarea{font-size:16px}
  /* larger text must not widen fixed-size fields (e.g. VM category search size="40") beyond the column */
  .ec-site .ec-component input[type=text],.ec-site .ec-component input[type=search],.ec-site .ec-component select,.ec-site .ec-component textarea{max-width:100%;box-sizing:border-box}
  .ec-selnav select{font-size:16px;min-height:44px}
  .ec-selnav .ec-btn{font-size:16px;min-height:44px;padding:8px 14px}
  .ec-search input[type=text],.ec-search input[type=search]{font-size:16px;min-height:44px;padding:9px 12px}
  .ec-search button,.ec-search .btn,.ec-search input[type=submit]{font-size:16px;min-height:44px}
  .ec-site input.quantity-input,
  .ec-site .ec-component .row > .product > .product-container .quantity-box input{font-size:16px;height:44px;min-height:44px;min-width:44px}
  .ec-site input.quantity-controls{min-width:44px;min-height:44px}
  .ec-site .ec-component .row > .product > .product-container input.addtocart-button{min-height:44px}
}

/* =========================================================================
   1.0.6 – mobile fixes (≤ 991 px unless noted)
   F1: login fields in the sidebar (their own rule .ec-side .mod-login input[…] beats the 1.0.5 rule)
   F2: VirtueMart address form (table.adminForm.user-details, fixed size="30" fields) wider than the
       viewport on phones → table as blocks, labels above the fields (≤ 600 px); no VM core change
   chosen.js search fields (country/state/title) 16 px
   ========================================================================= */
@media (max-width:991px){
  .ec-side .mod-login input[type=text],.ec-side .mod-login input[type=password],.ec-side .mod-login input[type=email]{font-size:16px;min-height:44px}
  .ec-side .mod-login .btn,.ec-side .mod-login button[type=submit],.ec-side .mod-login .input-password-toggle{min-height:44px}
  .ec-site .chosen-container .chosen-search input,.ec-site .chosen-container .chosen-search-input,
  .ec-site .chosen-container .chosen-single,.ec-site .chosen-container .chosen-results{font-size:16px}
  .ec-site .chosen-container .chosen-single{min-height:44px;line-height:42px}
  .ec-site .ec-component .chosen-container{max-width:100%}
}
@media (max-width:600px){
  .ec-site .ec-component fieldset{min-width:0;max-width:100%}
  .ec-site .ec-component table.adminForm.user-details,
  .ec-site .ec-component table.adminForm.user-details > tbody,
  .ec-site .ec-component table.adminForm.user-details > tbody > tr,
  .ec-site .ec-component table.adminForm.user-details > tbody > tr > td{display:block;width:100%;max-width:100%;box-sizing:border-box}
  .ec-site .ec-component table.adminForm.user-details > tbody > tr{margin:0 0 10px}
  .ec-site .ec-component table.adminForm.user-details > tbody > tr > td{padding:0}
  .ec-site .ec-component table.adminForm.user-details > tbody > tr > td.key{padding:0 0 3px;text-align:left;white-space:normal}
  .ec-site .ec-component table.adminForm.user-details input:not([type=checkbox]):not([type=radio]),
  .ec-site .ec-component table.adminForm.user-details select,
  .ec-site .ec-component table.adminForm.user-details textarea{width:100%;max-width:100%;box-sizing:border-box;min-height:44px}
  .ec-site .ec-component table.adminForm.user-details .chosen-container{width:100% !important}
}
