﻿/* Genel Stiller */
body {
   font-family: 'Arial', sans-serif;
   margin: 0;
   padding: 0;
   background-color: #f5f5f5;
   color: #333;
}

/* Header */
.header {
   height: auto;
   background-color: #23594F;
   width: 100%;
   position: sticky;
   top: 0;
   z-index: 100;
   box-shadow: 0 2px 8px #0002;
}

.header .container {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 20px;
}

.header .logo img {
   width: 60px;
   height: auto;
}

.header .slogan p {
   font-size: 24px;
   color: #fff;
   margin: 0;
   font-weight: bold;
}

/* Content Wrapper */
.content-wrapper {
   margin: 30px 0;
   padding-bottom: 60px;
}

.products {
   display: flex;
   justify-content: center;
   align-items: center;
   flex-wrap: wrap;
   gap: 20px;
}

.product-list {
   padding: 0;
   list-style: none;
}

.product-list .item {
   background: radial-gradient(circle at 60% 40%, rgba(35, 89, 79, 0.08) 0%, rgba(35, 89, 79, 0.02) 70%, #fff 100%);
   border-radius: 18px;
   box-shadow: 0 4px 18px 0 rgba(0,0,0,0.18), 0 1.5px 6px 0 rgba(0,0,0,0.22);
   overflow: hidden;
   text-align: center;
   margin-bottom: 18px;
   margin-top: 6px;
   padding: 4px;
   transition: transform 0.2s, box-shadow 0.2s;
   position: relative;
   aspect-ratio: 1 / 1.15;
   min-height: 220px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: stretch;
}

.product-list .item:hover {
   transform: translateY(-6px) scale(1.03);
   box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28), 0 3px 12px 0 rgba(0,0,0,0.22);
}

/* Varsayılan görsel ayarı: cover */
.product-list .item img {
   width: 100%;
   height: 50%;
   min-height: 48px;
   object-fit: cover;
   display: block;
   border-top-left-radius: 18px;
   border-top-right-radius: 18px;
}

/* Eğer görselin tamamı görünmeli ise class="contain-img" ekle */
.product-list .item img.contain-img {
   object-fit: contain;
   background: #fff; /* boşluk olursa arka plan */
}

.product-list .item .title {
   font-size: 13px !important;
   font-weight: 700;
   color: #23594F;
   margin: 10px 0 2px 0;
   flex-shrink: 0;
   letter-spacing: 0.1px;
}

.product-list .item .description {
   font-size: 14px;
   color: #555;
   flex: 1 1 auto;
   padding: 0 12px 0 12px;
   margin-bottom: 8px;
   display: flex;
   flex-direction: column;
   align-items: center;
   min-height: 38px;
   max-height: 60px;
   overflow-y: auto;
   scrollbar-width: thin;
   scrollbar-color: #23594F #eee;
}

.product-list .item .desc {
   width: 100%;
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   flex: 1 1 auto;
}

.product-list .item .desc p {
   font-size: 13px;
   color: #777;
   margin: 0;
   padding: 0;
   line-height: 1.3;
   margin-top: auto;
}

.product-list .item .price {
   font-size: 19px;
   color: #fff;
   background: #23594F;
   font-weight: 800;
   letter-spacing: 0.5px;
   border-radius: 0 0 14px 14px;
   display: block;
   margin-top: auto;
   padding: 13px 0 11px 0;
   width: 100%;
   position: relative;
   bottom: 0;
   left: 0;
}

/* Out of Stock Overlay */
.product-list .item .out-of-stock-overlay {
   display: none;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   color: white;
   font-size: 24px;
   font-weight: bold;
   display: flex;
   justify-content: center;
   align-items: center;
   text-align: center;
   z-index: 10;
}

.product-list .item.out-of-stock .out-of-stock-overlay {
   display: flex;
}

/* Footer */
.footer {
   background-color: #23594F;
   position: fixed;
   bottom: 0;
   width: 100%;
   display: flex;
   justify-content: center;
   align-items: center;
}

.footer .highlight {
   font-weight: 700;
}

.footer .back-button {
   position: fixed;
   right: 30px;
   bottom: 100px;
   background-color: #23594F;
   width: 70px;
   height: 70px;
   display: flex;
   justify-content: center;
   align-items: center;
   border-radius: 50%;
   opacity: 0.9;
   transition: opacity 0.3s ease;
}

.footer .back-button:hover {
   opacity: 1;
}

.footer .back-button a {
   color: #fff;
   font-size: 34px;
}

@media (max-width: 992px) {
   .product-list .item {
      aspect-ratio: 1 / 1.2;
      min-height: 180px;
   }
   .product-list .item img {
      height: 50%;
   }
}

@media (max-width: 768px) {
   .product-list {
      row-gap: 10px;
      column-gap: 0;
   }
   .product-list .item {
      aspect-ratio: 1 / 1.15;
      min-height: 140px;
   }
   .product-list .item img {
      height: 50%;
   }
   .product-list .item .title {
      font-size: 13px;
   }
   .product-list .item .description {
      font-size: 12px;
      min-height: 26px;
      max-height: 32px;
      padding: 0 7px 0 7px;
      margin-bottom: 6px;
   }
   .product-list .item .price {
      font-size: 16px;
      padding: 8px 0 7px 0;
   }
}

@media (max-width: 480px) {
   .header .slogan p {
      font-size: 16px;
   }
   .product-list .item .title {
      font-size: 16px;
   }
   .product-list .item .price {
      font-size: 14px;
   }
   .product-list .item .description {
      font-size: 12px;
   }
   .footer .back-button {
      right: 15px;
      bottom: 60px;
      width: 40px;
      height: 40px;
   }
   .footer .back-button a {
      font-size: 20px;
   }
}

/* Kategori Menü (Header Altı) */
.cat-scroll-btn {
   background: #23594Fcc;
   color: #fff;
   border: none;
   outline: none;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   z-index: 10;
   cursor: pointer;
   transition: background 0.2s, color 0.2s;
   box-shadow: 0 2px 8px #0002;
}

.cat-scroll-btn.left {
   left: 0;
}

.cat-scroll-btn.right {
   right: 0;
}

.cat-scroll-btn:hover {
   background: #fff;
   color: #23594F;
}

.categories {
   position: relative;
   width: 100%;
   background: #23594F;
   padding: 10px 0 0 0;
   margin-bottom: 0;
   overflow-x: auto;
   box-shadow: 0 4px 8px -4px #0002, 0 -4px 8px -4px #0002;
   display: block;
}

.cat-list {
   margin: 0 44px;
   display: flex;
   flex-wrap: nowrap;
   justify-content: flex-start;
   align-items: center;
   gap: 10px;
   list-style: none;
   padding: 0 10px;
   overflow-x: auto;
   white-space: nowrap;
   scrollbar-width: thin;
   scrollbar-color: #23594F #fff;
}

.cat-list::-webkit-scrollbar {
   height: 6px;
   background: #fff;
}

.cat-list::-webkit-scrollbar-thumb {
   background: #23594F;
   border-radius: 3px;
}

.cat-list .item {
   background: none;
   box-shadow: none;
   border-radius: 8px;
   width: auto;
   margin: 0 2px;
   padding: 0;
   transition: background 0.2s;
   flex: 0 0 auto;
}

.cat-list .item a {
   display: flex;
   flex-direction: row;
   align-items: center;
   text-decoration: none;
   padding: 8px 18px;
   border-radius: 20px;
   background: transparent;
   transition: background 0.2s, transform 0.2s;
}

.cat-list .item .cat-title {
   font-size: 17px;
   color: #fff;
   font-weight: 800;
   letter-spacing: 0.1px;
   margin: 0;
   text-align: center;
   white-space: nowrap;
   transition: color 0.2s;
}

.cat-list .item a:hover, 
.cat-list .item.active a {
   background: #fff;
   transform: scale(1.08);
}

.cat-list .item a:hover .cat-title, 
.cat-list .item.active a .cat-title {
   color: #23594F;
   font-weight: 700;
}

@media (max-width: 768px) {
   .cat-scroll-btn {
      width: 28px;
      height: 28px;
      font-size: 15px;
   }
   .cat-list {
      margin: 0 32px;
   }
   .cat-list .item .cat-title {
      font-size: 13px;
   }
   .cat-list .item a {
      padding: 6px 10px;
   }
}

/* Custom List */
.custom-list {
   background: #fff;
   border-radius: 14px;
   box-shadow: 0 2px 8px #0001;
   margin: 0;
   padding: 18px 12px;
   list-style: none;
}

.custom-list li {
   background: #f5f5f5;
   border-radius: 8px;
   padding: 10px 18px;
   margin: 0 6px 6px 0;
   font-size: 16px;
   color: #23594F;
   font-weight: 600;
   box-shadow: 0 1px 4px #0001;
   transition: background 0.2s, color 0.2s;
   display: inline-block;
}

.custom-list li:hover {
   background: #23594F;
   color: #fff;
}
