/* ========================================
   MODERN PRODUCT DETAIL PAGE STYLES
   Amazon-inspired Professional Design
   ======================================== */

/* Breadcrumb Section */
.breadcrumb-section {
    background: #fafafa;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-modern .breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-modern .breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #111827;
    background: #f3f4f6;
}

.breadcrumb-modern .breadcrumb-item a i {
    font-size: 1rem;
}

.breadcrumb-modern .breadcrumb-item.active span {
    color: #111827;
    font-weight: 500;
    font-size: 0.875rem;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9ca3af;
    font-size: 1.25rem;
    margin: 0 0.25rem;
}

/* Product Detail Section */
.product-detail-section {
    padding: 2.5rem 0 4rem;
    background: #fff;
}

/* Product Gallery */
.product-gallery-container {
    position: sticky;
    top: 20px;
}

.main-gallery {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.productMainSwiper {
    height: 550px;
}

.productMainSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.gallery-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.gallery-link img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-link:hover img {
    transform: scale(1.05);
}

.zoom-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-link:hover .zoom-overlay {
    opacity: 1;
}

.zoom-overlay i {
    font-size: 1.25rem;
}

/* Single Image */
.single-image-container {
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

/* Thumbnail Gallery */
.productThumbSwiper {
    margin-top: 12px;
}

.productThumbSwiper .swiper-slide {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.productThumbSwiper .swiper-slide-thumb-active {
    opacity: 1;
}

.thumb-item {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: border-color 0.3s ease;
}

.productThumbSwiper .swiper-slide-thumb-active .thumb-item {
    border-color: #111827;
}

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

/* Swiper Navigation */
.productMainSwiper .swiper-button-next,
.productMainSwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #111827;
    transition: all 0.3s ease;
}

.productMainSwiper .swiper-button-next:hover,
.productMainSwiper .swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.1);
}

.productMainSwiper .swiper-button-next::after,
.productMainSwiper .swiper-button-prev::after {
    display: none;
}

.productMainSwiper .swiper-button-next i,
.productMainSwiper .swiper-button-prev i {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.trust-badge i {
    font-size: 2rem;
    color: #10b981;
}

.trust-badge span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Product Info Container */
.product-info-container {
    padding-left: 1.5rem;
}

/* Brand Section */
.product-brand-section {
    margin-bottom: 1rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.brand-link:hover {
    background: #e5e7eb;
    color: #111827;
}

.brand-link i {
    font-size: 1.1rem;
}

/* Product Title */
.product-title-main {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Meta Info */
.product-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.product-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.product-meta-info .meta-item i {
    font-size: 1.1rem;
    color: #9ca3af;
}

/* Price and Stock Section */
.price-stock-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.price-container {
    flex: 1;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6b7280;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #6b7280;
    width: fit-content;
}

.shipping-info.free {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.shipping-info.free i {
    color: #10b981;
}

.shipping-info i {
    font-size: 1.1rem;
}

/* Stock Container */
.stock-container {
    display: flex;
    align-items: center;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
}

.stock-status.available {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.stock-status.unavailable {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.stock-status i {
    font-size: 2rem;
}

.stock-status.available i {
    color: #10b981;
}

.stock-status.unavailable i {
    color: #ef4444;
}

.stock-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.stock-status.available .status-label {
    color: #065f46;
}

.stock-status.unavailable .status-label {
    color: #991b1b;
}

.stock-quantity {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* Action Buttons */
.action-buttons {
    margin-bottom: 2rem;
}

.btn-whatsapp-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.btn-whatsapp-main > i:first-child {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.btn-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.btn-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-whatsapp-main:hover .btn-arrow {
    transform: translateX(4px);
}

/* Short Description */
.product-short-desc {
    padding: 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.section-title-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.section-title-small i {
    font-size: 1.25rem;
    color: #6b7280;
}

.short-desc-content {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Quick Features */
.quick-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    font-size: 1.5rem;
    color: #6b7280;
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.feature-value {
    font-size: 0.9rem;
    color: #111827;
    font-weight: 600;
}

/* Product Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.share-btn.whatsapp:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.share-btn.copy:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

/* Product Details Tabs */
.product-details-tabs {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.nav-tabs-modern {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding: 0;
    margin-bottom: 2rem;
}

.nav-tabs-modern .nav-item {
    margin: 0;
}

.nav-tabs-modern .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-tabs-modern .nav-link:hover {
    color: #111827;
    background: #f9fafb;
}

.nav-tabs-modern .nav-link.active {
    color: #111827;
    border-bottom-color: #111827;
    background: transparent;
}

.nav-tabs-modern .nav-link i {
    font-size: 1.25rem;
}

.tab-content-inner {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    line-height: 1.7;
    color: #374151;
}

.tab-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.tab-content-inner p {
    margin-bottom: 1rem;
}

.tab-content-inner ul,
.tab-content-inner ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.tab-content-inner li {
    margin-bottom: 0.5rem;
}

/* Specifications Table */
.specifications-table {
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    flex: 0 0 200px;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
}

.spec-value {
    flex: 1;
    color: #111827;
    font-size: 0.9rem;
}

/* Related Products Section */
.related-products-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-title-modern i {
    font-size: 2.25rem;
    color: #f59e0b;
}

.section-subtitle-modern {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Related Products Swiper */
.relatedProductsSwiper {
    padding-bottom: 3rem;
}

.related-product-card-modern {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.related-product-card-modern:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.related-image {
    position: relative;
    height: 240px;
    background: #fafafa;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-brand-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.related-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.375rem 0.75rem;
    background: #10b981;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-content {
    padding: 1.25rem;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    line-height: 1.3;
}

.related-price {
    margin-bottom: 0.75rem;
}

.related-price .amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.related-price .currency {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    margin-left: 0.25rem;
}

.related-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.related-product-card-modern:hover .related-action {
    color: #111827;
}

.related-action i {
    transition: transform 0.3s ease;
}

.related-product-card-modern:hover .related-action i {
    transform: translateX(4px);
}

.relatedProductsSwiper .swiper-button-next,
.relatedProductsSwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #111827;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.relatedProductsSwiper .swiper-button-next:hover,
.relatedProductsSwiper .swiper-button-prev:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.relatedProductsSwiper .swiper-button-next::after,
.relatedProductsSwiper .swiper-button-prev::after {
    display: none;
}

.relatedProductsSwiper .swiper-button-next i,
.relatedProductsSwiper .swiper-button-prev i {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-gallery-container {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .product-info-container {
        padding-left: 0;
    }

    .productMainSwiper {
        height: 450px;
    }

    .product-title-main {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .price-stock-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .quick-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .breadcrumb-section {
        padding: 0.75rem 0;
    }

    .breadcrumb-modern .breadcrumb-item a {
        font-size: 0.8rem;
        padding: 0.25rem;
    }

    .product-detail-section {
        padding: 1.5rem 0 3rem;
    }

    .productMainSwiper {
        height: 350px;
    }

    .single-image-container {
        height: 350px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trust-badge {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .trust-badge i {
        font-size: 1.5rem;
    }

    .product-title-main {
        font-size: 1.25rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .btn-whatsapp-main {
        padding: 1rem;
    }

    .btn-whatsapp-main > i:first-child {
        font-size: 2rem;
    }

    .btn-title {
        font-size: 1rem;
    }

    .btn-subtitle {
        font-size: 0.8rem;
    }

    .nav-tabs-modern {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs-modern .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .tab-content-inner {
        padding: 1.25rem;
    }

    .spec-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .spec-label {
        flex: none;
    }

    .section-title-modern {
        font-size: 1.5rem;
    }

    .section-subtitle-modern {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-gallery-container {
    animation: fadeInLeft 0.6s ease-out;
}

.product-info-container {
    animation: fadeInRight 0.6s ease-out;
}

.product-details-tabs {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.related-products-section {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}


/* USD to TRY Conversion Styles */
.price-original-detail {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 8px;
    font-weight: 400;
}

.price-original-small {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}
