.pg-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    --pg-accent: #000000;
    --pg-text: #333333;
    --pg-wishlist-color: #ff4757;
}

/* Continuous Marquee Track */
.pg-marquee-track {
    display: flex;
    width: max-content;
    animation: pg-marquee var(--marquee-speed, 25s) linear infinite;
    animation-direction: var(--marquee-direction, normal);
}

/* Pause on Hover */
.pg-marquee-wrapper.enable-pause:hover .pg-marquee-track {
    animation-play-state: paused;
}

.pg-marquee-content {
    display: flex;
    gap: 30px;
    padding-right: 30px;
    will-change: transform;
}

/* Consistent Product Card Width in Marquee */
.pg-marquee-content .pg-product-card {
    width: 280px;
    flex-shrink: 0;
}

@keyframes pg-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Clean Grid Layout */
.pg-grid-wrapper {
    position: relative;
    width: 100%;
    --pg-accent: #000000;
    --pg-text: #333333;
    --pg-wishlist-color: #ff4757;
}

.pg-grid-layout {
    display: grid !important;
    gap: 30px;
    width: 100%;
}

.pg-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.pg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.pg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.pg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.pg-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

@media (max-width: 1024px) {
    .pg-grid-layout.pg-grid-cols-tablet-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-tablet-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-tablet-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-tablet-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-tablet-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
    .pg-grid-layout {
        gap: 15px !important;
    }
    .pg-grid-layout.pg-grid-cols-mobile-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-mobile-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-mobile-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .pg-grid-layout.pg-grid-cols-mobile-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

.pg-grid-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pg-grid-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #eae1d4;
    color: var(--pg-text);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.pg-grid-pagination .page-numbers.current,
.pg-grid-pagination .page-numbers:hover {
    background-color: var(--pg-accent);
    color: #fff !important;
    border-color: var(--pg-accent);
}

/* Product Card Styling */
.pg-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Image styling */
.pg-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.pg-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.pg-primary-img, .pg-secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.pg-secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.pg-product-card.has-hover-image:hover .pg-secondary-img {
    opacity: 1;
}
.pg-product-card.has-hover-image:hover .pg-primary-img {
    opacity: 0;
}

.pg-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    color: #fff;
    background-color: var(--pg-accent);
}

/* Wishlist Toggle Button Overlay */
.pg-wishlist-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #555;
    transition: all 0.3s ease;
}
.pg-wishlist-toggle:hover {
    transform: scale(1.1);
    background: #fff;
}
.pg-wishlist-toggle.is-active {
    color: var(--pg-wishlist-color);
}
.pg-wishlist-toggle.is-active i {
    font-weight: 900 !important; /* switch to solid heart if loaded */
}

/* Toast Success styling */
.pg-toast-container-a3f293ca {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.pg-toast-a3f293ca {
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pgToastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
    pointer-events: auto;
}
.pg-toast-a3f293ca i {
    color: var(--pg-wishlist-color);
}
@keyframes pgToastIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pg-product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}

.pg-categories-wrap {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-title a {
    color: var(--pg-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-price {
    font-size: 15px;
    font-weight: bold;
    color: var(--pg-accent);
    margin-bottom: 15px;
}

.pg-action-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background-color: var(--pg-accent);
    color: #fff;
    width: 100%;
}

.pg-btn i {
    font-size: 14px;
}

.pg-btn-whatsapp {
    background-color: #25D366 !important;
    color: #fff !important;
}

.pg-btn-whatsapp:hover {
    background-color: #1ebe57 !important;
}

/* PRESETS */
.preset_a .pg-product-card {
    border: 1px solid #E5E5E5;
}

.preset_b .pg-product-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.preset_b .pg-image-container {
    border-radius: 12px;
    margin: 8px;
    overflow: hidden;
}
.preset_b .pg-btn {
    border-radius: 25px;
}

.preset_c .pg-product-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.preset_d .pg-product-card {
    background: #111;
    color: #fff;
    border: 1px solid #333;
}
.preset_d .product-title a {
    color: #fff;
}

.preset_e .pg-product-card {
    background: #ffffff;
    border: 1px solid #eae1d4;
    padding: 10px;
}

.preset_f .pg-product-card {
    border-radius: 120px 120px 30px 30px;
    background: #fff;
    border: 1.5px solid #eae1d4;
    padding: 15px;
}
.preset_f .pg-image-container {
    border-radius: 100px;
}

.preset_g .pg-product-card {
    border: 3px solid #000;
    box-shadow: 6px 6px 0px #000;
    background: #fff;
}
