/**
 * Modern Product Detail Styles
 * Comprehensive styling for product detail page
 */

/* Main Layout */
.product-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
  
  /* Image Gallery */
  .main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
  }
  
  .main-image {
    width: 100%;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  
  .small-images {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .small-img-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
  }
  
  .small-img-item.active {
    border-color: #3490dc;
  }
  
  .small-preview {
    display: block;
    width: 100%;
    height: auto;
  }
  
  /* Badges */
  .discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #e3342f;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.875rem;
  }
  
  .bestseller-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #f6993f;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.875rem;
  }
  
  /* Product Information */
  .product-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .brand-info {
    margin-bottom: 0.75rem;
  }
  
  .brand-name {
    color: #718096;
    font-weight: 600;
  }
  
  /* Ratings */
  .ratings {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .stars {
    color: #f6993f;
    margin-right: 0.5rem;
  }
  
  .rating-count {
    color: #718096;
    font-size: 0.875rem;
  }
  
  /* Price */
  .price-container {
    margin-bottom: 1.5rem;
  }
  
  .main-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
  }
  
  .original-price {
    color: #718096;
    text-decoration: line-through;
    margin-right: 0.75rem;
    font-size: 1.125rem;
  }
  
  .price-range {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
  }
  
  /* Variation Options */
  .size-selection,
  .color-selection {
    margin-bottom: 1.5rem;
  }
  
  .size-options,
  .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .form-check-label {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .form-check-input {
    position: absolute;
    opacity: 0;
  }
  
  .form-check-input:checked + .form-check-label {
    background-color: #ebf4ff;
    border-color: #3490dc;
    color: #2a4365;
  }
  
  .form-check-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
  }
  
  /* Color swatches */
  .color-swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 1px solid #e2e8f0;
  }
  
  /* Quantity Selector */
  .quantity-section {
    margin-bottom: 1.5rem;
  }
  
  .quantity-selector {
    display: flex;
    align-items: center;
    max-width: 10rem;
  }
  
  .btn-quantity {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding: 0;
  }
  
  .quantity-input {
    text-align: center;
    border-radius: 0;
    height: 2.5rem;
  }
  
  .stock-info {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
  }
  
  /* Action Buttons */
  .action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-add-to-cart {
    flex: 1;
    background-color: #3490dc;
    border-color: #3490dc;
    transition: all 0.2s ease;
  }
  
  .btn-add-to-cart:hover {
    background-color: #2779bd;
    border-color: #2779bd;
  }
  
  .btn-wishlist {
    color: #e53e3e;
    border-color: #e53e3e;
    transition: all 0.2s ease;
  }
  
  .btn-wishlist:hover {
    background-color: #e53e3e;
    color: white;
  }
  
  /* Shipping Info */
  .shipping-info {
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .shipping-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .shipping-option:last-child {
    margin-bottom: 0;
  }
  
  .shipping-option i {
    color: #3490dc;
    margin-right: 0.75rem;
    font-size: 1.125rem;
  }
  
  /* Product Description */
  .product-description {
    margin-bottom: 2rem;
  }
  
  .product-description h5 {
    margin-bottom: 0.75rem;
    font-weight: 600;
  }
  
  .product-description p {
    color: #4a5568;
    line-height: 1.6;
  }
  
  /* Product Tabs */
  .nav-tabs {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
  }
  
  .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #4a5568;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
  }
  
  .nav-tabs .nav-link:hover {
    color: #3490dc;
    border-bottom-color: #cbd5e0;
  }
  
  .nav-tabs .nav-link.active {
    color: #3490dc;
    border-bottom-color: #3490dc;
  }
  
  .tab-content > .tab-pane {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  /* Specifications Table */
  .specifications-table th {
    width: 30%;
    background-color: #f7fafc;
  }
  
  /* Reviews */
  .reviews-summary {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .overall-rating {
    padding-right: 1.5rem;
    border-right: 1px solid #e2e8f0;
  }
  
  .rating-value {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0;
  }
  
  .rating-breakdown {
    padding-left: 1.5rem;
  }
  
  .rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .rating-row span {
    flex: 0 0 3.5rem;
    font-size: 0.875rem;
  }
  
  .rating-row span:last-child {
    flex: 0 0 2.5rem;
    text-align: right;
  }
  
  .rating-row .progress {
    flex: 1;
    height: 0.5rem;
    margin: 0 0.75rem;
  }
  
  /* Reviews List */
  .review-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  
  .reviewer-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
  }
  
  .review-date {
    font-size: 0.75rem;
    color: #718096;
  }
  
  .review-content p {
    margin-bottom: 0;
    color: #4a5568;
  }
  
  /* Write a Review */
  .write-review {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
  }
  
  .rating-selector {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .rating-star {
    font-size: 1.5rem;
    color: #f6993f;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .rating-star:hover {
    transform: scale(1.1);
  }
  
  /* Related Products */
  .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .related-products {
    margin-bottom: 2rem;
  }
  
  .product-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
  }
  
  .product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
  }
  
  .product-card a {
    text-decoration: none;
    color: inherit;
  }
  
  .product-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
  }
  
  .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.05);
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
  }
  
  /* Notifications */
  .notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    max-width: 24rem;
  }
  
  .notification {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slide-in 0.3s ease forwards;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
  }
  
  .notification-content {
    display: flex;
    align-items: flex-start;
  }
  
  .notification-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
    font-size: 1.25rem;
  }
  
  .notification-success .notification-icon {
    color: #38c172;
  }
  
  .notification-error .notification-icon {
    color: #e3342f;
  }
  
  .notification-info .notification-icon {
    color: #3490dc;
  }
  
  .notification-message {
    flex: 1;
    padding-right: 1.5rem;
    line-height: 1.5;
  }
  
  .notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .notification-close:hover {
    color: #2d3748;
  }
  
  @keyframes slide-in {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Responsive styles */
  @media (max-width: 767.98px) {
    .small-images {
      flex-direction: row;
      overflow-x: auto;
      padding-bottom: 0.5rem;
    }
    
    .small-img-item {
      flex: 0 0 4rem;
    }
    
    .action-buttons {
      flex-direction: column;
    }
    
    .reviews-summary {
      flex-direction: column;
    }
    
    .overall-rating {
      padding-right: 0;
      padding-bottom: 1.5rem;
      border-right: none;
      border-bottom: 1px solid #e2e8f0;
      margin-bottom: 1.5rem;
    }
    
    .rating-breakdown {
      padding-left: 0;
    }
  }