/* Product Page Styles */
.product-page {
    padding: 20px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 120px);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 12px;
    color: #ccc;
}

/* Product Content */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-badge.low-stock {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Product Info */
.product-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.product-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ddd;
    font-size: 16px;
}

.stars i.filled {
    color: #ffc107;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.product-price {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Product Features */
.product-features {
    margin-bottom: 30px;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #666;
}

.product-features i {
    color: #28a745;
    font-size: 14px;
}

/* Add to Cart Section */
.add-to-cart-section {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-controls input {
    border: none;
    padding: 10px 15px;
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quantity-controls input:focus {
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-large {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), #2c5aa0);
    color: white;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #2c5aa0, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wishlist-btn {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.wishlist-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.out-of-stock-notice {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notify-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.notify-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Product Meta */
.product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: #666;
    width: 80px;
    flex-shrink: 0;
}

.meta-value {
    color: #333;
}

.meta-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

.stock-high {
    color: #28a745;
    font-weight: 600;
}

.stock-low {
    color: #ffc107;
    font-weight: 600;
}

.stock-out {
    color: #dc3545;
    font-weight: 600;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 12px;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Related Products */
.related-products {
    margin-top: 50px;
}

.related-products h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .card-actions {
    opacity: 1;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-title {
    margin-bottom: 10px;
}

.card-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-small {
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 10px 0;
    }
    
    .breadcrumbs {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .main-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .quantity-controls {
        width: 100%;
    }
    
    .quantity-controls input {
        flex: 1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
