/* ========================================
   Professional Product View Styling
   Theme: Priceless
   ======================================== */

/* ========================================
   1. Main Container & Layout
   ======================================== */

.professional-product-view {
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.professional-product-view * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.product-view-main {
    margin-bottom: 40px;
}

.product-gallery-column {
    padding: 0 15px;
}

.product-info-column {
    padding: 0 15px;
}

.product-gallery-sticky {
    position: relative;
}

@media (min-width: 992px) {
    .product-gallery-sticky {
        position: sticky;
        top: 100px;
    }
}

.product-info-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .product-info-wrapper {
        margin-top: 20px;
    }
}

/* ========================================
   2. Product Badges
   ======================================== */

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badges .badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.badge-sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

/* ========================================
   3. Modern Product Gallery
   ======================================== */

.modern-product-gallery {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-image-container {
    position: relative;
    background: #fff;
    padding: 20px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-zoom-wrapper:hover .zoom-hint {
    opacity: 1;
}

/* Carousel Controls */
.modern-carousel-control {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container:hover .modern-carousel-control {
    opacity: 1;
}

.modern-carousel-control:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

/* Thumbnail Navigation */
.thumbnail-navigation {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.thumbnail-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex: 0 0 100px;
    height: 100px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-item:hover {
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.thumbnail-nav-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
}

.thumbnail-nav-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.thumbnail-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========================================
   4. Product Title & Meta
   ======================================== */

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 767px) {
    .product-title {
        font-size: 24px;
    }
}

/* Price & Stock Row */
.product-price-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.product-price-inline {
    flex: 1;
}

.product-price-inline .modern-price-display {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.product-price-inline .price-current,
.product-price-inline .price-current-single {
    font-size: 32px;
    font-weight: 700;
    color: #dc3545;
}

.product-availability-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .product-price-stock-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.product-description {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.product-sku-section {
    margin-bottom: 20px;
}

.product-sku {
    font-size: 14px;
    color: #6c757d;
}

/* ========================================
   5. Modern Price Display
   ======================================== */

.modern-price-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.price-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.price-with-discount {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 20px;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: #dc3545;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.price-current-single {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.price-savings {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.price-details-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

.price-per-unit,
.min-expiry-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vat-info {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.unavailable-notice,
.login-for-price-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.unavailable-notice i,
.login-for-price-notice i {
    font-size: 24px;
    color: #856404;
    margin-bottom: 10px;
}

.login-for-price-notice span {
    display: block;
    margin-bottom: 15px;
    color: #856404;
    font-weight: 600;
}

/* ========================================
   6. Package Information
   ======================================== */

.product-package-info {
    margin: 25px -20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.package-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.package-item:last-child {
    border-bottom: none;
}

.package-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.package-label i {
    color: #007bff;
    font-size: 16px;
}

.package-value {
    font-weight: 600;
    color: #212529;
    font-size: 15px;
}

/* ========================================
   7. Modern Add to Cart Section
   ======================================== */

.modern-add-to-cart-section {
    margin: 25px 0;
    padding: 25px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
}

.quantity-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.qty-and-button-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 576px) {
    .qty-and-button-row {
        flex-direction: column;
    }
}

.quantity-input-group {
    display: flex;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    width: 140px;
    flex-shrink: 0;
}

.qty-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 52px;
    background: #f8f9fa;
    border: none;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.qty-btn:active {
    background: #dee2e6;
}

.qty-input-modern {
    width: 60px;
    flex: 0 0 60px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    padding: 0 5px;
    height: 52px;
    -moz-appearance: textfield;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.qty-input-modern::-webkit-inner-spin-button,
.qty-input-modern::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-modern:focus {
    outline: none;
}

.unit-selector {
    position: relative;
}

.unit-select-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.unit-select-modern:hover {
    border-color: #007bff;
}

.unit-select-modern:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Action Buttons */
.btn-add-to-cart-modern {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-add-to-cart-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-add-to-cart-modern:active {
    transform: translateY(0);
}

.btn-add-inline {
    flex: 1;
}

/* Button Group with Dropdown */
.btn-group-modern {
    display: flex;
    width: 100%;
}

.btn-group-modern .btn-add-to-cart-modern {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.btn-dropdown-toggle-modern {
    flex: 0 0 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-dropdown-toggle-modern:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.dropdown-menu-modern {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    padding: 8px 0;
    min-width: 280px;
}

.dropdown-header-modern {
    padding: 10px 16px;
    color: #6c757d;
    font-size: 13px;
}

.dropdown-item-modern {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.dropdown-item-modern:hover {
    background: #f8f9fa;
}

.dropdown-item-modern i {
    color: #007bff;
    font-size: 16px;
}

.quote-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quote-name {
    font-weight: 600;
    color: #212529;
}

.quote-code {
    color: #6c757d;
    font-size: 12px;
}

/* Customer Note Alert */
.customer-note-alert {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #0c5460;
}

.customer-note-alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Login Required Notice */
.login-required-notice {
    text-align: center;
    padding: 20px;
}

.login-required-notice p {
    margin-bottom: 15px;
    color: #6c757d;
}

.btn-login-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login-modern:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ========================================
   8. Promo Info Banner
   ======================================== */

.promo-info-banner {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-info-banner i {
    font-size: 20px;
    color: #856404;
}

.promo-info-banner span {
    color: #856404;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   9. Trust Badges
   ======================================== */

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .trust-badges {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px;
}

.trust-item i {
    font-size: 28px;
    color: #007bff;
}

.trust-item span {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

/* ========================================
   10. Product Details Tabs
   ======================================== */

.product-details-section {
    margin-top: 50px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-tabs {
    border-bottom: 2px solid #e9ecef;
    padding: 0 20px;
    background: #f8f9fa;
}

.product-tabs .nav-item {
    margin-bottom: -2px;
}

.product-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 18px 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.product-tabs .nav-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
    background: transparent;
}

.product-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #fff;
}

.product-tab-content {
    padding: 30px;
}

@media (max-width: 767px) {
    .product-tab-content {
        padding: 20px;
    }
}

/* ========================================
   11. Wishlist Button Enhancement
   ======================================== */

.add_to_wishlist {
    margin: 15px 0;
}

.add_to_wishlist .btn-ghost {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    text-decoration: none;
}

.add_to_wishlist .btn-ghost:hover {
    color: #dc3545;
    text-decoration: underline;
}

/* ========================================
   12. Responsive Adjustments
   ======================================== */

@media (max-width: 991px) {
    .product-title {
        font-size: 22px;
    }

    .price-current,
    .price-current-single {
        font-size: 28px;
    }

    .modern-add-to-cart-section {
        padding: 20px;
    }

    .product-info-wrapper {
        padding: 15px;
    }

    .product-package-info {
        margin: 25px -15px;
    }
}

@media (max-width: 767px) {
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .price-main-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   13. Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.professional-product-view > * {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   14. Print Styles
   ======================================== */

@media print {
    .thumbnail-navigation,
    .modern-carousel-control,
    .modern-add-to-cart-section,
    .trust-badges,
    .product-tabs {
        display: none;
    }

    .product-view-main {
        page-break-inside: avoid;
    }
}
