/* ============================================
   Product Detail Page Styles - Anas Plastic Enterprises
   Complete Version with Skeleton Loaders & Professional Back Button
   ============================================ */

.product-detail-section {
  padding: 60px 0;
  min-height: 60vh;
}

.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: openBox 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92);
}

/* Product Gallery */
.product-gallery {
  padding: 40px;
  background: #f8fafc;
}

.main-image {
  position: relative;
  height: 400px;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: fadeImg 1s ease-in-out forwards;
}

.detail-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

/* Product Info */
.product-info-detail {
  padding: 40px;
  animation: fadeContent 1s ease-in-out forwards;
}

.detail-category {
  display: inline-block;
  background: #e8edf5;
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.detail-name {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.3;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.detail-rating i {
  color: #ffd700;
  font-size: 1rem;
}

.detail-rating span {
  color: var(--text-light);
  font-weight: 600;
}

.detail-description {
  margin-bottom: 30px;
}

.detail-description h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.detail-description p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Specifications */
.detail-specifications {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--border-radius);
}

.detail-specifications h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

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

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text-light);
}

/* Detail Actions */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quantity-selector label {
  font-weight: 600;
  color: var(--text-dark);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: bold;
  color: var(--text-dark);
}

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

#quantity {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.share-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 25px;
  background: #e8edf5;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.share-detail-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.whatsapp-inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 25px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-inquiry-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Animations */
@keyframes openBox {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeImg {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeContent {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .product-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-gallery {
    padding: 20px;
  }

  .main-image {
    height: 300px;
  }

  .product-info-detail {
    padding: 20px;
  }

  .detail-name {
    font-size: 1.6rem;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-width: 480px) {
  .main-image {
    height: 250px;
  }

  .detail-name {
    font-size: 1.4rem;
  }

  .detail-actions {
    gap: 10px;
  }
}

/* Additional Professional Styles */
.main-image-container {
  position: relative;
}

.main-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.main-image img {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-image:hover .image-overlay {
  opacity: 1;
}

.zoom-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

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

/* Image Zoom Modal */
.image-zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.image-zoom-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.close-zoom {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.close-zoom:hover {
  color: #dc2626;
}

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

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  padding: 12px 15px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.share-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #e8edf5;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.share-detail-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.whatsapp-inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  flex: 1;
  min-width: 120px;
}

.whatsapp-inquiry-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  color: white;
}

/* Additional Info */
.additional-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e5e7eb;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f0fdf4;
  color: #065f46;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #6ee7b7;
}

.info-badge i {
  color: #10b981;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

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

  .action-buttons > * {
    flex: none;
    width: 100%;
  }
}

/* Updated Quantity Selector */
.quantity-selector-new {
  margin-bottom: 20px;
}

.quantity-selector-new label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
  font-size: 1rem;
}

.quantity-controls-new {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 280px;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
}

.quantity-controls-new:focus-within {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.qty-btn-new {
  width: 50px;
  height: 50px;
  border: none;
  background: #f3f4f6;
  color: #1f2937;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.qty-btn-new:hover {
  background: #1e3a8a;
  color: white;
}

.qty-btn-new:active {
  transform: scale(0.95);
}

#quantity {
  flex: 1;
  width: 100%;
  height: 50px;
  border: none;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  background: white;
  outline: none;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quantity animations */
.qty-increase {
  animation: qtyPulseUp 0.3s ease;
}

.qty-decrease {
  animation: qtyPulseDown 0.3s ease;
}

.qty-set {
  animation: qtyPulse 0.3s ease;
}

@keyframes qtyPulseUp {
  0%,
  100% {
    background: white;
  }
  50% {
    background: #d1fae5;
    color: #065f46;
  }
}

@keyframes qtyPulseDown {
  0%,
  100% {
    background: white;
  }
  50% {
    background: #fee2e2;
    color: #991b1b;
  }
}

@keyframes qtyPulse {
  0%,
  100% {
    background: white;
  }
  50% {
    background: #dbeafe;
    color: #1e40af;
  }
}

/* Quick Quantity Buttons */
.quick-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.quick-quantity span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  margin-right: 4px;
}

.quick-qty-btn {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #374151;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.quick-qty-btn:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #eff6ff;
}

.quick-qty-btn.active {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

/* Image Zoom Modal */
.image-zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.zoom-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#zoomedImage {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: grab;
}

#zoomedImage:active {
  cursor: grabbing;
}

.close-zoom {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  line-height: 1;
}

.close-zoom:hover {
  color: #dc2626;
  transform: scale(1.2);
}

.zoom-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 20px;
  border-radius: 50px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.zoom-control-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.zoom-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: scale(1.1);
}

/* ============================================
   Detail Category Badge Styles
   ============================================ */
.detail-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px;
  padding: 6px 14px;
  font-size: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e3a8a;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  font-weight: 600;
  transition: all 0.3s ease;
}

.detail-category-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

/* ============================================
   PRODUCT DETAIL SKELETON LOADER
   ============================================ */

.skeleton-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.skeleton-gallery {
  padding: 40px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeleton-main-image {
  height: 400px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.skeleton-main-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: skeleton-shine 1.5s ease-in-out infinite;
}

.skeleton-thumbnails {
  display: flex;
  gap: 10px;
}

.skeleton-thumb {
  width: 80px;
  height: 80px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.skeleton-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: skeleton-shine 1.5s ease-in-out infinite;
}

.skeleton-detail-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeleton-category-badge {
  width: 100px;
  height: 28px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 20px;
}

.skeleton-detail-title {
  width: 85%;
  height: 36px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-detail-rating {
  width: 150px;
  height: 20px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-divider {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

.skeleton-detail-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-detail-line {
  width: 100%;
  height: 14px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-detail-line:nth-child(2) {
  width: 95%;
}

.skeleton-detail-line:nth-child(3) {
  width: 88%;
}

.skeleton-detail-line:nth-child(4) {
  width: 75%;
}

.skeleton-detail-line:nth-child(5) {
  width: 60%;
}

.skeleton-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.skeleton-spec-item {
  height: 44px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-quantity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-quantity-label {
  width: 80px;
  height: 16px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-quantity-row {
  width: 200px;
  height: 50px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 25px;
}

.skeleton-quick-btns {
  display: flex;
  gap: 8px;
}

.skeleton-quick-btn {
  width: 55px;
  height: 32px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 16px;
}

.skeleton-action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.skeleton-action-btn {
  flex: 1;
  height: 50px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 25px;
}

.skeleton-action-btn:last-child {
  flex: 0.7;
}

.skeleton-info-badges {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.skeleton-info-badge {
  width: 130px;
  height: 32px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 16px;
}

/* Skeleton Animations */
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes skeleton-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ============================================
   Professional Back Navigation Button
   ============================================ */

.back-navigation {
  margin-bottom: 30px;
  padding: 0;
}

.professional-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: white;
  color: #1f2937;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.3px;
}

.professional-back-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e3a8a, #3b5cb8);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 14px;
}

.professional-back-btn:hover {
  border-color: #1e3a8a;
  transform: translateX(-5px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
  color: white;
}

.professional-back-btn:hover::before {
  opacity: 1;
}

.back-btn-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1e3a8a, #3b5cb8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.professional-back-btn:hover .back-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.back-btn-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9ca3af;
  font-weight: 600;
  transition: color 0.4s ease;
}

.professional-back-btn:hover .back-btn-label {
  color: rgba(255, 255, 255, 0.8);
}

.back-btn-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  transition: color 0.4s ease;
  line-height: 1.2;
}

.professional-back-btn:hover .back-btn-title {
  color: white;
}

/* Shimmer Effect */
.back-btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
  z-index: 2;
  pointer-events: none;
}

.professional-back-btn:hover .back-btn-shimmer {
  left: 200%;
}

/* Arrow Animation */
.professional-back-btn .back-btn-icon i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-back-btn:hover .back-btn-icon i {
  transform: translateX(-3px);
  animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

/* Active/Pressed State */
.professional-back-btn:active {
  transform: translateX(-5px) scale(0.97);
  transition: all 0.15s ease;
}

/* Focus State */
.professional-back-btn:focus-visible {
  outline: 3px solid #1e3a8a;
  outline-offset: 3px;
}

/* ============================================
   Responsive Skeleton & Back Button
   ============================================ */
@media screen and (max-width: 768px) {
  .skeleton-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .skeleton-gallery {
    padding: 20px;
  }

  .skeleton-main-image {
    height: 300px;
  }

  .skeleton-thumb {
    width: 60px;
    height: 60px;
  }

  .skeleton-detail-info {
    padding: 20px;
    gap: 15px;
  }

  .skeleton-detail-title {
    height: 28px;
  }

  .skeleton-specs {
    grid-template-columns: 1fr;
  }

  .back-navigation {
    margin-bottom: 20px;
  }

  .professional-back-btn {
    padding: 12px 20px;
    gap: 10px;
    border-radius: 14px;
  }

  .back-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .back-btn-label {
    font-size: 0.65rem;
  }

  .back-btn-title {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .skeleton-main-image {
    height: 250px;
  }

  .skeleton-thumb {
    width: 50px;
    height: 50px;
  }

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

  .skeleton-info-badges {
    flex-wrap: wrap;
  }

  .professional-back-btn {
    padding: 10px 16px;
    gap: 8px;
    border-radius: 12px;
  }

  .back-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.8rem;
  }

  .back-btn-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
  }

  .back-btn-title {
    font-size: 0.85rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .back-navigation,
  .image-overlay,
  .zoom-btn,
  .image-zoom-modal,
  .galaxy-button-wrapper,
  .action-buttons,
  .quick-quantity,
  .quantity-controls-new {
    display: none !important;
  }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .skeleton-main-image,
  .skeleton-thumb,
  .skeleton-detail-title,
  .skeleton-detail-line,
  .skeleton-category-badge,
  .skeleton-detail-rating,
  .skeleton-spec-item,
  .skeleton-quantity-label,
  .skeleton-quantity-row,
  .skeleton-quick-btn,
  .skeleton-action-btn,
  .skeleton-info-badge {
    animation: none;
    background: #e5e7eb;
  }

  .skeleton-main-image::after,
  .skeleton-thumb::after {
    animation: none;
    display: none;
  }

  .professional-back-btn,
  .professional-back-btn:hover {
    transition: none;
  }

  .professional-back-btn:hover .back-btn-icon i {
    animation: none;
  }
}

/* ============================================
   High Contrast Mode
   ============================================ */
@media (prefers-contrast: high) {
  .professional-back-btn {
    border-width: 3px;
  }

  .professional-back-btn:hover {
    outline: 3px solid #1e3a8a;
    outline-offset: 2px;
  }
}
