/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Audiowide:wght@400;700&family=Raleway:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

/* Variables */
:root {
  --primary-color: #1b3c53;
  --secondary-color-1: #456882;
  --secondary-color-2: #d2c1b6;
  --secondary-color-3: #f9f3ef;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --white: #ffffff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color-1)
  );
  --shadow-soft: 0 10px 40px rgba(27, 60, 83, 0.1);
  --shadow-hover: 0 20px 60px rgba(27, 60, 83, 0.2);
  --border-radius: 16px;
}

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

body {
  font-family: "Raleway", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Audiowide", cursive;
  font-weight: 400;
  line-height: 1.2;
}

/* Product Details Section */
.product-details-section {
  padding: 2rem 0 4rem;
  background: var(--secondary-color-3);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Breadcrumb */
.product-breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb {
  background: var(--white);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  margin: 0;
  display: flex;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--secondary-color-1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 0.75rem;
  color: var(--text-light);
}

/* Product Gallery */
.product-gallery {
  margin-bottom: 2rem;
}

.main-image-container {
  position: relative;
  margin-bottom: 1rem;
}

.image-wrapper {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: crosshair;
}

/* Zoom Lens */
.zoom-lens {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: crosshair;
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.3);
  display: none;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Zoom Result */
.zoom-result {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 30px;
  width: 400px;
  height: 400px;
  border: 1px solid #ddd;
  background-repeat: no-repeat;
  background-color: var(--white);
  display: none;
  z-index: 100;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  max-width: 400px;
}

.thumbnail-item {
  aspect-ratio: 1;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--white);
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(27, 60, 83, 0.1);
}

.thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(27, 60, 83, 0.2);
}

.thumbnail:hover {
  border-color: var(--secondary-color-1);
  transform: scale(1.05);
}

/* About Section */
.about-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.about-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-content {
  color: var(--text-light);
  line-height: 1.7;
}

.product-description {
  margin-bottom: 2rem;
  font-size: 1rem;
}

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

.key-features h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.features-list i {
  color: var(--success-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.specifications h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.spec-grid {
  display: grid;
  gap: 0.75rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(27, 60, 83, 0.1);
}

.spec-label {
  font-weight: 500;
  color: var(--text-light);
}

.spec-value {
  font-weight: 600;
  color: var(--text-dark);
}

/* Product Details */
.product-details {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary-color-2);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Rating Section */
.rating-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--secondary-color-2);
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

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

.rating-text {
  font-weight: 600;
  color: var(--text-dark);
}

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

/* Price Section */
.price-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--secondary-color-2);
}

.price-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.current-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-color);
}

.original-price {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.discount-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.discount-badge {
  background: var(--danger-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.savings {
  color: var(--success-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.offer-banner {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Stock Section */
.stock-section {
  margin-bottom: 1.5rem;
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.stock-in-stock {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.stock-low-stock {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.stock-out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Purchase Section */
.purchase-section {
  margin-bottom: 2rem;
}

.quantity-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantity-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--secondary-color-2);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.quantity-btn:disabled,
.quantity-btn.disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.quantity-btn:disabled:hover,
.quantity-btn.disabled:hover {
  background: #f8f9fa;
  color: #6c757d;
}

#quantity {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  background: var(--white);
  font-family: "Montserrat", sans-serif;
}

.quantity-info {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quantity-limit-text {
  font-size: 0.875rem;
  color: var(--text-light);
  font-family: "Montserrat", sans-serif;
}

.quantity-feedback {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.quantity-feedback.success {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

.quantity-feedback.error {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.quantity-feedback.warning {
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.quantity-feedback.info {
  color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.1);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-add-to-cart {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 60, 83, 0.3);
}

.btn-add-to-cart:disabled {
  background: var(--secondary-color-2);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.btn-wishlist {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.btn-wishlist.wishlisted {
  background: var(--danger-color);
  border-color: var(--danger-color);
  color: var(--white);
}

.additional-actions {
  margin-bottom: 2rem;
}

.btn-buy-now {
  width: 100%;
  padding: 1rem;
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Delivery Info */
.delivery-info {
  border-top: 1px solid var(--secondary-color-2);
  padding-top: 1.5rem;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.delivery-item:last-child {
  margin-bottom: 0;
}

.delivery-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.delivery-item strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.delivery-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Related Products Section */
.related-products-section {
  padding: 4rem 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: "Audiowide", cursive;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Related Products Row (4 items in one line) */
.related-products-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.related-product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(27, 60, 83, 0.08);
}

.related-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27, 60, 83, 0.15);
}

.related-product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--secondary-color-3);
}

.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.1);
}

.related-wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 35px;
  height: 35px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.related-wishlist-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.related-discount-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--danger-color);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.related-product-info {
  padding: 1.5rem;
}

.related-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.related-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.related-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-title a:hover {
  color: var(--primary-color);
}

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

.related-stars {
  display: flex;
  gap: 2px;
}

.related-stars i {
  color: #fbbf24;
  font-size: 0.9rem;
}

.related-rating-text {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.related-price {
  margin-bottom: 1rem;
}

.related-current-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.related-original-price {
  font-family: "Montserrat", sans-serif;
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.related-add-cart {
  width: 100%;
  padding: 0.75rem;
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.related-add-cart:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .zoom-result {
    width: 350px;
    height: 350px;
    margin-left: 20px;
  }

  .related-products-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .product-details {
    position: static;
    margin-top: 2rem;
  }

  .zoom-result {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    margin: 0;
    z-index: 1000;
  }

  .image-wrapper {
    height: 350px;
  }

  .product-title {
    font-size: 1.6rem;
  }

  .current-price {
    font-size: 1.6rem;
  }

  .related-products-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .product-details-section {
    padding: 1rem 0 3rem;
  }

  .product-details,
  .about-section {
    padding: 1.5rem;
  }

  .image-wrapper {
    height: 300px;
    padding: 1rem;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .quantity-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-wishlist {
    width: 100%;
    height: 50px;
  }

  .price-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .discount-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .zoom-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
  }

  .zoom-lens {
    width: 100px;
    height: 100px;
  }

  .related-products-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .related-product-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.4rem;
  }

  .current-price {
    font-size: 1.4rem;
  }

  .breadcrumb {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .zoom-result {
    width: 200px;
    height: 200px;
  }

  .zoom-lens {
    width: 80px;
    height: 80px;
  }
}

/* Enhanced Zoom Functionality Styles */

/* Enhanced Image Magnifier Glass */
.img-magnifier-glass {
  position: absolute;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  cursor: crosshair;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(3px);
  display: none;
  pointer-events: none;
  z-index: 15;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.3),
    0 0 0 2px rgba(27, 60, 83, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 40px rgba(0, 0, 0, 0.4),
      inset 0 0 30px rgba(255, 255, 255, 0.3),
      0 0 0 2px rgba(27, 60, 83, 0.3);
  }
  100% {
    box-shadow:
      0 0 50px rgba(0, 0, 0, 0.5),
      inset 0 0 40px rgba(255, 255, 255, 0.4),
      0 0 0 3px rgba(27, 60, 83, 0.5);
  }
}

/* Enhanced Zoom Result Container */
.img-zoom-result {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 30px;
  width: 450px;
  height: 450px;
  border: 3px solid rgba(27, 60, 83, 0.2);
  background-repeat: no-repeat;
  background-color: var(--white);
  display: none;
  z-index: 100;
  border-radius: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(27, 60, 83, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.img-zoom-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.1) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255,255,255,0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.img-zoom-result::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
    rgba(27, 60, 83, 0.1),
    rgba(27, 60, 83, 0.05),
    rgba(27, 60, 83, 0.1));
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-zoom-result:hover::after {
  opacity: 1;
}

/* Enhanced Zoom Controls */
.zoom-controls {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  z-index: 20;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 30px;
  padding: 12px 20px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 4px 15px rgba(27, 60, 83, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(27, 60, 83, 0.1);
  backdrop-filter: blur(10px);
  animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.zoom-level-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(27, 60, 83, 0.9) 100%);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 15px rgba(27, 60, 83, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.zoom-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.zoom-btn:hover::before {
  left: 100%;
}

.zoom-btn:hover {
  background: linear-gradient(135deg, var(--secondary-color-1) 0%, rgba(27, 60, 83, 1) 100%);
  transform: scale(1.1) translateY(-2px);
  box-shadow:
    0 8px 25px rgba(27, 60, 83, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.zoom-btn:active {
  transform: scale(0.95) translateY(0);
}

.zoom-level-indicator {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  min-width: 50px;
  text-align: center;
  background: linear-gradient(135deg, rgba(27, 60, 83, 0.1) 0%, rgba(27, 60, 83, 0.05) 100%);
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(27, 60, 83, 0.2);
}

/* Zoom Reset Button */
.zoom-reset-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 101;
  backdrop-filter: blur(5px);
}

.zoom-reset-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Zoom Preset Buttons */
.zoom-presets {
  display: flex;
  gap: 8px;
  margin-left: 16px;
}

.zoom-preset-btn {
  padding: 4px 8px;
  border: 1px solid rgba(27, 60, 83, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 30px;
  text-align: center;
}

.zoom-preset-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.zoom-preset-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Loading State */
.zoom-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 102;
}

.zoom-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid rgba(27, 60, 83, 0.2);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Fullscreen Zoom Mode */
.img-zoom-result.fullscreen-zoom {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000;
  cursor: move;
}

.fullscreen-close-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1);
}

/* Improved Focus Styles for Accessibility */
.zoom-container:focus {
  outline: 3px solid rgba(27, 60, 83, 0.5) !important;
  outline-offset: 2px !important;
}

.zoom-btn:focus,
.zoom-preset-btn:focus,
.zoom-reset-btn:focus {
  outline: 2px solid rgba(27, 60, 83, 0.7);
  outline-offset: 2px;
}

/* Enhanced Animations */
@keyframes zoomPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.zoom-container:hover .main-image {
  animation: zoomPulse 2s ease-in-out infinite;
}

/* Smooth Transitions for All Elements */
.img-magnifier-glass,
.img-zoom-result,
.zoom-controls,
.zoom-reset-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Fullscreen Zoom */
.img-zoom-result.fullscreen-mobile {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vw;
  max-width: 400px;
  max-height: 400px;
  margin: 0;
  z-index: 1000;
  border: 3px solid var(--primary-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.img-zoom-result.fullscreen-mobile::after {
  content: '✕';
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--primary-color);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 1001;
}

/* Zoom Container */
.zoom-container {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

/* Enhanced animations */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

.img-zoom-result.zoom-in {
  animation: zoomIn 0.3s ease;
}

.img-zoom-result.zoom-out {
  animation: zoomOut 0.3s ease;
}

/* Responsive Design for Enhanced Zoom */
@media (max-width: 1200px) {
  .img-zoom-result {
    width: 380px;
    height: 380px;
    margin-left: 20px;
  }

  .img-magnifier-glass {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 991px) {
  .img-zoom-result {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    margin: 0;
    z-index: 1000;
  }

  .img-magnifier-glass {
    width: 120px;
    height: 120px;
  }

  .zoom-controls {
    bottom: -50px;
  }
}

@media (max-width: 767px) {
  .img-zoom-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
  }

  .img-magnifier-glass {
    width: 100px;
    height: 100px;
  }

  .zoom-controls {
    bottom: -45px;
    padding: 6px 12px;
  }

  .zoom-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .zoom-level-indicator {
    font-size: 12px;
    min-width: 35px;
  }
}

@media (max-width: 480px) {
  .img-zoom-result {
    width: 240px;
    height: 240px;
  }

  .img-magnifier-glass {
    width: 80px;
    height: 80px;
  }
}

/* Hide zoom on very small screens */
@media (max-width: 576px) {
  .zoom-result,
  .zoom-lens {
    display: none !important;
  }

  .main-image {
    cursor: default;
  }

  /* Keep enhanced zoom for touch devices */
  .img-zoom-result.fullscreen-mobile {
    display: block !important;
  }
}
