/* Enhanced Product Page Styles */

/* Product Container */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

/* Product Hero Section */
.product-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

/* Product Images Section */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    aspect-ratio: 1;
}

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

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

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

.zoom-icon {
    font-size: 2.5rem;
    color: white;
}

/* Product Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.thumbnail.active {
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.3);
}

/* Product Details Section */
.product-details {
    padding: 20px 0;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

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

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

.star {
    font-size: 1.2rem;
    color: #ddd;
    transition: color 0.2s ease;
}

.star.filled {
    color: #ffc107;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* Product Price Section */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d9230f;
}

.old-price {
    font-size: 1.8rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.discount-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Product Description */
.product-description {
    margin-bottom: 25px;
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Product Features */
.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 15px 0;
}

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

.product-features li {
    padding: 8px 0;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.product-features li:last-child {
    border-bottom: none;
}

/* Product Actions */
.product-actions {
    margin-bottom: 30px;
}

.cta-button.primary {
    display: block;
    background: linear-gradient(135deg, #ff9a3d, #ff6f61);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 111, 97, 0.3);
    margin-bottom: 15px;
    width: auto;
    text-align: center;
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 111, 97, 0.4);
    color: white;
    text-decoration: none;
}

/* Coupon Section */
.coupon-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff7e0;
    border: 2px dashed #ff6600;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.coupon-text {
    font-weight: 600;
    color: #333;
}

.coupon-code {
    background: #ff6600;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.copy-coupon {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-coupon:hover {
    background: #218838;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.trust-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.trust-item span:last-child {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Social Share */
.social-share {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.share-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

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

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* Additional Product Information */
.product-additional-info {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

/* Info Tabs */
.info-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
    gap: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-button:hover {
    color: #ff6600;
    background: #f8f9fa;
}

.tab-button.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
    background: #f8f9fa;
}

/* Tab Content */
.tab-content {
    min-height: 200px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Specifications */
.specifications {
    display: grid;
    gap: 15px;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff6600;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #555;
}

/* Reviews Section - Enhanced */
.reviews-section {
    direction: ltr;
}

.reviews-summary {
    display: flex;
    gap: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
    align-items: center;
}

.reviews-summary-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.rating-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff6600;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-stars .star {
    font-size: 1.2rem;
}

.total-reviews {
    color: #666;
    font-size: 0.9rem;
}

/* Rating Breakdown */
.reviews-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-label {
    min-width: 70px;
    font-size: 0.9rem;
    color: #666;
}

.breakdown-bar {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(135deg, #ffc107, #ffca28);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.breakdown-percent {
    min-width: 40px;
    font-size: 0.85rem;
    color: #666;
    text-align: left;
}

/* Reviews Sort */
.reviews-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.reviews-sort span {
    color: #666;
    font-size: 0.95rem;
}

.sort-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sort-btn:hover {
    background: #e0e0e0;
}

.sort-btn.active {
    background: #ff6600;
    color: white;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Review Card */
.review-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a3d, #ff6f61);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 0.95rem;
}

.review-text {
    color: #555;
    line-height: 1.7;
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.review-actions {
    display: flex;
    gap: 12px;
}

.helpful-btn,
.not-helpful-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.helpful-btn:hover {
    background: #e8f5e9;
    border-color: #81c784;
}

.not-helpful-btn:hover {
    background: #ffebee;
    border-color: #ef5350;
}

/* Reviews Responsive */
@media (max-width: 768px) {
    .reviews-summary {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .reviews-summary-left {
        min-width: auto;
    }

    .breakdown-label {
        min-width: 60px;
        font-size: 0.8rem;
    }

    .review-header {
        flex-wrap: wrap;
    }

    .review-rating {
        width: 100%;
        margin-top: 8px;
    }

    .reviews-sort {
        flex-wrap: wrap;
    }
}

/* Enhanced Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.image-modal.open {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease, transform 0.3s ease;
}

/* Image counter indicator */
.image-modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.image-modal .close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.image-modal .close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-container {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
    }

    .product-hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

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

    .product-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .discount-badge {
        align-self: flex-end;
    }

    .trust-indicators {
        justify-content: space-around;
    }

    .info-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-button {
        border-bottom: 1px solid #eee;
        border-left: 3px solid transparent;
        text-align: left;
    }

    .tab-button.active {
        border-left-color: #ff6600;
        border-bottom-color: #eee;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .coupon-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-thumbnails {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .thumbnail {
        flex-shrink: 0;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 15px;
    }

    .trust-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }
}

/* Conversion Optimization Features */

/* Urgency Indicators */
.urgency-banner {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 12px 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    animation: pulse 2s infinite;
    font-weight: 600;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Stock Alert */
.stock-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-alert.low-stock {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Price Timer */
.price-timer {
    background: #e7f3ff;
    border: 2px solid #0066cc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.timer-text {
    font-size: 0.9rem;
    color: #0066cc;
    margin-bottom: 8px;
}

.countdown {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    font-family: 'Courier New', monospace;
}

/* Enhanced CTA Animations */
.cta-button.primary {
    position: relative;
    overflow: hidden;
}

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

.cta-button.primary:hover::before {
    left: 100%;
}

/* Floating Discount Badge */
.floating-discount {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Testimonial Quote */
.testimonial-quote {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: #28a745;
    position: absolute;
    top: -10px;
    right: 10px;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
}

.testimonial-author {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #666;
}

.security-badge .icon {
    color: #28a745;
}

/* Guarantee Seal */
.guarantee-seal {
    background: #28a745;
    color: white;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Sticky Notification Bar */
.sticky-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffc107;
    color: #856404;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    z-index: 9998;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-notification.show {
    transform: translateY(0);
}

/* Exit Intent Modal */
.exit-intent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.exit-intent-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    position: relative;
}

.exit-intent-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.exit-intent-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.exit-intent-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.exit-intent-cta {
    background: #dc3545;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Optimization for Conversion */
@media (max-width: 768px) {
    .security-badges {
        justify-content: space-around;
    }

    .security-badge {
        font-size: 0.7rem;
        padding: 6px 8px;
    }

    .guarantee-seal {
        width: 80px;
        height: 80px;
        font-size: 0.7rem;
    }

    .testimonial-quote {
        margin: 15px 0;
        padding: 15px;
    }

    .floating-discount {
        position: static;
        display: inline-block;
        margin: 10px 0;
    }

    .exit-intent-content {
        padding: 30px 20px;
        margin: 10px;
    }
}

/* Page Performance Indicators */
.page-load-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff9a3d, #ff6f61);
    transform: translateX(-100%);
    transition: transform 2s ease;
    z-index: 9999;
}

.page-load-indicator.loaded {
    transform: translateX(0);
}

/* Related Products Section */
.related-products-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 50px;
}

.related-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-products-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.related-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-product-card .product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.related-product-card .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

.related-product-card .product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

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

.related-product-card .star {
    font-size: 0.9rem;
    filter: grayscale(100%);
}

.related-product-card .star.filled {
    filter: grayscale(0%);
}

.related-product-card .rating-text {
    font-size: 0.85rem;
    color: #666;
}

.related-product-card .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.related-product-card .old-price {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
}

.related-product-card .current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff6600;
}

.related-product-card .quick-buy-btn {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.related-product-card .quick-buy-btn:hover {
    background: linear-gradient(135deg, #ff7711, #ff9944);
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .related-products-section {
        padding: 40px 0;
    }

    .related-products-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .related-product-card .product-info {
        padding: 15px;
    }

    .related-product-card .product-title {
        font-size: 0.9rem;
        min-height: 2.6em;
    }

    .related-product-card .quick-buy-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr 1fr;
    }
}
