/* Pavami WooCommerce Custom Styles - Nebula Theme */

/* Reset and Base Styles */
.woocommerce *,
.woocommerce-page * {
    box-sizing: border-box;
}

/* Shop Page Container */
.woocommerce-page,
.woocommerce {
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
    color: #ffffff;
}

/* Main Shop Heading */
.woocommerce-products-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 3rem 0 2rem;
    text-shadow: 0 0 20px rgba(58, 123, 213, 0.5);
}

/* Product Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 2rem auto;
    padding: 0;
    max-width: 1200px;
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* Product Card */
.woocommerce ul.products li.product {
    background: rgba(45, 45, 68, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

/* Product Image */
.woocommerce ul.products li.product img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none;
    display: block;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

/* Price Container */
.woocommerce ul.products li.product .price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-size: 1.25rem;
}

/* Regular Price (Strikethrough) */
.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 1rem;
    text-decoration: line-through;
    order: 1;
}

.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    color: #999;
}

/* Sale Price */
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    order: 2;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount {
    color: #ffffff;
    font-weight: 700;
}

/* Currency Symbol */
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Add to Cart Button with Orange Gradient and Slanted Edge */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa366 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.woocommerce ul.products li.product .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.woocommerce ul.products li.product .button:hover::before {
    left: 100%;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    position: absolute;
    top: 1rem;
    right: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Product Categories/Tags */
.woocommerce ul.products li.product .product-categories {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin: 3rem 0;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    list-style: none;
    display: inline-flex;
    gap: 0.5rem;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: rgba(45, 45, 68, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-color: #ff6b35;
}

/* Single Product Page */
.woocommerce div.product {
    background: rgba(45, 45, 68, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.woocommerce div.product .product_title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .price {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 1.5rem 0;
}

/* Cart and Checkout Buttons */
.woocommerce .single_add_to_cart_button {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* Quantity Input */
.woocommerce div.product form.cart div.quantity {
    margin-right: 1rem;
}

.woocommerce div.product form.cart div.quantity input.qty {
    background: rgba(45, 45, 68, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    width: 80px;
    text-align: center;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    display: block;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #ffffff;
    border-bottom-color: #ff6b35;
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
}

/* Messages and Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: rgba(45, 45, 68, 0.8);
    color: #ffffff;
    border-left: 4px solid #ff6b35;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/* Star Ratings */
.woocommerce .star-rating {
    color: #ff6b35;
}

.woocommerce .star-rating::before {
    color: rgba(255, 255, 255, 0.2);
}

/* Select dropdowns */
.woocommerce select,
.woocommerce-page select {
    background: rgba(45, 45, 68, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
}

/* Cart Table */
.woocommerce table.shop_table {
    background: rgba(45, 45, 68, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
}

.woocommerce table.shop_table th {
    background: rgba(255, 107, 53, 0.1);
    color: #ffffff;
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.woocommerce table.shop_table td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: #ffffff;
}

/* Loading State */
.woocommerce .blockUI.blockOverlay {
    background: rgba(26, 11, 46, 0.8) !important;
}

/* Empty Cart Message */
.woocommerce .cart-empty {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem;
    font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 1.5rem;
    }

    .woocommerce div.product .product_title {
        font-size: 1.75rem;
    }

    .woocommerce-products-header h1 {
        font-size: 1.75rem;
        margin: 2rem 0 1.5rem;
    }
}