:root{
  --green:#0d543d;
  --green-dark:#08442f;
  --green-light:#5ca88a;
  --text:#171717;
  --muted:#646464;
  --line:#d4d4d4;
  --soft:#eeeeee;
  --placeholder:#d2d2d2;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{color:inherit}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;image-rendering:auto;backface-visibility:hidden}
.container{width:calc(100% - 48px);max-width:1440px;margin-inline:auto}
[hidden],.is-hidden{display:none!important}

/* Header — shared by every internal category page */
.site-header{position:relative;z-index:100;background:#fff}
.utility-bar{height:30px;border-bottom:1px solid #e7e7e7;font-size:11px}
.utility-inner{height:100%;display:flex;align-items:center;justify-content:flex-end}
.utility-inner nav{display:flex;align-items:center;gap:17px;color:#4f4f4f}
.utility-inner a:hover{color:var(--green)}
.main-nav{border-bottom:1px solid #cfcfcf;background:#fff}
.nav-inner{min-height:112px;display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,520px) minmax(180px,1fr);align-items:center;gap:34px}
.nav-left{display:flex;align-items:center;gap:32px;min-width:0}
.brand{flex:0 0 auto}
.brand img{width:150px;height:82px;object-fit:contain}
.products-trigger{border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:12px 0;color:var(--green);font-size:19px;font-weight:800;cursor:pointer;white-space:nowrap}
.hamburger{width:26px;display:grid;gap:5px}
.hamburger i{display:block;height:3px;background:currentColor;border-radius:2px}
.header-search{height:48px;border-radius:26px;background:#e8e8e8;display:flex;align-items:center;overflow:hidden;width:100%;justify-self:center}
.header-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:0 22px;font-size:15px;color:#333}
.header-search input::placeholder{color:#7b7b7b;opacity:1}
.header-search button{width:58px;height:100%;border:0;background:transparent;display:grid;place-items:center;cursor:pointer}
.header-search svg{width:25px;height:25px;fill:none;stroke:#171717;stroke-width:1.65;stroke-linecap:round}
.cart-button{justify-self:end;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:10px 0;color:#3e3e3e;cursor:pointer;white-space:nowrap;font-size:14px}
.cart-button svg{width:36px;height:36px;fill:none;stroke:#2f2f2f;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}

/* Product mega menu */
.mega-menu{position:absolute;top:100%;left:0;right:0;z-index:110;background:#fff;border-bottom:1px solid #bdbdbd;box-shadow:0 8px 12px rgba(0,0,0,.22);visibility:hidden;opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.mega-menu.open{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto}
.mega-grid{display:grid;grid-template-columns:minmax(430px, .95fr) minmax(340px,1.05fr);gap:44px;padding:24px 0 28px}
.mega-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;column-gap:48px}.mega-column{display:grid;align-content:start}
.mega-link{padding:7px 0;color:var(--green);font-size:18px;font-weight:800;line-height:1.15;width:max-content;max-width:100%}
.mega-link:hover,.mega-link.active{color:#fff;background:var(--green);padding-inline:6px}
.mega-submenu{border-left:1px solid #8cab9f;padding-left:20px;min-height:160px}
.submenu-list{display:none;list-style:none;padding:0;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}
.submenu-list.active{display:grid}
.submenu-list li{min-width:0}
.submenu-list a{display:block;padding:7px 0;color:#4d4d4d;font-size:14px;line-height:1.25}
.submenu-list a:hover{color:var(--green);font-weight:700}

/* Breadcrumb */
.breadcrumb{background:#ededed;color:#555;font-size:12px}
.breadcrumb .container{min-height:52px;display:flex;align-items:center}
.breadcrumb a:hover{color:var(--green)}

/* Internal category layout */
.category-main{padding:56px 0 110px}
.category-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:38px;align-items:start}
.side-list{position:sticky;top:18px;display:grid;align-content:start}
.side-list a{font-size:19px;padding:12px 0;border-bottom:1px solid var(--line);line-height:1.18}
.side-list a:hover,.side-list a.active{color:var(--green);font-weight:700}
.category-content{min-width:0}
.category-heading{margin:0 0 22px 12px}
.category-heading h1{font-size:29px;line-height:1.05;margin:0 0 7px;font-weight:800;letter-spacing:-.25px}
.category-heading p{font-size:20px;line-height:1.16;margin:0;max-width:870px}
.subcategory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:31px 30px}
.subcategory-card{display:grid;gap:11px;font-size:19px;line-height:1.18;transition:transform .18s ease,color .18s ease;min-width:0}
.subcategory-card img{width:100%;aspect-ratio:1.5/1;object-fit:cover;background:var(--placeholder)}
.subcategory-card span{padding-inline:4px}
.subcategory-card:hover{transform:translateY(-3px);color:var(--green)}
.category-empty{padding:35px 12px;color:var(--green);font-weight:700;font-size:18px}
.image-placeholder{background:var(--placeholder)!important;object-fit:cover!important;filter:none!important}

/* Newsletter */
.newsletter{position:relative;overflow:hidden;background:linear-gradient(140deg,#258365 0%,#71b095 51%,#4f987c 100%);color:#fff;padding:66px 0 57px;box-shadow:0 7px 8px rgba(0,0,0,.23)}
.newsletter:before,.newsletter:after{content:"";position:absolute;inset:-55% -8%;opacity:.16;background:repeating-radial-gradient(ellipse at 10% 15%,transparent 0 52px,rgba(255,255,255,.78) 56px 65px,transparent 69px 118px);transform:rotate(-7deg)}
.newsletter:after{inset:-45% -4% -48% 45%;transform:rotate(13deg);opacity:.12}
.newsletter-inner{position:relative;z-index:1;text-align:center}
.newsletter h2{margin:0 0 15px;font-size:clamp(26px,2.3vw,36px);line-height:1.1}
.newsletter p{margin:0 0 17px;color:#edf7f3;font-size:15px}
.newsletter form{width:min(370px,100%);margin-inline:auto;display:grid;gap:11px}
.consent{justify-self:center;display:flex;align-items:center;gap:7px;font-weight:700;font-size:14px}
.consent input{accent-color:var(--green)}
.newsletter input[type=text],.newsletter input[type=email]{height:38px;border:1px solid rgba(255,255,255,.78);background:rgba(255,255,255,.94);padding:0 11px;outline:none;color:#222}
.newsletter button{justify-self:center;border:0;background:var(--green-dark);color:#fff;font-weight:800;padding:9px 22px;cursor:pointer}
.newsletter button:hover{background:#063824}
.form-message{min-height:18px;font-weight:700;font-size:13px;margin:0!important}

/* Footer */
.site-footer{background:#fff}
.footer-top{min-height:276px;padding:59px 0 42px}
.customer-service{display:grid;width:fit-content;margin-left:8px}
.customer-service h2{font-size:20px;margin:0 0 18px;padding-bottom:10px;border-bottom:1px solid #aaa}
.customer-service a{font-size:18px;line-height:1.22}
.customer-service a:hover{color:var(--green)}
.social-row{border-top:1px solid #d0d0d0;border-bottom:1px solid #b9b9b9;box-shadow:0 7px 8px rgba(0,0,0,.22);min-height:184px;display:flex;justify-content:center;align-items:center;gap:34px}
.social-row a{display:grid;justify-items:center;gap:9px;font-size:18px}
.social-icon{width:74px;height:74px;background:#050505;color:#fff;border-radius:13px;display:grid;place-items:center;font-size:63px;line-height:1;font-weight:900}
.social-icon.instagram{font-size:67px;font-weight:400}
.footer-bottom{min-height:166px;display:flex;justify-content:space-between;align-items:center}
.footer-bottom>img{width:145px;height:100px;object-fit:contain}
.payments{display:flex;gap:11px}
.pay-card{width:62px;height:37px;border:1px solid #d4d4d4;border-radius:5px;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:15px;color:#1d4cb0}
.mastercard i,.maestro i{width:20px;height:20px;border-radius:50%;display:block;margin-inline:-4px}
.mastercard i:first-child{background:#ed1c24}.mastercard i:last-child{background:#f79e1b}
.maestro i:first-child{background:#1786d2}.maestro i:last-child{background:#ed1c24}
.toast{position:fixed;right:20px;bottom:20px;z-index:200;background:var(--green);color:#fff;padding:12px 18px;border-radius:6px;box-shadow:0 7px 13px rgba(0,0,0,.22);transform:translateY(20px);opacity:0;pointer-events:none;transition:.2s}
.toast.show{transform:translateY(0);opacity:1}


@media (min-width:1280px){
  .category-content{padding-right:2px}
  .subcategory-card img,.category-placeholder{min-height:250px}
  .side-list{padding:18px 20px 22px;background:#fafafa;border:1px solid #e4e4e4}
  .side-list:after{content:"Shfleto produktet e kategorisë";display:flex;align-items:center;justify-content:center;margin-top:24px;min-height:92px;padding:18px;background:var(--green);color:#fff;text-align:center;font-size:17px;font-weight:800;line-height:1.25}
}

@media (max-width:1120px){
  .container{width:calc(100% - 48px)}
  .nav-inner{grid-template-columns:minmax(260px,1fr) minmax(300px,480px) auto;gap:22px}
  .nav-left{gap:20px}
  .brand img{width:125px;height:72px}
  .products-trigger{font-size:17px}
  .category-layout{grid-template-columns:285px minmax(0,1fr);gap:34px}
  .side-list a{font-size:17px}
  .category-heading{margin-left:0}
  .category-heading h1{font-size:27px}
  .category-heading p{font-size:18px}
  .subcategory-grid{gap:25px 30px}
  .subcategory-card{font-size:17px}
}

@media (max-width:900px){
  .container{width:min(calc(100% - 30px),820px)}
  .utility-bar{display:none}
  .nav-inner{min-height:auto;grid-template-columns:1fr auto;gap:12px;padding:9px 0 13px}
  .nav-left{grid-column:1;gap:20px}
  .brand img{width:100px;height:62px}
  .products-trigger{font-size:15px;gap:9px}
  .hamburger{width:22px;gap:4px}
  .header-search{grid-column:1/-1;grid-row:2;max-width:none;height:44px}
  .cart-button{grid-column:2;grid-row:1}
  .cart-button span{display:none}
  .mega-menu{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;padding-top:78px;background:rgba(255,255,255,.98)}
  .mega-grid{grid-template-columns:1fr;gap:18px;padding:18px 0 28px}
  .mega-categories{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
  .mega-link{font-size:16px;width:100%}
  .mega-submenu{border-left:0;border-top:1px solid #8cab9f;padding:15px 0 0;min-height:0}
  .submenu-list.active{grid-template-columns:repeat(2,minmax(0,1fr))}
  .breadcrumb .container{min-height:42px}
  .category-main{padding:34px 0 66px}
  .category-layout{grid-template-columns:1fr;gap:27px}
  .side-list{position:static;display:flex;overflow-x:auto;gap:9px;scrollbar-width:none;padding-bottom:4px}
  .side-list::-webkit-scrollbar{display:none}
  .side-list a{border:1px solid #d6d6d6;border-radius:20px;padding:9px 14px;white-space:nowrap;font-size:14px}
  .side-list a.active{background:var(--green);color:#fff;border-color:var(--green)}
  .category-heading{margin-bottom:18px}
  .subcategory-grid{gap:22px}
  .newsletter{padding:45px 0 39px}
  .footer-top{min-height:220px;padding:44px 0 32px}
  .social-row{min-height:140px}
  .social-icon{width:62px;height:62px;font-size:53px}
  .social-icon.instagram{font-size:58px}
  .footer-bottom{min-height:125px}
}

@media (max-width:560px){
  .container{width:calc(100% - 22px)}
  .nav-left{gap:12px}
  .brand img{width:84px;height:54px}
  .products-trigger{font-size:14px}
  .hamburger{width:20px}
  .cart-button svg{width:29px;height:29px}
  .mega-categories{grid-template-columns:1fr}
  .mega-column{display:grid}
  .submenu-list.active{grid-template-columns:1fr}
  .breadcrumb{font-size:11px}
  .category-main{padding:28px 0 45px}
  .category-heading h1{font-size:23px}
  .category-heading p{font-size:16px}
  .subcategory-grid{grid-template-columns:1fr;gap:22px}
  .subcategory-card{font-size:16px}
  .newsletter h2{font-size:24px}
  .footer-top{min-height:210px;padding:36px 0 28px}
  .customer-service{margin-left:0}
  .customer-service h2{font-size:18px}
  .customer-service a{font-size:16px}
  .social-row{min-height:125px;gap:25px}
  .social-row a{font-size:15px}
  .social-icon{width:54px;height:54px;font-size:46px}
  .social-icon.instagram{font-size:51px}
  .footer-bottom{min-height:105px}
  .footer-bottom>img{width:92px;height:72px}
  .pay-card{width:44px;height:29px;font-size:11px}
  .mastercard i,.maestro i{width:16px;height:16px}
}

/* Category placeholders and product navigation */
.category-placeholder{width:100%;aspect-ratio:1.5/1;background:var(--placeholder);display:block}
.view-all-products{display:inline-flex;align-items:center;justify-content:center;margin-top:17px;background:var(--green);color:#fff;padding:11px 18px;font-size:14px;font-weight:800;transition:background .18s ease,transform .18s ease}
.view-all-products:hover{background:var(--green-dark);transform:translateY(-1px)}
.cart-button{position:relative}
.cart-count{position:absolute;right:-10px;top:1px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--green);color:#fff;font-size:11px;line-height:20px;text-align:center}
@media(max-width:900px){.view-all-products{margin-top:14px}.cart-count{right:-7px;top:4px}}

/* Phone browser adaptation */
@media (max-width: 640px){
  html,body{width:100%;overflow-x:hidden}
  body{font-size:15px}
  .container{width:100%;max-width:none;padding-inline:14px}
  .site-header{position:sticky;top:0}
  .main-nav{box-shadow:0 2px 8px rgba(0,0,0,.08)}
  .nav-inner{display:grid;grid-template-columns:86px minmax(0,1fr) 42px;gap:9px;padding:7px 0 10px}
  .nav-left{display:contents}
  .brand{grid-column:1;grid-row:1}
  .brand img{width:82px;height:50px}
  .products-trigger{grid-column:2;grid-row:1;justify-self:start;min-height:44px;max-width:100%;font-size:14px;padding:8px 0}
  .products-trigger span:last-child{overflow:hidden;text-overflow:ellipsis}
  .cart-button{grid-column:3;grid-row:1;justify-self:end;min-width:42px;min-height:44px;justify-content:center;padding:0}
  .cart-button svg{width:28px;height:28px}
  .header-search{grid-column:1/-1;grid-row:2;height:43px;border-radius:22px}
  .header-search input{font-size:16px;padding:0 14px}
  .header-search button{width:48px}
  .mega-menu{position:fixed;top:110px;right:0;bottom:0;left:0;z-index:90;overflow:auto;padding:0;background:#fff;border-top:1px solid #ddd;box-shadow:0 8px 18px rgba(0,0,0,.18)}
  .mega-grid{display:block;padding:14px 0 22px}
  .mega-categories{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .mega-column{display:contents}
  .mega-link{display:block;width:100%;padding:11px 10px;border:1px solid #e1e1e1;background:#fafafa;font-size:14px;line-height:1.15}
  .mega-link:hover,.mega-link.active{padding-inline:10px}
  .mega-submenu{margin-top:12px;padding:12px 0 0;border-top:1px solid #8cab9f}
  .submenu-list.active{grid-template-columns:1fr;gap:0}
  .submenu-list a{padding:10px 2px;font-size:14px}
  .breadcrumb .container{min-height:38px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .category-main{padding:24px 0 42px}
  .category-layout{gap:20px}
  .side-list{margin-inline:-14px;padding:0 14px 6px}
  .side-list a{min-height:40px;display:flex;align-items:center}
  .category-heading h1{font-size:22px;line-height:1.12}
  .category-heading p{font-size:15px;line-height:1.35}
  .view-all-products{width:100%;min-height:44px}
  .subcategory-grid{grid-template-columns:1fr;gap:18px}
  .subcategory-card{font-size:16px}
  .subcategory-card span{padding:0}
  .category-placeholder,.subcategory-card img{aspect-ratio:1.35/1}
  .newsletter{padding:32px 0}
  .newsletter h2{font-size:21px}
  .newsletter p{font-size:14px;line-height:1.35}
  .newsletter input[type=text],.newsletter input[type=email],.newsletter button{min-height:43px;font-size:16px}
  .footer-top{min-height:auto;padding:30px 0 24px}
  .customer-service{width:100%}
  .customer-service a{padding:5px 0}
  .social-row{min-height:104px;gap:22px}
  .footer-bottom{min-height:92px;gap:16px}
  .payments{flex-wrap:wrap}
}

/* Fuller 1440 px layout */
@media (min-width: 901px){
  .container{width:calc(100% - 32px);max-width:1408px}
  .category-main{padding:48px 0 82px}
  .category-layout{grid-template-columns:280px minmax(0,1fr);gap:30px}
  .category-heading{margin-left:0}
  .subcategory-grid{display:flex;flex-wrap:wrap;gap:28px 24px}
  .subcategory-card{flex:1 1 300px;min-width:280px}
  .subcategory-card img,.category-placeholder{min-height:0;aspect-ratio:1.48/1}
}
@media (min-width: 1180px){
  .subcategory-card{flex-basis:calc(33.333% - 16px)}
}
@media (min-width: 901px) and (max-width:1179px){
  .subcategory-card{flex-basis:calc(50% - 12px)}
}
.brand img,.footer-bottom>img{object-fit:contain;background:#fff}

/* Clean category header fix */
.mega-menu:not(.open){display:none!important;}
.mega-menu.open{display:block!important;}
.products-trigger{white-space:nowrap;}
.category-heading h1{font-weight:900;}
.subcategory-card img{background:#e6e6e6;object-fit:cover;}


/* CATALOGUE REFERENCE LAYOUT - compact internal category pages */
.category-nav{display:none!important}

.category-main{
  padding:34px 0 70px!important;
  background:#fff!important;
}
.category-layout{
  display:grid!important;
  grid-template-columns:250px minmax(0,1fr)!important;
  gap:32px!important;
  align-items:start!important;
  max-width:1440px!important;
}
.category-content{
  min-width:0!important;
}
.category-heading{
  margin:0 0 20px 0!important;
}
.category-heading h1{
  margin:0 0 4px!important;
  font-size:30px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-.3px!important;
}
.category-heading p{
  margin:0 0 16px!important;
  font-size:18px!important;
  line-height:1.2!important;
  max-width:1000px!important;
}
.view-all-products{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#0d543d!important;
  color:#fff!important;
  font-weight:800!important;
  font-size:15px!important;
  min-height:40px!important;
  padding:0 22px!important;
  margin:0!important;
  border:0!important;
}

.side-list{
  position:sticky!important;
  top:18px!important;
  display:block!important;
  width:100%!important;
  border:1px solid #dadada!important;
  padding:18px 22px 22px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.side-list a{
  display:block!important;
  padding:10px 0!important;
  border-bottom:1px solid #d4d4d4!important;
  font-size:18px!important;
  line-height:1.2!important;
  color:#111!important;
  font-weight:400!important;
}
.side-list a.active,
.side-list a:hover{
  color:#0d543d!important;
  font-weight:700!important;
}

/* Main fix: compact thumbnail grid like the reference image */
.subcategory-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:26px 32px!important;
  align-items:start!important;
}
.subcategory-card{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  transform:none!important;
  color:#111!important;
}
.subcategory-card:hover{
  transform:none!important;
  color:#0d543d!important;
}
.subcategory-card img{
  display:block!important;
  width:100%!important;
  height:118px!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  max-height:118px!important;
  min-height:118px!important;
  border:0!important;
  background:#d2d2d2!important;
}
.subcategory-card span{
  display:block!important;
  margin-top:8px!important;
  padding:0!important;
  font-size:17px!important;
  line-height:1.18!important;
  color:inherit!important;
}

/* Special wider last row cards only if the original grid naturally has 2 items */
.subcategory-grid .subcategory-card:nth-last-child(1):nth-child(3n+1),
.subcategory-grid .subcategory-card:nth-last-child(2):nth-child(3n+1){
  max-width:none!important;
}

/* Keep it compact on laptop too */
@media(max-width:1200px){
  .category-layout{grid-template-columns:230px minmax(0,1fr)!important;gap:26px!important}
  .subcategory-grid{gap:22px 24px!important}
  .subcategory-card img{height:108px!important;max-height:108px!important;min-height:108px!important}
  .subcategory-card span{font-size:16px!important}
}
@media(max-width:900px){
  .category-layout{grid-template-columns:1fr!important}
  .side-list{
    position:static!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0 18px!important;
  }
  .subcategory-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .subcategory-card img{height:140px!important;max-height:140px!important;min-height:140px!important}
}
@media(max-width:640px){
  .container{width:100%!important;max-width:none!important;padding-inline:14px!important}
  .category-main{padding:24px 0 42px!important}
  .category-layout{display:flex!important;flex-direction:column!important;gap:16px!important}
  .category-content{display:contents!important}
  .category-heading{order:1!important;margin:0 0 4px!important}
  .category-heading h1{font-size:22px!important;line-height:1.12!important}
  .category-heading p{font-size:15px!important;line-height:1.35!important}
  .view-all-products{width:100%!important;min-height:44px!important}
  .side-list{
    order:2!important;
    margin-inline:-14px!important;
    padding:0 14px 6px!important;
    border:0!important;
    position:static!important;
    display:flex!important;
    overflow-x:auto!important;
    gap:8px!important;
    grid-template-columns:none!important;
    scrollbar-width:none!important;
    width:auto!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .side-list::-webkit-scrollbar{display:none!important}
  .side-list a{
    flex:0 0 auto!important;
    min-height:40px!important;
    display:inline-flex!important;
    align-items:center!important;
    border:1px solid #ddd!important;
    border-radius:999px!important;
    padding:8px 13px!important;
    white-space:nowrap!important;
    border-bottom:1px solid #ddd!important;
    font-size:14px!important;
  }
  .side-list a.active{
    background:#0d543d!important;
    border-color:#0d543d!important;
    color:#fff!important;
  }
  .subcategory-grid{order:3!important;grid-template-columns:1fr!important;gap:18px!important}
  .subcategory-card{font-size:16px!important}
  .subcategory-card img{
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    aspect-ratio:1.35/1!important;
  }
  .subcategory-card span{font-size:16px!important}
}
