/* Amberorchid - Modern Turkish Clothing Store */

/* CSS Variables */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --success-color: #27ae60;
  --star-color: #f39c12;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --max-width: 1200px;
  --header-height: 70px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--bg-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--accent-color);
}

/* Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent-color);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-color);
  box-shadow: var(--shadow-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-mobile.active {
  max-height: 400px;
}

.nav-mobile a {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--bg-light);
  color: var(--accent-color);
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--primary-color);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.icon-btn:hover {
  color: var(--accent-color);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  min-width: 18px;
  text-align: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

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

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

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

.product-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image-container {
  overflow: hidden;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.product-badge.new {
  background: var(--success-color);
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0.75rem 0;
}

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

/* Star Rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star {
  color: var(--star-color);
}

.star-empty {
  color: #ddd;
}

.rating-number {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
}

.thumbnail-images {
  display: flex;
  gap: 1rem;
}

.thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--accent-color);
}

.product-details-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.reviews-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.product-long-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.size-selector {
  margin: 2rem 0;
}

.size-selector h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.size-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.size-option {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.size-option:hover {
  border-color: var(--primary-color);
}

.size-option.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Reviews */
.reviews-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border-color);
}

.reviews-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.review {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 600;
  color: var(--primary-color);
}

.review-date {
  color: var(--text-light);
  font-size: 0.875rem;
}

.review-comment {
  color: var(--text-color);
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* Cart */
.cart-section {
  margin: 3rem 0;
  min-height: 60vh;
}

.cart-items {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.cart-item-size {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-color);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--border-color);
}

.quantity-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.quantity-btn svg {
  width: 18px;
  height: 18px;
}

.remove-btn {
  color: var(--accent-color);
  padding: 0.5rem;
}

.remove-btn:hover {
  color: #c0392b;
}

.remove-btn svg {
  width: 20px;
  height: 20px;
}

.cart-summary {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
  margin-top: 1rem;
}

.shipping-note {
  background: #e8f5e9;
  color: var(--success-color);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart svg {
  width: 80px;
  height: 80px;
  color: var(--text-light);
  margin: 0 auto 1.5rem;
}

.empty-cart h2 {
  font-size: 1.75rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.empty-cart p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Thank You Page */
.thank-you-page {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.thank-you-icon svg {
  width: 60px;
  height: 60px;
  color: white;
}

.thank-you-page h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.thank-you-page p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover {
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Utilities */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 3rem 0 2rem;
  color: var(--primary-color);
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-image {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-mobile {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .size-options {
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth animations */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
