/**
 * WooCommerce Single Product Styles
 * Custom styles for single product page
 */

/* Overall Page Background */
body.single-product {
    background-color: #f3f4f6;
}

/* Breadcrumb Styling */
.woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: #6B7280;
    padding: 0.5rem 0;
}

.woocommerce-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #10B981;
}

/* Product Image Zoom */
.product-images img {
    transition: transform 0.3s ease;
}

.product-images:hover img {
    transform: scale(1.05);
}

/* Price Styling */
.woocommerce-Price-amount {
    font-weight: 700;
}

del .woocommerce-Price-amount {
    color: #9CA3AF;
    font-weight: 400;
}

ins .woocommerce-Price-amount {
    text-decoration: none;
    color: #DC2626;
}

/* Rating Stars */
.star-rating {
    color: #FBBF24;
}

.star-rating::before {
    color: #E5E7EB;
}

/* Quantity Input */
.quantity input[type="number"] {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.quantity input[type="number"]:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Add to Cart Success Message */
.woocommerce-message {
    background-color: #D1FAE5;
    border-left: 4px solid #10B981;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    color: #065F46;
}

.woocommerce-message a.button {
    background-color: #10B981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem;
    transition: background-color 0.3s ease;
}

.woocommerce-message a.button:hover {
    background-color: #059669;
}

/* Error Message */
.woocommerce-error {
    background-color: #FEE2E2;
    border-left: 4px solid #DC2626;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    color: #991B1B;
}

/* Feature List Styling */
.product-features ul li {
    position: relative;
    padding-left: 1.5rem;
}

.product-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* Related Products Card Hover */
.related-product-card {
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Article Icons */
.article-icon {
    transition: transform 0.3s ease;
}

.article-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .woocommerce-product-gallery {
        margin-bottom: 2rem;
    }
    
    .product-info {
        padding: 0rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Animation for Add to Cart Button */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cart button[type="submit"]:active {
    animation: pulse 0.3s ease;
}
button:hover:not(:disabled) {
    background-color:transparent;
    transform: translateY(-1px);
    box-shadow: none;
}
button:active:not(:disabled) {
    transform: translateY(0);
}
/* Stock Status Badge */
.stock {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock.in-stock {
    background-color: #D1FAE5;
    color: #065F46;
}

.stock.out-of-stock {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Product Meta */
.product_meta {
    font-size: 0.875rem;
    color: #6B7280;
    border-top: 1px solid #E5E7EB;
    padding-top: 1rem;
    margin-top: 1rem;
}

.product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

.product_meta a {
    color: #3B82F6;
    text-decoration: none;
}

.product_meta a:hover {
    text-decoration: underline;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #10B981;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hero Image Overlay Effect */
.hero-image-container {
    position: relative;
    overflow: hidden;
}

.hero-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-image-container:hover::before {
    opacity: 1;
}

/* Buy Now Button Glow Effect */
.btn-buy-now {
    position: relative;
    overflow: hidden;
}

.btn-buy-now::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;
}

.btn-buy-now:hover::before {
    width: 300px;
    height: 300px;
}


/* Sidebar Sticky on Desktop */
@media (min-width: 1024px) {
    .sidebar-sticky {
        position: sticky;
        top: 2rem;
    }
}

/* Product Gallery Swiper - Active Thumbnail State */
.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1 !important;
    border-color: #35AE9C !important;
    box-shadow: 0 0 0 2px #35AE9C;
}
