.ppg-grid {
    display: grid;
    width: 100%;
}

.ppg-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.ppg-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Aspect ratios */
.ppg-image-wrapper.aspect-1-1 {
    aspect-ratio: 1 / 1;
}
.ppg-image-wrapper.aspect-4-3 {
    aspect-ratio: 4 / 3;
}
.ppg-image-wrapper.aspect-16-9 {
    aspect-ratio: 16 / 9;
}
.ppg-image-wrapper.aspect-auto {
    aspect-ratio: auto;
}

.ppg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hover effects */
.ppg-image-wrapper.hover-zoom:hover img {
    transform: scale(1.08);
}
.ppg-image-wrapper.hover-fade:hover img {
    opacity: 0.75;
}

/* Mockup image for Elementor editor template */
.ppg-mock-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e5ea 0%, #d1d1d6 100%);
    min-height: 180px;
}

/* Badges styling */
.ppg-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Content spacing */
.ppg-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    flex-grow: 1;
    justify-content: flex-end;
}

.ppg-category-tags {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ppg-category-tags a {
    color: inherit;
    text-decoration: none;
}

.ppg-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.ppg-title a {
    color: inherit;
    text-decoration: none;
}

.ppg-price {
    font-size: 16px;
    font-weight: 700;
}
.ppg-price del {
    color: #8e8e93;
    font-size: 0.85em;
    margin-right: 8px;
}
.ppg-price ins {
    text-decoration: none;
}

.ppg-short-desc {
    font-size: 14px;
    line-height: 1.5;
}

/* Action Buttons Grid */
.ppg-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

/* Custom Buttons Common styling */
.ppg-whatsapp-btn,
.ppg-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.ppg-whatsapp-btn:active,
.ppg-add-to-cart-btn:active {
    transform: scale(0.98);
}
.ppg-btn-icon {
    display: inline-flex;
    align-items: center;
}
.ppg-btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Swiper slider structure styling */
.ppg-carousel-active {
    position: relative;
    width: 100%;
}
.swiper-container-ppg {
    width: 100%;
    overflow: hidden;
    --ppg-slide-gap: 24px;
}
.swiper-container-ppg .swiper-wrapper {
    display: flex;
}
.swiper-container-ppg .swiper-slide {
    flex-shrink: 0;
    height: auto;
}

/* Swiper pagination & navigation colors */
.ppg-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 15;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1c1e;
    transition: background-color 0.3s, color 0.3s;
}
.ppg-swiper-button:after {
    font-size: 16px;
    font-weight: bold;
}
.ppg-swiper-button.swiper-button-prev {
    left: -22px;
}
.ppg-swiper-button.swiper-button-next {
    right: -22px;
}
.ppg-swiper-button:hover {
    background-color: #f2f2f7;
}

.ppg-swiper-pagination {
    position: relative;
    margin-top: 24px;
    bottom: 0 !important;
}
.ppg-swiper-pagination .swiper-pagination-bullet-active {
    background: #ffb300 !important;
}

/* Preview fallback layouts */
.swiper-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Pagination */
.ppg-pagination {
    margin-top: 40px;
    text-align: center;
}
.ppg-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    border: none;
}
.ppg-pagination ul li span,
.ppg-pagination ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: #1c1c1e;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    background-color: #f2f2f7;
}
.ppg-pagination ul li span.current {
    background-color: #ffb300;
    color: #ffffff;
}
.ppg-pagination ul li a:hover {
    background-color: #e5e5ea;
}
