/**
 * Teknoloji Uzmanı Shop & Catalog Styling
 */

.tk-shop-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* 1. Shop Controls (Search & Sort) */
.tk-shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .tk-shop-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.25rem 1.5rem;
  }
}

.tk-search-wrapper {
  position: relative;
  flex-grow: 1;
}

.tk-search-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 0.85rem 1.5rem 0.85rem 3rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tk-search-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.tk-search-wrapper .search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.7;
  pointer-events: none;
}

.tk-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.tk-sort-wrapper label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.tk-sort-wrapper select {
  background: #0d122c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.tk-sort-wrapper select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

/* 2. Category Tabs */
.tk-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.tk-cat-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tk-cat-tab:hover, .tk-cat-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

/* 3. Products Grid */
.tk-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.tk-no-products {
  grid-column: 1 / -1;
  padding: 4rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Product Card */
.tk-product-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 20px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tk-product-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(0, 245, 255, 0.15);
}

.tk-product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
}

.tk-main-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tk-product-card:hover .tk-main-thumb {
  transform: scale(1.05);
}

/* Media Badges */
.tk-media-badge {
  position: absolute;
  top: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.05em;
}

.tk-media-badge.video {
  right: 0.75rem;
  background: rgba(0, 114, 255, 0.85);
  border: 1px solid rgba(0, 114, 255, 0.4);
  color: #ffffff;
}

.tk-media-badge.gif {
  left: 0.75rem;
  background: rgba(255, 0, 119, 0.85);
  border: 1px solid rgba(255, 0, 119, 0.4);
  color: #ffffff;
}

/* Product Info */
.tk-product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tk-product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.tk-product-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* 4. Lightbox Modal */
.tk-shop-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tk-shop-modal.active {
  opacity: 1;
  visibility: visible;
}

.tk-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tk-modal-body {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 3rem;
  border-color: rgba(0, 245, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transform: scale(0.95) translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tk-shop-modal.active .tk-modal-body {
  transform: scale(1) translateY(0);
}

.tk-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 5;
}

.tk-modal-close:hover {
  color: #ffffff;
}

.tk-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .tk-modal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tk-modal-body {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }
}

/* Modal Gallery */
.tk-modal-media-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-modal-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-gallery-selectors {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.gallery-select-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-select-btn.active, .gallery-select-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.15);
}

/* Modal Details */
.tk-modal-details h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.tk-modal-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.tk-specs-section h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}

.tk-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.tk-specs-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.tk-specs-table tr:last-child {
  border-bottom: none;
}

.tk-specs-table td {
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.tk-specs-table td.spec-key {
  font-weight: 600;
  color: var(--color-primary);
  width: 120px;
}

.tk-specs-table td.spec-val {
  color: #ffffff;
}

/* Carousel and hovering adjustments */
.tk-product-card .main-gif {
  pointer-events: none;
}
.tk-product-card:hover .main-static {
  display: none !important;
}
.tk-product-card:hover .main-gif {
  display: block !important;
}
