/* Product Detail Page Styles */
/* Remove margin from product detail page container */
.product-detail-page .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.product-detail-page {
    background: #f9f7fb;
    padding: 40px 0 60px;
    min-height: calc(100vh - var(--wd-header-h, 160px));
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #6a6a6a;
}

.breadcrumb a {
    color: #f26a30;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #c40545;
}

.breadcrumb span {
    color: #a0a0a0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 40px #150b3414;
    margin-bottom: 50px;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image-wrapper {
    position: relative;
    width: 100%;
}

.product-main-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f7f2fe;
    border-radius: 18px;
    overflow: hidden;
}

.product-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.product-gallery-prev,
.product-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #f26a30;
    font-size: 16px;
}

.product-gallery-prev {
    right: 12px;
}

.product-gallery-next {
    left: 12px;
}

.product-gallery-prev:hover,
.product-gallery-next:hover {
    background: #f26a30;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(242, 106, 48, 0.3);
}

.product-gallery-prev:disabled,
.product-gallery-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 106, 48, 0.3) transparent;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(242, 106, 48, 0.3);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 106, 48, 0.5);
}

.thumbnail-btn {
    flex: 0 0 80px;
    min-width: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f7f2fe;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    aspect-ratio: 1;
}

.thumbnail-btn:hover {
    border-color: rgba(242, 106, 48, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-btn.active {
    border-color: #f26a30;
    box-shadow: 0 0 0 2px rgba(242, 106, 48, 0.2);
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-brand {
    font-size: 13px;
}

.product-brand a {
    color: #f26a30;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.product-brand a:hover {
    color: #c40545;
}

.product-title {
    color: #1e1e1e;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6a6a6a;
}

.product-category a {
    color: #f26a30;
    text-decoration: none;
    transition: color 0.2s;
}

.product-category a:hover {
    color: #c40545;
}

/* Price Section */
.product-price-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #faf5ff;
    border-radius: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.price-original del {
    color: #a0a0a0;
    font-size: 18px;
    text-decoration: line-through;
}

.price-final {
    color: #f26a30;
    font-size: 28px;
    font-weight: 700;
}

.price-final ins {
    text-decoration: none;
}

.product-discount {
    display: inline-block;
}

.discount-badge {
    background: #f26a30;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Description */
/* Product Features */
.product-features {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(242, 106, 48, 0.05) 0%, rgba(255, 71, 87, 0.05) 100%);
    border-radius: 16px;
    border-right: 4px solid #f26a30;
}

.product-features h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #f26a30 0%, #ff4757 100%);
    border-radius: 2px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(242, 106, 48, 0.1);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(242, 106, 48, 0.15);
    border-color: rgba(242, 106, 48, 0.3);
}

.feature-item i {
    font-size: 18px;
    color: #f26a30;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

/* Product Card Features (for product listings) */
.product-card-features {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.product-card-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(242, 106, 48, 0.1) 0%, rgba(255, 71, 87, 0.1) 100%);
    color: #f26a30;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(242, 106, 48, 0.2);
}

.product-card-feature:hover {
    background: linear-gradient(135deg, #f26a30 0%, #ff4757 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(242, 106, 48, 0.3);
}

.product-card-feature i {
    font-size: 12px;
}

.product-card-feature-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(242, 106, 48, 0.15);
    color: #f26a30;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(242, 106, 48, 0.25);
    transition: all 0.3s ease;
}

.product-card-feature-more:hover {
    background: rgba(242, 106, 48, 0.25);
    transform: translateY(-2px);
}

/* Responsive Features */
@media (max-width: 768px) {
    .product-features {
        padding: 20px;
        margin: 20px 0;
    }
    
    .product-features h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item {
        padding: 10px 14px;
    }
    
    .feature-item i {
        font-size: 16px;
    }
    
    .feature-item span {
        font-size: 14px;
    }
    
    .product-card-features {
        gap: 5px;
        margin: 6px 0;
    }
    
    .product-card-feature,
    .product-card-feature-more {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .product-card-feature i {
        font-size: 10px;
    }
}

.product-description {
    padding: 20px 0;
    border-top: 1px solid #f26a3014;
    border-bottom: 1px solid #f26a3014;
}

.product-description h3 {
    color: #1e1e1e;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.description-content {
    color: #434343;
    font-size: 14px;
    line-height: 1.8;
}

/* Stock Info */
.product-stock-info {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.stock-status.in-stock {
    color: #0f2f36;
}

.stock-status.in-stock i {
    color: #0f2f36;
}

.stock-status.out-of-stock {
    color: #f26a30;
}

.stock-status.out-of-stock i {
    color: #f26a30;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quantity-control-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-control-wrapper label {
    color: #434343;
    font-size: 14px;
    font-weight: 500;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #f26a3033;
    border-radius: 40px;
    overflow: hidden;
}

.quantity-btn {
    color: #f26a30;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    background: #f26a3014;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    text-align: center;
    border: none;
    width: 60px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.quantity-input:focus {
    outline: none;
}

.add-to-cart-detail {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-detail:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.featured {
    background: #f26a3014;
    color: #f26a30;
}

.product-badge.best-seller {
    background: #0f2f3614;
    color: #0f2f36;
}

/* Related Products */
.related-products-section {
    margin-top: 50px;
}

.section-title {
    color: #1e1e1e;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-main-image {
        padding-top: 75%;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0 40px;
    }

    .product-detail-layout {
        padding: 20px;
    }

    .product-title {
        font-size: 22px;
    }

    .price-final {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-control-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .add-to-cart-detail {
        width: 100%;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }

    .price-final {
        font-size: 20px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

