/* Product Detail Page Styles */

.product-detail-section {
    padding: 40px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    width: 100%;
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    background-color: var(--bg-light);
}

.main-image .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.main-image .sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 14px;
    padding: 8px 15px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Product Info */
.product-info-detail {
    padding: 0 20px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-pack-options {
    margin: 10px 0 18px;
}

.product-pack-options__label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pack-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pack-option {
    position: relative;
}

.pack-option .pack-option__title {
    padding: 10px 14px;
    border: 2px solid var(--border-lighter);
    border-radius: 10px;
    background: #fff;
    display: inline-block;
}

.pack-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pack-option label {
    display: block;
    padding: 10px 14px;
    border: 2px solid var(--border-lighter);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    min-width: 120px;
}

.pack-option label .pack-option__title,
.pack-option .pack-option__title {
    font-weight: 800;
    color: var(--text-dark);
}

.pack-option input:checked + label {
    border-color: var(--primary-color);
}

.product-category a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.product-category a:hover {
    text-decoration: underline;
}

.product-sku {
    color: var(--text-dark);
    opacity: 0.7;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-short-desc {
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stars {
    color: #FFD700;
    font-size: 18px;
}

.rating-text {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 14px;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-price-section .product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-section .old-price {
    font-size: 24px;
    color: var(--text-dark);
    opacity: 0.6;
    text-decoration: line-through;
    font-weight: 400;
}

.discount-badge {
    background-color: var(--primary-lightest);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.product-description,
.product-specs {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-lighter);
}

.product-description h3,
.product-specs h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.description-content {
    color: var(--text-dark);
    line-height: 1.8;
    opacity: 0.9;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 8px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-lighter);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: var(--text-dark);
    margin-right: 10px;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Pack Selector Cards */
.pack-selector-wrapper {
    margin-bottom: 15px;
}

.pack-selector-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pack-selector-label span {
    font-weight: 700;
}

.pack-selector-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pack-card {
    position: relative;
    cursor: pointer;
}

.pack-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pack-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
}

.pack-card:hover .pack-card-inner {
    border-color: #999;
}

.pack-card.selected .pack-card-inner {
    border-color: #1a4b8c;
    background: #f8fafc;
}

.pack-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.pack-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.pack-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.add-to-cart-row .add-to-cart-btn-large {
    flex: 1;
    max-width: 100px;
}

.product-actions .wishlist-btn {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 50px;
    background-color: var(--bg-light);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.3s;
}

.qty-btn:hover {
    background-color: var(--border-light);
}

#productQty {
    width: 60px;
    height: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

#productQty::-webkit-outer-spin-button,
#productQty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn-large {
    flex: 1;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 200ms ease;
    min-width: 200px;
}

.add-to-cart-btn-large:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 91, 89, 0.3);
}

/* Make hover/focus transitions accessible; visible focus ring */
.add-to-cart-btn-large:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.18);
    outline-offset: 2px;
}

.add-to-cart-btn-large:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(2,91,89,0.14);
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-dark);
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-lighter);
}

.product-share span {
    font-weight: 600;
    color: var(--text-dark);
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.share-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Related Products */
.related-products-section {
    padding: 60px 0;
    background-color: var(--bg-lighter);
}

.related-products-section .products-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
}

/* Related Product Card Styles */
.related-products-section .product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}



.related-products-section .product-card:hover {
    box-shadow: 0 16px 40px rgba(2, 91, 89, 0.12);
    transform: translateY(-4px);
}

.related-products-section .product-card:hover::after {
    opacity: 1;
}

.related-products-section .product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.related-products-section .product-image-link {
    display: block;
    text-decoration: none;
}

.related-products-section .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-products-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-products-section .product-card:hover .product-image img {
    transform: scale(1.05);
}

.related-products-section .product-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-products-section .product-link {
    text-decoration: none;
}

.related-products-section .product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.related-products-section .product-card:hover .product-name {
    color: var(--primary-color);
}

.related-products-section .product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.related-products-section .product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.related-products-section .product-price.old-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.related-products-section .discount-badge {
    background: rgba(2, 91, 89, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.related-products-section .add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.related-products-section .add-to-cart-btn::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.related-products-section .add-to-cart-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 91, 89, 0.25);
}

/* Related Products Section Header */
.related-products-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-products-section .section-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.related-products-section .section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
}

/* Related Products Responsive */
@media (max-width: 1200px) {
    .related-products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .related-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .related-products-section {
        padding: 40px 0;
    }
    
    .related-products-section .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .related-products-section .product-name {
        font-size: 15px;
    }
    
    .related-products-section .product-price {
        font-size: 18px;
    }
}

/* ================================
   RESPONSIVE STYLES - MOBILE FIRST
   ================================ */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .product-detail-section {
        padding: 30px 0;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-images {
        position: static;
    }
    
    .product-info-detail {
        padding: 0;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .product-detail-section {
        padding: 20px 0;
    }
    
    .product-detail-section .container {
        padding: 0 15px;
    }
    
    .product-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .product-short-desc {
        font-size: 15px;
    }
    
    .product-price-section {
        margin-bottom: 20px;
    }
    
    .product-price-section .product-price {
        font-size: 28px;
    }
    
    .product-price-section .old-price {
        font-size: 18px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .thumbnail img {
        height: 60px;
    }
    
    /* Product actions - stack vertically */
    .product-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .product-actions form {
        flex-direction: column !important;
        width: 100%;
        gap: 12px !important;
    }
    
    /* Pack selector cards responsive */
    .pack-selector-cards {
        gap: 8px;
    }
    
    .pack-card-inner {
        min-width: 80px;
        padding: 10px 12px;
    }
    
    .pack-number {
        font-size: 16px;
    }
    
    .pack-price {
        font-size: 13px;
    }
    
    .pack-original-price {
        font-size: 11px;
    }
    
    .add-to-cart-row {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .add-to-cart-row .add-to-cart-btn-large {
        flex: 1;
        min-width: 150px;
    }
    
    .add-to-cart-row .wishlist-btn {
        width: 50px;
        height: 50px;
    }
    
    .quantity-selector {
        width: auto;
        justify-content: center;
    }
    
    .qty-btn {
        width: 50px;
        height: 48px;
        min-height: 44px; /* Touch-friendly */
    }
    
    #productQty {
        width: 80px;
        height: 48px;
        font-size: 18px;
    }
    
    .add-to-cart-btn-large {
        width: 100%;
        min-width: unset;
        padding: 14px 20px;
        min-height: 48px; /* Touch-friendly */
        font-size: 15px;
    }
    
    .wishlist-btn {
        width: 100%;
        height: 48px;
        min-height: 44px; /* Touch-friendly */
        font-size: 18px;
    }
    
    /* Product description & specs */
    .product-description,
    .product-specs {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .product-description h3,
    .product-specs h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .description-content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .specs-list li {
        font-size: 14px;
        padding: 10px 0;
    }
    
    /* Share section */
    .product-share {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 15px;
    }
    
    .share-icon {
        width: 44px;
        height: 44px;
    }
    
    /* Rating section */
    .product-rating {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .product-rating .rating-link {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
    
    .stars {
        font-size: 16px;
    }
    
    .rating-text {
        font-size: 13px;
    }
    
    /* Product meta */
    .product-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .product-detail-section {
        padding: 15px 0;
    }
    
    .product-detail-section .container {
        padding: 0 12px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-short-desc {
        font-size: 14px;
    }
    
    .product-price-section .product-price {
        font-size: 24px;
    }
    
    .product-price-section .old-price {
        font-size: 16px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .thumbnail img {
        height: 50px;
    }
    
    .product-image-placeholder {
        font-size: 80px;
    }
    
    .main-image {
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    /* Buttons slightly smaller on very small screens */
    .add-to-cart-btn-large {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* ================================
   REVIEWS SECTION STYLES
   ================================ */

.reviews-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    border-top: 1px solid #eee;
}

.reviews-section .section-title {
    margin-bottom: 40px;
    font-size: 28px;
    color: #222;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Rating Summary */
.rating-summary {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.average-rating {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.average-rating .rating-number {
    font-size: 56px;
    font-weight: 700;
    color: #222;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.average-rating .rating-stars {
    font-size: 24px;
    color: #ffc107;
    margin-bottom: 8px;
}

.average-rating .rating-stars i {
    margin: 0 2px;
}

.average-rating .total-reviews {
    font-size: 14px;
    color: #666;
}

/* Rating Bars */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar .star-label {
    min-width: 40px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-bar .star-label i {
    color: #ffc107;
    font-size: 11px;
}

.rating-bar .bar-container {
    flex: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ffb300 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.rating-bar .bar-count {
    min-width: 30px;
    font-size: 13px;
    color: #666;
    text-align: right;
}

/* Write Review Form */
.write-review {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.write-review h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.review-form label .required {
    color: var(--primary-color);
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 91, 89, 0.1);
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.submit-review-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-review-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 91, 89, 0.3);
}

.verified-badge-info {
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 13px;
    color: #2e7d32;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Login Prompt & Already Reviewed */
.login-prompt,
.already-reviewed {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.login-prompt p,
.already-reviewed p {
    margin: 0;
    color: #555;
    font-size: 15px;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.login-prompt i,
.already-reviewed > p > i {
    font-size: 18px;
    margin-right: 8px;
}

.already-reviewed > p > i {
    color: #2e7d32;
}

.your-review-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    text-align: left;
    border: 1px solid #eee;
}

.your-review-box strong {
    font-size: 14px;
    color: #333;
}

.your-review-box .your-rating {
    margin: 8px 0;
    color: #ffc107;
}

.your-review-box .your-review-title {
    font-weight: 600;
    color: #333;
    margin: 5px 0;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Reviews List */
.reviews-list {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.reviews-list h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.no-reviews {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.no-reviews i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-reviews p {
    font-size: 16px;
    margin: 0;
}

/* Individual Review Item */
.review-item {
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-item:first-child {
    padding-top: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #888;
    font-size: 18px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.verified-badge {
    font-size: 11px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge i {
    font-size: 10px;
}

.review-date {
    font-size: 13px;
    color: #888;
}

.review-rating {
    font-size: 16px;
    color: #ffc107;
    margin-bottom: 10px;
}

.review-rating i {
    margin-right: 2px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
}

.review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.review-actions {
    margin-top: 15px;
}

.delete-review-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #ddd;
    color: #888;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delete-review-btn:hover {
    background: #ffebee;
    border-color: #ef5350;
    color: #c62828;
}

/* Rating Link */
.product-rating .rating-link {
    margin-left: 12px;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.product-rating .rating-link:hover {
    text-decoration: underline;
}

/* Reviews Responsive */
@media (max-width: 992px) {
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
    }
    
    .reviews-section .container {
        padding: 0 15px;
    }
    
    .reviews-section .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .rating-summary,
    .write-review,
    .reviews-list {
        padding: 20px;
        border-radius: 12px;
    }
    
    .average-rating .rating-number {
        font-size: 42px;
    }
    
    .average-rating .rating-stars {
        font-size: 20px;
    }
    
    .star-rating-input label {
        font-size: 28px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .review-form input[type="text"],
    .review-form textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-review-btn {
        min-height: 48px;
        font-size: 15px;
    }
    
    .rating-bar .star-label {
        min-width: 35px;
        font-size: 12px;
    }
    
    .rating-bar .bar-count {
        min-width: 25px;
        font-size: 12px;
    }
    
    .review-item {
        padding: 20px 0;
    }
    
    .review-title {
        font-size: 15px;
    }
    
    .review-text {
        font-size: 13px;
    }
    
    .no-reviews {
        padding: 30px 15px;
    }
    
    .no-reviews i {
        font-size: 36px;
    }
    
    .no-reviews p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 30px 0;
    }
    
    .reviews-section .container {
        padding: 0 12px;
    }
    
    .rating-summary,
    .write-review,
    .reviews-list {
        padding: 15px;
        border-radius: 10px;
    }
    
    .average-rating .rating-number {
        font-size: 36px;
    }
    
    .average-rating .rating-stars {
        font-size: 18px;
    }
    
    .average-rating .total-reviews {
        font-size: 12px;
    }
    
    .star-rating-input label {
        font-size: 26px;
    }
    
    .write-review h3,
    .reviews-list h3 {
        font-size: 17px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .submit-review-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .login-prompt,
    .already-reviewed {
        padding: 20px 15px;
    }
    
    .reviewer-name {
        font-size: 14px;
    }
    
    .review-date {
        font-size: 12px;
    }
    
    .delete-review-btn {
        min-height: 44px;
        padding: 10px 16px;
    }
}

/* ================================
   BREADCRUMB STYLES
   ================================ */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    color: #999;
    font-size: 10px;
}

.breadcrumb span {
    color: #666;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 0;
    }
    
    .breadcrumb .container {
        font-size: 12px;
        gap: 6px;
        padding: 0 15px;
    }
    
    .breadcrumb i {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .breadcrumb .container {
        padding: 0 12px;
        font-size: 11px;
    }
}

/* ================================
   GLOBAL MOBILE FIXES
   ================================ */

/* Prevent horizontal overflow - only on body to preserve sticky header */
body {
    overflow-x: hidden;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Container padding on mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}
