/* ========================================
   Section Styles
   ======================================== */

/* ========================================
   Products Section
   ======================================== */

.products-section {
  background-color: var(--color-white);
}

.products-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .products-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Desktop Category Tabs */
.products-tabs-wrapper {
  display: none;
  position: relative;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .products-tabs-wrapper {
    display: block;
  }
}

.products-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-gray-100);
}

.products-tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  background-color: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.products-tab:hover {
  color: var(--color-primary);
  background-color: var(--color-gray-100);
}

.products-tab.active {
  color: var(--color-white);
  background-color: var(--color-primary);
}

/* Mobile Category Dropdown */
.products-mobile-select {
  display: block;
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .products-mobile-select {
    display: none;
  }
}

.products-mobile-select label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-gray-800);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.products-mobile-select select {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-gray-800);
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23411629' 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 var(--space-4) center;
  background-size: 20px;
  padding-right: var(--space-12);
  transition: border-color var(--transition-fast);
}

.products-mobile-select select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Products Tab Content */
.products-tab-content {
  display: none;
}

.products-tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

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

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .products-grid {
    gap: var(--space-5);
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   Products Section (Home)
   ======================================== */

.products-section {
  background-color: var(--color-white);
}

.products-section .section-title {
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .products-section .section-title {
    margin-bottom: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .products-section .section-title {
    margin-bottom: var(--space-8);
  }
}

/* Category Tabs Wrapper */
.category-tabs-wrapper {
  position: relative;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .category-tabs-wrapper {
    margin-bottom: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .category-tabs-wrapper {
    margin-bottom: var(--space-8);
  }
}

/* Category Tabs Scroll Arrows */
.category-tabs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.category-tabs-arrow:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
}

.category-tabs-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.category-tabs-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.category-tabs-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--color-gray-600);
}

.category-tabs-arrow-left {
  left: -4px;
}

.category-tabs-arrow-right {
  right: -4px;
}

/* Desktop'ta okları gizle */
@media (min-width: 1024px) {
  .category-tabs-arrow {
    display: none;
  }
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

/* Mobile: Daha küçük tab'lar */
.category-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  background-color: transparent;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Tablet: Biraz daha büyük */
@media (min-width: 640px) {
  .category-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Desktop: Normal boyut */
@media (min-width: 1024px) {
  .category-tabs {
    gap: var(--space-2);
  }

  .category-tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }
}

.category-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-tab.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Desktop: Tab'lar wrap olabilir */
@media (min-width: 1024px) {
  .category-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Tab Content */
.products-tab-content {
  display: none;
}

.products-tab-content.active {
  display: block;
}

/* ========================================
   About Section
   ======================================== */

.about-section {
  background-color: var(--color-gray-50);
  position: relative;
  overflow: hidden;
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .about-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
  }
}

/* About Content */
.about-content {
  flex: 1;
  order: 2;
}

@media (min-width: 768px) {
  .about-content {
    order: 1;
  }
}

.about-quote {
  margin-bottom: var(--space-6);
}

.about-quote svg {
  width: 48px;
  height: 40px;
  fill: var(--color-primary);
}

@media (min-width: 768px) {
  .about-quote svg {
    width: 62px;
    height: 49px;
  }
}

.about-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .about-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
  }
}

.about-text {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
  .about-text {
    font-size: var(--text-lg);
  }
}

.about-text p {
  margin-bottom: var(--space-4);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--color-gray-800);
}

/* About Images */
.about-images {
  flex: 1;
  order: 1;
  position: relative;
}

@media (min-width: 768px) {
  .about-images {
    order: 2;
  }
}

.about-image-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .about-image-wrapper {
    padding-bottom: var(--space-12);
  }
}

.about-image-primary {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-primary img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-image-secondary {
  position: absolute;
  bottom: calc(-1 * var(--space-8));
  left: calc(-1 * var(--space-6));
  width: 55%;
  max-width: 220px;
  z-index: 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 4px solid var(--color-white);
}

@media (min-width: 768px) {
  .about-image-secondary {
    bottom: calc(-1 * var(--space-10));
    left: calc(-1 * var(--space-10));
    width: 50%;
    max-width: 240px;
  }
}

.about-image-secondary img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-pattern {
  position: absolute;
  top: calc(-1 * var(--space-6));
  right: calc(-1 * var(--space-6));
  width: 120px;
  height: 120px;
  background: repeating-linear-gradient(
    45deg,
    var(--color-primary) 0,
    var(--color-primary) 2px,
    transparent 2px,
    transparent 10px
  );
  opacity: 0.1;
  border-radius: var(--radius-xl);
  z-index: 1;
}

@media (min-width: 768px) {
  .about-pattern {
    width: 160px;
    height: 160px;
    top: calc(-1 * var(--space-10));
    right: calc(-1 * var(--space-10));
  }
}

/* ========================================
   References Section
   ======================================== */

.references-section {
  background-color: var(--color-white);
  position: relative;
}

.references-header {
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .references-header {
    margin-bottom: var(--space-10);
  }
}

/* References Slider */
.references-slider-wrapper {
  position: relative;
}

.references-slider {
  overflow: hidden;
}

.reference-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.reference-card:hover {
  border-color: var(--color-gray-200);
  box-shadow: var(--shadow-md);
}

.reference-logo {
  width: 100%;
  max-width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.reference-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.reference-card:hover .reference-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.reference-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  line-height: var(--leading-snug);
}

/* References Navigation */
.references-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.references-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.references-nav-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.references-nav-btn:hover svg {
  color: var(--color-white);
}

.references-nav-btn svg {
  width: 18px;
  height: 18px;
  color: var(--color-gray-600);
  transition: color var(--transition-fast);
}

.references-nav-btn.prev {
  margin-left: calc(var(--space-4) * -1);
}

.references-nav-btn.next {
  margin-right: calc(var(--space-4) * -1);
}

.references-nav-btn.prev svg {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .references-nav-btn.prev {
    margin-left: calc(var(--space-6) * -1);
  }

  .references-nav-btn.next {
    margin-right: calc(var(--space-6) * -1);
  }
}

/* ========================================
   Section Divider
   ======================================== */

.section-plus-divider {
  position: relative;
  padding: var(--space-2) 0;
}

.section-plus-divider::before {
  content: '+';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  color: var(--color-gray-400);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
}

.section-plus-divider.left::before {
  right: auto;
  left: var(--space-4);
}

@media (min-width: 768px) {
  .section-plus-divider::before {
    right: var(--space-8);
  }

  .section-plus-divider.left::before {
    left: var(--space-8);
  }
}

/* ========================================
   Trust Band
   ======================================== */

.trust-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark, #2d0f1c) 100%);
  padding: var(--space-6) 0;
}

.trust-band-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-band-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.trust-number {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: 1;
}

@media (min-width: 768px) {
  .trust-number {
    font-size: var(--text-3xl);
  }
}

.trust-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .trust-label {
    font-size: var(--text-base);
  }
}
