#saunik-stock {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.saunik-card {
    width: 33%;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 10px;
}

.saunik-card-image {
    height: 300px;
    text-align: center;
    overflow: hidden;
    /* This is the key line */
    display: flex;
    /* Optional: helps center the image perfectly */
    align-items: center;
    justify-content: center;
}

.saunik-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* 'contain' is usually better than 'fill' to avoid stretching */
    transition: transform 0.5s ease;
}

.saunik-card-image img:hover {
    transform: scale(1.1);
}

.saunik-card-price-wrapper {
    position: absolute;
    left: 25%;
    color: var(--ast-global-color-1);
    font-weight: 500;
    font-size: 22px;
    z-index: 5;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;
}

.saunik-card-price-wrapper .discount {
    text-decoration: line-through;
    color: var(--ast-global-color-3);
    font-weight: 500;
    font-size: 14px;
    line-height: 1rem;
}

.saunik-card-price-wrapper .discount-price {
    color: var(--ast-global-color-1);
    font-weight: 500;
    font-size: 18px;
}

.saunik-card-header {
    display: block;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.saunik-card-body {
    display: block;
    padding-top: 5px;
    padding-bottom: 5px;
}

.saunik-card-description {
    font-size: 14px;
    line-height: normal;
}

.saunik-card-footer .pick-stock-barrel {
    display: block;
    width: 100%;
}







/* Ensure the wrapper doesn't overflow and uses full available space */
.saunik-stock-container {
    width: 100%;
    max-width: 1200px;
    /* Or whatever your site width is */
    margin: 0 auto;
    box-sizing: border-box;
}

.saunik-stock-product {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* Prevents jumping to next line unless on mobile */
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.saunik-stock-product-name-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 1rem;
}

.saunik-stock-product-name {
    font-weight: 500;
    font-size: 20px;
}

.saunik-stock-product-price-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    line-height: 1rem;
    margin-left: 1rem;
}

.saunik-stock-product-price-wrapper .discount {
    text-decoration: line-through;
    color: var(--ast-global-color-3);
    font-weight: 500;
    font-size: 14px;
}

.saunik-stock-product-price-wrapper .discount-price {
    color: var(--ast-global-color-1);
    font-weight: 500;
    font-size: 18px;
}




/* Gallery - Set to 60% */
.saunik-stock-gallery {
    flex: 0 0 60%;
    min-width: 0;
    /* Important for Swiper to calculate width correctly */
}

/* Swiper needs a height and width to be visible */
.saunik-stock-swiper {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    /* Temporary: to see it if images fail */
}

.saunik-stock-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Panel - Set to 40% (minus gap) */
.saunik-stock-info {
    flex: 1;
    /* Takes the remaining 40% */
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
}

.saunik-stock-product-support {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saunik-stock-product-support-header {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.saunik-stock-product-support-item {
    display: flex;
    align-items: center;
    /* Vertical centering */
    justify-content: space-between;
    /* Pushes checkbox to the right */
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    transition: background 0.2s ease;
}

.saunik-stock-product-support-item:hover {
    background: #f0f0f0;
}

/* Image Column */
.saunik-stock-product-support-item-image {
    flex: 0 0 60px;
    /* Fixed width for image */
    height: 60px;
    margin-right: 15px;
}

.saunik-stock-product-support-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Name Column */
.saunik-stock-product-support-item-name {
    flex: 1;
    /* Takes up all middle space */
    font-size: 14px;
    font-weight: 500;
}

/* Checkbox Column */
.saunik-stock-product-support-item-action {
    padding-left: 15px;
}

.saunik-stock-product-support-item-action input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--ast-global-color-1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .saunik-stock-product {
        flex-direction: column;
    }

    .saunik-stock-gallery,
    .saunik-stock-info {
        width: 100%;
        flex: none;
    }
}