/* Product Page Styles */

/* Product Gallery */
.product-gallery {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.gallery-main {
  position: relative;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img,
.gallery-main video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-thumbs {
  margin-top: 1rem;
}

.gallery-thumb {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-thumb:hover {
  border-color: #0a2d4a;
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: #0a2d4a;
  box-shadow: 0 0 0 2px rgba(10, 45, 74, 0.2);
}

.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

/* Product Info */
.product-info {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.product-title {
  color: #0a2d4a;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-sku {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.1rem;
}

.rating-count {
  color: #6c757d;
  font-size: 0.9rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0a2d4a;
  margin-bottom: 1rem;
}

.price-vat {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: normal;
}

.product-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #f8f9fa;
}

.availability-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.availability-badge.in-stock {
  background: #d4edda;
  color: #155724;
}

.availability-badge.expected {
  background: #fff3cd;
  color: #856404;
}

.availability-badge.on-order {
  background: #f8d7da;
  color: #721c24;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0a2d4a, #1a4d7a);
  border: none;
  box-shadow: 0 4px 15px rgba(10, 45, 74, 0.3);
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a4d7a, #0a2d4a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 45, 74, 0.4);
}

.btn-outline-primary {
  border-color: #0a2d4a;
  color: #0a2d4a;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #0a2d4a;
  border-color: #0a2d4a;
  color: white;
  transform: translateY(-2px);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
  background: white;
  color: #6c757d;
}

.btn-action:hover {
  background: #f8f9fa;
  border-color: #0a2d4a;
  color: #0a2d4a;
  transform: translateY(-1px);
}

.btn-action.active {
  background: #0a2d4a;
  border-color: #0a2d4a;
  color: white;
}

.product-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f4;
}

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

.feature-icon {
  width: 24px;
  height: 24px;
  background: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a2d4a;
  font-size: 0.8rem;
}

.feature-text {
  color: #495057;
  font-size: 0.9rem;
}

/* Product Tabs */
.product-tabs {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
}

.nav-tabs {
  border-bottom: 2px solid #e9ecef;
  padding: 0 2rem;
}

.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 600;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: #0a2d4a;
  background: transparent;
}

.nav-tabs .nav-link.active {
  color: #0a2d4a;
  background: transparent;
  border-bottom: 3px solid #0a2d4a;
}

.tab-content {
  padding: 2rem;
}

.tab-pane {
  color: #495057;
  line-height: 1.6;
}

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

.specifications-table th,
.specifications-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
}

.specifications-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #0a2d4a;
  width: 30%;
}

/* Related Products */
.related-products {
  margin-top: 3rem;
}

.related-title {
  color: #0a2d4a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.product-card-body {
  padding: 1.5rem;
}

.product-card-title {
  color: #0a2d4a;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card-price {
  color: #0a2d4a;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .product-title {
    font-size: 1.5rem;
  }
  
  .product-price {
    font-size: 1.75rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-action {
    min-width: auto;
  }
}

@media (max-width: 767.98px) {
  .product-info {
    padding: 1.5rem;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .gallery-main img,
  .gallery-main video {
    height: 300px;
  }
  
  .gallery-thumb img,
  .gallery-thumb video {
    height: 60px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading States */
.loading {
  position: relative;
  min-height: 200px;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0a2d4a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 120px;
  right: 20px;
  background: linear-gradient(135deg, #0a2d4a, #1a4d7a);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  font-weight: 500;
  font-size: 14px;
  max-width: 300px;
  word-wrap: break-word;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Popup Overlay Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

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

.cart-popup,
.wishlist-popup,
.compare-popup {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideInUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.compare-popup {
  max-width: 1200px;
  width: 95%;
}

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

/* Fullscreen Gallery Styles */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
}

.fullscreen-overlay img,
.fullscreen-overlay video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fullscreen-overlay:hover {
  cursor: zoom-out;
}

/* Gallery thumb hover effects */
.gallery-thumb {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-thumb:hover {
  border-color: #0a2d4a;
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: #0a2d4a;
  box-shadow: 0 2px 8px rgba(10, 45, 74, 0.3);
}

/* Main gallery image hover effect */
.gallery-swiper .swiper-slide img,
.gallery-swiper .swiper-slide video {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-swiper .swiper-slide img:hover,
.gallery-swiper .swiper-slide video:hover {
  transform: scale(1.02);
}

/* Product Options Selector */
.product-options-selector {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.product-options-selector h6 {
  color: #0a2d4a;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  border-color: #0a2d4a;
  background: #f0f7ff;
}

.option-item.selected {
  border-color: #0a2d4a;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  box-shadow: 0 2px 8px rgba(10, 45, 74, 0.15);
}

.option-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #0a2d4a;
  cursor: pointer;
  flex-shrink: 0;
}

.option-name {
  flex: 1;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.3;
}

.option-price {
  font-weight: 600;
  color: #0a2d4a;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Price animation */
.product-price {
  transition: all 0.3s ease;
}

.product-price.price-updating {
  animation: priceUpdate 0.3s ease;
}

@keyframes priceUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); color: #28a745; }
  100% { transform: scale(1); }
}

.price-breakdown {
  font-size: 0.85rem;
  padding-top: 0.25rem;
  border-top: 1px dashed #dee2e6;
  margin-top: 0.5rem;
}

/* Responsive options */
@media (max-width: 576px) {
  .option-item {
    flex-wrap: wrap;
  }
  
  .option-name {
    order: 2;
    width: calc(100% - 30px);
    margin-top: 0.25rem;
  }
  
  .option-price {
    order: 1;
  }
}

/* Options Tab Styles */
.option-item-tab {
  transition: all 0.2s ease;
  background: white;
}

.option-item-tab:hover {
  border-color: #0a2d4a !important;
  background: #f8f9fa;
}

.option-name-tab {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.option-price-tab {
  font-size: 0.9rem;
}
