/* -----------------------------------------
   MAIN WRAPPER
----------------------------------------- */
.ajwilds-product-carousel-widget {
    width: 100%;
    position: relative;
}

/* -----------------------------------------
   3‑COLUMN LAYOUT
----------------------------------------- */
.ajwilds-carousel-frame {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: visible !important; /* ensures arrows never get clipped */
    z-index: 1;
}

/* -----------------------------------------
   ARROWS
----------------------------------------- */
.ajw-carousel-button-prev,
.ajw-carousel-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10; /* ⭐ ensures arrows sit above carousel */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
}

.ajw-carousel-button-prev:hover,
.ajw-carousel-button-next:hover {
    background: #f0f0f0;
}

.ajwilds-arrow-icon {
    font-size: 20px;
    line-height: 1;
}

/* -----------------------------------------
   SWIPER CONTAINER
----------------------------------------- */
.ajwilds-product-carousel {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* -----------------------------------------
   PRODUCT CARD
----------------------------------------- */
.ajwilds-product-slide {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* -----------------------------------------
   PRODUCT IMAGE
----------------------------------------- */
.ajwilds-product-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* -----------------------------------------
   PRODUCT TITLE
----------------------------------------- */
.ajwilds-product-title {
    font-size: 1rem;
    margin: 10px 0 5px;
}

/* -----------------------------------------
   PRODUCT PRICE
----------------------------------------- */
.ajwilds-product-price {
    font-weight: bold;
    margin-bottom: 10px;
}

/* -----------------------------------------
   BUY NOW BUTTON
----------------------------------------- */
.ajwilds-add-to-cart-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #0073e6;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ajwilds-add-to-cart-btn:hover {
    background: #005bb5;
}

/* Bottom layout wrapper */
.ajwilds-bottom-button {
    margin-top: auto;
}

/* -----------------------------------------
   PAGINATION
----------------------------------------- */
.swiper-pagination {
    margin-top: 15px;
    position: relative;
}