
/* Rhigi Commerce Core 4.0 UX Edition */

/* Bigger, conversion-focused delivery badges */
.rhigi-single-badge-wrap {
    margin: 18px 0 22px !important;
}

.rhigi-delivery-badge-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0 14px;
    position: relative;
    z-index: 3;
}

.rhigi-delivery-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: .01em;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .18) !important;
    border: 2px solid rgba(255,255,255,.82);
    text-transform: uppercase;
}

.rhigi-delivery-badge strong {
    display: block;
    font-size: 15px;
    line-height: 1.05;
}

.rhigi-delivery-badge small {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 800;
    opacity: .9;
    text-transform: none;
    letter-spacing: 0;
}

.rhigi-delivery-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.rhigi-delivery-badge-lagos {
    background: linear-gradient(135deg, #ffd400 0%, #ff7a00 48%, #ff2e2e 100%) !important;
    color: #111827 !important;
    border-color: #fff2a8;
}

.rhigi-delivery-badge-nationwide {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
    color: #ffffff !important;
    border-color: #c7ffd9;
}

.rhigi-nationwide-alt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 11px 15px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
}

.rhigi-nationwide-alt-link:hover {
    background: #ff5a00;
    color: #fff !important;
}

/* Premium Add to Cart buttons */
.woocommerce div.product form.cart .button,
.woocommerce a.button.add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
button.single_add_to_cart_button,
.single_add_to_cart_button,
.add_to_cart_button {
    background: linear-gradient(135deg, #ff7a00 0%, #ff4d00 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    min-height: 54px !important;
    padding: 0 26px !important;
    border-radius: 16px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -.01em;
    box-shadow: 0 14px 30px rgba(255, 90, 0, .28) !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgba(255, 90, 0, .34) !important;
}

.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.woocommerce div.product form.cart div.quantity input.qty {
    height: 54px !important;
    min-width: 78px;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

/* Premium add-to-cart success message */
.woocommerce-message,
.rhigi-cart-success {
    border: 0 !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 40px rgba(15,23,42,.12) !important;
    padding: 18px !important;
}

.rhigi-cart-success {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    border-left: 6px solid #22c55e !important;
}

.rhigi-cart-success-icon {
    width: 44px;
    height: 44px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
}

.rhigi-cart-success-body strong {
    display: block;
    color: #111827;
    font-size: 18px;
    margin-bottom: 4px;
}

.rhigi-cart-success-body span {
    color: #4b5563;
    font-weight: 700;
}

.rhigi-cart-success-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.rhigi-view-cart-btn,
.rhigi-checkout-now-btn,
.woocommerce-message .button.wc-forward {
    border: 0 !important;
    border-radius: 14px !important;
    padding: 13px 18px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    color: #fff !important;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.rhigi-view-cart-btn,
.woocommerce-message .button.wc-forward {
    background: linear-gradient(135deg, #ff7a00, #ff4d00) !important;
}

.rhigi-checkout-now-btn {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
}

/* Mobile sticky Add to Cart */
.rhigi-sticky-atc {
    display: none;
}

@media (max-width: 768px) {
    .rhigi-delivery-badge {
        min-height: 54px;
        padding: 12px 17px !important;
        font-size: 15px !important;
    }

    .rhigi-delivery-badge strong {
        font-size: 16px;
    }

    .rhigi-nationwide-alt-link {
        font-size: 13px;
        padding: 12px 15px;
        max-width: 100%;
    }

    .woocommerce div.product form.cart .button,
    .woocommerce button.single_add_to_cart_button,
    button.single_add_to_cart_button,
    .single_add_to_cart_button {
        width: calc(100% - 90px) !important;
        min-height: 58px !important;
        font-size: 19px !important;
    }

    .rhigi-cart-success-actions a {
        flex: 1 1 100%;
    }

    body.single-product {
        padding-bottom: 96px;
    }

    .rhigi-sticky-atc {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        background: #111827;
        color: #fff;
        border-radius: 20px;
        padding: 12px;
        z-index: 99999;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 18px 50px rgba(0,0,0,.35);
        transform: translateY(130%);
        opacity: 0;
        pointer-events: none;
        transition: all .25s ease;
    }

    .rhigi-sticky-atc.rhigi-sticky-atc-show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .rhigi-sticky-atc-info {
        min-width: 0;
        flex: 1;
    }

    .rhigi-sticky-atc-info strong {
        display: block;
        font-size: 13px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rhigi-sticky-atc-info span {
        color: #ffb27c;
        font-weight: 900;
        font-size: 13px;
    }

    .rhigi-sticky-atc-button {
        background: linear-gradient(135deg, #ff7a00, #ff4d00);
        color: #fff;
        border: 0;
        border-radius: 15px;
        padding: 13px 14px;
        font-weight: 900;
        white-space: nowrap;
    }
}


.rhigi-order-product-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.rhigi-reorder-item-button{background:linear-gradient(135deg,#111827,#374151)!important}
.woocommerce-error{border:0!important;border-left:7px solid #ef4444!important;border-radius:18px!important;background:#fff1f2!important;color:#7f1d1d!important;box-shadow:0 14px 34px rgba(127,29,29,.12)!important;padding:18px 20px!important;font-weight:800}
@media(max-width:768px){.rhigi-order-product-actions .rhigi-mini-button{width:100%}}


/* Rhigi Commerce Core 4.4 - Premium quantity selector */
.rhigi-qty-stepper {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 58px;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15,23,42,.07);
    vertical-align: middle;
}

.rhigi-qty-stepper .qty {
    width: 70px !important;
    height: 58px !important;
    min-width: 70px !important;
    border: 0 !important;
    border-left: 1px solid #eef0f4 !important;
    border-right: 1px solid #eef0f4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    text-align: center !important;
    padding: 0 !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.rhigi-qty-stepper .qty::-webkit-outer-spin-button,
.rhigi-qty-stepper .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rhigi-qty-btn {
    width: 58px;
    height: 58px;
    border: 0;
    background: #fff7ed;
    color: #ff5a00;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .16s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.rhigi-qty-btn:hover,
.rhigi-qty-btn:active {
    background: #ff5a00;
    color: #ffffff;
}

.rhigi-qty-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
}

.woocommerce div.product form.cart div.quantity,
.woocommerce .quantity {
    margin-right: 0 !important;
}

.woocommerce div.product form.cart .rhigi-qty-stepper + .button,
.woocommerce div.product form.cart .quantity + .button {
    margin-left: 0 !important;
}

.woocommerce-cart-form .rhigi-qty-stepper {
    height: 48px;
    border-radius: 14px;
}

.woocommerce-cart-form .rhigi-qty-stepper .qty {
    height: 48px !important;
    width: 56px !important;
    min-width: 56px !important;
    font-size: 17px !important;
}

.woocommerce-cart-form .rhigi-qty-btn {
    width: 48px;
    height: 48px;
    font-size: 23px;
}

@media (max-width: 768px) {
    .woocommerce div.product form.cart {
        gap: 12px !important;
    }

    .rhigi-qty-stepper {
        width: 100% !important;
        max-width: 220px;
        height: 60px;
    }

    .rhigi-qty-stepper .qty {
        flex: 1;
        height: 60px !important;
        width: 80px !important;
        min-width: 80px !important;
        font-size: 22px !important;
    }

    .rhigi-qty-btn {
        width: 62px;
        height: 60px;
        font-size: 30px;
    }

    .woocommerce div.product form.cart .button,
    .woocommerce button.single_add_to_cart_button,
    button.single_add_to_cart_button,
    .single_add_to_cart_button {
        width: 100% !important;
    }

    .woocommerce-cart-form .rhigi-qty-stepper {
        max-width: 170px;
        width: 170px !important;
    }
}


/* Rhigi Commerce Core 4.4.1 - Continue shopping button */
.rhigi-continue-shopping-btn {
    background: linear-gradient(135deg, #111827, #374151) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 13px 18px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.rhigi-continue-shopping-btn:hover {
    filter: brightness(1.06);
}

@media (max-width: 768px) {
    .rhigi-continue-shopping-btn,
    .rhigi-view-cart-btn,
    .rhigi-checkout-now-btn {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* Rhigi Commerce Core 4.5 - Shop conversion cleanup */

/* Remove bulky Shop hero/title blocks so products appear faster */
body.post-type-archive-product .page-title,
body.tax-product_cat .page-title,
body.tax-product_tag .page-title,
body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header,
body.post-type-archive-product .rhigi-shop-hero,
body.tax-product_cat .rhigi-shop-hero,
body.tax-product_tag .rhigi-shop-hero,
body.post-type-archive-product .entry-header,
body.tax-product_cat .entry-header,
body.tax-product_tag .entry-header {
    display: none !important;
}

/* Catch common theme card hero above shop */
body.post-type-archive-product .site-main > .wp-block-group:first-child,
body.post-type-archive-product .site-main > section:first-child:has(h1),
body.post-type-archive-product .site-main > div:first-child:has(h1) {
    display: none !important;
}

/* Compact rotating promo strip */
.rhigi-shop-promo-strip {
    width: calc(100% - 56px);
    max-width: 1180px;
    margin: 18px auto 14px;
    background: #0b1220;
    color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .13);
    min-height: 54px;
    display: flex;
    align-items: center;
}

.rhigi-shop-promo-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    padding: 0 20px;
    font-weight: 900;
    font-size: 15px;
    animation: rhigiPromoMarquee 22s linear infinite;
}

.rhigi-shop-promo-track span {
    display: inline-flex;
    align-items: center;
}

@keyframes rhigiPromoMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-48%); }
}

/* Clean shop toolbar */
.rhigi-shop-toolbar {
    width: calc(100% - 56px);
    max-width: 1180px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 250, 252, .92);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.rhigi-shop-toolbar .woocommerce-result-count {
    margin: 0 !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    color: #111827;
}

.rhigi-shop-toolbar .woocommerce-ordering {
    margin: 0 !important;
}

.rhigi-shop-toolbar select {
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    min-height: 42px;
    padding: 0 12px !important;
    font-weight: 800;
    background: #fff !important;
    color: #111827 !important;
}

/* Better product grid start */
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    width: calc(100% - 56px);
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Floating filter-style hint for mobile */
.rhigi-shop-toolbar::before {
    content: "🛍 Products";
    background: #ff5a00;
    color: #fff;
    border-radius: 999px;
    padding: 10px 13px;
    font-weight: 900;
    display: none;
}

@media (max-width: 768px) {
    .rhigi-shop-promo-strip {
        width: calc(100% - 32px);
        margin-top: 14px;
        border-radius: 16px;
        min-height: 48px;
    }

    .rhigi-shop-promo-track {
        font-size: 14px;
        gap: 22px;
        animation-duration: 18s;
    }

    .rhigi-shop-toolbar {
        width: calc(100% - 32px);
        margin-bottom: 14px;
        align-items: stretch;
        flex-wrap: wrap;
        top: 0;
        padding: 8px 0;
    }

    .rhigi-shop-toolbar::before {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .rhigi-shop-toolbar .woocommerce-result-count {
        flex: 1 1 auto;
        font-size: 13px;
        padding: 10px 12px;
    }

    .rhigi-shop-toolbar .woocommerce-ordering {
        flex: 1 1 100%;
    }

    .rhigi-shop-toolbar select {
        width: 100%;
    }

    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        width: calc(100% - 32px);
    }
}


/* Rhigi Commerce Core 4.5.2 - safe shop hero removal */
.rhigi-shop-hero-remove-only {
    display: none !important;
}

/* Keep the shop product loop visible at all times */
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.post-type-archive-product .products,
body.tax-product_cat .products,
body.tax-product_tag .products {
    display: grid;
}

/* Prevent blank page caused by over-hiding containers */
body.post-type-archive-product .site-main,
body.post-type-archive-product main,
body.post-type-archive-product .woocommerce,
body.tax-product_cat .site-main,
body.tax-product_cat main,
body.tax-product_cat .woocommerce {
    display: block !important;
    visibility: visible !important;
}


/* Rhigi Commerce Core 8.1.2
 * Optical centering for Add to Cart labels in Related Products only.
 */
.single-product .related.products .add_to_cart_button.rhigi-related-atc-centered,
.single-product section.related .add_to_cart_button.rhigi-related-atc-centered{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    padding-left:48px!important;
    padding-right:48px!important;
    box-sizing:border-box!important;
}

.single-product .related.products .add_to_cart_button.rhigi-related-atc-centered .rhigi-related-atc-label,
.single-product section.related .add_to_cart_button.rhigi-related-atc-centered .rhigi-related-atc-label{
    display:block;
    width:100%;
    text-align:center;
    line-height:1.15;
}

.single-product .related.products .add_to_cart_button.rhigi-related-atc-centered .rhigi-related-atc-icon,
.single-product section.related .add_to_cart_button.rhigi-related-atc-centered .rhigi-related-atc-icon{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    line-height:1;
    pointer-events:none;
}

@media(max-width:520px){
    .single-product .related.products .add_to_cart_button.rhigi-related-atc-centered,
    .single-product section.related .add_to_cart_button.rhigi-related-atc-centered{
        padding-left:42px!important;
        padding-right:42px!important;
    }
    .single-product .related.products .add_to_cart_button.rhigi-related-atc-centered .rhigi-related-atc-icon,
    .single-product section.related .add_to_cart_button.rhigi-related-atc-centered .rhigi-related-atc-icon{
        left:14px;
    }
}


/* Rhigi 8.16.9 — balanced single-product title typography */
body.single-product .product .summary .product_title,
body.single-product .product .summary h1.product_title,
body.single-product h1.entry-title.product_title,
body.single-product .woocommerce div.product .product_title {
    font-size: clamp(2rem, 3vw, 2.75rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
    font-weight: 850 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance;
}

@media (max-width: 768px) {
    body.single-product .product .summary .product_title,
    body.single-product .product .summary h1.product_title,
    body.single-product h1.entry-title.product_title,
    body.single-product .woocommerce div.product .product_title {
        font-size: clamp(1.75rem, 7vw, 2.05rem) !important;
        line-height: 1.16 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 14px !important;
    }
}

@media (max-width: 420px) {
    body.single-product .product .summary .product_title,
    body.single-product .product .summary h1.product_title,
    body.single-product h1.entry-title.product_title,
    body.single-product .woocommerce div.product .product_title {
        font-size: 1.72rem !important;
        line-height: 1.17 !important;
    }
}


/* =========================================================
   Rhigi Commerce Core 9.4.7 — Clean Page Header
   Removes the information strip above storefront content.
   ========================================================= */

.rhigi-shop-promo-strip,
.rhigi-shop-promo-track,
body .rhigi-shop-promo-strip,
body .rhigi-shop-promo-track {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}
