
/* Arial font */
body, .koleksiyon-container {
    font-family: Arial, sans-serif !important;
}

/* Kategori butonları */
.koleksiyon-categories {
    margin-bottom: 20px;
    text-align: center;
}
.koleksiyon-categories button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.koleksiyon-categories button:hover {
    background: #FECB00;
    color: #000;
}

/* Grid resimleri */
.koleksiyon-item {
    display: inline-block;
    margin: 10px;
}
.koleksiyon-item img {
    max-width: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.koleksiyon-item img:hover {
    transform: scale(1.05);
}

/* Lightbox */
#lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 200ms ease; }
#lightbox {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
#lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}
#lightbox .close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FECB00;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    padding: 5px 10px;
    cursor: pointer;
}


/* Category thumbnail on buttons */
.koleksiyon-categories .cat-btn { position: relative; padding-top: 42px; }
.koleksiyon-categories .cat-btn .cat-thumb { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 36px; height: 36px; overflow: hidden; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.koleksiyon-categories .cat-btn .cat-thumb img { width: 100%; height: 100%; object-fit: cover; display:block; }

#lightbox-overlay.active { opacity: 1; visibility: visible; }


/* Lightbox (#koleksiyon-lightbox) */
#koleksiyon-lightbox { position: fixed; top:0; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.85); z-index:99999; opacity:0; visibility:hidden; transition: opacity 200ms ease; }
#koleksiyon-lightbox.active { opacity:1; visibility:visible; }
#koleksiyon-lightbox #lightbox { position: relative; max-width:90%; max-height:90%; }
#koleksiyon-lightbox img { max-width:100%; max-height:100%; border-radius:8px; box-shadow:0 12px 40px rgba(0,0,0,0.6); }
#koleksiyon-lightbox .close { position: absolute; top: -10px; right: -10px; background: #FECB00; color:#000; border-radius:50%; font-size:22px; padding:6px 10px; cursor:pointer; z-index:100000; }



/* Kategori butonları */
.koleksiyon-categories button {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    padding: 8px 14px;
    margin: 5px;
    cursor: pointer;
    font-family: Arial, sans-serif !important;
    transition: all 0.3s ease;
}
.koleksiyon-categories button:hover {
    background: #FECB00 !important;
    color: #000 !important;
}

/* Ürün kutuları */
.koleksiyon-item {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.15);
    padding: 10px;
    margin: 10px;
    border-radius: 6px;
    text-align: center;
}

/* Lightbox alanı */
#koleksiyon-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
#koleksiyon-lightbox img {
    max-width: 300px;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.3);
}
#koleksiyon-lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

/* Responsive Grid */
.koleksiyon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}


/* === sukod overrides === */

/* Responsive thumbnail sizing (defaults) */
.koleksiyon-sukod {
  --thumb-width: 235px;
  --thumb-height: 261px;
}

/* Grid uses the thumbnail width as minimum column width for auto-fit */
.koleksiyon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-width), 1fr));
  gap: var(--koleksiyon-gap, 16px);
  align-items: start;
  justify-items: center;
}

/* Thumbnail box */
.koleksiyon-thumb{
  width: var(--thumb-width);
  height: var(--thumb-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  border-radius: 6px;
}

/* Ensure image fits inside box and is centered without cropping */
.koleksiyon-thumb img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Polished category buttons like your screenshot */
.koleksiyon-categories .cat-btn{
  background: #fff !important;
  color: #000 !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  padding: 10px 18px;
  margin: 6px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
  transition: transform .18s ease, background .18s ease;
  display: inline-flex;
  align-items:center;
  gap:10px;
}
.koleksiyon-categories .cat-btn:hover,
.koleksiyon-categories .cat-btn.active{
  background: #FECB00 !important;
  color: #000 !important;
  transform: translateY(-2px);
}

/* Lightbox frame (id-based, overlay dark, frame white) */
#koleksiyon-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  background: rgba(0,0,0,0.55); /* dark overlay */
}
#koleksiyon-lightbox .kb-frame{
  width: var(--kb-width, 300px);
  height: var(--kb-height, 500px);
  background: var(--kb-bg, #ffffff);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  border-radius:8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 10px;
}
#koleksiyon-lightbox .kb-frame img{
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  display:block;
}
#koleksiyon-lightbox .kb-close{
  position:absolute;
  top:8px;
  right:8px;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background: var(--kb-close-bg, #FECB00);
  color: var(--kb-close-color, #000);
  font-weight:700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Small screen: make lightbox frame responsive */
@media (max-width:800px){
  #koleksiyon-lightbox .kb-frame{ width: calc(90vw); height: calc(70vh); }
}


/* appended by v3.4 update */

/* === sukod enforced thumb & grid rules v3.4 === */
.koleksiyon-sukod { --thumb-width: 235px; --thumb-height: 261px; }

.koleksiyon-sukod .koleksiyon-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-width), 1fr)) !important;
  gap: var(--koleksiyon-gap,1px) !important;
  align-items: start;
  justify-items: center;
}

.koleksiyon-sukod .koleksiyon-thumb {
  width: var(--thumb-width) !important;
  height: var(--thumb-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fff !important;
  padding: 6px !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
}

.koleksiyon-sukod .koleksiyon-thumb img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display:block !important;
  margin: 0 auto !important;
}

/* Lightbox overlay/frame tweaks */
#koleksiyon-lightbox { z-index:2147483647 !important; background: rgba(0,0,0,0.55) !important; display:none; align-items:center; justify-content:center; position:fixed; inset:0; }
#koleksiyon-lightbox .kb-frame { width: var(--kb-width,300px) !important; height: var(--kb-height,500px) !important; background: var(--kb-bg,#fff) !important; display:flex; align-items:center; justify-content:center; position:relative; border-radius:8px; padding:8px; box-shadow:0 12px 40px rgba(0,0,0,0.25) !important; }
#koleksiyon-lightbox .kb-frame img { max-width: calc(100% - 20px) !important; max-height: calc(100% - 20px) !important; object-fit: contain !important; }
#koleksiyon-lightbox .kb-close { position:absolute; top:8px; right:8px; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: var(--kb-close-bg,#FECB00) !important; color: var(--kb-close-color,#000) !important; cursor:pointer; font-weight:700; box-shadow:0 6px 18px rgba(0,0,0,0.12) !important; }
