/* Modern Jewelry Product Detail Page */
:root {
  /* Ana Renkler */
  --color-gold: #d4af37;
  --color-gold-light: #e6d08a;
  --color-gold-dark: #a88b1e;
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray-100: #f8f9fa;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;

  /* Fontlar */
  --font-primary: 'Cormorant', serif;
  --font-secondary: 'FaunaOne', sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Temel Değişkenler */
  --gold-color: #B8860B;
  --dark-color: #333;
  --text-color: #666;
  --light-bg: #f9f9f9;
  --border-color: #eee;
  --container-padding-mobile: 1rem;
  --container-padding-desktop: 2rem;
  --border-radius: 8px;
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
  margin: 0 auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Breadcrumb */
.breadcrumb-container {
  background: var(--light-bg);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.breadcrumb-item {
  color: var(--color-gray-600);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-item:hover {
  color: var(--color-gold);
}

.breadcrumb-item.active {
  color: var(--color-gold);
  font-weight: 500;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: var(--spacing-sm);
  color: var(--color-gray-400);
}

/* Product Detail */
.product-detail {
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .product-detail {
    padding: 2rem 0;
  }
}

/* Grid Layout */
.product-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Gallery Styles */
.product-gallery {
  position: relative;
  margin-bottom: 1.5rem;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  margin-bottom: 1rem;
}

.main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Thumbnails */
.gallery-thumbs {
  position: relative;
  padding: 0 2.5rem;
  margin: 0.5rem 0;
}

.thumbs-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.thumbs-container::-webkit-scrollbar {
  display: none;
}

.thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

@media (min-width: 576px) {
  .thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
}

.thumb.active {
  opacity: 1;
  border-color: var(--color-gold);
}

/* Navigation Buttons */
.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--color-gold);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
}

.thumb-nav.prev { left: 0; }
.thumb-nav.next { right: 0; }

.thumb-nav:hover {
  background: var(--color-gold-dark);
}

.thumb-nav:disabled {
  background: var(--color-gray-400);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Product Info Styles */
.product-info {
  padding: 0;
}

.product-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .product-header {
    text-align: left;
  }
}

.product-category {
  font-size: 0.875rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.product-title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0.5rem 0;
  color: var(--color-black);
  font-family: var(--font-primary);
}

@media (min-width: 576px) {
  .product-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .product-title {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  .product-title {
    font-size: 2.5rem;
  }
}

.product-price {
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 600;
  margin: 0.5rem 0;
}

@media (min-width: 768px) {
  .product-price {
    font-size: 2rem;
  }
}

.product-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .product-description {
    font-size: 1rem;
  }
}

/* Specifications Styles */
.product-specs {
  margin: 1.5rem 0;
}

.specs-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.specs-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .specs-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.spec-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.spec-item i {
  color: #B8860B;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 134, 11, 0.1);
  border-radius: 50%;
}

.spec-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 120px;
}

.spec-label::after {
  content: ':';
  margin-left: 4px;
  color: #B8860B;
}

.spec-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 500;
}

/* Özel değer stilleri */
.spec-value[data-type="sku"] {
  font-family: monospace;
  background: #f1f3f5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.spec-value[data-type="dimension"] {
  color: #495057;
}

.spec-value[data-type="material"] {
  color: #B8860B;
  font-weight: 600;
}

.spec-value[data-type="stock"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.spec-value[data-status="in_stock"] {
  background: #d4edda;
  color: #155724;
}

.spec-value[data-status="out_of_stock"] {
  background: #f8d7da;
  color: #721c24;
}

.spec-value[data-status="pre_order"] {
  background: #fff3cd;
  color: #856404;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
  .product-specs {
    padding: 1.5rem;
  }

  .spec-item {
    grid-template-columns: 24px 1fr;
    padding: 0.8rem;
  }

  .spec-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .spec-label {
    min-width: auto;
    font-size: 0.8rem;
  }

  .spec-value {
    font-size: 0.9rem;
  }
}

/* Product Features */
.product-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .product-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature i {
  font-size: 1.5rem;
  color: var(--color-gold);
}

.feature-content h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  margin: 0;
}

/* Action Buttons */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 576px) {
  .product-actions {
    flex-direction: row;
  }
}

.btn {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 576px) {
  .btn {
    width: auto;
    flex: 1;
  }
}

.btn i {
  font-size: 1.2rem;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128C7E;
}

.btn-share {
  background: var(--color-gray-700);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-share:hover {
  background: var(--color-gray-800);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 95%;
  max-width: 800px;
  margin: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 576px) {
  .modal-content {
    padding: 1.5rem;
  }
}

#imageModal .modal-content {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0;
  background: transparent;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

#modalImage {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Share Modal */
#shareModal .modal-content {
  padding: 2rem;
  width: 100%;
  max-width: 500px;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .share-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.share-btn {
  padding: 0.8rem;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.share-btn:hover {
  opacity: 0.9;
}

.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.email { background: #EA4335; }

/* Similar Products */
.similar-products {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-200);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-black);
}

.similar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 576px) {
  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .similar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  color: var(--color-gold);
  font-weight: 500;
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  z-index: 2;
}

.badge {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

@media (min-width: 576px) {
  .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.badge-new {
  background: #2ECC71;
  color: white;
}

.badge-featured {
  background: #F1C40F;
  color: white;
}

/* Loading States */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-grid {
    gap: var(--spacing-xl);
  }
  
  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-title {
    font-size: 2rem;
  }
  
  .product-price {
    font-size: 1.75rem;
  }
  
  .product-features {
    grid-template-columns: 1fr;
  }
  
  .similar-grid {
    grid-template-columns: 1fr;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .share-buttons {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .product-card:hover {
    transform: none;
  }

  .card-image img:hover {
    transform: none;
  }

  .thumb:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .product-actions,
  .similar-products,
  .modal,
  .gallery-thumbs {
    display: none !important;
  }

  .product-grid {
    grid-template-columns: 1fr !important;
  }

  .product-gallery {
    page-break-inside: avoid;
  }

  .main-image {
    max-width: 50% !important;
    margin: 0 auto;
  }
} 
