/* Product Details Page Custom Styles */

/* Main Section */
.product-details-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 50px 0;
    min-height: 100vh;
}

/* Product Images Section */
.product-details__images-slider {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    position: relative;
}

.product-details__images-item {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.product-details__images-item img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-details__images-item:hover img {
    transform: scale(1.05);
}

.product-placeholder-image {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.product-placeholder-image svg {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Thumbnail Slider */
.product-details__thumb-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.product-details__thumb-slider::-webkit-scrollbar {
    height: 6px;
}

.product-details__thumb-slider::-webkit-scrollbar-track {
    background: transparent;
}

.product-details__thumb-slider::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.product-details__thumb-item {
    min-width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.product-details__thumb-item:hover,
.product-details__thumb-item.active {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.product-details__thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-details__thumb-item:hover img {
    transform: scale(1.1);
}

.product-placeholder-thumb {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.product-placeholder-thumb svg {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Product Info Card */
.product-info-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.product-info-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.product-meta-item strong {
    color: #1e293b;
    font-weight: 700;
    min-width: 80px;
}

.product-meta-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-meta-item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Product Description Inline */
.product-description-inline {
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-right: 3px solid #3b82f6;
}

.product-description-inline strong {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
}

.product-description-inline p {
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

/* Product Quantity Section */
.product-quantity-section {
    margin: 24px 0;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quantity-label {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    min-width: 100px;
}

.quantity-label strong {
    color: #1e293b;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.quantity-btn:hover {
    background: #3b82f6;
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 80px;
    height: 44px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    padding: 0;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    background: #f8fafc;
}

.quantity-unit {
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
    margin-right: auto;
}

/* Price Section */
.product-price-section {
    margin: 24px 0;
}

.product-price-single-box {
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid #bfdbfe;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.price-unit-col {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.price-label {
    display: block;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.unit-price-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.price-total-col {
    flex: 1;
    min-width: 200px;
    text-align: right;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    border: 2px solid #3b82f6;
}

.total-label {
    display: block;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-price-total {
    font-size: 32px;
    font-weight: 900;
    color: #3b82f6;
    letter-spacing: -0.5px;
    line-height: 1;
}

.product-price-main {
    font-size: 32px;
    font-weight: 900;
    color: #dc2626;
    letter-spacing: -1px;
    line-height: 1;
}

.product-price-original {
    font-size: 24px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.product-price-normal {
    font-size: 42px;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: -1px;
    line-height: 1;
}

.product-discount {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Stock Badge */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #86efac;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 200px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-actions .btn:hover::before {
    width: 400px;
    height: 400px;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    z-index: 1;
}

.product-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.product-actions .btn-outline-secondary {
    border: 2px solid #cbd5e1;
    color: #475569;
    background: white;
    z-index: 1;
}

.product-actions .btn-outline-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Description Section */
.product-description-section {
    margin-top: 48px;
}

.product-description-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.product-description-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

.product-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    white-space: pre-wrap;
}

/* Related Products Section */
.related-products-section {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 2px solid #e2e8f0;
}

.related-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.related-products-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.related-products-nav {
    display: flex;
    gap: 12px;
}

.related-products-nav button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 20px;
}

.related-products-nav button:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Related Products Slider */
.recommended-slider {
    position: relative;
}

.recommended-slider .slick-list {
    margin: 0 -12px;
}

.recommended-slider .slick-slide {
    padding: 0 12px;
}

.recommended-slider .slick-slide > div {
    height: 100%;
}

.recommended-slider .product-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recommended-slider .product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.recommended-slider .product-card__thumb {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommended-slider .product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.recommended-slider .product-card:hover .product-card__thumb img {
    transform: scale(1.15);
}

.recommended-slider .product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    direction: rtl;
    text-align: right;
}

.recommended-slider .product-card__content .title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 48px;
    direction: rtl;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recommended-slider .product-card__content .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommended-slider .product-card__content .title a:hover {
    color: #3b82f6;
}

.recommended-slider .product-card__price {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.recommended-slider .product-card__price .fw-bold {
    font-size: 22px;
    font-weight: 800;
}

.recommended-slider .product-card .btn {
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.recommended-slider .product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Empty Related Products */
.no-related-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.no-related-products-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-info-card {
        position: static;
        margin-top: 32px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-price-main,
    .product-price-normal {
        font-size: 36px;
    }
    
    .product-actions .btn {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-details-section {
        padding: 32px 0;
    }
    
    .product-details__images-item {
        min-height: 350px;
        padding: 20px;
    }
    
    .product-info-card {
        padding: 24px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-price-main,
    .product-price-normal {
        font-size: 28px;
    }
    
    .price-row {
        flex-direction: column;
    }
    
    .price-total-col {
        border-top: 2px solid #3b82f6;
        margin-top: 16px;
    }
    
    .product-price-total {
        font-size: 28px;
    }
    
    .product-placeholder-image {
        height: 350px;
    }
    
    .product-description-inline {
        padding: 16px;
        margin: 16px 0;
    }
    
    .product-quantity-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        margin: 16px 0;
    }
    
    .quantity-label {
        min-width: auto;
        width: 100%;
    }
    
    .quantity-unit {
        margin-right: 0;
        margin-top: 8px;
    }
    
    .related-products-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .product-details__images-item {
        min-height: 300px;
    }
    
    .product-details__thumb-item {
        min-width: 80px;
        height: 80px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price-main,
    .product-price-normal {
        font-size: 28px;
    }
    
    .recommended-slider {
        grid-template-columns: 1fr;
    }
}

