.eew-product-deals-widget {
    width: 100%;
    margin: 40px auto;
}

.eew-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.eew-section-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.eew-shop-now-link {
    font-size: 14px;
    color: #0d5933;
    text-decoration: none;
    font-weight: 500;
}

.eew-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.eew-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 4px;
}

.eew-slider-track::-webkit-scrollbar {
    height: 0;
}

.eew-product-card {
    flex: 0 0 240px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.06);
    scroll-snap-align: start;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eew-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.eew-card-body {
    padding: 14px 16px 16px;
}

.eew-product-brand {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.eew-product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.eew-product-price {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.eew-product-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.eew-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
}

.eew-badge-type {
    color: #0f172a;
}

.eew-badge-thc {
    color: #0f172a;
}

.eew-actions .eew-add-to-cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background-color: #0d5933;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.eew-actions .eew-add-to-cart:hover {
    background-color: #0b4b2b;
}

.eew-arrow {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.eew-arrow-prev {
    margin-right: 8px;
}

.eew-arrow-next {
    margin-left: 8px;
}

.eew-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    scroll-behavior: auto;
}

.eew-modal-overlay.is-open {
    display: block;
}

.eew-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
}

.eew-modal-container {
    position: relative;
    max-width: 960px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scroll-margin-top: 0;
    scroll-behavior: auto;
}

.eew-modal-header {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.eew-modal-link,
.eew-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    font-size: 22px;
}

.eew-modal-link:hover,
.eew-modal-close:hover {
    background: #f5f5f5;
}

.eew-modal-link svg,
.eew-modal-close svg {
    stroke: #333;
}

.eew-modal-body {
    display: flex;
    min-height: 400px;
    position: relative;
}

.eew-modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    display: none;
}

.eew-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d5933;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: eew-spin 1s linear infinite;
}

@keyframes eew-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.eew-modal-product-content {
    width: 100%;
}

.eew-modal-item {
    display: none;
}

.eew-modal-item.is-active {
    display: block;
}

.eew-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 32px;
}

.eew-modal-main-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.eew-modal-thumbnails {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.eew-modal-thumb {
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.eew-modal-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.eew-modal-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
}

.eew-modal-meta-row {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.eew-modal-meta-col {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.eew-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.eew-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.eew-modal-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.eew-modal-description {
    font-size: 14px;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 18px;
}

.eew-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.eew-modal-actions .eew-add-to-cart {
    padding-inline: 20px;
}

.eew-view-details-link {
    font-size: 13px;
    color: #0d5933;
    text-decoration: none;
}

body.eew-modal-open {
    overflow: hidden !important;
}

body.eew-modal-open * {
    -webkit-overflow-scrolling: touch;
}

body.eew-modal-open .shop-main-home {
    display: none;
}

@media (max-width: 800px) {
    .eew-modal-container {
        margin: 20px auto;
        padding: 18px 16px;
    }

    .eew-modal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .eew-product-card {
        flex-basis: 72vw;
    }
}