/**
 * Add any custom CSS here.
 *
 * This file will be loaded after all other theme stylesheets.
 */
 
 
 /* Categories Start */
/* Single outer box for all product categories on shop page */
.shop-page-categories {
    border: 2px solid #8A2BE2; /* Purple border around the entire container */
    border-radius: 8px;
    padding: 4px;
    margin: 1px 0;
    background: #000000;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.1);
}

.product-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-category-item {
    /* Remove individual borders */
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    background: transparent;
}

.category-link {
    display: block;
    padding: 5px 9px;
    text-decoration: none;
    color: #A020F0;
    font-weight: 1000;
    transition: all 0.3s ease;
    background: #000000;
    border-radius: 5px;
    border: 1px solid #000000;
}

.category-link:hover {
    color: #6a0dad;
    background: #f0e6ff;
    border-color: #8A2BE2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 43, 226, 0.15);
}

/* Category count styling */
.category-count {
    font-size: 12px;
    color: #6c757d;
    margin-left: 5px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shop-page-categories {
        padding: 5px;
        margin: 10px 0;
    }
    
    .product-categories-list {
        gap: 5px;
    }
    
    .category-link {
        padding: 4px 7px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-categories-list {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-link {
        text-align: center;
    }
}
/* Categories End */

/* CSS Transfer Test */


/* Remove the entire page header container on the Shop page */
.woocommerce-shop .woocommerce-products-header,
.woocommerce-shop .page-header,
.woocommerce-shop .entry-header {
    display: none !important;
}

/* New Adjustments */
/* Main Product Card Styles */

/* ===== PRODUCT CARD LAYOUT & SIZING ===== */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    /* Force specific width */
    width: 200px !important; 
    min-width: 177px !important;
    max-width: 177px !important;
    flex-shrink: 0 !important;
    
    /* Layout */
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* Box Design */
    border: 2px solid #D8BFD8;
    border-radius: 8px; /* Removed rounded corners */
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    
    /* Spacing - REMOVED */
    margin: 0 !important;
}

/* ===== PRODUCT GRID CONTAINER ===== */
.woocommerce ul.products {
    display: flex !important;
    justify-content: left !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    margin: 0 !important;
}

/* ===== HOVER EFFECTS ===== */
.woocommerce ul.products li.product:hover, 
.woocommerce-page ul.products li.product:hover {
    border-color: #DDA0DD;
    box-shadow: 0 5px 15px rgba(147, 112, 219, 0.15);
}

/* ===== CONTENT SECTIONS ===== */
/* Image container */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    height: 300px;
    display: block;
}

/* Product image */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    max-width: 250px;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    height: 100px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
	color: #B19CD9 !important;  /* purple */
   
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
    margin-top: auto;
}

/* Add margin below the price */
.woocommerce ul.products li.product .price {
    margin-bottom: 15px !important;
    display: block;
}



.woocommerce ul.products li.product .button {
    margin-top: 10px !important;
}



body.woocommerce img[src*="-300x300"] {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
}



/* Responsive adjustments */
@media (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}


/* =======================
   PAGINATION STYLING
   ======================= */
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #8A2BE2; /* purple border */
    color: #8A2BE2; /* purple text */
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect */
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #f0e6ff;
    border-color: #8A2BE2;
    color: #6a0dad;
}

/* Active page */
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #000000 !important;  /* force black background */
    color: #8A2BE2 !important;             /* force purple text */
    border: 1px solid #000000 !important;
    font-weight: bold !important;
    border-radius: 4px; /* remove if you want sharp edges */
}




/* Shop & category product images – show full, not cropped */
body.post-type-archive-product img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail,
body.tax-product_cat img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    width: 100% !important;    /* take full width of container */
    height: 50% !important;   /* keep aspect ratio */
    object-fit: contain !important; /* no cropping */
}


/* Single product page */
body.single-product img.wp-post-image {
    width: auto !important;   /* example: bigger image */
    height: auto !important;
    object-fit: contain !important;
}
