/* Root Variables - Light Theme (Default) */
:root {
  /* Light Mode Colors (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #ebebeb;
  --bg-input: #ffffff;
  --border-soft: #e0e0e0;
  --border-medium: #d0d0d0;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary: #888888;
  --text-input: #1a1a1a;
  --accent-primary: #dc2626;
  --accent-hover: #b91c1b;
  --accent-light: #fef2f2;
  --accent-cyan: #dc2626; /* SADECE fiyat metni için kırmızı */
  --price-color: #dc2626; /* Fiyat metni rengi */
  --badge-bg: #1a1a1a; /* Siyah - badge arkaplanları için */
  --badge-text: #ffffff; /* Beyaz - badge metinleri için */
  --button-bg: #1a1a1a; /* Siyah - buton arkaplanları için */
  --button-text: #ffffff; /* Beyaz - buton metinleri için */
  --error: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
  --search-bg: #f5f5f5;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  --section-divider: linear-gradient(90deg, transparent, rgba(220,38,38,0.15), transparent);
}

/* Dark Mode (for future use) */
[data-theme="dark"] {
  --bg-primary: #171a1c;
  --bg-secondary: #1e2224;
  --bg-tertiary: #252a2d;
  --bg-input: #171a1c;
  --border-soft: #2b303b;
  --border-medium: #3b4049;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-input: #e5e7eb;
  --accent-primary: #ef4444;
  --accent-hover: #dc2626;
  --accent-light: #7f1d1d;
  --accent-cyan: #ef4444;
  --error: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --search-bg: #131517;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Custom Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Dropdown Hover Fix */
.group:hover .group-hover\:opacity-100 {
  opacity: 1 !important;
}

.group:hover .group-hover\:visible {
  visibility: visible !important;
}

/* Header Overflow Fix for Dropdowns */
header {
  overflow: visible !important;
}

header > div {
  overflow: visible !important;
}

nav {
  overflow: visible !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
}

/* Remove dark overlay effect for light theme */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(
    ellipse at top right,
    rgba(220, 38, 38, 0.05) 0%,
    rgba(220, 38, 38, 0.02) 25%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    ellipse at bottom left,
    rgba(15, 52, 96, 0.04) 0%,
    rgba(26, 26, 46, 0.02) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* Header Styles */
header {
  transition: transform 0.3s ease-in-out;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-soft);
}

/* Premium Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--section-divider);
}

/* Placeholder color for dark search inputs */
.placeholder-search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Card hover lift effect */
.card-premium {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* Section separator line */
.section-separator {
  height: 1px;
  background: var(--section-divider);
  margin: 0 auto;
  width: 80%;
}

header.header-hidden {
  transform: translateY(-100%);
}

/* Mobile Menu Styles */
.translate-x-full {
  transform: translateX(100%) !important;
}

.translate-x-0 {
  transform: translateX(0) !important;
}

/* Form Transitions */
.form-container {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Indicators */
.step-box {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-box.active {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.step-box.completed {
  background-color: var(--accent-primary) !important;
}

/* Step Content Animations */
.step-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.step-content.hidden {
  display: none !important;
}

.step-content:not(.hidden) {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  display: block;
}

/* Slide animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

.step-content.slide-in-right {
  animation: slideInRight 0.4s ease-out forwards;
}

.step-content.slide-in-left {
  animation: slideInLeft 0.4s ease-out forwards;
}

.step-content.slide-out-left {
  animation: slideOutLeft 0.3s ease-in forwards;
}

.step-content.slide-out-right {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Select Dropdown - Remove default arrow */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Input Focus Effects */
input:focus,
select:focus {
  transform: none;
}

/* Custom Select Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Button Hover Effects */
button {
  transition: all 0.3s ease;
}

button:active {
  transform: scale(0.98);
}

/* Language Dropdown Animation */
#languageDropdown,
#mobileLanguageDropdown {
  transition: all 0.3s ease;
  transform-origin: top;
}

#languageDropdown.hidden,
#mobileLanguageDropdown.hidden {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
}

#languageDropdown:not(.hidden),
#mobileLanguageDropdown:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dashboard Image Hover Animation */
.dashboard-image-container {
  position: relative;
  overflow: hidden;
}

.dashboard-image-container img {
  transition: transform 0.6s ease, filter 0.4s ease;
}

.dashboard-image-container:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.dashboard-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.05) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dashboard-image-container:hover::after {
  opacity: 1;
}

/* Custom Checkbox */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

.custom-checkbox:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.custom-checkbox:hover {
  border-color: var(--accent-primary);
}

.custom-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Custom Scrollbar - Light Theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hidden.lg\:flex {
    display: none !important;
  }
}

@media (max-width: 768px) {
  header .flex.items-center.space-x-6 {
    gap: 1rem;
  }

  header .flex.items-center.space-x-6 span {
    display: none;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toast Notification - Light Theme */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ffffff;
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border-soft);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

/* Password Toggle Button */
.password-toggle {
  cursor: pointer;
  user-select: none;
}

/* Input, Select, Textarea Styles - Light Theme */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text-input) !important;
  border-radius: 13px !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  background-color: var(--bg-input) !important;
  border-color: var(--accent-primary) !important;
  color: var(--text-input) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Error State */
input.border-red-500,
select.border-red-500,
textarea.border-red-500 {
  border-color: var(--error) !important;
}

/* Placeholder Color */
input::placeholder,
select::placeholder,
textarea::placeholder {
  color: var(--text-tertiary) !important;
  opacity: 0.8;
}

/* Banner Slider Styles */
.banner-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  display: flex;
  opacity: 1;
}

/* Swiper Custom Styles */
.bannerSwiper {
  width: 100%;
  height: 100%;
}

.bannerSwiper .swiper-button-prev,
.bannerSwiper .swiper-button-next {
  display: none;
}

.bannerSwiper .swiper-pagination {
  bottom: 20px !important;
}

.bannerSwiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.bannerSwiper .swiper-pagination-bullet-active {
  background-color: var(--accent-primary);
  width: 32px;
  border-radius: 6px;
}

/* Product Swiper Styles - Light Theme */
.newProductsSwiper .swiper-button-prev,
.newProductsSwiper .swiper-button-next,
.newProductsSwiper .new-products-prev,
.newProductsSwiper .new-products-next,
.featuredProductsSwiper .swiper-button-prev,
.featuredProductsSwiper .swiper-button-next,
.featuredProductsSwiper .featured-products-prev,
.featuredProductsSwiper .featured-products-next,
div.swiper-button-prev,
div.swiper-button-next {
  width: 48px !important;
  height: 48px !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease !important;
  margin-top: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.newProductsSwiper .swiper-button-prev:after,
.newProductsSwiper .swiper-button-next:after,
.newProductsSwiper .new-products-prev:after,
.newProductsSwiper .new-products-next:after,
.featuredProductsSwiper .swiper-button-prev:after,
.featuredProductsSwiper .swiper-button-next:after,
.featuredProductsSwiper .featured-products-prev:after,
.featuredProductsSwiper .featured-products-next:after,
div.swiper-button-prev:after,
div.swiper-button-next:after {
  font-size: 20px !important;
  font-weight: bold !important;
  color: var(--text-primary) !important;
}

.newProductsSwiper .swiper-button-prev:hover,
.newProductsSwiper .swiper-button-next:hover,
.newProductsSwiper .new-products-prev:hover,
.newProductsSwiper .new-products-next:hover,
.featuredProductsSwiper .swiper-button-prev:hover,
.featuredProductsSwiper .swiper-button-next:hover,
.featuredProductsSwiper .featured-products-prev:hover,
.featuredProductsSwiper .featured-products-next:hover,
div.swiper-button-prev:hover,
div.swiper-button-next:hover {
  background-color: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

.newProductsSwiper .swiper-button-prev:hover:after,
.newProductsSwiper .swiper-button-next:hover:after,
div.swiper-button-prev:hover:after,
div.swiper-button-next:hover:after {
  color: #ffffff !important;
}

.newProductsSwiper .swiper-slide,
.featuredProductsSwiper .swiper-slide {
  height: auto;
}

/* Product Slider Scroll */
#newProducts,
#featuredProducts {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 1.5rem;
}

#newProducts::-webkit-scrollbar,
#featuredProducts::-webkit-scrollbar {
  display: none;
}

#newProducts > div,
#featuredProducts > div {
  flex: 0 0 auto;
  width: 280px;
}

@media (min-width: 768px) {
  #newProducts > div,
  #featuredProducts > div {
    width: 320px;
  }
}

/* Profile Page Settings Container Responsive Border Radius */
@media (max-width: 768px) {
    .profile-settings-container {
        border-radius: 1rem !important;
    }
}

@media (min-width: 769px) {
    .profile-settings-container {
        border-radius: 1rem 1rem 0 0 !important;
    }
}

/* Card Styles - Light Theme */
.card, [class*="rounded-xl"][style*="--bg-secondary"] {
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Badge Colors */
.badge-new {
  background-color: var(--accent-primary) !important;
  color: #ffffff !important;
}

.badge-discount {
  background-color: #059669 !important;
  color: #ffffff !important;
}

/* Button Primary - Red Accent */
.btn-primary {
  background-color: var(--accent-primary) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--accent-hover) !important;
}

/* Fiyat metinleri - SADECE metin rengi, arkaplan YOK */
[style*="color: var(--accent-cyan)"] {
  background-color: transparent !important;
  background: transparent !important;
}

[style*="color: var(--price-color)"] {
  background-color: transparent !important;
  background: transparent !important;
}

/* Favori buton stilleri artık inline olarak yönetiliyor */

/* Links */
a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary);
}

/* Table Styles - Light Theme */
table {
  background-color: var(--bg-primary);
}

table th {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-soft);
}

table td {
  border-bottom: 1px solid var(--border-soft);
}

table tr:hover {
  background-color: var(--bg-secondary);
}

/* Modal Styles - Light Theme */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dropdown Styles - Light Theme */
.dropdown-menu {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Override dark background colors in blade templates */
[style*="background-color: #171a1c"],
[style*="background-color: #1e2224"],
[style*="background-color: #1a1d1f"],
[style*="background: #171a1c"] {
  background-color: var(--bg-secondary) !important;
}

/* Stock badge colors */
.bg-gray-700 {
  background-color: #374151 !important;
}

.bg-green-400 {
  background-color: #4ade80 !important;
}

/* Ensure white text on dark badges */
.text-white {
  color: #ffffff !important;
}
