/* PRODUCT DETAIL PAGE STYLES */

/* Breadcrumb */
.product-breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.product-breadcrumb a {
    color: var(--text-main);
    transition: var(--transition);
}

.product-breadcrumb a:hover {
    color: var(--primary);
}

.product-breadcrumb .separator {
    margin: 0 10px;
    font-size: 10px;
}

/* Product Layout */
.product-detail-layout {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    flex: 1;
    min-width: 0;
}

.product-info-section {
    flex: 1;
    min-width: 0;
}

/* Gallery Styles */
.main-image-container {
    background: #fcfcfc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.main-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
    transition: transform 0.4s ease;
}

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

.product-badge-large {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thumbnail-gallery {
    display: flex;
    gap: 15px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fdfdfd;
    padding: 10px;
    transition: var(--transition);
}

.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info Section */
.product-title-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-rating {
    color: var(--accent);
}

.product-sku {
    color: var(--text-muted);
}

.product-price-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

/* Variations */
.variation-group {
    margin-bottom: 25px;
}

.variation-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--text-main);
}

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

.var-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.var-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Action Area */
.product-action-area {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: nowrap;
}

.product-action-area .qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    height: 46px;
    flex-shrink: 0;
}

.product-action-area .qty-btn {
    width: 36px;
    height: 100%;
    background: #f9f9f9;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.product-action-area .qty-btn:hover {
    background: #eaeaea;
}

.product-action-area .qty-input {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    -moz-appearance: textfield;
}

.product-action-area .qty-input::-webkit-outer-spin-button,
.product-action-area .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-btn-large {
    flex: 1;
    height: 46px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 0 12px;
    min-width: 0;
}

.add-btn-large:hover {
    background: var(--primary-dark);
}

.wishlist-btn-large {
    width: 46px;
    height: 46px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.wishlist-btn-large:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Trust Badges */
.trust-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #fdfaf6;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.trust-badge-item i {
    font-size: 18px;
    color: var(--primary);
}

/* Product Tabs */
.product-tabs-section {
    margin: 60px 0;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

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

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    animation: fadeIn 0.4s ease;
}

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

.tab-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

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

.tab-content li {
    margin-bottom: 10px;
}

@media (max-width: 998px) {
    .product-detail-layout {
        flex-direction: column;
    }
    .tabs-nav {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }
}

/* Nutrition Table */
.nutrition-table-wrapper {
    background: #fdfdfd;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    max-width: 500px;
}
.nutrition-table {
    width: 100%;
    border-collapse: collapse;
}
.nutrition-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.nutrition-table tr:last-child td {
    border-bottom: none;
}
.nutrition-table td:last-child {
    text-align: right;
    color: var(--text-muted);
}
.allergen-warning {
    background: #fff8f8;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #991b1b;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Reviews Styling */
.reviews-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .reviews-container {
        grid-template-columns: 2fr 3fr;
    }
}
.reviews-summary-card {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.reviews-rating-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 8px;
}
.reviews-stars-large {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 12px;
}
.reviews-rating-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.reviews-dist-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reviews-dist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-main);
}
.reviews-dist-label {
    width: 50px;
    text-align: left;
    white-space: nowrap;
}
.reviews-dist-bar-bg {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.reviews-dist-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}
.reviews-dist-count {
    width: 30px;
    text-align: right;
    color: var(--text-muted);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.review-author {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}
.review-stars {
    color: var(--accent);
    font-size: 12px;
}
.review-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.review-comment {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

/* Review Form */
.review-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-top: 40px;
}
.review-form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.star-rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}
.star-rating-selector input {
    display: none;
}
.star-rating-selector label {
    font-size: 28px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
    color: var(--accent);
}

/* Visa / Mastercard Badge styling */
.payment-trust-card {
    margin-top: 25px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}
.payment-trust-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.payment-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.payment-icons img {
    height: 24px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.payment-icons img:hover {
    opacity: 1;
}
.payment-secure-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-submit-btn {
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.review-submit-btn:hover {
    background: var(--primary-dark);
}

.whatsapp-btn-large {
    flex: 1;
    height: 46px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 0 12px;
    min-width: 0;
}
.whatsapp-btn-large:hover {
    background: #20ba5a;
    color: white;
}

.whatsapp-btn-large i,
.add-btn-large i {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 576px) {
    .product-action-area {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }
    .product-action-area .qty-selector {
        width: 100%;
        justify-content: center;
    }
    .product-action-area .qty-btn {
        flex: 1;
    }
    .product-action-area .qty-input {
        flex: 2;
        width: 100% !important;
    }
    .add-btn-large, .whatsapp-btn-large {
        width: 100%;
        flex: none;
        min-width: 0;
    }
    .wishlist-btn-large {
        width: 100%;
        flex: none;
    }
}

