/* PureMart JK10 + Add-to-Cart UX (Phase 7) — terracotta pill, icon-only save.
   Originally inline in index.php; promoted to a shared sheet so home, category,
   and search-results pages all show the always-visible ATC + UX polish.
   Selectors prefixed with .content_wrapper limit scope to listing pages
   (home/category/search), avoiding collisions with PDP/cart-summary. */

/* Kill the existing CSS pseudo-element that injects "SAVE"/"SAVED" text on the heart icon */
.content_wrapper .atcWrapper .btn-outline-gray .fa-heart-o::after,
.content_wrapper .atcWrapper .btn-outline-gray .fa-heart::after,
.content_wrapper .atcWrapper .btn-outline-gray.marked .fa-heart-o::after,
.content_wrapper .atcWrapper .btn-outline-gray.marked .fa-heart-o::before {
    content: none !important;
    padding: 0 !important;
    font-size: 0 !important;
}
/* Restore the heart's own ::before content (FontAwesome glyph) for the marked state */
.content_wrapper .atcWrapper .btn-outline-gray.marked .fa-heart-o::before {
    content: "004" !important;
    font-size: inherit !important;
}

/* Wrapper — always-visible row */
.content_wrapper .atcWrapper {
    display: block !important;
    position: static !important;
    bottom: auto !important;
    padding: 10px 0 0 !important;
    background: transparent !important;
    animation: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

/* Btn-group — force flex layout (overrides Bootstrap inline-block + float) */
.content_wrapper .atcWrapper .btn-group {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
    flex-direction: row !important;
    float: none !important;
}

/* All buttons inside btn-group — kill any float, base size 0 so flex distributes correctly */
.content_wrapper .atcWrapper .btn-group > .btn,
.content_wrapper .atcWrapper .btn-group > button.btn,
.content_wrapper .atcWrapper .btn-group > span.btn {
    float: none !important;
    margin: 0 !important;
}

/* ADD TO CART — fills remaining space, pill, centered text */
.content_wrapper .atcWrapper .btn-group > button.btn,
.content_wrapper .atcWrapper .btn-group > .btn:first-child:not([onclick*="AddToWishlist"]) {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    background: #835E54 !important;
    border: 1px solid #835E54 !important;
    color: #FFFCFA !important;
    font-family: 'Open Sans', 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    font-size: 11.5px !important;
    line-height: 1.1 !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    transition: background 0.18s ease, transform 0.15s ease;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
}
.content_wrapper .atcWrapper .btn-group > button.btn:hover,
.content_wrapper .atcWrapper .btn-group > .btn:first-child:not([onclick*="AddToWishlist"]):hover {
    background: #6B4A41 !important;
    border-color: #6B4A41 !important;
    color: #FFFCFA !important;
    transform: translateY(-1px);
}
.content_wrapper .atcWrapper .btn-group > button.btn span,
.content_wrapper .atcWrapper .btn-group > button.btn i {
    display: inline-block !important;
    vertical-align: middle !important;
    font-size: inherit !important;
}
.content_wrapper .atcWrapper .btn-group > button.btn i.fa-shopping-cart {
    font-size: 13px !important;
    margin: 0 !important;
}

/* SAVE (wishlist) — ICON-ONLY peach circle */
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"] {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    background: #F7EDE9 !important;
    color: #835E54 !important;
    border: 1px solid #C9907C !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"] > *:not(i),
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"] span {
    display: none !important;
}
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"] i {
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"]:hover {
    background: #C9907C !important;
    color: #FFFCFA !important;
    border-color: #C9907C !important;
}
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"].marked {
    background: #835E54 !important;
    color: #FFFCFA !important;
    border-color: #835E54 !important;
}

/* Mobile tightening */
@media (max-width: 540px) {
    .content_wrapper .atcWrapper .btn-group > button.btn,
    .content_wrapper .atcWrapper .btn-group > .btn:first-child:not([onclick*="AddToWishlist"]) {
        font-size: 10.5px !important;
        padding: 9px 10px !important;
        letter-spacing: 0.02em !important;
    }
    .content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"] {
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

/* Show cart icon, replace "ADD TO CART" with "Add" via pseudo-element */
.content_wrapper .atcWrapper .btn-group > button.btn i.fa-shopping-cart {
    display: inline-block !important;
    font-size: 13px !important;
    margin-right: 6px !important;
}
.content_wrapper .atcWrapper .btn-group > button.btn span {
    font-size: 0 !important;
    letter-spacing: 0 !important;
    line-height: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.content_wrapper .atcWrapper .btn-group > button.btn span::before {
    content: "Add" !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
}
.content_wrapper .atcWrapper .btn-group > button.btn,
.content_wrapper .atcWrapper .btn-group > .btn:first-child:not([onclick*="AddToWishlist"]) {
    padding: 11px 12px !important;
    text-overflow: clip !important;
    gap: 0 !important;
}

/* ============================================
   PureMart UX polish — corner radius + micro-animations
   ============================================ */

.testimonialBox {
    border-radius: 12px !important;
    border: 1px solid #E6D6CD !important;
    background: #FFFCFA !important;
    padding: 18px 20px !important;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.testimonialBox:hover {
    transform: translateY(-3px);
    border-color: #C9907C !important;
    box-shadow: 0 8px 24px rgba(68,55,40,0.06) !important;
}

.media_coverage #scroller li {
    transition: transform 0.22s ease;
}
.media_coverage #scroller li:hover {
    transform: translateY(-2px);
}
.media_coverage #scroller img,
.media_coverage #scroller .img-responsive {
    border-radius: 10px !important;
    border: 1px solid #E6D6CD;
    background: #FFFCFA;
    padding: 6px;
    transition: transform 0.28s ease, border-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    filter: grayscale(0.15);
}
.media_coverage #scroller a:hover img {
    transform: scale(1.04);
    border-color: #C9907C;
    filter: grayscale(0);
    box-shadow: 0 6px 18px rgba(68,55,40,0.08);
}

.content_wrapper .product-widget {
    border-radius: 10px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.content_wrapper .product-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(68,55,40,0.07);
}
.content_wrapper .product-widget img.img-fluid {
    transition: transform 0.5s ease;
    will-change: transform;
}
.content_wrapper .product-widget:hover img.img-fluid {
    transform: scale(1.04);
}

@keyframes pm-jk-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 144, 124, 0.0); }
    50% { box-shadow: 0 0 0 4px rgba(201, 144, 124, 0.18); }
}
.content_wrapper .price-pill-jk {
    animation: pm-jk-pulse 2.6s ease-in-out infinite;
    transition: transform 0.18s ease;
}
.content_wrapper .price-pill-jk:hover {
    transform: scale(1.04);
}

.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"] {
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"]:hover {
    transform: scale(1.06);
}
.content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"]:active {
    transform: scale(0.94);
}

.ship-to .dropdown-menu,
.currency .dropdown-menu {
    animation: pm-fade-down 0.18s ease;
    transform-origin: top right;
    border-radius: 10px !important;
    border: 1px solid #E6D6CD !important;
    box-shadow: 0 8px 24px rgba(68,55,40,0.10) !important;
    padding: 6px !important;
}
@keyframes pm-fade-down {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ship-to .dropdown-menu li a,
.currency .dropdown-menu li a {
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.ship-to .dropdown-menu li a:hover,
.currency .dropdown-menu li a:hover {
    background: #F7EDE9;
    color: #835E54;
}
.ship-to .selectedShipTo {
    transition: color 0.18s ease;
}
.ship-to .selectedShipTo:hover {
    color: #C9907C !important;
}

.featuredProducts {
    position: relative;
    transition: color 0.18s ease;
}

.featuredProducts a.font13.normal {
    transition: transform 0.18s ease, opacity 0.18s ease;
    border-radius: 6px;
}
.featuredProducts a.font13.normal:hover {
    transform: translateX(2px);
    opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
    .content_wrapper .product-widget,
    .content_wrapper .product-widget img.img-fluid,
    .testimonialBox,
    .media_coverage #scroller img,
    .content_wrapper .price-pill-jk,
    .content_wrapper .atcWrapper .btn-group > .btn[onclick*="AddToWishlist"],
    .ship-to .dropdown-menu,
    .currency .dropdown-menu {
        animation: none !important;
        transition: none !important;
    }
}
/* End of UX polish block */

