/* Product Detail Page Professional Styles */

.product-detail-main {
    padding: 50px 0;
}

.product-detail-main .container {
    max-width: 1200px;
}

/* Product Info Block */
.block-info {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.mv-block-style-27 {
    padding: 0;
}

/* Product Gallery */
.block-27-col-slider {
    padding: 30px;
    position: relative;
}

.block-26-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.block-26-main-img:hover {
    transform: scale(1.02);
}

.block-26-gallery-thumbs {
    margin-top: 20px;
}

.block-26-thumbs-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.block-26-thumbs-img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Discount Label */
.block-27-sale-off {
    position: absolute;
    top: 40px;
    right: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 10;
}

.label-2-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.label-2-ul .number {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.label-2-ul .text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Information */
.block-27-col-info {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.block-27-info {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.product-name {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars-wrapper {
    display: flex;
    margin-right: 10px;
}

.item-rate {
    color: #ffd700;
    font-size: 16px;
    margin-right: 2px;
}

.rating-text {
    color: #6c757d;
    font-size: 14px;
}

/* Product Price */
.product-price-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.new-price {
    font-size: 36px;
    font-weight: 700;
    color: #28a745;
    margin-right: 15px;
}

.old-price {
    font-size: 24px;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: 500;
}

.price-tax-info {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Product Features */
.product-features {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-name {
    font-weight: 500;
    color: #495057;
}

.feature-value {
    color: #6c757d;
    font-size: 14px;
}

/* Certificate Badges */
.certificate-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.certificate-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.stock-status.in-stock {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-status.low-stock {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-status.out-of-stock {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stock-status i {
    margin-right: 8px;
    font-size: 16px;
}

/* Variant Selection */
.variant-selection {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.variant-group {
    margin-bottom: 20px;
}

.variant-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
    font-weight: 500;
}

.variant-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.variant-option.selected {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.variant-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Add to Cart Section */
.add-to-cart-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 15px;
    min-width: 60px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #495057;
}

.quantity-btn:hover {
    background: #007bff;
    color: white;
}

.quantity-input {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
}

.quantity-input:focus {
    outline: none;
}

/* Action Buttons */
.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-add-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-wishlist {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.btn-wishlist:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-link {
    padding: 20px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.tab-link.active {
    color: #007bff;
    background: white;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #007bff;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Product Description */
.product-description {
    line-height: 1.8;
    color: #495057;
}

.product-description h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.product-description p {
    margin-bottom: 20px;
}

.product-description ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.product-description li {
    margin-bottom: 8px;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specifications-table th,
.specifications-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.specifications-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
}

.specifications-table td {
    color: #495057;
}

.specifications-table tr:last-child th,
.specifications-table tr:last-child td {
    border-bottom: none;
}

/* Related Products */
.related-products {
    margin-top: 50px;
}

.related-products-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-main {
        padding: 30px 0;
    }

    .block-27-col-slider,
    .block-27-col-info {
        padding: 20px;
    }

    .product-name {
        font-size: 24px;
    }

    .new-price {
        font-size: 28px;
    }

    .old-price {
        font-size: 18px;
    }

    .product-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-wishlist {
        align-self: center;
        justify-self: center;
    }

    .tab-navigation {
        flex-direction: column;
    }

    .tab-link {
        padding: 15px 20px;
        text-align: left;
    }

    .tab-content {
        padding: 20px;
    }

    .block-26-main-img {
        height: 300px;
    }

    .quantity-controls {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .certificate-badges {
        justify-content: center;
    }

    .variant-options {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .block-27-col-slider,
    .block-27-col-info {
        padding: 15px;
    }

    .product-name {
        font-size: 20px;
    }

    .new-price {
        font-size: 24px;
    }

    .feature-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-value {
        margin-top: 5px;
    }

    .tab-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .tab-content {
        padding: 15px;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block-info,
.add-to-cart-section,
.product-tabs {
    animation: fadeInUp 0.6s ease;
}

/* Success Messages */
.cart-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.cart-success-message.show {
    transform: translateX(0);
}

.cart-success-message .close {
    background: none;
    border: none;
    color: white;
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px;
}