/* Ömür Plastik & Ambalaj - Mağaza Arayüzü Stilleri */

/* =============================================
   SLIDER / KAMPANYA SLAYT GÖSTERİSİ
   ============================================= */

.slider-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 30px 0;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 320px;
  padding: 60px 72px;
  display: flex;
  align-items: center;
  color: white;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.slide-item.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide-content {
  max-width: 640px;
  z-index: 2;
}

.slide-content h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slide-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Slider Yön Okları */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* Slider Nokta Göstergeleri */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.slider-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* Slayt arka plan dekoratif elementler */
.slide-item::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.slide-item::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 15%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

/* Slideout animation (toast için) */
@keyframes slideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Kategori Hap Filtreleri */
.categories-container {
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.categories-list {
  display: flex;
  gap: 12px;
  width: max-content;
}

.category-pill {
  padding: 10px 20px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  color: var(--text-dark);
}

.category-pill:hover, .category-pill.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(179, 29, 29, 0.2);
  transform: translateY(-1px);
}

/* Ürün Grid ve Kartları */
.products-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-section-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 24px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(179, 29, 29, 0.2);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Kare Görünüm (1:1 Ratio) */
  background-color: #f1f2f6;
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.product-stock-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #e63946;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 10;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.product-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.add-to-cart-btn {
  background-color: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1);
}

.add-to-cart-btn:disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Sepet Çekmecesi Ürün Listesi */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background-color: #f1f2f6;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-dark);
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--border-color);
}

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.remove-cart-item {
  background: none;
  border: none;
  color: #e63946;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.remove-cart-item:hover {
  background-color: rgba(230, 57, 70, 0.1);
}

/* Sepet Özeti */
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 500;
}

.cart-summary-total {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

/* Boş Sepet Arayüzü */
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.empty-cart-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--border-color);
}

/* Checkout Formu (Sipariş Verme Ekranı) */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.payment-option-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option-card i {
  font-size: 24px;
  color: var(--text-muted);
}

.payment-option-card.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.payment-option-card.active i {
  color: var(--primary);
}

.payment-info-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  font-size: 13px;
  border-left: 4px solid var(--accent);
}

@media (max-width: 768px) {
  .slider-container {
    min-height: 260px;
    margin: 16px 0;
    border-radius: var(--radius-md);
  }

  .slides-wrapper {
    min-height: 260px;
  }

  .slide-item {
    min-height: 260px;
    padding: 36px 28px;
    padding-bottom: 56px;
  }

  .slide-content h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .slide-content p {
    font-size: 13px;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .payment-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-title {
    font-size: 14px;
  }
  .product-price {
    font-size: 15px;
  }
}

/* =============================================
   MÜŞTERİ PROFİL SAYFASI & SİPARİŞ DURUMU (STEPPER)
   ============================================= */

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 30px;
  margin-bottom: 60px;
  align-items: start;
}

.profile-sidebar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar-box {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  color: white;
  font-size: 32px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 10px rgba(179, 29, 29, 0.2);
}

.profile-avatar-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.profile-avatar-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-since {
  font-size: 11px;
  background-color: var(--bg-light);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.profile-nav-btn:hover {
  background-color: var(--bg-light);
}

.profile-nav-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.profile-badge {
  background-color: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.profile-content {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
}

.order-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.order-card:hover {
  border-color: rgba(179, 29, 29, 0.2);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.order-number {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.order-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.status-beklemede { background-color: #fff3cd; color: #856404; }
.status-hazırlanıyor { background-color: #cce5ff; color: #004085; }
.status-kargolandı { background-color: #d4edda; color: #155724; }
.status-teslimedildi { background-color: #d1ecf1; color: #0c5460; }
.status-iptaledildi { background-color: #f8d7da; color: #721c24; }

.order-stepper {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-white);
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 8px;
  transition: all 0.3s;
  border: 2.5px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--border-color);
}

.stepper-step.completed .stepper-circle {
  background-color: #2ec4b6;
  color: white;
  box-shadow: 0 0 0 2px #2ec4b6;
}

.stepper-step.current .stepper-circle {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 2px var(--primary);
  transform: scale(1.15);
}

.stepper-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.stepper-step.completed .stepper-label, .stepper-step.current .stepper-label {
  color: var(--text-dark);
}

.stepper-line {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.stepper-line.completed {
  background-color: #2ec4b6;
}

.stepper-cancelled {
  text-align: center;
  color: #e63946;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  background-color: #f8d7da;
  border-radius: var(--radius-sm);
}

.order-items-list {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.order-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-item-row:first-child {
  padding-top: 0;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: var(--bg-light);
}

/* =============================================
   RESPONSIVE PROFILE & MOBILE STEPPER
   ============================================= */

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-left: 20px;
  }
  .stepper-step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: flex-start;
  }
  .stepper-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .stepper-label {
    text-align: left;
    font-size: 12px;
  }
  .stepper-line {
    left: 18px;
    top: 36px;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    display: none; /* Mobile handles sequence logically */
  }
}

/* Sepete Ekle Butonunu Gizleme */
.add-to-cart-btn {
  display: none !important;
}

/* Centering Categories Container */
.categories-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  padding: 10px 0;
  width: 100%;
}

.categories-list {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Subcategories Bar on Shop Page */
.sub-categories-list {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px dashed var(--border-color);
  margin-top: 12px;
  width: 100%;
}

.subcategory-pill {
  padding: 6px 14px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.subcategory-pill:hover, .subcategory-pill.active {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Ultra Responsive Mobil Stiller (Telefon & Tablet) */
@media (max-width: 768px) {
  .slider-container {
    min-height: 180px !important;
    margin: 8px 0 16px 0 !important;
    border-radius: var(--radius-md) !important;
  }

  .slides-wrapper, .slide-item {
    min-height: 180px !important;
    padding: 16px 14px !important;
  }

  .slide-content h1 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }

  .slide-content p {
    font-size: 11.5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .categories-container {
    margin-bottom: 16px;
    padding: 4px 0;
  }

  .categories-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 8px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .category-pill {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 14px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-image-wrapper {
    height: 150px !important;
  }

  .product-image-wrapper img {
    height: 150px !important;
    object-fit: contain !important;
  }

  .product-info {
    padding: 8px !important;
  }

  .product-title {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    height: auto !important;
  }

  .product-description {
    display: none !important;
  }

  .product-price {
    font-size: 13.5px !important;
  }

  .product-detail-modal {
    width: 95% !important;
    max-height: 92vh !important;
    border-radius: var(--radius-md) !important;
  }

  .product-detail-modal-body {
    padding: 14px !important;
  }

  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .product-detail-layout > div:first-child {
    height: 240px !important;
    padding: 10px !important;
  }

  /* İletişim ve Hakkımızda Mobil Responsive Stilleri */
  .contact-page-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .contact-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .contact-form-card {
    padding: 20px 16px !important;
  }

  .page-hero {
    padding: 36px 20px !important;
    margin: 16px 0 !important;
  }

  .page-hero div[style*="font-size: 48px"] {
    font-size: 34px !important;
  }

  .page-hero div[style*="font-size: 22px"] {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .product-image-wrapper {
    height: 135px !important;
  }

  .product-image-wrapper img {
    height: 135px !important;
  }
}


