.memarbash-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    width: 100%
}

.memarbash-product-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: all .3s ease
}

.memarbash-product-grid-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    transform: translateY(-5px)
}

.memarbash-product-image {
    position: relative;
    overflow: hidden
}

.memarbash-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s ease
}

.memarbash-product-grid-item:hover .memarbash-product-image img {
    transform: scale(1.05)
}

.memarbash-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4
}

.memarbash-product-title a {
    color: #333;
    text-decoration: none;
    transition: color .3s ease
}

.memarbash-product-title a:hover {
    color: #0073aa
}

.memarbash-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 10px
}

.memarbash-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px
}

.memarbash-product-button {
    margin-top: 15px
}

.memarbash-product-button .button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    text-align: center
}

.memarbash-product-button .button:hover {
    background: #005d87
}

@media screen and (max-width:1024px) {
    .memarbash-product-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media screen and (max-width:767px) {
    .memarbash-product-grid {
        grid-template-columns: repeat(1, 1fr)
    }
}

.memarbash-product-carousel {
    position: relative;
    padding: 0 30px
}

.memarbash-product-carousel-item {
    padding: 15px
}

.memarbash-product-carousel .memarbash-product-grid-item {
    height: 100%
}

.memarbash-purchase-button {
    display: inline-block
}

.memarbash-purchase-button .button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    text-align: center
}

.memarbash-purchase-button .button:hover {
    background: #005d87
}

.memarbash-product-info {
    margin-bottom: 30px
}

.memarbash-product-info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px
}

.memarbash-product-info-price {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 15px
}

.memarbash-product-info-description {
    margin-bottom: 20px;
    line-height: 1.7
}

.memarbash-download-count {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 6px
}

.memarbash-download-count-icon {
    margin-right: 15px;
    color: #0073aa;
    font-size: 24px
}

.memarbash-download-count-content {
    flex: 1
}

.memarbash-download-count-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1
}

.memarbash-download-count-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px
}

/* MemarBash Elementor EDD Widgets */

/* Add to Cart Widget */
.memarbash-add-to-cart-wrapper {
    margin: 20px 0;
}

.memarbash-add-to-cart-button {
    display: inline-block;
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    background-color: #3f51b5;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.memarbash-add-to-cart-button:hover {
    background-color: #303f9f;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Lightbox Styles */
.memarbash-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Make sure flexbox is properly enforced when lightbox is shown */
body.memarbash-lightbox-open .memarbash-lightbox-overlay {
    display: flex !important;
    opacity: 1;
}

.memarbash-lightbox-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Apply animation when lightbox is open */
body.memarbash-lightbox-open .memarbash-lightbox-content {
    transform: translateY(0);
    opacity: 1;
}

.memarbash-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

.memarbash-lightbox-close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
}

.memarbash-lightbox-container {
    width: 100%;
}

.memarbash-lightbox-inner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Timer Styles */
.memarbash-countdown-timer-wrapper {
    text-align: center;
    margin: 20px 0;
    padding: 25px;
    border-radius: 8px;
    background-color: #f5f5f5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
}

.memarbash-countdown-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.memarbash-countdown-timer {
    font-size: 64px;
    font-weight: bold;
    line-height: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #3f51b5;
}

/* Download Links Styles */
.memarbash-download-links-container {
    margin-top: 20px;
    animation: mbFadeIn 0.5s ease;
    transition: opacity 0.3s ease;
}

.memarbash-download-links-container h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.memarbash-download-links-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.memarbash-download-links-list li {
    margin-bottom: 5px;
}

.memarbash-download-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    background-color: #f5f5f5;
    color: #3f51b5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.memarbash-download-link:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background-color: #e0e0e0;
    color: #303f9f;
    text-decoration: none;
}

/* Ads Container */
.memarbash-ads-container {
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.3s ease;
}

/* Login Message */
.memarbash-login-message {
    text-align: center;
    padding: 25px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.memarbash-login-message p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #f44336;
}

/* Message Styles */
.memarbash-message {
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .memarbash-lightbox-content {
        width: 95%;
    }

    .memarbash-lightbox-container {
        padding: 15px;
    }

    .memarbash-countdown-timer {
        font-size: 48px;
        width: 100px;
        height: 100px;
    }

    .memarbash-countdown-title {
        font-size: 16px;
    }

    .memarbash-download-links-container h3 {
        font-size: 20px;
    }

    .memarbash-lightbox-inner-content {
        flex-direction: column;
    }
}

/* Editor Specific Styles */
.memarbash-editor-placeholder {
    padding: 15px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 6px;
    text-align: center;
    color: #555;
    font-size: 14px;
    font-style: italic;
}

.memarbash-editor-notice {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #e0f5ff;
    border-left: 3px solid #4ac7ff;
    border-radius: 3px;
    color: #0073aa;
    font-size: 12px;
    font-style: italic;
}

.elementor-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.elementor-alert-info {
    background-color: #e6f6ff;
    border-left: 5px solid #4ac7ff;
    color: #0073aa;
}

.elementor-alert-warning {
    background-color: #fff8e5;
    border-left: 5px solid #ffb900;
    color: #b27200;
}

/* Add specific styles for icons inside buttons */
.memarbash-button-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.memarbash-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Left/right positioning within button */
.memarbash-button-icon.icon-left {
    margin-right: 8px;
}

.memarbash-button-icon.icon-right {
    margin-left: 8px;
}

/* Top/bottom positioning outside button */
.icon-top .memarbash-button-icon {
    margin-bottom: 8px;
}

.icon-bottom .memarbash-button-icon {
    margin-top: 8px;
}

/* SVG Size Control */
.memarbash-button-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Color styles for paid product buttons */
.memarbash-paid-download-button {
    background-color: #e27730;
}

.memarbash-paid-download-button:hover {
    background-color: #d26620;
}