*, *::before, *::after{
  box-sizing: border-box;
}

:root {
  --cart-rail-collapsed-width: 88px;
  --page-bg-color: #23201d;
  --page-bg-pattern: url("/assets/graphics/dots.png");
}

html, body{
  margin: 0;
  padding: 0;
  background-color: var(--page-bg-color);
  background-image: var(--page-bg-pattern);
  background-repeat: repeat;
  background-size: 190px 190px;
}

body{
      padding-right: var(--cart-rail-collapsed-width);
}


.nav{
display: flex;
justify-content: space-between; 
align-items: center;
height: 50px;
width: 100%;
box-sizing: border-box;
background-color: var(--page-bg-color);
padding-left: 32px;
box-shadow: -4px 4px 8px rgba(0,0,0,0.35);
z-index: 150;
position: fixed;
top: 0;
left: 0;
right: 0;
transform: translateY(0);
transition: transform 180ms ease-out;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav.nav--hidden{
  transform: translateY(-100%);
}
.logo img{height: 32px; width:auto}
#hidden-logo{
      opacity: 0%;
  }

.logo{
      position: relative;
      display: inline-flex;
      align-items: center;
}

.logo img.logo__bullet{
      position: absolute;
      width: 12px;
      height: 12px;
      pointer-events: none;
      z-index: 2;
}

.nav-links{
    display: flex;
    gap: 32px;
}

.nav-cart{
    height: 100%;
    max-width: 100px;
}

#cart-button{
    width: 100%;
    box-shadow: -4px 0px 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.nav-menu{
  display: inline-flex;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-menu img{
  width: 28px;
  height: 28px;
}

/* Cart badge (desktop baseline; mobile overrides in mobile.css) */
.cart-count-badge{
  position: absolute;
  right: -10px;
  background: #da812b;
  color: #1f1e19;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cart-count-badge.is-hidden{
  display: none;
}

/* ---------- Shared drawer/overlay styling ---------- */
:root{
  --drawer-bg: #2d2b24;
  --drawer-header-bg: rgba(0,0,0,0.22);
  --drawer-shadow: 0 -10px 20px rgba(0,0,0,0.45);
  --drawer-radius: 10px;
    --drawer-header-radius: 10px 10px 0px 0px;
}

/* Backdrops */
#tb-overlay,
.overlay__backdrop{
  background: rgba(0,0,0,0.55);
}

/* Panel base visuals (positioning handled per-component) */
#tb-sheet,
.mobile-menu,
.overlay__panel{
  background: var(--drawer-bg);
  box-shadow: var(--drawer-shadow);
  border-radius: var(--drawer-radius);
  border: none;
}

/* Shared header visuals */
.mobile-menu__header,
.tb-sheet-header{
  background: var(--drawer-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mobile-menu__header h3,
.tb-sheet-title{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

/* Shared body padding */
.mobile-menu__links,
.tb-sheet-body,
.overlay__body{
  padding: 0;
    background-image: var(--page-bg-pattern);
  background-repeat: repeat;
  background-size: 190px 190px;
}
/* ---------- Overlay (desktop) ---------- */
body.overlay-locked{
  overflow: hidden;
  height: 100%;
}

.overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.overlay.is-open{
  display: flex;
}

.overlay__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.overlay__panel{
  position: relative;
  z-index: 1;
  color: #fff;
  width: min(90vw, 500px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  border-radius: 10px;
  overflow: hidden;
}

.overlay__field{
    display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlay__field input{
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 2px;
}

.overlay__body{
  padding: 16px;
  overflow: auto;
  max-height: calc(90vh - 60px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}

.overlay__row{
  display: flex;
  flex-direction: column;
  gap: 12px;
}



.overlay__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.overlay__result{
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-weight: 400;
}

.overlay__table{
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.overlay__table th,
.overlay__table td{
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  font-size: 14px;
}

.overlay__table th{
  font-weight: 800;
}

.overlay__scroll{
  overflow: auto;
  max-height: 60vh;
}

/* Shared header for overlays/drawers */
.mobile-menu__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}

.mobile-menu__header h3{
  font-family: Inter;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  font-size: 16px;
}

.mobile-menu__close{
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav{
    display: none;
}
.mobile-menu{
    display: none;
}

.nav-menu{
    display: none;
}

/* Text */
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; padding-top: 60px; box-sizing: border-box; }

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

.cart-locked, .cart-locked body {
  overflow: hidden;
}

/* global scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #da812b #2d2b24;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #2d2b24;
}

*::-webkit-scrollbar-thumb {
  background: #da812b;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #c8711f;
}

.nav-link{
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-family: Inter;
    text-decoration: none;
}
.nav-link:hover{
    color: #DA812B;
}

h1{
    font-size: 60px;
    font-weight: 700;
    font-style: italic;
    color: white;
    font-family: Inter;
    text-decoration: none;
    line-height: 1em;
    margin: 0;
}

h2{
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: white;
    font-family: Inter;
    text-decoration: none;
    line-height: 1em;
    margin: 0;
}

h3{
    font-size: 18px;
    font-weight: 700;
    color: white;
    font-family: Inter;
    text-decoration: none;
    line-height: 1em;
    margin: 0;
}

p{
    font-size: 18px;
    font-weight: 400;
    font-family: Inter;
    color: #A4A4A4;
    margin: 0;

}


/* button */

.primary-button{
    padding: 12px 32px;
    border: 0.25px solid rgb(250, 166, 0);
    background-color: #DA812B;
    background-image: url("/assets/graphics/top_pattern.png");
    background-size: 448px 340px;
    background-repeat: repeat;
    font-size: 18px;
    font-weight: 500;
    color: white;
    font-family: Inter;
    text-decoration: none;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    border-radius: 2px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.primary-button:active{
    transform: translateY(2px);
    box-shadow: none;
}

.primary-button::after,
.primary-button::before{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 300ms ease-in-out;
}

.primary-button::after {
  background: linear-gradient(90deg,
    rgba(255,218,158,0.15) 0%,
    rgba(255,218,158,0) 20%,
    rgba(255,218,158,0) 50%,
    rgba(255,218,158,0) 80%,
    rgba(255,218,158,0.15) 100%
  );
  opacity: 1;
}


.primary-button::before {
  background: linear-gradient(90deg,
    rgba(255,218,158,0.65) 0%,
    rgba(255,218,158,0.25) 25%,
    rgba(255,218,158,0) 50%,
    rgba(255,218,158,0.25) 75%,
    rgba(255,218,158,0.65) 100%
  );
  opacity: 0;
}


.primary-button:hover::after{
    opacity: 0;
}

.primary-button:hover::before{
    opacity: 1;
}

.secondary-button{
    padding: 12px 32px;
    border: 0.25px solid rgb(143, 143, 143);
    background: linear-gradient(to bottom, #828070, #838274);
    font-size: 18px;
    font-weight: 600;
    color: white;
    font-family: Inter;
    text-decoration: none;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

.secondary-button:hover{
    box-shadow: none;
    background: linear-gradient(to bottom, #68665a, #6d6d61);
}

.secondary-button:active{
    transform: translateY(2px);
    box-shadow: none;   
}

/* section 1 */

.header{
    padding: 32px;
    height: 80vh;
    width: 100%;
    display: flex;
    align-items: end;

    box-sizing: border-box;
    
    }

.header-text{
display: flex;
flex-direction: column;
height: fit-content;
gap: 4px;
}
.header-buttons{
    margin-top: 16px;
}

/* section 2 ad*/
.ad-tile-double{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.ad-tile-single{
    padding: 64px;
    background-color: #DA812B;
    background-image: url("/assets/graphics/top_pattern.png");
    background-size: 648px 440px;
    background-repeat: repeat;
}
.subheader-section{
    padding: 32px;
    height: 80vh;
    width: auto;
    display: flex;
    align-items: end;
    background-color: var(--page-bg-color);
    box-sizing: border-box;
}

/* carousel */

.carousel{
  position: relative;
  padding: 88px 64px;          /* space for arrows */
  background: #DA812B;         /* orange strip like your example */
    background-image: url("/assets/graphics/top_pattern.png");
    background-size: 648px 440px;
    background-repeat: repeat;
  overflow: hidden;
  box-sizing: border-box;
}

.slides-container{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;    /* card width */
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* smooth swipe on iOS */

  /* optional: hide scrollbar (still scrolls) */
  scrollbar-width: none;       /* Firefox */
}

.product-card{
  scroll-snap-align: start;
  border: 1px solid #2e2c25;
  background: #2d2b24;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.product-card .card-media{
  position: relative;
  background: #d9d9d9;
  border-bottom: 1px solid #3a382f;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-link{
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
  text-decoration: none;
}

.card-image{
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  background: #d9d9d9;
  transition: opacity 180ms ease;
}

.card-image-primary{
  opacity: 1;
}

.card-image-secondary{
  opacity: 0;
}

.products-grid .product-card.has-alt-image:focus-within .card-image-primary{
  opacity: 0;
}

.products-grid .product-card.has-alt-image:focus-within .card-image-secondary{
  opacity: 1;
}

@media (hover: hover){
  .products-grid .product-card.has-alt-image:hover .card-image-primary{
    opacity: 0;
  }

  .products-grid .product-card.has-alt-image:hover .card-image-secondary{
    opacity: 1;
  }
}

.product-card .card-info{
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  background: #2d2b248f;
  text-decoration: none;
  color: inherit;
  gap: 8px;
}

.card-scroll{
  display: flex;
  flex-direction: row;
  padding: 16px 14px;
  background: #2d2b24;
  text-decoration: none;
  color: inherit;
  gap: 8px;
}

.product-card{
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.product-card{
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #9a9a9a;
  margin: 0;
}

.quick-add{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #7c7a6b;
  transform: translateY(100%);
  transition: transform 160ms ease;
  z-index: 4;
    background-image: var(--page-bg-pattern);
  background-repeat: repeat;
  background-size: 190px 190px;
}

.carousel .quick-add{
  display: flex;
}

.product-card:hover .quick-add,
.product-card:focus-within .quick-add{
  transform: translateY(0);
}

@media (hover: none){
  .quick-add{
    transform: translateY(0);
  }
}

.quick-add-button{
  background: none;
  border: none;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 4px 6px;
}

.quick-add-button:hover{
  text-decoration: underline;
}

.quick-add-button:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

.quick-add-button.added{
  color: #ffe4c2;
}

.quick-add-toggle{
  display: none;
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0);
  padding: 6px;
  cursor: pointer;
  z-index: 3;
}

.quick-add-toggle img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* arrows */
.slide-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.143);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
}

.slide-arrow img{
  width: 24px;
  height: 24px;
}

#slide-arrow-prev{
  left: 14px;
  padding-left: 4px;
  padding-right: 8px;
}

#slide-arrow-next{
  right: 14px;
  padding-left: 8px;
  padding-right: 4px;
}

.slide-arrow:hover{
  background: rgba(0,0,0,0.65);
}


/* products */

.products-hero{
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.products-wrap{
  padding-top: 32px;
  padding-bottom: 32px;
}

.filter-pills{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-button{
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #7c7a6b;
  background: linear-gradient(to bottom, #7c7a6b, #6e6c60);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.35);
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.pill-button:hover{
  box-shadow: none;
  transform: translateY(1px);
}

.pill-button.is-active{
  background: linear-gradient(to bottom, #da812b, #b0671f);
  border-color: #da812b;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.45);
}

.pill-button:focus-visible{
  outline: 2px solid #da812b;
  outline-offset: 2px;
}

.products-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.product-card.tournament-card{
  grid-column: span 2;
  border: 2px solid #da812b;
  background: #2d2b24;
}

.product-card.tournament-card .card-media,
.tournament-media{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3a392f, #2d2b24);
  color: #fff;
  aspect-ratio: 3 / 2; /* double width with single-card height */
}

.tournament-label{
  background: #da812b;
  color: #fff;
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* product detail page */

.product-page{
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px;
    padding-right: 32px;
    padding-top: 32px;
    padding-bottom: 64px;
    align-items: start;
  }

.product-gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding-right: 4px;
}

.product-gallery::-webkit-scrollbar{
  width: 10px;
}
.product-gallery::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.16);
}

.gallery-image{
  background: #d9d9d9;
  aspect-ratio: 1 / 1;
  border: 1px solid #3a382f;
}

.gallery-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-sidebar{
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    overflow: visible;
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
  }

.product-sidebar h2{
  font-size: 22px;
  font-weight: 800;
}

.product-price{
  font-size: 16px;
  font-weight: 700;
  color: #cfcfcf;
  margin-top: 4px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.card-price{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-compare{
  color: #DA812B;
  text-decoration: line-through;
}

.price-current{
  font-weight: 700;
}

.text-link{
  background: none;
  border: none;
  color: #cfcfcf;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.size-block{
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}

.size-picker{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option{
  min-width: 44px;
  padding: 8px 12px;
  background: #7c7a6b;
  border: 1px solid #6a685b;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.size-option:hover{
  background: #6f6d5f;
}

.size-option:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.size-option.is-selected{
  outline: 2px solid #da812b;
  outline-offset: 2px;
}

.add-to-cart-button{
  width: 100%;
  display: inline-block;
}

.add-to-cart-button:disabled{
  opacity: 0.6;
}

.cart-hint{
  font-size: 12px;
  color: #cfcfcf;
}

.model-info{
    font-size: 14px;
    color: #cfcfcf;
  }

  .model-info p{
    font-size: inherit;
  }

.model-label{
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #fff;
}

.model-text{
  margin: 0;
  color: #cfcfcf;
  white-space: pre-line;
}

.product-accordion{
  border-top: 1px solid #444137;
  padding-top: 12px;
}

.accordion-toggle{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.accordion-icon{
  font-size: 18px;
}

.accordion-panel{
  border-top: 1px solid #444137;
  padding-top: 10px;
}

.accordion-content{
    max-height: none;
    overflow: visible;
    color: #cfcfcf;
    font-size: 14px;
    background-color: VAR(--page-bg-color);
    padding: 20PX;
  }

  .accordion-content table{
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .accordion-content th,
  .accordion-content td{
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .accordion-content table,
  .accordion-content thead,
  .accordion-content tbody,
  .accordion-content tr,
  .accordion-content th,
  .accordion-content td{
    background-color: rgba(0,0,0,0.90) !important;
    background-image: none !important;
  }

  .accordion-content tbody tr:nth-child(even) th,
  .accordion-content tbody tr:nth-child(even) td{
    background-color: transparent !important;
  }

.related-section{
  padding: 6px;
}

.related-heading{
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  margin: 0 0 16px 0;
}

.related-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* cart rail */
.cart-rail{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: var(--rail-width);
  display: flex;
--rail-width: min(400px, 100vw);
  --collapsed-width: 88px;
  transform: translateX(calc(var(--rail-width) - var(--collapsed-width)));
  transition: transform 200ms ease-out;
  z-index: 150;
  pointer-events: auto;
  overflow: hidden;
}

.cart-rail:hover,
.cart-rail:focus-within{
  transform: translateX(0);
}

.cart-rail__collapsed{
  width: 88px;
  background: var(--page-bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0px 12px 16px 12px;
  box-shadow: -4px 0px 8px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  transition: width 180ms ease-out, padding 180ms ease-out, opacity 160ms ease-out, margin 180ms ease-out;
}

.cart-rail__collapsed-header{
  width: 140%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  box-shadow: -4px 4px 8px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.1);

}

.cart-rail__collapsed-icon{
  width: 28px;
  height: 28px;
  filter: brightness(1.1);
}

.cart-rail__preview{
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 56px;
  margin-top: 14px;
}

.cart-rail__preview-tile{
  width: 56px;
  height: 56px;
  background: #e0e0e0;
  border: 1px solid #4a473d;
}

.cart-rail__preview-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-rail:hover .cart-rail__collapsed,
.cart-rail:focus-within .cart-rail__collapsed{
  opacity: 0;
  width: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.cart-rail__accent{
  margin-top: auto;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #da812b, #b2671f);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.cart-rail__expanded{
  flex: 0 0 var(--rail-width);
  width: var(--rail-width);
  max-width: var(--rail-width);
  min-width: var(--rail-width);
  background: var(--page-bg-color);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0px 14px rgba(0,0,0,0.45);
}

.cart-rail__header{
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: -4px 0px 8px rgba(0,0,0,0.35);
}
.cart-mobile-close{
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
}

.cart-rail__scroll{
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  
}

.cart-rail__promo{
  padding: 12px 16px 16px 16px;
  color: #fff;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

.cart-rail:hover .cart-rail__promo,
.cart-rail:focus-within .cart-rail__promo,
body.cart-open .cart-rail__promo{
  transform: translateY(0);
  opacity: 1;
}

.cart-rail__progress-text{
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
}

.cart-rail__progress-bar{
  position: relative;
  height: 10px;
  background: #9a9788;
  border-radius: 10px;
  overflow: hidden;
}

.cart-rail__progress-fill{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #da812b;
  border-radius: 10px;
  transition: width 200ms ease-out;
}

.cart-rail__progress-fill.is-blue{
  background: linear-gradient(90deg, #5ec4ff 0%, #8fd8ff 50%, #5ec4ff 100%);
  background-size: 200% 100%;
  animation: shimmer-blue 1.6s linear infinite;
}

@keyframes shimmer-blue{
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.cart-rail__progress-range{
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #eaeaea;
  margin-top: 4px;
}

.cart-rail__alert{
    margin-top: 14px;
    background: #7c7a6b;
    padding: 12px;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: center;
      background-image: var(--page-bg-pattern);
  background-repeat: repeat;
  background-size: 190px 190px;
  }

  .cart-rail__alert[hidden]{
    display: none;
  }

.cart-rail__alert img{
  width: 18px;
  height: 18px;
}

.cart-rail__alert p{
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.cart-upsell{
  padding: 12px 16px 16px 16px;
  background: #7a7769;
  color: #fff;
  margin-top: 90px;
  background-image: var(--page-bg-pattern);
  background-repeat: repeat;
  background-size: 190px 190px;
}

.cart-upsell__head{
  margin-bottom: 10px;
}

.cart-upsell__title{
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: #f0f0f0;
  letter-spacing: 0.01em;
}

.cart-upsell__subtitle{
  margin: 2px 0 0 0;
  font-size: 14px;
  color: #f0f0f0;
}

.cart-upsell__list{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #da812b transparent;
}
.cart-upsell__list::-webkit-scrollbar{
  height: 8px;
}
.cart-upsell__list::-webkit-scrollbar-track{
  background: transparent;
}
.cart-upsell__list::-webkit-scrollbar-thumb{
  background: #da812b;
  border-radius: 999px;
}
.cart-upsell__list::-webkit-scrollbar-button{
  display: none;
}

.cart-upsell-card{
  background: #2d2b24;
  border: 3px solid #4a473d;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 300px;
  flex: 0 0 auto;
}

.cart-upsell-card__top{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
}

.cart-upsell-card img{
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #d9d9d9;
}

.cart-upsell-card__title{
  margin: 0 0 4px 0;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.cart-upsell-card__price{
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  color: #f0f0f0;
}

.cart-upsell-sizes{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.cart-upsell-size{
  width: 100%;
  padding: 10px 0;
  background: #7c7a6b;
  border: 1px solid #6a685b;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.cart-upsell-size:hover{
  background: #6f6d5f;
}

.cart-upsell-size:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-summary{
  padding: 16px;
  background: var(--page-bg-color);
  color: #fff;
  margin-top: 24px;
}

.cart-summary__title{
  margin: 0 0 12px 0;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
}

.cart-summary__row{
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.cart-summary__row--total{
  font-weight: 800;
  margin-top: 8px;
}
.cart-rail__header img{
  width: 28px;
  height: 28px;
}

.cart-rail__summary{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-rail__title{
  margin: 0;
}

.cart-rail__list{
  flex: 0 0 auto;
}

.cart-rail__empty{
  color: #fff;
  opacity: 0.9;
  padding: 16px;
  font-size: 14px;
}

.cart-line{
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    align-items: center;
  }

  .cart-line:active{
    background: rgba(0,0,0,0.18);
  }

.cart-line__thumb{
  width: 56px;
  height: 56px;
  background: #d9d9d9;
  border: 1px solid #4a473d;
  object-fit: cover;
}

.cart-line__info{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-line__title{
  margin: 0;
  font-weight: 800;
  font-size: 13px;
}

.cart-line__variant{
  margin: 0;
  font-size: 11px;
  color: #dcdcdc;
}

.cart-line__price{
  margin: 0;
  font-size: 11px;
  color: #dcdcdc;
}

.cart-line--gem .cart-line__price{
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.cart-line--gem .cart-line__price .old-price{
  text-decoration: line-through;
  opacity: 0.6;
}

.cart-line--gem .cart-line__price .free-price{
  color: #da812b;
  font-weight: 800;
}

.cart-line__sizes{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.gem-size-btn{
  padding: 8px 0;
  background: #7c7a6b;
  border: 1px solid #6a685b;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.gem-size-btn.is-selected{
  outline: 2px solid #da812b;
  outline-offset: 2px;
}

.gem-size-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-line__qty{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.cart-line__qty button{
  width: 24px;
  height: 24px;
  border: 1px solid #6c6a5e;
  background: #555244;
  color: #fff;
  cursor: pointer;
}

.cart-line__qty button:hover{
  background: #6c6a5e;
}

.cart-line__qty-value{
  min-width: 14px;
  text-align: center;
}

.cart-rail__footer{
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #7c7a6b;
}

.cart-rail__checkout{
  width: 100%;
}

.cart-rail__checkout:disabled{
  opacity: 0.6;
}
