/* ================================================================
   Deal Card Widget v3 — deal-card.css
   Design 1 = vertical (stacked), Design 2 = horizontal (side-by-side)
   WooCommerce / Elementor CSS naming conventions
   ================================================================ */

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

/* ── Base wrapper ───────────────────────────────────────────── */
.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 layout (default)
   ================================================================ */
.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: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 { 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 { 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: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; }

.dcw-wrapper .first-order-badge {
    background:#fce4ff; border-radius:30px;
    padding:5px 14px 5px 8px;
    display:flex; align-items:center; gap:6px;
    font-weight:800; font-size:13px; color:#a855f7;
    box-shadow:0 2px 6px rgba(0,0,0,.10);
}
.dcw-wrapper .first-order-badge .fo-icon {
    width:20px; height:20px; background:#a855f7; border-radius:50%;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.dcw-wrapper .first-order-badge .fo-icon svg { width:12px; height:12px; }

/* 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 + vote row */
.dcw-wrapper .product-tags-and-vote {
    display:flex; align-items:center;
    justify-content:space-between; margin-bottom:14px; gap:8px;
}
.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;
}

/* Vote counter */
.dcw-wrapper .product-vote-counter {
    display:flex; align-items:center; gap:4px;
    font-weight:800; font-size:15px; color:#e53935;
    white-space:nowrap; flex-shrink:0;
}

/* Price */
.dcw-wrapper .price-wrapper {
    display:flex; align-items:center; gap:12px;
    margin-bottom:16px; flex-wrap:wrap;
}
.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:20px; color:#999; font-weight:700; text-decoration:line-through;
}
.dcw-wrapper .price-wrapper .woocommerce-Price-amount.amount ins {
    font-size:34px; font-weight:900; color:#e53935; text-decoration:none;
}
.dcw-wrapper .percentage-off-badge {
    background:#2e7d32; color:#fff;
    font-weight:800; font-size:16px;
    padding:6px 18px; border-radius:10px;
    letter-spacing:.3px; white-space:nowrap;
}

/* ── Store + Coupon Row ─────────────────────────────────────── */
.dcw-wrapper .store-coupon-row {
    display:flex; align-items:center;
    padding:0 18px 16px 18px; gap:0;
}
.dcw-wrapper .store-logo-wrapper {
    display:flex; align-items:center; gap:8px;
    flex:1; min-width:0;
}
.dcw-wrapper .store-logo-wrapper img.store-logo {
    width:142px; height:72px; object-fit:contain; flex-shrink:0;
}
.dcw-wrapper .myntra-m-logo { width:42px; height:42px; flex-shrink:0; }
.dcw-wrapper .store-name {
    font-weight:800; font-size:16px; color:#222;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* Coupon button + reveal — overlapping design */
.dcw-wrapper .coupon-action-wrap {
    display:flex; align-items:stretch;
    position:relative; flex-shrink:0;
}
.dcw-wrapper .single_add_to_cart_button.get-coupon-btn {
    background:#a855f7; color:#fff;
    font-family:'Nunito',sans-serif;
    font-weight:800; font-size:14px;
    padding:12px 24px;
    border:none; border-radius:10px 0 0 10px;
    cursor:pointer; letter-spacing:.5px;
    transition:background .18s; white-space:nowrap;
    line-height:1; position:relative; z-index:2;
}
.dcw-wrapper .single_add_to_cart_button.get-coupon-btn:hover { background:#9333ea; }

/* The reveal box sits BEHIND the button right edge so only last 2 chars peek out */
.dcw-wrapper .coupon-code-reveal.dcw-coupon-box {
    border:2.5px dashed #a855f7;
    border-radius:0 10px 10px 0;
    padding:0 14px;
    font-weight:800; font-size:13px; color:#a855f7;
    background:#faf4ff;
    min-width:54px;
    display:flex; align-items:center; justify-content:flex-end;
    letter-spacing:.8px;
    transition:all .25s ease;
    white-space:nowrap; line-height:1;
    overflow:hidden;
    /* show only last chars — the button overlaps the left side */
}
/* When revealed, box expands */
.dcw-wrapper .coupon-code-reveal.dcw-coupon-box.is-revealed {
    color:#7c3aed; font-size:11px;
}

/* ── View Details Toggle — pill chip style ──────────────────── */
.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 svg {
    width:16px; height:16px; transition:transform .25s; flex-shrink:0;
}
.dcw-wrapper .view-details-link.dcw-toggle-link.is-open svg { transform:rotate(180deg); }

/* Icon alignment helpers */
.dcw-wrapper .view-details-link.dcw-icon-right { 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 items (pill badge style like hot deal) ── */
.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;
}
.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 { width:10px; height:10px; color:#fff; }

/* ── Community button ───────────────────────────────────────── */
.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; }
.dcw-wrapper .community-cta-btn svg,
.dcw-wrapper .community-cta-btn img.community-icon { width:20px; height:20px; }

/* ================================================================
   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-coupon-row { padding:0 18px 14px 18px; }
.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;
}
/* Design 2 image takes full height of card */
.dcw-wrapper.dcw-design-2 .woocommerce-product-gallery img.wp-post-image {
    object-fit:cover; width:100%; height:100%;
}
/* In design 2, product title slightly smaller */
.dcw-wrapper.dcw-design-2 .product_title.entry-title { font-size:15px; }

/* ── Responsive: Design 2 collapses to vertical on mobile ── */
@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; }
}