/* Gallery Styles */
.modern-gallery-container {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.main-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.main-image-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.modern-thumb-gallery {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumb-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(45, 106, 79, 0.3);
    flex-shrink: 0;
}

.thumb-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(45, 106, 79, 0.4);
}

.thumb-slider {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0.25rem;
}

.thumb-slider::-webkit-scrollbar {
    height: 0;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #f8f9fa;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

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

.thumb-item.video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: #fff;
    font-size: 1.5rem;
}

.thumb-item.video-thumb:hover {
    background: #f57c00;
}

/* Product Header Styles */
.modern-product-header {
    margin-bottom: 1.5rem;
}

.modern-product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.modern-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modern-rating .stars {
    display: flex;
    gap: 0.15rem;
}

.modern-rating .stars i {
    color: #ffc107;
    font-size: 1rem;
}

.modern-rating .stars i.empty {
    color: #dee2e6;
}

.modern-rating .rating-count {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.modern-price-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.modern-price-display .price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d6a4f;
}

.modern-price-display .price-unit {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.quantity-discount-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Price Section and Table Styles */
.modern-price-section {
    margin-bottom: 1.5rem;
}

.modern-price-section .price-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
}

.modern-price-section .price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

.modern-table-wrapper {
    margin-bottom: 1.5rem;
}

.modern-table-wrapper h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.modern-table thead th {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
}

.modern-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.modern-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.modern-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
}

.modern-table tbody td {
    padding: 0.75rem 1rem;
    color: #495057;
}

.modern-table tbody td:first-child {
    font-weight: 500;
}

.modern-table tbody td .price-highlight {
    color: #2d6a4f;
    font-weight: 600;
}

.modern-quantity-selector {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.25rem;
    border: 1px solid #dee2e6;
}

.modern-quantity-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: #2d6a4f;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.modern-quantity-selector button:hover {
    background: #1a1a2e;
    color: #fff;
}

.modern-quantity-selector .number {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
}

.modern-unit-label {
    margin-left: 1rem;
    font-weight: 500;
    color: #6c757d;
    font-size: 1rem;
}

.modern-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modern-action-buttons .btn-order {
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-action-buttons .btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

.modern-action-buttons .btn-cart {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-action-buttons .btn-cart:hover {
    background: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
}

/* Product Meta Styles */
.modern-product-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.meta-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    min-width: 100px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.stock-badge.in-stock {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.stock-badge i {
    font-size: 0.75rem;
}

.category-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
    text-decoration: none;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.social-share a:hover {
    transform: translateY(-3px);
}

.social-share a.facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.social-share a.twitter:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.social-share a.whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.social-share a.linkedin:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

/* Tabs Styles */
.modern-tabs {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.25rem;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.modern-tab-btn {
    padding: 0.75rem 1.75rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-tab-btn:hover {
    color: #2d6a4f;
}

.modern-tab-btn.active {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.modern-tab-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.modern-tab-content .description-text {
    color: #495057;
    line-height: 1.8;
    font-size: 1rem;
}

/* Review Section Styles */
.modern-review-section {
    padding: 2rem 0;
}

.modern-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
}

.modern-review-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-review-card h4 i {
    color: #f57c00;
}

.rating-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.rating-section label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.75rem;
    color: #dee2e6;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.modern-input:focus {
    outline: none;
    border-color: #2d6a4f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.modern-textarea {
    min-height: 120px;
    resize: vertical;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .modern-input {
    flex: 1;
}

.btn-submit-review {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

.modern-review-list {
    margin-bottom: 3rem;
}

.review-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

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

.review-author {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.1rem;
}

.review-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

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

.review-comment {
    color: #495057;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Modern Product Slider Styles */
.modern-product-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
    flex-shrink: 0;
}

.slider-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

.product-cards-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 1rem 0.5rem;
}

.product-cards-container::-webkit-scrollbar {
    height: 0;
}

.modern-product-card {
    min-width: 280px;
    max-width: 280px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.card-image-wrapper img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modern-product-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    color: #fff;
    padding: 0.35rem 0.875rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.card-body {
    padding: 1.25rem;
}

.card-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-body .description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-pricing .old-price {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.card-pricing .new-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d6a4f;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-rating .stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.card-rating .reviews {
    font-size: 0.8rem;
    color: #6c757d;
}

.card-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d6a4f;
}

.stock-indicator .dot {
    width: 8px;
    height: 8px;
    background: #2d6a4f;
    border-radius: 50%;
}

.btn-view-product {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(45, 106, 79, 0.2);
}

.btn-view-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 106, 79, 0.3);
    color: #fff;
}