.lty-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

.lty-product-card {
    position: relative;
    background: var(--e-global-color-4d2c4be);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lty-product-card:hover {
   
    box-shadow: 0 5px 15px grey;
}

.lty-draw-date {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-weight: 600;
    z-index: 2;
}

.lty-product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.lty-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lty-product-card:hover .lty-product-image img {
    transform: scale(1.05);
}

.lty-instant-win {
    position: absolute;
    top: 0px;
    left: 0;
    background: var(--e-global-color-secondary);
    color: black;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

.lty-instant-win i {
    font-size: 1.1em;
}

.lty-content-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lty-upper-content {
    flex-grow: 1;
}

.lty-bottom-content {
    padding: 0;
    margin-top: auto;
}

.lty-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: white;
    line-height: 1.4;
}

.lty-title-prefix {
    background: var(--e-global-color-primary);
    border-radius: 5px;
    padding: 3px 6px;
    color: black;
    display: inline-block;
    font-weight: 600;
}

.lty-product-title a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.lty-product-desc {
    font-size: 14px;
    color: var(--e-global-color-text);
    margin: 10px 0;
}

.lty-progress-container {
    margin-bottom: 15px;
}

.lty-progress-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--e-global-color-text);
}

.lty-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.lty-progress-fill {
    height: 100%;
    background: var(--e-global-color-secondary);
    transition: width 0.3s ease;
}

.lty-product-footer {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.lty-price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--e-global-color-primary);
    text-align: center;
}

.lty-price span {
    font-size: 0.4em;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.lty-enter-btn {
    background: var(--e-global-color-secondary);
    color: black;
    text-align: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lty-enter-btn i {
    color: var(--e-global-color-primary);
}

.lty-product-card:hover .lty-enter-btn i {
    color: black;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .lty-product-grid {
        display: grid;
        grid-template-columns: repeat(2, calc(50% - 4px));
        gap: 8px;
        padding: 8px;
    }

    .lty-product-card {
        width: 100%;
        margin: 0;
    }

    .lty-product-image {
        padding-top: 100%;
    }

    .lty-content-wrapper {
        padding: 8px;
    }

    .lty-product-desc {
        display: none;
    }

    .lty-instant-win {
        font-size: 10px;
        padding: 4px 8px;
        top: 0px;
    }
}

@media screen and (max-width: 480px) {
    .lty-product-grid {
        grid-template-columns: repeat(2, calc(50% - 3px));
        gap: 6px;
        padding: 6px;
    }

    .lty-content-wrapper {
        padding: 6px;
    }

    .lty-product-title {
        font-size: 12px;
        line-height: 1.2;
        margin: 4px 0;
    }

    .lty-title-prefix {
        padding: 2px 4px;
        font-size: 11px;
    }

    .lty-progress-text {
        font-size: 10px;
    }

    .lty-grid-price {
        font-size: 14px;
        margin: 4px 0;
    }

    .lty-per-entry {
        font-size: 10px;
    }

    .lty-enter-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .lty-product-grid .lty-countdown {
        gap: 0px!important;
    }

    .lty-product-grid .grid-countdown-item {
        min-width: 30px;
        padding: 2px;
    }

    .lty-product-grid .grid-countdown-amount {
        font-size: 12px;
    }

    .lty-product-grid .grid-countdown-period {
        font-size: 8px;
    }

    .lty-product-grid .grid-countdown-separator {
        font-size: 10px;
        margin: 0;
    }

    .lty-cash-alternative {
        font-size: 10px;
    }
}

.lty-grid-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--e-global-color-secondary);
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lty-per-entry {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.lty-product-card:hover .lty-enter-btn {
    background: var(--e-global-color-primary);
    color: black !important;
    border-color: var(--e-global-color-primary);
}

.lty-product-card:hover .lty-enter-btn:after {
    color: black;
}

.lty-product-title a:hover {
    color: white;
}   

.lty-product-title a {
    color: white;
}


.lty-product-title  {
    color: white;
}

.lty-cash-alternative {
    font-size: 14px;
    color: white;
    margin: 5px 0;
    text-align: center !important;
    border: 1px solid #ffffff38;
    border-radius: 50px;
    background: linear-gradient(90deg, #0a7f0a, #15b015, #0a7f0a);
    background-size: 200% 100%;
    animation: shineEffect 2s linear infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
}

@media screen and (max-width: 480px) {
    .lty-product-grid .lty-cash-alternative {
        font-size: 10px;
        margin: 3px 0;
        border-radius: 5px;
        padding: 0;
    }
}

@keyframes shineEffect {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.lty-cash-value {
    font-weight: 600;
}

.lty-cash-alternative i {
    color: var(--e-global-color-primary);
}

/* Apply the same styles to single product page */
.product-title .lty-title-prefix {
    background-color: var(--e-global-color-primary);
    color: black;
    padding: 2px;
    border-radius: 5px;
    display: inline-block;
}

.lty-grid-instants {
    display: inline-block;
    background: var(--e-global-color-secondary);
    color: black;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    margin: 5px 0;
}

.lty-winner-details {
  
    padding: 0px;
    border-radius: 6px;
    margin-bottom: 0px;
}


.lty-winner-label, .lty-winner-ticket {
    font-size: 14px;
    margin-bottom: 5px;
}

.lty-winner-label span, .lty-winner-ticket span {
    font-weight: 600;
}

.lty-winner-ticket {
    margin-top: 4px;
}



.lty-debug-info {
    font-size: 12px;
    color: #666;
}

.lty-debug-item {
    margin: 2px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lty-content-wrapper {
        padding: 15px;
    }
    
    .lty-product-title {
        font-size: 16px;
    }
    
    .lty-grid-price {
        font-size: 20px;
    }
    
    .lty-per-entry {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .lty-draw-date {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .lty-instant-win {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Make countdown styles specific to product grid */
.lty-product-grid .lty-countdown-container {
    margin-top: 10px;
    text-align: center;
}

.lty-product-grid .lty-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.lty-product-grid .grid-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
 
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 45px;
}

.lty-product-grid .grid-countdown-amount {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: center;
    min-width: 28px;
}

.lty-product-grid .grid-countdown-period {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.lty-product-grid .grid-countdown-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

@media (max-width: 480px) {
    .lty-product-grid .lty-countdown {
        font-size: 11px;
    }

    .lty-product-grid .grid-countdown-amount {
        font-size: 14px;
        min-width: 24px;
    }
    
    .lty-product-grid .grid-countdown-item {
        min-width: 40px;
        padding: 3px 6px;
    }
    
    .lty-product-grid .grid-countdown-period {
        font-size: 10px;
    }
}
