/**
 * Single Product Modern Design
 * Matching the reference images design
 * 
 * @package Albarq
 * @version 2.0.0
 */

/* ========================================
   Main Product Section
   ======================================== */
.single-product-modern {
  background: #fff;
}

.product-main-section {
  padding: 32px 0;
  background: #fff;
}

.product-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ========================================
   Product Gallery Section
   ======================================== */
.product-gallery-section {
  position: relative;
}

/* Wishlist Button */
.btn-wishlist-single {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-wishlist-single svg {
  stroke: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-wishlist-single:hover svg {
  stroke: white;
  fill: white;
}

.btn-wishlist-single.active svg {
  fill: var(--color-primary);
}

/* Main Product Image */
.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f8f9fa;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Thumbnail Gallery */
.product-thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.thumbnail-item:hover {
  border-color: var(--color-primary);
}

.thumbnail-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

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

/* ========================================
   Product Info Section
   ======================================== */
.product-info-section {
  padding: 0;
}

/* Product Title */
.product-title-single {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* Rating Section */
.product-rating-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-stars .star {
  font-size: 18px;
  color: #fbbf24;
}

.rating-stars .star.empty {
  color: #d1d5db;
}

.rating-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-right: 8px;
}

.rating-count-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.rating-count-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Price Section */
.product-price-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.price-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.price-sale-single {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.price-regular-single {
  font-size: 20px;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-current-single {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
}

.discount-badge {
  padding: 6px 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.savings-message {
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
}

/* Product Meta Info */
.product-meta-info {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.stock-status.in-stock {
  color: #10b981;
}

.stock-status.in-stock svg {
  stroke: #10b981;
}

.stock-status.out-of-stock {
  color: #ef4444;
}

.stock-status.out-of-stock svg {
  stroke: #ef4444;
}

.product-sku {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.sku-label {
  color: #6b7280;
}

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

/* Shipping Info Box */
.shipping-info-box {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.shipping-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #1e40af;
  margin-bottom: 8px;
}

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

.shipping-item svg {
  stroke: #3b82f6;
  flex-shrink: 0;
}

/* Product Actions */
.product-actions-section {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.quantity-input {
  display: flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 44px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.3s ease;
}

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

.quantity-input input {
  width: 60px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.quantity-input input:focus {
  outline: none;
}

.btn-add-to-cart-single {
  flex: 1;
  padding: 14px 32px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.btn-add-to-cart-single:hover {
  background: #ff1493;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.4);
}

/* Additional Actions */
.product-additional-actions {
  display: flex;
  gap: 12px;
}

.btn-compare,
.btn-share {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-compare:hover,
.btn-share:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-compare svg,
.btn-share svg {
  stroke: currentColor;
}

/* ========================================
   Product Details Tabs Section
   ======================================== */
.product-details-section {
  padding: 48px 0;
  background: #f9fafb;
}

/* Tabs Navigation */
.product-tabs-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
  padding: 16px 32px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Product Description */
.product-description {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  line-height: 1.8;
  color: var(--color-text);
}

.product-description h2,
.product-description h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.product-description ul,
.product-description ol {
  margin: 16px 0;
  padding-right: 24px;
}

.product-description li {
  margin-bottom: 8px;
}

/* Product Specifications */
.product-specifications {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
}

.spec-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 20px;
}

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

.specs-table tr {
  border-bottom: 1px solid #e5e7eb;
}

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

.specs-table td {
  padding: 16px;
}

.specs-table tr:nth-child(even) {
  background: #f9fafb;
}

.spec-label {
  font-weight: 600;
  color: #6b7280;
  width: 40%;
}

.spec-value {
  color: var(--color-text);
}

/* Reviews Section */
#reviews-section {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .product-layout-grid {
    gap: 32px;
  }

  .product-title-single {
    font-size: 24px;
  }

  .price-sale-single,
  .price-current-single {
    font-size: 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .product-main-section {
    padding: 20px 0;
  }

  .product-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-title-single {
    font-size: 20px;
  }

  .price-sale-single,
  .price-current-single {
    font-size: 24px;
  }

  .price-regular-single {
    font-size: 16px;
  }

  .product-actions-section {
    flex-direction: column;
  }

  .quantity-selector {
    width: 100%;
    justify-content: space-between;
  }

  .btn-add-to-cart-single {
    width: 100%;
  }

  .product-additional-actions {
    flex-direction: column;
  }

  .product-tabs-nav {
    flex-direction: column;
    gap: 0;
  }

  .tab-btn {
    padding: 12px 16px;
    text-align: right;
  }

  .product-description,
  .product-specifications,
  #reviews-section {
    padding: 20px;
  }

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

/* Small Mobile */
@media (max-width: 480px) {
  .product-title-single {
    font-size: 18px;
  }

  .price-sale-single,
  .price-current-single {
    font-size: 20px;
  }

  .product-meta-info {
    flex-direction: column;
    gap: 12px;
  }

  .shipping-info-box {
    padding: 12px;
  }

  .shipping-item {
    font-size: 13px;
  }
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 24px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 400px;
  font-size: 14px;
  font-weight: 600;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification.toast-success {
  border-right: 4px solid #10b981;
  color: #10b981;
}

.toast-notification.toast-error {
  border-right: 4px solid #ef4444;
  color: #ef4444;
}

.toast-notification.toast-info {
  border-right: 4px solid #3b82f6;
  color: #3b82f6;
}

@media (max-width: 768px) {
  .toast-notification {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

