/* Product Detail Page Styles */

/* Product Detail Section */
.product-detail-section {
    
}
.sidebar-modal-mobile{
flex: 0 0 auto;
width:25%;
}

@media (max-width: 767.98px) {
  .sidebar-modal-mobile {
    width: 100%;
  }
  
  .sidebar-modal-mobile.collapse:not(.show) {
    display: none;
  }
  
  .sidebar-modal-mobile.collapse.show {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }
}

.sidebar-right{
flex: 0 0 auto;
width:25%;
}

/* Product Gallery */
.product-gallery-container {
    position: relative;
    padding: 20px;
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badges .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.badge-featured {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.badge-limited {
    background: linear-gradient(135deg, #ff7675, #fd79a8);
    color: white;
}

.main-image {
    position: relative;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.image-zoom-overlay i {
    color: white;
    font-size: 2rem;
}

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

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

/* Thumbnails */
.thumbnails-wrapper {
    margin-top: 1rem;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.thumbnail-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

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

/* Product Info */
.product-info {
    padding: 20px;
}

.product-header {
    border-bottom: 1px solid #eee;
    
}

.product-title {
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-size: 24px;
}

.product-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.brand-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Product Meta */
.product-meta {
    background: #f8f9fa;
    
}

.product-meta .row {
    margin: 0;
}

.product-meta .col-auto {
    
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.product-meta .col-auto:last-child {
    border-right: none;
}

.meta-label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 8px;
    font-size: 18px;
    white-space: nowrap;
}

.meta-value {
    color: #495057;
    font-weight: 500;
    font-size: 18px;
}

.meta-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease;
}

.meta-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.brand-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.brand-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive adjustments for product meta */
@media (max-width: 768px) {
    .product-meta .col-auto {
        border-right: none;
        
        
        
        
    }
    
    .product-info{
        padding: 10px;
    }

    .product-gallery-container{
        padding: 20px;
    }
    
    .product-meta .col-auto:last-child {
        border-bottom: none;
    }
    
    .product-meta .row {
        display: flex;
        flex-wrap: nowrap;
        flex-direction:row;
        justify-content:space-between;
    }
}

/* Price & Stock Section */
.price-stock-section {
    background: #f8f9fa;
    
}

.price-stock-section .row {
    margin: 0;
}

.price-stock-section .col-md-8,
.price-stock-section .col-md-4 {
    padding: 0 0.75rem;
}

.stock-status {
    text-align: right;
}

@media (max-width: 768px) {
    .stock-status {
        text-align: center;
        margin-top: 0;
    }
    
    .price-stock-section .col-md-8,
    .price-stock-section .col-md-4 {
        padding: 0;
    }
}

/* Rating */
.product-rating .stars i {
    font-size: 1.1rem;
}

/* Rating inside product meta */
.product-meta .stars {
    display: flex;
    gap: 2px;
}

.product-meta .stars i {
    font-size: 0.9rem;
}

.product-meta .rating-text {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.product-meta .review-count {
    color: #6c757d;
    font-size: 0.85rem;
}

.product-meta .d-flex {
    align-items: center;
    gap: 0.25rem;
}

.rating-text {
    font-weight: 600;
    color: #495057;
}

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

/* Price */
.product-price {
    
    justify-content: center;
    flex-direction: column;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 1.2rem;
    color: #6c757d;
    text-decoration: line-through;
}

.discount-percent {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Stock Status */
.stock-status {
    
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stock-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left:10px;
}

.stock-unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Warranty Display */
.warranty-display {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.warranty-image {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.warranty-image:hover {
    transform: scale(1.05);
}

/* Specifications Sidebar */
.specifications-sidebar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.specifications-title {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.specifications-title i {
    color: #3498db;
}

.specifications-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specifications-content p {
    margin-bottom: 8px;
    color: #6c757d;
    line-height: 1.5;
    font-size: 16px;
}

.specifications-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.specifications-content li {
    margin-bottom: 5px;
    color: #6c757d;
    line-height: 1.4;
    font-size: 0.9rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

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

.spec-label {
    font-weight: 500;
    color: #495057;
    flex: 0 0 45%;
    margin-right: 10px;
}

.spec-value {
    color: #6c757d;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .specifications-sidebar {
        margin-top: 20px;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .spec-label {
        flex: none;
        margin-right: 0;
    }
    
    .spec-value {
        text-align: left;
        flex: none;
    }
}

@media (max-width: 768px) {
    .warranty-image {
        max-height: 50px;
    }
    
    .row.align-items-center {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin: 0 -5px;
    }
    
    .col-md-5, .col-md-3, .col-md-4 {
        width: auto;
        padding: 0 5px;
        flex: 0 0 auto;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .original-price {
        font-size: 1rem;
    }
    
    .discount-percent {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .stock-status {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .stock-available, .stock-unavailable {
        font-size: 18px;
        padding: 4px 8px;
    }
    
    .warranty-display {
        padding: 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .warranty-display.text-center {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
    }
    
    .price-group {
        justify-content: flex-start;
    }
}
/* Product Summary */
.product-summary {
    background: #f8f9fa;
    padding-left:15px;
    
}
/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .row.align-items-center {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .product-summary {
    background: #f8f9fa;
    padding-left:0px;
    
    }   
    
    .col-md-5 {
        padding-left: 10px;
        
    }
    
    .col-md-3, .col-md-4 {
       
    }

    .sidebar-modal-mobile{
        width: 100%;
    }
    .sidebar-right{
        width: 100%;
    }
    
    .price-group {
        justify-content: center;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .original-price {
        font-size: 1.1rem;
    }
    
    .warranty-display.text-center {
        justify-content: center;
        font-size: 18px;
    }
}





.summary-title {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 18px;
}

.summary-text {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Variations */
.product-variations {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.variation-group {
    margin-bottom: 1rem;
}

.variation-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.variation-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variation-option {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.variation-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.variation-option.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

/* Product Variation Buttons in Grid */
.variation-button {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variation-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.variation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Quantity & Actions */
.product-actions {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}



.quantity-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    width: fit-content;
    
    
    overflow: hidden;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    outline: none;
}

.action-buttons {
    display: flex;
    
    gap: 15px;
}

/* Quantity Selector */
.quantity-selector {
    
}

.quantity-selector .form-label {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.quantity-controls {
    max-width: 200px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    border: 1px solid #dee2e6;
    text-align: center;
    font-weight: 600;
    height: 40px;
}

.quantity-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Action Buttons Layout */
.action-buttons .d-flex {
    gap: 10px;
}

/* Product Purchase Section */
.product-purchase-section {
    max-width:fit-content;
}

.product-action-buttons {
    margin-top: 0;
}

.product-action-buttons .btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 30px;
}

.product-action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 767.98px) {
    .product-purchase-section {
        
    }
    
    .quantity-selector {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .product-action-buttons {
        width: 100%;
    }
}

/* Legacy button styles - kept for backward compatibility */
.btn-add-cart {
    flex: 1;
    min-width: 200px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-wishlist,
.btn-compare {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* New product button styles with product- prefix */
.product-btn-add-cart {
    flex: 1;
    min-width: 200px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.product-btn-buy-now {
    flex: 1;
    min-width: 200px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.product-btn-wishlist,
.product-btn-compare {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-btn-wishlist:hover,
.product-btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-wishlist:hover,
.btn-compare:hover {
    transform: translateY(-2px);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.share-label {
    font-weight: 600;
    color: #495057;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.pinterest {
    background: #bd081c;
}

.share-btn.telegram {
    background: #0088cc;
}

/* Product Features */
.product-features {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
}

.section-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Product Tabs */
/* Product Info Columns Layout */
.product-info-columns {
    margin-bottom: 3rem;
}

.product-info-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-info-card .product-info-content {
    line-height: 1.6;
    color: #495057;
}

.product-info-card .product-info-content p {
    margin-bottom: 1rem;
}

.product-info-card .product-info-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

.product-info-card .product-info-content ul,
.product-info-card .product-info-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-info-card .product-info-content h3,
.product-info-card .product-info-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #343a40;
}

.product-info-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.info-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.product-info-content {
    padding: 1.5rem;
    flex: 1;
}

/* Legacy Product Tabs Styles - Keeping for compatibility */
.product-tabs {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.nav-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
}

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

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: #495057;
}

.nav-tabs .nav-link.active {
    background: white;
    color: #007bff;
    border-bottom: 3px solid #007bff;
}

.tab-content-wrapper {
    padding: 2rem;
}

/* Specifications Table */
.specifications-table .table {
    margin: 0;
}

.specifications-table .table td {
    padding: 1rem;
    border-color: #dee2e6;
}

.spec-name {
    font-weight: 600;
    color: #495057;
    width: 30%;
    background: #f8f9fa;
}

.spec-value {
    color: #6c757d;
}

/* Reviews */
.review-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.rating-overview {
    padding: 0.75rem;
}

/* Improved review styles for 2-column layout */
.product-info-columns .review-summary {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Rating input styling */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    margin-right: 0.25rem;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #ffc107;
}

/* Review form styling */
.product-info-columns .review-form {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.product-info-columns .review-form h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #343a40;
}

.product-info-columns .review-form .form-group {
    margin-bottom: 1rem;
}

.product-info-columns .review-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.product-info-columns .review-form .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.product-info-columns .review-form .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.product-info-columns .reviews-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.product-info-columns .review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.product-info-columns .review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.product-info-columns .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-info-columns .reviewer-info {
    display: flex;
    flex-direction: column;
}

.product-info-columns .review-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.product-info-columns .review-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info-columns .review-text {
    color: #495057;
    margin-bottom: 0;
}

.average-rating {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.rating-breakdown {
    padding: 1rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.rating-label {
    width: 60px;
    font-size: 0.9rem;
    color: #6c757d;
}

.progress {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    border-radius: 4px;
}

.rating-count {
    width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Review Form */
.review-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
}

.rating-input {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #dee2e6;
    transition: color 0.3s ease;
}

.rating-input label:hover,
.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover ~ label {
    color: #ffc107;
}

/* Review Items */
.review-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-name {
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.review-rating {
    margin-bottom: 0.5rem;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-text {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Related Products */
.related-products {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
}

.product-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.sale {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.product-card .product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-name {
    margin-bottom: 0.5rem;
}

.product-card .product-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-name a:hover {
    color: #007bff;
}

.product-card .product-rating {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-card .product-price {
    
    margin-top: -20px;
}

.product-card .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
}

.product-card .original-price {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-card .product-actions {
    display: flex;
    gap: 5px;
}

.product-card .product-actions .btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Styles for product card buttons with new classes */
.product-card .product-btn-add-cart,
.product-card .product-btn-wishlist,
.product-card .product-btn-compare {
    transition: all 0.3s ease;
}

.product-card .product-btn-add-cart:hover,
.product-card .product-btn-wishlist:hover,
.product-card .product-btn-compare:hover {
    transform: translateY(-2px);
}

.product-card .product-actions .btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .product-info {
        
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-add-cart,
    .product-btn-add-cart,
    .product-btn-buy-now {
        min-width: auto;
    }
}

@media (max-width: 767.98px) {
    .thumbnails-container {
        justify-content: center;
    }
    
    .price-group {
        flex-direction: row;
        
        gap: 8px;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .product-info-columns .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .product-info-columns .review-summary .row {
        flex-direction: column;
    }
    
    .product-info-columns .review-summary .col-md-4,
    .product-info-columns .review-summary .col-md-8 {
        width: 100%;
    }
    
    .product-info-columns .rating-overview {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .product-info-columns .review-form,
    .product-info-columns .reviews-list {
        padding: 0;
    }
    
    .product-info-columns .review-item {
        padding: 0.75rem;
    }
    
    .product-info-columns .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-info-columns .review-date {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-detail-section,
    .product-features,
    .product-info-columns,
    .product-tabs,
    .related-products {
        
        border-radius: 0;
    }
    
    .product-info-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .variation-options {
        justify-content: center;
    }
}

/* Gift Section */
.gift-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.gift-section-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-section-title i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.gifts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gift-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.gift-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.gift-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gift-details {
    flex: 1;
}

.gift-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.gift-description {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.gift-value {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive adjustments for gifts */
@media (max-width: 768px) {
    .gifts-list {
        grid-template-columns: 1fr;
    }
    
    .gift-item {
        padding: 0.75rem;
    }
    
    .gift-image,
    .gift-icon {
        width: 40px;
        height: 40px;
    }
    
    .gift-icon {
        font-size: 1.2rem;
    }
}

/* Gift Section Styles */
.gift-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #ffebee;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

.gift-title {
    color: #c62828;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.gift-title i {
    font-size: 1.2rem;
    animation: giftPulse 2s infinite;
}

@keyframes giftPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gift-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gift-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gift-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
    border-color: #ef5350;
}

.gift-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #dc3545;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.gift-image i {
    font-size: 24px;
    color: #dc3545;
}

.gift-info {
    flex: 1;
}

.gift-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.gift-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gift-value {
    font-size: 0.95rem;
    color: #495057;
}

.gift-value .text-danger {
    font-size: 1.05rem;
}

/* Responsive Design for Gift Section */
@media (max-width: 767.98px) {
    .gift-section {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .gift-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .gift-image {
        width: 50px;
        height: 50px;
    }
    
    .gift-image i {
        font-size: 20px;
    }
    
    .gift-name {
        font-size: 0.95rem;
    }
    
    .gift-description {
        font-size: 0.85rem;
    }
}
