/* Axindo Product Showcase Styles */

.axindo-product-showcase {
    width: 100%;
    margin: 20px 0;
}

.axindo-products-grid {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Grid Columns */
.axindo-products-grid.axindo-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.axindo-products-grid.axindo-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.axindo-products-grid.axindo-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.axindo-products-grid.axindo-col-5 {
    grid-template-columns: repeat(5, 1fr);
}

.axindo-products-grid.axindo-col-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .axindo-products-grid.axindo-col-5,
    .axindo-products-grid.axindo-col-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .axindo-products-grid.axindo-col-4,
    .axindo-products-grid.axindo-col-5,
    .axindo-products-grid.axindo-col-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .axindo-products-grid.axindo-col-3,
    .axindo-products-grid.axindo-col-4,
    .axindo-products-grid.axindo-col-5,
    .axindo-products-grid.axindo-col-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .axindo-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Item */
.axindo-product-item {
    background: #fff;
    border: 1px solid #ffffff;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.axindo-product-item:hover {
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    border: 1px solid #cccccc;
}

.axindo-product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image */
.axindo-product-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.axindo-product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axindo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.axindo-product-item:hover .axindo-product-image img {
    transform: scale(1.05);
}

/* Product Badges */
.axindo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
    color: #fff;
}

.axindo-badge-sale {
    background: #f40911;
}

.axindo-badge-out-of-stock {
    background: #666;
}

/* Product Info */
.axindo-product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.axindo-product-title {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.axindo-product-title a {
    color: #333;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.axindo-product-title a:hover {
    color: #0073aa;
}

/* Prevent underline on all states */
.axindo-product-item .axindo-product-title a,
.axindo-product-item .axindo-product-title a:hover,
.axindo-product-item .axindo-product-title a:focus,
.axindo-product-item .axindo-product-title a:active {
    text-decoration: none !important;
}

/* Product Categories */
.axindo-product-categories {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Price */
.axindo-product-price {
    margin: 0px 0px 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.axindo-product-price del {
    color: #999;
    font-weight: 400;
    font-size: 12px;
    margin-right: 0;
}

.axindo-product-price ins {
    text-decoration: none;
    color: #ff4444;
}

/* Product Rating */
.axindo-product-rating {
    margin: 10px 0;
}

.axindo-product-rating .star-rating {
    font-size: 14px;
}

/* Product Actions */
.axindo-product-actions {
    margin-top: auto;
    padding-top: 5px;
}

.axindo-product-actions a.button,
.axindo-product-actions a.axindo-add-to-cart {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.axindo-product-actions a.button:hover,
.axindo-product-actions a.axindo-add-to-cart:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.axindo-product-actions a.added {
    background: #46b450;
}

.axindo-product-actions a.added:hover {
    background: #3a9940;
}

/* No Products Message */
.axindo-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

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

/* Additional WooCommerce Compatibility */
.axindo-product-item .woocommerce-loop-product__link {
    text-decoration: none;
}

.axindo-product-item .price {
    color: inherit;
}

.axindo-product-item .amount {
    font-weight: inherit;
}
