/**
 * Product Minimum Order Value - Frontend Styles
 * Author: Sourav Kumar Chakraborty
 */

/* ==========================================================================
   1. Single Product Details Page Message
   ========================================================================== */
.cmov-pdp-section {
    margin-bottom: 24px;
}

.cmov-product-info-box {
    margin: 0;
    padding: 22px 26px;
    border-radius: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    font-family: inherit;
    transition: all 0.25s ease;
}

.cmov-product-info-box.cmov-info-combined {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #86efac;
}

.cmov-product-info-box.cmov-info-individual {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-color: #93c5fd;
}

.cmov-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cmov-info-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cmov-info-combined .cmov-info-icon-badge {
    background: #dcfce7;
    color: #15803d;
}

.cmov-info-individual .cmov-info-icon-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.cmov-info-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cmov-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.cmov-group-pill {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: #15803d;
    color: #ffffff;
}

.cmov-individual-pill {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
}

.cmov-info-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: #334155;
    margin: 0 0 16px 0;
}

.cmov-info-desc strong {
    color: #0f172a;
    font-weight: 600;
}

.cmov-view-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 999px;
    background: #1e293b;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(30, 41, 59, 0.2);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.cmov-view-group-btn:hover {
    background: #0f172a;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* ==========================================================================
   2. Cart Page Live Notice Banner
   ========================================================================== */
.cmov-cart-notice-container {
    margin: 16px 0 24px 0;
    width: 100%;
}

.cmov-cart-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1.5px solid #f87171;
    color: #991b1b;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: cmovFadeIn 0.3s ease-out;
    margin-bottom: 12px;
}

@keyframes cmovFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmov-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.cmov-notice-content {
    flex: 1;
}

.cmov-notice-title {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 2px;
    color: #7f1d1d;
}

.cmov-notice-text {
    margin: 0;
    color: #991b1b;
}

.cmov-notice-text strong {
    font-weight: 700;
    color: #450a0a;
}

/* Checkout Button Lock */
.cmov-checkout-disabled,
.cmov-checkout-disabled a,
.cmov-checkout-disabled button {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(40%);
}

.cmov-checkout-warning-tooltip {
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #dc2626;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   3. Combined Products Showcase Row (Cart Page)
   ========================================================================== */
.cmov-combined-showcase-wrap {
    margin: 32px 0;
    padding: 24px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.cmov-showcase-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cmov-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    margin-bottom: 6px;
}

.cmov-showcase-heading {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.cmov-showcase-sub {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.cmov-showcase-sub strong {
    color: #0f172a;
}

.cmov-show-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.cmov-show-all-btn:hover {
    background: #1e293b;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* 6-Card Grid / Scrollable Row */
.cmov-showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1200px) {
    .cmov-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cmov-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cmov-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Product Card */
.cmov-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    position: relative;
}

.cmov-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.cmov-card-thumb-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.cmov-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cmov-product-card:hover .cmov-card-thumb-img {
    transform: scale(1.05);
}

.cmov-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
}

.cmov-card-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    text-decoration: none;
}

.cmov-card-title a {
    color: inherit;
    text-decoration: none;
}

.cmov-card-title a:hover {
    color: #15803d;
}

.cmov-card-price {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.cmov-card-price del {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-right: 4px;
}

.cmov-card-price ins {
    text-decoration: none;
    color: #15803d;
}

.cmov-add-to-cart-btn {
    margin-top: auto;
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #15803d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cmov-add-to-cart-btn:hover {
    background: #166534;
    transform: scale(1.02);
}

.cmov-add-to-cart-btn:disabled,
.cmov-add-to-cart-btn.cmov-loading {
    opacity: 0.7;
    cursor: wait;
}

.cmov-add-to-cart-btn.cmov-added {
    background: #0f172a;
    color: #86efac;
}

/* ==========================================================================
   4. "Show All" Modal Popup
   ========================================================================== */
.cmov-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.cmov-modal-backdrop.cmov-modal-open {
    opacity: 1;
    visibility: visible;
}

.cmov-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.cmov-modal-backdrop.cmov-modal-open .cmov-modal-dialog {
    transform: scale(1);
}

.cmov-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cmov-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmov-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #475569;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmov-modal-close-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.cmov-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cmov-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .cmov-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.cmov-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 15px;
}
