/* Muse enhancements: polish, accessibility, touch support */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
::selection{background:rgba(var(--color-base-accent-1),.15)}
h1,h2,h3,.h1,.h2,.h3{text-wrap:balance;line-height:1.25}
img{max-width:100%;height:auto}

/* Keyboard focus */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:.2rem solid rgb(var(--color-base-accent-1));outline-offset:.3rem;border-radius:2px}

/* Skip link */
.skip-to-content-link:focus{position:fixed;top:1rem;left:1rem;z-index:10000;width:auto;height:auto;clip:auto;padding:1rem 2rem;background:#fff;color:#000;box-shadow:0 .4rem 1.6rem rgba(0,0,0,.25)}

/* Product cards: smoother hover + title clamping */
.product-card-wrapper{transition:transform .25s ease}
.product-card-wrapper .media img{transition:transform .5s ease,opacity .3s ease}
@media (hover:hover){
  .product-card-wrapper:hover{transform:translateY(-3px)}
  .product-card-wrapper:hover .media--hover-effect img:first-child{transform:scale(1.04)}
}
.card-information__text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Touch devices (tablets >=750px can't hover): always show quick add */
@media (hover:none){
  .badge.addToClassList:not(.transparent){display:flex!important}
}

/* Buttons */
.button,.shopify-challenge__button,button.button{transition:transform .15s ease,box-shadow .2s ease,opacity .2s ease}
@media (hover:hover){.button:not([disabled]):hover{transform:translateY(-1px);box-shadow:0 .6rem 1.6rem rgba(0,0,0,.12)}}
.button:not([disabled]):active{transform:translateY(0)}

/* Tap targets and form inputs (16px avoids iOS zoom-on-focus) */
input,select,textarea{font-size:max(1.6rem,1em)}
@media (max-width:749px){.button{min-height:4.4rem}}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ===== Collection page: BigBigPlace-style layout ===== */
.collection-breadcrumb{display:flex;gap:.8rem;align-items:center;font-size:1.3rem;letter-spacing:.04rem;margin-bottom:1rem;color:rgba(var(--color-base-text),.65)}
.collection-breadcrumb a{color:inherit;text-decoration:none}
.collection-breadcrumb a:hover{color:rgb(var(--color-base-text));text-decoration:underline}
.collection-breadcrumb [aria-current]{color:rgb(var(--color-base-text))}
.collection-hero__title{font-size:2.6rem;text-transform:uppercase;letter-spacing:.08rem;margin:0 0 1rem}

/* Sidebar + grid (used when the store filter is off) */
.collection--with-sidebar{display:flex;flex-wrap:wrap;align-items:flex-start;gap:0}
.collection--with-sidebar .collection-sidebar{width:100%;margin-bottom:2rem}
.collection--with-sidebar #main-collection-product-grid,
.collection--with-sidebar #pagination-container{width:100%}
@media screen and (min-width:750px){
  .collection--with-sidebar .collection-sidebar{width:calc(25% - 3rem);max-width:none;flex:0 0 auto;margin-right:0;margin-bottom:0;position:sticky;top:2rem}
  .collection--with-sidebar #main-collection-product-grid{width:calc(75% + 3rem);flex:0 0 auto;margin-left:0;min-width:0}
  .collection--with-sidebar #pagination-container{width:100%;flex:0 0 100%}
}

/* Product cards: left-aligned, clean (BigBigPlace look) */
.product-card-wrapper .card-information{text-align:left;padding:1.2rem 0}
.product-card-wrapper .card-information__text{font-size:1.4rem;font-weight:500;line-height:1.4;text-decoration:none}
.product-card-wrapper .card--product .media{border-radius:0}
.product-card-wrapper .card--product{border:1px solid rgba(var(--color-base-text),.08)}

/* ===== Header: smooth scroll transition ===== */
#easystore-section-header .header-wrapper,
#easystore-section-header .header,
#easystore-section-header .header__heading-logo{transition:padding .3s ease,background-color .3s ease,box-shadow .3s ease,transform .3s ease,width .3s ease}
#easystore-section-header.easystore-section-header-sticky{animation:ebbpHeaderIn .35s ease both;z-index:100}
#easystore-section-header.easystore-section-header-sticky .header-wrapper{box-shadow:0 2px 14px rgba(0,0,0,.10)}
#easystore-section-header.easystore-section-header-sticky .header{padding-top:.3rem;padding-bottom:.3rem}
#easystore-section-header.easystore-section-header-sticky .header__heading-logo{transform:scale(.82);transform-origin:center}
@keyframes ebbpHeaderIn{from{transform:translateY(-100%);opacity:.6}to{transform:translateY(0);opacity:1}}

/* Menu links: underline slides in from the left */
nav > .list-menu > li > a,
nav > .list-menu > li > details-disclosure > details > summary{
  background:linear-gradient(currentColor,currentColor) left calc(100% - .2rem)/0 .15rem no-repeat;
  transition:background-size .3s ease,opacity .2s ease}
@media (hover:hover){
  nav > .list-menu > li > a:hover,
  nav > .list-menu > li > details-disclosure > details > summary:hover{background-size:100% .15rem}
}

/* Header icons + cart count */
.header__icon{transition:transform .2s ease}
@media (hover:hover){.header__icon:hover{transform:scale(1.12)}}
.cart-count-bubble{animation:ebbpPop .35s ease}
@keyframes ebbpPop{0%{transform:scale(.4)}60%{transform:scale(1.25)}100%{transform:scale(1)}}

/* Buttons: colour sweep + press */
.button:not(.button--tertiary){position:relative;overflow:hidden;z-index:0}
.button:not(.button--tertiary)::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(255,255,255,.18);transform:translateX(-101%);transition:transform .35s ease}
@media (hover:hover){.button:not(.button--tertiary):not([disabled]):hover::before{transform:translateX(0)}}
.button:not([disabled]):active{transform:scale(.97)}

@media (prefers-reduced-motion:reduce){
  #easystore-section-header.easystore-section-header-sticky{animation:none}
  .cart-count-bubble{animation:none}
}

.collection-count{margin:0 0 1.5rem;font-size:1.3rem;letter-spacing:.04rem;color:rgba(var(--color-base-text),.65)}
