/* =============================================================================
   PRODUCT PAGE - Professional Enterprise-Grade Styles
   ============================================================================= */

/* =============================================================================
   MAIN LAYOUT
   ============================================================================= */

.product-page {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
  background: linear-gradient(
    135deg,
    #0f0f23 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #0f3460 75%,
    #533483 100%
  );
  position: relative;
  overflow: hidden;
}

.product-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.2) 0%,
      transparent 50%
    );
  z-index: 0;
}

.product-page::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 70%
    ),
    linear-gradient(
      -45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.01) 50%,
      transparent 70%
    );
  z-index: 1;
}

.product-page .container {
  position: relative;
  z-index: 2;
}

/* =============================================================================
     BREADCRUMB NAVIGATION
     ============================================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2.5rem;
  font-size: 14px;
  color: #a1a1aa;
  padding: 1rem 0;
}

.breadcrumb a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.breadcrumb a:hover {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.15);
  transform: translateY(-1px);
}

.breadcrumb .separator {
  color: #71717a;
  font-weight: 600;
}

.breadcrumb .current {
  color: #f4f4f5;
  font-weight: 600;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================================================
     PRODUCT DETAILS LAYOUT
     ============================================================================= */

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  background: rgba(15, 15, 35, 0.8);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.product-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(255, 119, 198, 0.1) 100%
  );
  z-index: 0;
}

.product-details > * {
  position: relative;
  z-index: 1;
}

/* =============================================================================
     PRODUCT GALLERY
     ============================================================================= */

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 50%,
    rgba(240, 147, 251, 0.1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  /* backdrop-filter: blur(10px); - Removed for performance */
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-image:hover img {
  transform: translateZ(0) scale(1.02);
}

.no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: #94a3b8;
  padding: 2rem;
}

.no-image-placeholder svg {
  opacity: 0.6;
}

.no-image-placeholder p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* =============================================================================
     THUMBNAIL GALLERY
     ============================================================================= */

.thumbnail-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.thumbnail:hover {
  transform: translate3d(0, -2px, 0) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail:hover::before {
  opacity: 1;
}

.thumbnail.active {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.thumbnail.active::before {
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* =============================================================================
     PRODUCT INFO
     ============================================================================= */

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f4f4f5;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.product-category a {
  color: #60a5fa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.2) 0%,
    rgba(167, 139, 250, 0.2) 100%
  );
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.product-category a:hover {
  color: #93c5fd;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.3) 0%,
    rgba(167, 139, 250, 0.3) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

/* =============================================================================
     PRICING SECTION
     ============================================================================= */

.product-price {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.15) 0%,
    rgba(167, 139, 250, 0.15) 50%,
    rgba(255, 119, 198, 0.15) 100%
  );
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.current-price {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.original-price {
  font-size: 1.5rem;
  color: #71717a;
  text-decoration: line-through;
  font-weight: 500;
}

.discount-badge {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* =============================================================================
     STOCK STATUS
     ============================================================================= */

.product-stock {
  margin-bottom: 2rem;
}

.stock-available {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #10b981;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2) 0%,
    rgba(34, 197, 94, 0.2) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.stock-available svg {
  color: #10b981;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

.stock-out {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f87171;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.2) 0%,
    rgba(251, 146, 60, 0.2) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: 0 4px 15px rgba(248, 113, 113, 0.2);
}

.stock-out svg {
  color: #f87171;
  filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.5));
}

/* =============================================================================
     PRODUCT DESCRIPTION
     ============================================================================= */

.product-description {
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(255, 119, 198, 0.1) 100%
  );
  border-radius: 16px;
  border-left: 4px solid #60a5fa;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-description h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f4f4f5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-description h3::before {
  content: "📝";
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
  margin-right: 0.5rem;
}

.product-description h3 span {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-description p {
  margin: 0;
  line-height: 1.7;
  color: #a1a1aa;
  font-size: 1.1rem;
}

/* =============================================================================
     PRODUCT ACTIONS
     ============================================================================= */

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  /* backdrop-filter: blur(15px); - Removed for performance */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
}

.product-actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.03) 0%,
    rgba(118, 75, 162, 0.03) 50%,
    rgba(240, 147, 251, 0.03) 100%
  );
  z-index: 0;
}

.product-actions > * {
  position: relative;
  z-index: 1;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quantity-selector label {
  font-weight: 700;
  color: rgb(32, 127, 190);
  font-size: 1.1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(15, 15, 35, 0.6);
}

.quantity-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.2) 0%,
    rgba(167, 139, 250, 0.2) 100%
  );
  color: #f4f4f5;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.3) 0%,
    rgba(167, 139, 250, 0.3) 100%
  );
  color: #93c5fd;
  transform: translateZ(0) scale(1.02);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

.quantity-btn:active {
  transform: translateZ(0) scale(0.98);
}

#quantity {
  width: 80px;
  height: 48px;
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #f4f4f5;
  background: rgba(96, 165, 250, 0.1);
}

#quantity:focus {
  outline: none;
  background: rgba(96, 165, 250, 0.2);
}

/* =============================================================================
     ACTION BUTTONS
     ============================================================================= */

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 32px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  width: auto;
  min-width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  /* backdrop-filter: blur(15px); - Removed for performance */
  color: #475569;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateZ(0) scale(1.05);
}

/* =============================================================================
     OUT OF STOCK ACTIONS
     ============================================================================= */

.out-of-stock-actions {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: 16px;
  border: 1px solid #fecaca;
}

.btn-disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
  color: #f3f4f6 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3) !important;
}

.btn-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3) !important;
}

.stock-notification {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
}

/* =============================================================================
     PRODUCT FEATURES
     ============================================================================= */

.product-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 50%,
    rgba(240, 147, 251, 0.08) 100%
  );
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  /* backdrop-filter: blur(15px); - Removed for performance */
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #0369a1;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  /* backdrop-filter: blur(10px); - Removed for performance */
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(8px);
}

.feature svg {
  color: #0ea5e9;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.feature:hover svg {
  transform: translateZ(0) scale(1.05);
}

/* =============================================================================
     RELATED PRODUCTS
     ============================================================================= */

.related-products {
  margin-top: 5rem;
  padding: 3rem;
  background: rgba(15, 15, 35, 0.8);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.related-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(255, 119, 198, 0.1) 100%
  );
  z-index: 0;
}

.related-products > * {
  position: relative;
  z-index: 1;
}

.related-products h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.related-product-card {
  background: rgba(15, 15, 35, 0.6);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.related-product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1) 0%,
    rgba(167, 139, 250, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.related-product-card:hover {
  transform: translate3d(0, -4px, 0) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(96, 165, 250, 0.3);
}

.related-product-card:hover::before {
  opacity: 1;
}

.related-product-card .product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}

.related-product-card .product-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 50%,
    rgba(240, 147, 251, 0.1) 100%
  );
}

.related-product-card .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.related-product-card:hover .product-thumb img {
  transform: translateZ(0) scale(1.05);
}

.related-product-card .product-info {
  padding: 1.5rem;
}

.related-product-card .product-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #f4f4f5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.related-product-card .product-info .price {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
  margin: 0;
}

/* =============================================================================
     RESPONSIVE DESIGN
     ============================================================================= */

@media (max-width: 1024px) {
  .product-details {
    gap: 3rem;
    padding: 2.5rem;
  }

  .product-title {
    font-size: 2.2rem;
  }

  .current-price {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding: 1rem 0;
  }

  .product-details {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
  }

  .product-title {
    font-size: 2rem;
  }

  .current-price {
    font-size: 2.2rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .related-products {
    padding: 2rem;
    margin-top: 3rem;
  }

  .related-products h2 {
    font-size: 2rem;
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .product-details {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .product-title {
    font-size: 1.8rem;
  }

  .current-price {
    font-size: 2rem;
  }

  .breadcrumb {
    font-size: 13px;
    gap: 8px;
  }

  .related-products {
    padding: 1.5rem;
  }

  .related-products h2 {
    font-size: 1.8rem;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* =============================================================================
     LOADING STATES
     ============================================================================= */

.product-page.loading {
  pointer-events: none;
  opacity: 0.7;
}

.product-page.loading .main-image {
  background: #f0f0f0;
  opacity: 0.7;
}

/* =============================================================================
     ACCESSIBILITY
     ============================================================================= */

.btn:focus,
.thumbnail:focus,
.quantity-btn:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* =============================================================================
     PRINT STYLES
     ============================================================================= */

@media print {
  .product-actions,
  .related-products,
  .breadcrumb {
    display: none !important;
  }

  .product-details {
    box-shadow: none;
    border: 1px solid #ddd;
    padding: 1rem;
  }

  .main-image {
    height: 300px;
  }
}

/* =============================================================================
     PERFORMANCE OPTIMIZATIONS - No Expensive Animations
     ============================================================================= */

/* Optimize all transitions for better performance */
* {
  transition-timing-function: ease;
  transition-duration: 0.2s;
}

/* Reduce transition complexity */
.btn,
.thumbnail,
.quantity-btn,
.related-product-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Optimize hover effects */
.btn:hover,
.thumbnail:hover,
.quantity-btn:hover,
.related-product-card:hover {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Dark theme optimized for performance */
.product-page::before {
  /* Removed backdrop-filter for performance */
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.2) 0%,
      transparent 50%
    );
}

/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
}
