/* ================================================================
   Deal Card Widget v4 — deal-card.css
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── Base ─────────────────────────────────────────────────── */
.dcw-wrapper { font-family:'Nunito',sans-serif; }

/* ── Card ─────────────────────────────────────────────────── */
.dcw-wrapper .product.type-product {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    width:100%;
    max-width:420px;
    box-shadow:0 4px 24px rgba(0,0,0,.10);
    position:relative;
    margin:0 auto;
}

/* ================================================================
   DESIGN 1 — vertical
   ================================================================ */
.dcw-wrapper.dcw-design-1 .product.type-product { display:block; }

/* Image gallery */
.dcw-wrapper .woocommerce-product-gallery {
    position:relative; width:100%;
    background:#e8e8e8; overflow:hidden; flex-shrink:0;
}
.dcw-wrapper.dcw-design-1 .woocommerce-product-gallery { border-radius:20px 20px 0 0; }
.dcw-wrapper .woocommerce-product-gallery img.wp-post-image {
    width:100%; height:240px; object-fit:cover; display:block;
}

/* HOT DEAL badge */
.dcw-wrapper .onsale.hot-deal-badge {
    position:absolute; top:14px; left:14px;
    background:#e53935; color:#fff;
    font-weight:800; font-size:14px;
    padding:6px 14px 6px 10px; border-radius:30px;
    display:inline-flex; align-items:center; gap:6px;
    z-index:10; letter-spacing:.5px; cursor:default;
}
.dcw-wrapper .onsale.hot-deal-badge .hot-deal-icon {
    background:#fff; border-radius:50%;
    width:20px; height:20px;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.dcw-wrapper .onsale.hot-deal-badge .hot-deal-icon svg,
.dcw-wrapper .onsale.hot-deal-badge .hot-deal-icon i { width:12px; height:12px; }

/* Action sidebar */
.dcw-wrapper .product-actions-sidebar {
    position:absolute; top:14px; right:14px;
    display:flex; flex-direction:column; gap:8px; z-index:10;
}
.dcw-wrapper .product-actions-sidebar .action-btn {
    background:rgba(255,255,255,.92); border:none; border-radius:50%;
    width:38px; height:38px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.13);
    transition:background .18s; padding:0;
}
.dcw-wrapper .product-actions-sidebar .action-btn:hover { background:#fff; }
.dcw-wrapper .product-actions-sidebar .action-btn svg,
.dcw-wrapper .product-actions-sidebar .action-btn i { width:18px; height:18px; display:block; }

/* Trust badges */
.dcw-wrapper .product-trust-badges {
    position:absolute; bottom:14px; left:14px;
    display:flex; gap:8px; z-index:10; flex-wrap:wrap;
}
.dcw-wrapper .verified-badge {
    background:#fff; border-radius:30px;
    padding:5px 12px 5px 8px;
    display:inline-flex; align-items:center; gap:6px;
    font-weight:700; font-size:13px; color:#222;
    box-shadow:0 2px 6px rgba(0,0,0,.10);
}
.dcw-wrapper .verified-badge .badge-icon {
    width:20px; height:20px; background:#2e7d32; border-radius:50%;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.dcw-wrapper .verified-badge .badge-icon svg { width:12px; height:12px; }

/* First Order Badge — icon driven */
.dcw-wrapper .first-order-badge {
    background:#fce4ff; border-radius:30px;
    padding:5px 14px 5px 8px;
    display:inline-flex; align-items:center; gap:6px;
    font-weight:800; font-size:13px; color:#a855f7;
    box-shadow:0 2px 6px rgba(0,0,0,.10);
    transition:all .2s ease;
}
.dcw-wrapper .first-order-badge .fo-icon {
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.dcw-wrapper .first-order-badge .fo-icon svg,
.dcw-wrapper .first-order-badge .fo-icon i { width:16px; height:16px; }

/* Product detail body */
.dcw-wrapper .woocommerce-product-details__short-description-wrapper { padding:18px 18px 0 18px; }
.dcw-wrapper .product_title.entry-title { font-weight:800; font-size:17px; color:#111; line-height:1.35; margin:0 0 8px 0; }
.dcw-wrapper .woocommerce-product-details__short-description { font-size:13.5px; color:#555; line-height:1.55; margin:0 0 12px 0; }

/* Tags row */
.dcw-wrapper .product-tags-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.dcw-wrapper .product-category-tags { display:flex; gap:8px; flex-wrap:wrap; }
.dcw-wrapper .product-category-tags .product_tag,
.dcw-wrapper .product-category-tags .product_cat {
    background:#f3e8ff; color:#9333ea;
    font-weight:700; font-size:13px;
    padding:4px 14px; border-radius:20px;
    text-decoration:none; display:inline-block;
    transition:all .2s ease;
}

/* Price */
.dcw-wrapper .price-wrapper {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
    flex-wrap:wrap;
    width:100%;
}
.dcw-wrapper .price-wrapper .woocommerce-Price-amount.amount { display:flex; align-items:center; gap:8px; }
.dcw-wrapper .price-wrapper .woocommerce-Price-amount.amount del { font-size:18px; color:#999; font-weight:700; text-decoration:line-through; }
.dcw-wrapper .price-wrapper .woocommerce-Price-amount.amount ins { font-size:32px; font-weight:900; color:#e53935; text-decoration:none; }
.dcw-wrapper .percentage-off-badge { background:#2e7d32; color:#fff; font-weight:800; font-size:15px; padding:6px 14px; border-radius:10px; white-space:nowrap; }

/* ── STORE ROW ──────────────────────────────────────────────── */
.dcw-wrapper .store-row {
    display:flex;
    align-items:center;
    gap:8px;
    padding:0;
    margin:0 0 0 0 !important;
    min-width:0;
    justify-content:flex-end;
}

.dcw-wrapper .store-logo-wrapper { display:flex; align-items:center; gap:8px; }
.dcw-wrapper .store-logo-wrapper img.store-logo {
    width:170px; max-width:100%; height:auto; object-fit:contain; flex-shrink:0; display:block;
}
.dcw-wrapper .myntra-m-logo { width:42px; height:42px; flex-shrink:0; }
.dcw-wrapper .store-name { font-weight:800; font-size:16px; color:#222; }

/* ── COUPON ROW ─────────────────────────────────────────────── */
.dcw-wrapper .coupon-row {
    padding: 0 0px 12px 0px !important;
    box-sizing:border-box;
    width:100%;
}

/* ── COUPON STYLE 2 : Solid btn overlapping dashed box ── */
.dcw-wrapper .coupon-action-wrap {
    display: flex;
    align-items: center; /* Aligns the overlapping button perfectly in the center */
    position: relative;
    height: 52px;        /* FIX 1: Explicit height ensures layout stability across all browsers */
    width: 100%;
    box-sizing: border-box;
}

/* Dashed box behind — full width */
.dcw-wrapper .coupon-code-reveal.dcw-coupon-box {
    position: absolute; 
    top: 0; 
    left: 0;
    right: 0; 
    bottom: 0;
    width: 100%; 
    box-sizing: border-box; 
    border: 2.5px dashed #a855f7;
    border-radius: 12px;
    background: #faf4ff;
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
    padding-right: 16px;
    font-weight: 900; 
    font-size: 16px; 
    color: #a855f7;
    letter-spacing: .8px;
    white-space: nowrap;
    z-index: 1;
    transition: all .25s ease;
    pointer-events: none;
}

/* Solid button overlaps left portion */
.dcw-wrapper .single_add_to_cart_button.get-coupon-btn {
    position: relative;
    z-index: 2;
    background: #000000;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 16px;
    padding: 0 20px;
    border: none; 
    
    /* FIX 2: Explicit height (52px parent + 2.5px top border + 2.5px bottom border) */
    height: 52px;
    margin-left: 0px; /* Perfectly covers the left dashed border */
    width: calc(100% - 45px);

    /* Ensures text inside the button stays perfectly centered */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* FIX 3: Perfectly match outer container curves */
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    cursor: pointer;
    letter-spacing: .2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .18s;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dcw-wrapper .single_add_to_cart_button.get-coupon-btn:hover { background:#222222; }
.dcw-wrapper .single_add_to_cart_button.get-coupon-btn:focus { outline:none; }
/* When revealed — show full code */
.dcw-wrapper .coupon-code-reveal.dcw-coupon-box.is-revealed {
    font-size:14px; pointer-events:auto;
}
.dcw-wrapper .coupon-action-wrap.is-revealed .single_add_to_cart_button.get-coupon-btn {
    margin:0;
    width:calc(100% - 82px);
}

@media (max-width:480px){
    .dcw-wrapper .price-wrapper { gap:8px; }
    .dcw-wrapper .price-wrapper .woocommerce-Price-amount.amount del { font-size:17px; }
    .dcw-wrapper .price-wrapper .woocommerce-Price-amount.amount ins { font-size:30px; }
    .dcw-wrapper .percentage-off-badge { font-size:14px; padding:6px 12px; }
    .dcw-wrapper .coupon-action-wrap { min-height:50px; }
    .dcw-wrapper .single_add_to_cart_button.get-coupon-btn {
        font-size:14px;
        margin:0;
        width:calc(100% - 58px);
        border-radius:12px;
    }
    .dcw-wrapper .coupon-action-wrap.is-revealed .single_add_to_cart_button.get-coupon-btn {
        margin:0;
        width:calc(100% - 72px);
    }
    .dcw-wrapper .coupon-code-reveal.dcw-coupon-box {
        border-radius:16px;
        font-size:15px;
        padding-right:12px;
    }
}

/* ── View Details Toggle — pill chip ──────────────────────── */
.dcw-wrapper .product-view-details-toggle { text-align:center; padding:10px 18px 14px 18px; }
.dcw-wrapper .view-details-link.dcw-toggle-link {
    display:inline-flex; align-items:center; gap:6px;
    background:#f3e8ff; color:#a855f7;
    font-weight:800; font-size:14px;
    padding:8px 20px; border-radius:50px;
    text-decoration:none; cursor:pointer;
    transition:all .2s ease; border:1.5px solid transparent;
}
.dcw-wrapper .view-details-link.dcw-toggle-link:hover { background:#ede9fe; border-color:#a855f7; }
.dcw-wrapper .view-details-link.dcw-toggle-link:focus { outline:none; }
.dcw-wrapper .view-details-link.dcw-toggle-link .dcw-toggle-icon svg,
.dcw-wrapper .view-details-link.dcw-toggle-link .dcw-toggle-icon i { width:14px; height:14px; transition:transform .25s; }
.dcw-wrapper .view-details-link.dcw-toggle-link.is-open .dcw-icon-closed { display:none !important; }
.dcw-wrapper .view-details-link.dcw-toggle-link.is-open .dcw-icon-open { display:inline-flex !important; }
.dcw-wrapper .view-details-link.dcw-toggle-link:not(.is-open) .dcw-icon-open { display:none !important; }
.dcw-wrapper .view-details-link.dcw-icon-left { flex-direction:row-reverse; }

/* ── Deal Details Panel ───────────────────────────────────── */
.dcw-wrapper .woocommerce-tabs.deal-details-panel.dcw-deal-panel {
    background:#f8f8f8; border-radius:14px;
    margin:0 14px 14px 14px; padding:16px 18px; display:none;
}
.dcw-wrapper .woocommerce-tabs.deal-details-panel.dcw-deal-panel.is-open { display:block; }
.dcw-wrapper .deal-details-panel .panel-heading { font-weight:800; font-size:14px; color:#222; margin:0 0 10px 0; }
.dcw-wrapper .deal-terms-list { list-style:disc; padding-left:18px; margin:0 0 14px 0; }
.dcw-wrapper .deal-terms-list li { font-size:13px; color:#444; margin-bottom:5px; line-height:1.5; }
.dcw-wrapper .deal-terms-list li .highlight-green { color:#2e7d32; font-weight:700; }
.dcw-wrapper .deal-terms-list li .highlight-red   { color:#e53935; font-weight:700; }
.dcw-wrapper .deal-terms-list li .highlight-purple{ color:#a855f7; font-weight:700; }
.dcw-wrapper .deal-section-heading { font-weight:900; font-size:18px; color:#111; margin:0 0 12px 0; }

/* ── Category checklist — pill badge style, fully style-able ── */
.dcw-wrapper .product-categories-checklist { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:16px; }
.dcw-wrapper .category-item {
    display:inline-flex; align-items:center; gap:6px;
    background:#f3e8ff; color:#9333ea;
    font-weight:700; font-size:13px;
    padding:6px 12px 6px 8px; border-radius:30px;
    white-space:nowrap; cursor:default;
    transition:all .2s ease;
}
.dcw-wrapper .category-item .cat-check-icon {
    width:18px; height:18px; background:#a855f7; border-radius:50%;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.dcw-wrapper .category-item .cat-check-icon svg,
.dcw-wrapper .category-item .cat-check-icon i { width:10px; height:10px; color:#fff; fill:currentColor; stroke:currentColor; }

/* ── Community button — solid full-width with icon ─────────── */
.dcw-wrapper .community-cta-btn {
    display:flex; width:100%; align-items:center; justify-content:center; gap:8px;
    background:linear-gradient(135deg,#e0d7ff 0%,#c9d8ff 100%);
    color:#2d3a8c; font-weight:900; font-size:17px;
    text-align:center; padding:16px; border-radius:12px;
    border:none; cursor:pointer;
    transition:all .2s ease; text-decoration:none;
    box-sizing:border-box;
}
.dcw-wrapper .community-cta-btn:hover { opacity:.88; }
/* icon inside community button */
.dcw-wrapper .community-cta-btn .cm-icon { display:flex; align-items:center; justify-content:center; }
.dcw-wrapper .community-cta-btn .cm-icon svg,
.dcw-wrapper .community-cta-btn .cm-icon i { width:20px; height:20px; display:block; }

/* ================================================================
   DESIGN 2 — horizontal layout
   ================================================================ */
.dcw-wrapper.dcw-design-2 .product.type-product { display:flex; flex-direction:row; max-width:780px; align-items:stretch; }
.dcw-wrapper.dcw-design-2 .woocommerce-product-gallery { width:42%; min-width:220px; max-width:320px; border-radius:20px 0 0 20px; flex-shrink:0; }
.dcw-wrapper.dcw-design-2 .woocommerce-product-gallery img.wp-post-image { height:100%; min-height:300px; }
.dcw-wrapper.dcw-design-2 .dcw-details-col { flex:1; display:flex; flex-direction:column; overflow:hidden; padding-bottom:4px; }
.dcw-wrapper.dcw-design-2 .woocommerce-product-details__short-description-wrapper { padding:18px 18px 0 18px; }
.dcw-wrapper.dcw-design-2 .store-row { padding-left:18px; padding-right:18px; }
.dcw-wrapper.dcw-design-2 .coupon-row { padding-left:14px; padding-right:14px; }
.dcw-wrapper.dcw-design-2 .product-view-details-toggle { padding:8px 18px 10px; }
.dcw-wrapper.dcw-design-2 .woocommerce-tabs.deal-details-panel.dcw-deal-panel { margin:0 10px 10px 10px; }
.dcw-wrapper.dcw-design-2 .woocommerce-product-gallery img.wp-post-image { object-fit:cover; width:100%; height:100%; }
.dcw-wrapper.dcw-design-2 .product_title.entry-title { font-size:15px; }

@media (max-width:600px){
    .dcw-wrapper.dcw-design-2 .product.type-product { flex-direction:column; }
    .dcw-wrapper.dcw-design-2 .woocommerce-product-gallery { width:100%; max-width:100%; border-radius:20px 20px 0 0; }
    .dcw-wrapper.dcw-design-2 .woocommerce-product-gallery img.wp-post-image { height:220px; }
}
