/* =======================================================================
   KANO — Spreadshirt overrides (CLEAN)
   One-pass version to avoid "I changed it but nothing happens" confusion.
   Reason: the old file had the SAME selectors repeated 3 times; last one wins.
   Load AFTER style.css
   ======================================================================= */

/* =========================
   LAYOUT (LEFT ALIGN)
   ========================= */

/* Shop wrapper: start from left, keep some right breathing room */
.store-main .store-container{
  max-width: 1500px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0px !important;   /* aligned closer to logo end */   /* change THIS to move everything left/right */
  padding-right: 36px !important;  /* right breathing room */
}

/* Sidebar + content row */
.store-main .store-layout{
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 44px !important;            /* pull products a bit left */            /* spacing between sidebar and products */
}

/* =========================
   GRID / PRODUCT CARDS (v6)
   ========================= */

section#product-list.store-grid{
  grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
  column-gap: 32px !important;
  row-gap: 40px !important;
  justify-content: start !important;
}
@media (max-width: 1100px){
  section#product-list.store-grid{
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
    column-gap: 26px !important;
    row-gap: 34px !important;
  }
}
@media (max-width: 640px){
  section#product-list.store-grid{
    grid-template-columns: 1fr !important;
    row-gap: 28px !important;
  }
}

section#product-list.store-grid article.product-card{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* TILE — TRUE square */
section#product-list.store-grid article.product-card .product-image-wrap{
  position: relative !important;
  width: 100% !important;

  padding-top: 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;

  aspect-ratio: 1 / 1 !important;

  background: #f4f4f4 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* IMAGES — main + hover fill an INNER INSET box */
section#product-list.store-grid article.product-card .product-image-wrap img.product-img-main,
section#product-list.store-grid article.product-card .product-image-wrap img.product-img-hover,
section#product-list.store-grid article.product-card .product-image-wrap img.product-img{
  position: absolute !important;

  top: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  left: 12px !important;

  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain !important;
  object-position: center center !important;

  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* hover swap */
section#product-list.store-grid article.product-card .product-img-hover{ opacity: 0 !important; }
section#product-list.store-grid article.product-card:hover .product-img-main{ opacity: 0 !important; }
section#product-list.store-grid article.product-card:hover .product-img-hover{ opacity: 1 !important; }

/* Typography */
section#product-list.store-grid article.product-card .product-name{
  margin: 12px 0 4px !important;
  text-align: left !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: #666 !important;

  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}
section#product-list.store-grid article.product-card .product-price{
  margin: 0 !important;
  text-align: left !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #111 !important;
}

/* Hover ring */
@media (hover:hover) and (pointer:fine){
  section#product-list.store-grid article.product-card:hover .product-image-wrap{
    box-shadow: inset 0 0 0 1px rgba(17,17,17,.18) !important;
  }
}

/* =========================
   SIDEBAR (Spreadshirt-ish)
   ========================= */

aside#store-sidebar.store-sidebar{
  width: 310px !important;
  flex: 0 0 310px !important;
}

.store-sidebar{
  padding: 10px 0 !important;
}

/* section header */
.store-sidebar .store-sidebar-header{
  padding: 14px 10px !important;
  border-radius: 12px !important;
}
.store-sidebar .store-sidebar-title{
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  color: #222 !important;
}

/* gender rows */
.store-sidebar .store-sidebar-group-toggle{
  padding: 12px 10px !important;
  border-radius: 12px !important;
  margin-top: 6px !important;
}
.store-sidebar .store-sidebar-group-label{
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;           /* icon-text spacing (fix "stuck") */
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #222 !important;
}

/* list items */
.store-sidebar .store-sidebar-list{
  padding: 8px 0 4px !important;
}
.store-sidebar .store-sidebar-list li{
  margin: 6px 0 !important;
}
.store-sidebar .store-sidebar-list a{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;           /* icon-text spacing (fix "stuck") */
  padding: 10px 10px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;    /* not "bolder", just a touch cleaner */
  color: #222 !important;         /* darker tone */
}

/* icons slightly larger + a bit darker (without changing weight) */
.store-sidebar .store-sidebar-group-label img,
.store-sidebar .store-sidebar-list a img{
  width: 20px !important;
  height: 20px !important;
  filter: brightness(0) saturate(100%) opacity(.85) !important;
}

/* subtle hover */
@media (hover:hover) and (pointer:fine){
  .store-sidebar .store-sidebar-header:hover,
  .store-sidebar .store-sidebar-group-toggle:hover,
  .store-sidebar .store-sidebar-list a:hover{
    background: #f4f4f4 !important;
  }
}

/* responsive */
@media (max-width: 1100px){
  .store-main .store-layout{ gap: 36px !important; }
  aside#store-sidebar.store-sidebar{
    width: 280px !important;
    flex: 0 0 280px !important;
  }
}
@media (max-width: 900px){
  .store-main .store-container{
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 16px !important;
  }
  aside#store-sidebar.store-sidebar{
    width: 320px !important;
    flex: 0 0 auto !important;
  }
}

/* === HARD LEFT ALIGN (logo bitişine yaklaştırır) === */
@media (min-width: 901px){
  main.store-main .store-container{
    padding-left: 0 !important;
  }

  /* BUNU arttır/azalt: -40 / -60 / -80  */
  main.store-main .store-layout{
    margin-left: -60px !important;  /* asıl sola çeken ayar */
    gap: 44px !important;           /* ürünleri de biraz sola alır */
  }
}
/* === Product image micro-centering fix (nudge left) === */
section#product-list.store-grid article.product-card .product-image-wrap img.product-img-main,
section#product-list.store-grid article.product-card .product-image-wrap img.product-img-hover,
section#product-list.store-grid article.product-card .product-image-wrap img.product-img{
  transform: translateX(-8px) !important; /* -4 / -6 / -8 dene */
  object-position: 50% 50% !important;
}
