/*
Theme Name: RongerHat
Theme URI: https://rongerhat.com/
Author: RongerHat Team
Author URI: https://rongerhat.com/
Description: Custom WooCommerce theme for RongerHat — light, fast, with popup quick checkout, discount badges, mobile bottom menu, WhatsApp button, PWA support and dark mode.
Version: 1.9.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rongerhat
Tags: e-commerce, woocommerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --rg-primary: #E91E63;
    --rg-primary-dark: #C2185B;
    --rg-green: #00DA62;
    --rg-text: #303030;
    --rg-muted: #5A5A5A;
    --rg-border: #e1e1e1;
    --rg-bg: #ffffff;
    --rg-page: #f6f6f6;
    --rg-bg-soft: #fdf2f7;
    --rg-card: #ffffff;
    --rg-radius: 12px;
}

html[data-theme="dark"] {
    --rg-text: #f0f0f0;
    --rg-muted: #b5b5b5;
    --rg-border: #3a3a3a;
    --rg-bg: #1a1a1a;
    --rg-page: #1a1a1a;
    --rg-bg-soft: #2a1a22;
    --rg-card: #242424;
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--rg-text);
    background: var(--rg-page);
    line-height: 1.6;
}

a { color: var(--rg-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.rg-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* উপরের ঘোষণা */
.rg-announcement { background: var(--rg-primary); color: #fff; text-align: center; font-size: 14px; padding: 7px 12px; }

/* হেডার */
.rg-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--rg-border); }
html[data-theme="dark"] .rg-header { background: #1a1a1a; }
.rg-header-top { display: flex; align-items: center; gap: 20px; padding: 10px 16px; }
.rg-logo { font-size: 26px; font-weight: 700; color: var(--rg-primary); white-space: nowrap; flex: 0 0 auto; }
.rg-logo:hover { text-decoration: none; }
header .custom-logo, .rg-logo img { height: 46px !important; width: auto !important; max-height: 46px !important; }
.rg-main-nav { flex: 0 0 auto; }
.rg-main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.rg-main-nav a { color: #111; font-weight: 600; font-size: 15px; display: block; padding: 6px 0; }
.rg-main-nav a:hover, .rg-main-nav a.rg-active { color: var(--rg-primary); text-decoration: none; }
.rg-search { flex: 1; max-width: 360px; margin-left: auto; }
.rg-search-form { display: flex; }
.rg-search-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px 0 0 8px; font-size: 14px; background: #fff; color: var(--rg-text); }
.rg-search-form button { background: #fff; border: 1px solid #ddd; border-left: none; border-radius: 0 8px 8px 0; padding: 0 12px; cursor: pointer; color: #888; display: flex; align-items: center; }
.rg-search-form button svg { width: 18px; height: 18px; }
.rg-header-icons { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.rg-icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #111; position: relative; }
.rg-icon-btn:hover { color: var(--rg-primary); text-decoration: none; }
.rg-icon-btn svg { width: 22px; height: 22px; }
.rg-ic-fb span { background: #1877F2; color: #fff; font-weight: 700; width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.rg-icon-btn.rg-account { color: var(--rg-primary); border: 1.5px solid var(--rg-primary); border-radius: 50%; }
.rg-cart-count { position: absolute; top: -2px; right: -4px; background: var(--rg-primary); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; padding: 1px 5px; line-height: 1.4; }
/* v1.9.3 — cart badges are always in the DOM; hidden at 0 so JS can show them instantly. */
.rg-cart-count[hidden], .rg-bm-count[hidden] { display: none; }
.rg-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.rg-hamburger span { display: block; width: 22px; height: 2px; background: #111; }

/* হিরো সারি: সাইডবার + স্লাইডার */
.rg-hero-row { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 20px 0 8px; }
.rg-hero-side { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 6px 0; height: 384px; overflow-y: auto; }
.rg-hero-side a { display: block; padding: 9px 18px; color: #111; font-size: 15px; border-bottom: 1px solid #f2f2f2; }
.rg-hero-side a:last-child { border-bottom: none; }
.rg-hero-side a:hover { color: var(--rg-primary); background: #fdf2f7; text-decoration: none; }
.rg-slider { overflow: hidden; }
.rg-slider-track { display: flex; transition: transform .5s ease; }
.rg-slide { flex: 0 0 100%; position: relative; display: block; }
.rg-slide img { width: 100%; height: 384px; object-fit: cover; display: block; border-radius: 12px; }
/* v1.9.3 — banner caption over the real product photo (Bangla headline + price + order button). */
.rg-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 64px 20px 16px; background: linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,0)); color: #fff; border-radius: 0 0 12px 12px; }
.rg-slide-head { font-size: 26px; font-weight: 800; line-height: 1.3; }
.rg-slide-name { font-size: 15px; opacity: .92; }
.rg-slide-price { font-size: 20px; font-weight: 800; margin-top: 2px; }
.rg-slide-price del { opacity: .7; font-weight: 400; font-size: 15px; margin-right: 6px; }
.rg-slide-btn { display: inline-block; margin-top: 8px; background: var(--rg-primary); color: #fff; font-size: 15px; font-weight: 700; padding: 9px 20px; border-radius: 999px; }
.rg-slider-dots, .rg-carousel-dots { text-align: center; margin-top: 12px; }
.rg-slider-dots button, .rg-carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ccc; margin: 0 4px; padding: 0; cursor: pointer; }
.rg-slider-dots button.rg-dot-active, .rg-carousel-dots button.rg-dot-active { background: var(--rg-primary); box-shadow: 0 0 0 3px rgba(233,30,99,.25); }

/* ক্যাটাগরি ক্যারোসেল */
.rg-home-cats { padding: 28px 0 8px; }
.rg-cats-title { font-size: 28px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.rg-cats-title::before { content: ""; width: 6px; height: 28px; background: var(--rg-primary); border-radius: 3px; flex: 0 0 auto; }
.rg-cat-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rg-cat-track::-webkit-scrollbar { display: none; }
.rg-cat-card { flex: 0 0 calc((100% - 96px) / 7); scroll-snap-align: start; position: relative; border-radius: 14px; overflow: hidden; display: block; }
.rg-cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.rg-cat-card img { width: 100%; aspect-ratio: 165 / 170; object-fit: cover; display: block; }
.rg-cat-card-label { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* হোমপেজের পণ্য সেকশন */
.rg-home-section { padding: 28px 0 8px; border-top: 1px solid #ececec; margin-top: 20px; }
.rg-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.rg-home-head h2 { font-size: 28px; margin: 0; }
.rg-view-all { color: #111; font-weight: 600; white-space: nowrap; }
.rg-view-all:hover { color: var(--rg-primary); text-decoration: none; }

/* হোমপেজের পণ্য কার্ড (ডেমো-স্টাইল) */
.rg-home-card { background: var(--rg-card); border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.rg-home-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.rg-home-thumb { display: block; position: relative; overflow: hidden; }
.rg-home-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rg-home-badge { position: absolute; top: 10px; left: 10px; background: #E53935; color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 20px; }
.rg-home-wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--rg-primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); z-index: 2; }
.rg-home-wish:hover { text-decoration: none; }
.rg-home-wish svg { width: 18px; height: 18px; }
.rg-home-wish.rg-wished { background: var(--rg-primary-dark); }
.rg-home-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rg-home-title { font-size: 15px; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-home-title a { color: var(--rg-text); }
.rg-home-title a:hover { color: var(--rg-primary); }
.rg-home-stars { color: #FFB300; letter-spacing: 1px; font-size: 14px; }
.rg-home-count { color: #999; font-size: 13px; }
.rg-home-price { font-size: 17px; }
.rg-home-price del { color: #999; font-size: 14px; margin-left: 6px; }
.rg-home-price ins { color: #111; text-decoration: none; font-weight: 700; }
.rg-home-price .woocommerce-Price-amount { font-weight: 700; font-size: 18px; color: #111; }
.rg-home-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* অর্ডার বাটন — ডেমো-স্টাইল: সাদা, গোলাপি আউটলাইন/লেখা, কার্ট আইকন;
   v1.5 পলিশ: নরম ছায়া, আরামদায়ক প্যাডিং, হোভারে সামান্য উঁচু + গাঢ় গোলাপি */
.rg-btn-order, .rg-buy-now { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #fff; color: var(--rg-primary); border: 1.5px solid var(--rg-primary); border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; box-shadow: 0 2px 8px rgba(233,30,99,.18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.rg-btn-order::before, .rg-buy-now::before { content: ""; width: 20px; height: 20px; flex: 0 0 auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E91E63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3Ccircle cx='9' cy='21' r='1.6' fill='%23E91E63' stroke='none'/%3E%3Ccircle cx='20' cy='21' r='1.6' fill='%23E91E63' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain; }
.rg-btn-order:hover, .rg-buy-now:hover { background: var(--rg-primary); color: #fff; border-color: var(--rg-primary-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(233,30,99,.30); }
.rg-btn-order:hover::before, .rg-buy-now:hover::before { filter: brightness(0) invert(1); }
.rg-btn-order:focus-visible, .rg-buy-now:focus-visible { outline: 2px solid var(--rg-primary-dark); outline-offset: 2px; }
.rg-btn-order:disabled, .rg-buy-now:disabled { opacity: .65; cursor: wait; transform: none; }

/* Out of Stock (v1.9.4): grey label shown instead of Order Now / Add to
   Cart for out-of-stock products; the WhatsApp pre-order button sits
   below it. */
.rg-out-of-stock { display: flex; align-items: center; justify-content: center; width: 100%; background: #f5f5f5; color: #9e9e9e; border: 1.5px solid #e0e0e0; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700; text-align: center; cursor: default; }
.rg-wa-card { margin-top: 8px; }

/* রিভিউ */
.rg-home-reviews { text-align: center; padding: 40px 0 8px; border-top: 1px solid #ececec; margin-top: 24px; }
.rg-reviews-eyebrow { color: #E53935; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.rg-home-reviews h2 { font-size: 30px; margin: 0 0 8px; }
.rg-reviews-sub { color: var(--rg-muted); margin: 0 0 10px; }
.rg-reviews-starsline { margin: 0 0 24px; }
.rg-stars-gold { color: #FFB300; letter-spacing: 2px; }
.rg-reviews-cap { color: var(--rg-muted); }
.rg-review-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rg-review-track::-webkit-scrollbar { display: none; }
.rg-review-shot-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; background: var(--rg-card); border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; text-align: left; }
.rg-review-shot { background: #f0f2f5; aspect-ratio: 4 / 5; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rg-shot-head { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rg-shot-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; }
.rg-shot-logo-text { font-size: 12px; font-weight: 700; color: var(--rg-primary); }
.rg-shot-num { font-size: 13px; font-weight: 600; }
.rg-shot-src { margin-left: auto; font-size: 11px; background: #e8f5e9; color: #1a9e4b; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.rg-shot-bubble { align-self: flex-start; background: #dcf8c6; border-radius: 12px 12px 12px 2px; padding: 10px 12px; font-size: 14px; max-width: 85%; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: #111; }
.rg-review-name { font-size: 16px; margin: 14px 14px 0; }
.rg-review-src { color: var(--rg-muted); font-size: 13px; margin: 2px 14px 0; }
.rg-review-text { color: var(--rg-text); font-size: 14px; margin: 8px 14px; }
.rg-review-stars { color: #FFB300; letter-spacing: 2px; margin: 0 14px 14px; }

/* সাবস্ক্রাইব */
.rg-home-subscribe { text-align: center; background: var(--rg-card); border: 1px solid #e5e5e5; border-radius: 16px; padding: 40px 20px; margin: 40px 0 8px; }
.rg-sub-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: #fdeef5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--rg-primary); }
.rg-sub-icon svg { width: 30px; height: 30px; }
.rg-home-subscribe h2 { font-size: 28px; margin: 0 0 8px; }
.rg-sub-text { color: var(--rg-muted); margin: 0 0 20px; }
.rg-sub-form { display: flex; justify-content: center; max-width: 520px; margin: 0 auto; }
.rg-sub-form input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--rg-border); border-radius: 8px 0 0 8px; font-size: 15px; background: var(--rg-bg); color: var(--rg-text); }
.rg-sub-form button { background: var(--rg-primary); color: #fff; border: none; border-radius: 0 8px 8px 0; padding: 0 24px; font-size: 15px; font-weight: 700; cursor: pointer; }
.rg-sub-form button:hover { background: var(--rg-primary-dark); }
.rg-sub-msg { font-weight: 600; margin: 12px 0 0; }
.rg-sub-msg.rg-ok { color: #1a9e4b; }
.rg-sub-msg.rg-err { color: #d33; }
.rg-sub-note { color: var(--rg-muted); font-size: 13px; margin: 14px 0 0; }

/* সেকশন */
.rg-section { padding: 40px 0 8px; }
.rg-section-title { text-align: center; font-size: 26px; margin: 0 0 6px; }
.rg-section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--rg-primary); margin: 10px auto 0; border-radius: 2px; }
.rg-section-sub { text-align: center; color: var(--rg-muted); margin: 0 0 24px; }
.rg-btn { display: inline-block; background: var(--rg-primary); color: #fff; font-weight: 700; padding: 12px 28px; border-radius: 8px; border: none; cursor: pointer; font-size: 16px; }
.rg-btn:hover { background: var(--rg-primary-dark); text-decoration: none; color: #fff; }

/* পণ্যের গ্রিড ও কার্ড (শপ/ক্যাটাগরি পেজ) */
.rg-section ul.products, ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
/* Grid fix (v1.6): WooCommerce adds ::before/::after clearfix pseudo-elements
   to ul.products. Under display:grid they become grid items — ::before takes
   the first cell (the empty slot) and pushes the 4th card to the next row.
   Removing them fixes both the related-products grid and the shop/category
   grid (4 per row, every row, from the first row). */
ul.products::before, ul.products::after { content: none !important; display: none !important; }
/* Related products: exactly 4 in one row on desktop, 2x2 on mobile. */
.related.products ul.products { grid-template-columns: repeat(4, 1fr); }
ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; }
.rg-product-card { background: var(--rg-card); border: 1px solid var(--rg-border); border-radius: var(--rg-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.rg-product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.rg-product-thumb { display: block; position: relative; }
.rg-product-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rg-sale-badge, span.onsale { position: absolute; top: 10px; left: 10px; background: #E53935; color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 20px; min-height: 0; min-width: 0; line-height: 1.5; }
.rg-product-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rg-product-title { font-size: 15px; margin: 0; line-height: 1.4; }
.rg-product-title a { color: var(--rg-text); }
.rg-product-title a:hover { color: var(--rg-primary); }
.rg-product-price { font-size: 17px; }
.rg-product-price del { color: var(--rg-muted); font-size: 14px; margin-right: 6px; }
.rg-product-price ins { color: var(--rg-primary); font-weight: 700; text-decoration: none; }
.rg-product-price .woocommerce-Price-amount { font-weight: 700; }
.rg-product-rating .star-rating { color: #f2a900; }

/* WhatsApp-এ অর্ডার বাটন */
.rg-wa-order { display: block; text-align: center; margin-top: 8px; background: #25D366; color: #fff; border-radius: 8px; padding: 10px; font-size: 15px; font-weight: 700; }
.rg-wa-order:hover { background: #1eb856; color: #fff; text-decoration: none; }
.rg-wa-single { margin-top: 16px; max-width: 320px; }

/* আরও দেখুন */
.rg-more { text-align: center; margin-top: 18px; }
.rg-btn-outline { background: transparent; color: var(--rg-primary); border: 2px solid var(--rg-primary); }
.rg-btn-outline:hover { background: var(--rg-primary); color: #fff; }


/* ফুটার */
.rg-footer { background: #E0F2F7; color: #333; margin-top: 48px; padding: 40px 0 0; }
html[data-theme="dark"] .rg-footer { background: #1e2a2e; color: #ddd; }
.rg-footer a { color: #333; }
.rg-footer a:hover { color: var(--rg-primary); }
html[data-theme="dark"] .rg-footer a { color: #eee; }
.rg-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rg-footer h4 { color: #111; margin: 0 0 10px; font-size: 16px; }
html[data-theme="dark"] .rg-footer h4 { color: #fff; }
.rg-footer p { margin: 4px 0; font-size: 14px; }
.rg-foot-logo img { max-height: 46px; width: auto; }
.rg-social { display: flex; gap: 10px; margin-top: 10px; }
.rg-social a { width: 36px; height: 36px; border-radius: 50%; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.rg-social a:hover { background: var(--rg-primary); color: #fff; text-decoration: none; }
.rg-pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-pay { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.rg-pay-bkash { color: #E2136E; }
.rg-pay-nagad { color: #F6921E; }
.rg-pay-rocket { color: #8C3494; }
.rg-pay-cod { color: #1a9e4b; }
.rg-footer-bottom { border-top: 1px solid rgba(0,0,0,.08); margin-top: 32px; padding: 14px 0; text-align: center; font-size: 13px; color: #555; }

/* কন্টাক্ট পেজ */
.rg-contact-page { padding: 32px 0; }
.rg-contact-page h1 { font-size: 28px; margin: 0 0 6px; }
.rg-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin-top: 24px; align-items: start; }
.rg-contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.rg-contact-form input, .rg-contact-form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--rg-border); border-radius: 10px; font-size: 15px; font-family: inherit; background: #f5f5f5; color: var(--rg-text); }
.rg-contact-form input:focus, .rg-contact-form textarea:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }

/* মোবাইল বটম মেনু — v1.9: আইকনসহ, মোবাইল + ডেস্কটপ একই রকম */
body { padding-bottom: 60px; }
.rg-bottom-menu { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--rg-bg); border-top: 1px solid var(--rg-border); box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.rg-bottom-menu a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 8px; color: #777; font-size: 11px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.rg-bottom-menu a:hover { color: var(--rg-primary); text-decoration: none; }
.rg-bottom-menu .rg-bm-ic { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 28px; border-radius: 999px; }
.rg-bottom-menu .rg-bm-ic svg { width: 22px; height: 22px; }
.rg-bottom-menu a.rg-active { color: var(--rg-primary); }
.rg-bottom-menu a.rg-active .rg-bm-ic { background: #fbd9e8; }
.rg-bottom-menu a.rg-active .rg-bm-label { font-weight: 800; }
.rg-bottom-menu .rg-bm-count { position: absolute; top: -4px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--rg-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
/* v1.9.3 — "Added ✓ / View Cart" toast after Add to Cart. */
.rg-cart-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(8px); z-index: 9999; background: #111; color: #fff; font-size: 14px; font-weight: 600; padding: 11px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.rg-cart-toast.rg-show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.rg-cart-toast a { color: #fff; text-decoration: underline; font-weight: 700; margin-left: 8px; }

/* WhatsApp ভাসমান বাটন — বটম মেনুর উপরে থাকে (সব স্ক্রিনে) */
.rg-whatsapp-float { position: fixed; right: 18px; bottom: 76px; z-index: 101; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.rg-whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* পপআপ চেকআউট (নতুন ডিজাইন v1.5) */
.rg-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rg-modal[aria-hidden="true"] { display: none; }
.rg-modal-box { background: #fff; color: var(--rg-text); border-radius: 20px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.rg-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--rg-muted); }
.rg-modal-box h3 { margin: 0 0 4px; font-size: 21px; }
.rg-modal-sub { margin: 0 0 14px; color: var(--rg-muted); font-size: 14px; }
.rg-modal-product-box { display: flex; align-items: center; gap: 12px; background: #fdf2f7; border: 1px solid #f8d7e8; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
#rgModalThumb { display: none; width: 80px; height: 80px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
#rgModalThumb[src] { display: block; }
.rg-modal-product-info { min-width: 0; }
.rg-modal-product { color: var(--rg-text); font-weight: 700; margin: 0; font-size: 15px; line-height: 1.4; }
.rg-modal-price { color: var(--rg-primary); font-weight: 700; margin: 2px 0 0; font-size: 16px; }
.rg-modal-box label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.rg-modal-box input[type="text"], .rg-modal-box input[type="tel"], .rg-modal-box input[type="email"], .rg-modal-box input[type="number"], .rg-modal-box select { display: block; width: 100%; height: 48px; margin-top: 5px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; font-family: inherit; background: #f5f5f5; color: var(--rg-text); box-sizing: border-box; }
.rg-modal-box textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; font-family: inherit; background: #f5f5f5; color: var(--rg-text); box-sizing: border-box; min-height: 48px; resize: vertical; }
.rg-modal-box textarea[name="customer_address"] { min-height: 84px; }
.rg-modal-box textarea[name="customer_note"] { min-height: 72px; }
.rg-modal-box input:focus, .rg-modal-box textarea:focus, .rg-modal-box select:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
.rg-order-summary { background: #fdf2f7; border: 1px solid #f8d7e8; border-radius: 12px; padding: 12px 14px; margin: 4px 0 16px; }
.rg-sum-row { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.rg-sum-row span:last-child { font-weight: 600; }
.rg-sum-total { border-top: 1px solid #eee; margin-top: 6px; padding-top: 8px; font-size: 18px; font-weight: 700; }
.rg-sum-total span:last-child { color: var(--rg-primary); }
.rg-modal-total { font-size: 18px; font-weight: 700; }
.rg-submit { width: 100%; background: var(--rg-primary); color: #fff; border: none; border-radius: 12px; padding: 15px; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(233,30,99,.35); }
.rg-submit:hover { background: var(--rg-primary-dark); }
.rg-cod-note { text-align: center; color: var(--rg-muted); font-size: 13px; margin: 8px 0 0; }
.rg-form-msg { text-align: center; font-weight: 600; margin: 12px 0 0; }
.rg-form-msg.rg-ok { color: #1a9e4b; }
.rg-form-msg.rg-err { color: #d33; }

/* চেকআউট ফর্মের ইনপুট — মোডালের মতোই পরিষ্কার ডিজাইন */
.woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="tel"], .woocommerce-checkout input[type="email"], .woocommerce-checkout input[type="number"], .woocommerce-checkout input[type="password"], .woocommerce-checkout textarea, .woocommerce-checkout select { background: #f5f5f5; border: 1px solid #e5e5e5; border-radius: 10px; padding: 11px 12px; }
.woocommerce-checkout input:focus, .woocommerce-checkout textarea:focus, .woocommerce-checkout select:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
.woocommerce-checkout #place_order { background: var(--rg-primary); border-radius: 10px; padding: 14px 28px; font-size: 16px; font-weight: 700; }
.woocommerce-checkout #place_order:hover { background: var(--rg-primary-dark); }
/* v1.9 — চেকআউট "Your order" টেবিলে প্রোডাক্টের ছবি */
.woocommerce-checkout .rg-review-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: 10px; }

/* ল্যান্ডিং পেজ (অ্যাডের জন্য) */
.rg-landing-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0; align-items: start; }
.rg-landing-hero h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.3; }
.rg-landing-price { font-size: 24px; margin-bottom: 10px; }
.rg-landing-price del { color: var(--rg-muted); font-size: 18px; margin-right: 8px; }
.rg-landing-price ins { color: var(--rg-primary); text-decoration: none; font-weight: 700; }
.rg-landing-desc { color: var(--rg-muted); margin: 12px 0 20px; }
.rg-landing-benefits { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 16px 0; font-weight: 600; color: var(--rg-primary); }
.rg-landing-form-box { max-width: 520px; margin: 24px auto; background: var(--rg-card); border: 1px solid var(--rg-border); border-radius: 14px; padding: 24px; }
.rg-landing-form-box h2 { text-align: center; margin: 0 0 16px; }
.rg-landing-form-box label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.rg-landing-form-box input, .rg-landing-form-box textarea, .rg-landing-form-box select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--rg-border); border-radius: 8px; font-size: 15px; font-family: inherit; background: var(--rg-bg); color: var(--rg-text); }
.rg-landing-reviews { padding: 16px 0 32px; }

/* কম্পেয়ার টেবিল */
.rg-compare-wrap { overflow-x: auto; margin-top: 8px; }
.rg-compare { width: 100%; border-collapse: collapse; background: var(--rg-card); }
.rg-compare th, .rg-compare td { border: 1px solid var(--rg-border); padding: 12px; text-align: center; vertical-align: middle; }
.rg-compare th:first-child, .rg-compare td:first-child { text-align: left; font-weight: 700; white-space: nowrap; }
.rg-compare-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.rg-compare-price { font-weight: 700; color: var(--rg-primary); font-size: 17px; }
.rg-compare .rg-buy-now { margin-top: 0; }
.rg-compare .rg-wa-order { font-size: 13px; padding: 8px; }

/* WooCommerce পেজ */
.woocommerce-page .rg-container { padding-top: 24px; padding-bottom: 24px; }

/* ডেলিভারি চার্জ চেকার (পণ্যের পেজে) */
.rg-delivery-check { background: var(--rg-card, #fff8f0); border: 1px solid var(--rg-border, #eee); border-radius: 10px; padding: 12px; margin: 12px 0; }
.rg-delivery-check-title { font-weight: 700; margin: 0 0 8px; }
.rg-delivery-check label { display: block; font-size: 14px; margin-bottom: 8px; }
.rg-delivery-check select, .rg-delivery-check input { width: 100%; padding: 8px; border: 1px solid var(--rg-border, #ddd); border-radius: 8px; margin-top: 4px; }
.rg-delivery-fee-line { font-weight: 700; margin: 8px 0 0; }
.rg-delivery-fee-line .rg-fee-value { color: var(--rg-primary); }

/* পণ্যের পেজ (single product) */
.rg-single { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding-top: 24px; }
.rg-single-gallery { position: relative; min-width: 0; }
.woocommerce-product-gallery { width: 100%; }
.woocommerce-product-gallery .flex-viewport { overflow: hidden; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; display: block; border-radius: var(--rg-radius); }
ol.flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
ol.flex-control-thumbs li { width: 72px; cursor: pointer; float: none; }
ol.flex-control-thumbs img { border: 2px solid var(--rg-border); border-radius: 8px; display: block; }
ol.flex-control-thumbs li img.flex-active { border-color: var(--rg-primary); }
.rg-single-summary { min-width: 0; }
.rg-single-summary .product_title { font-size: 28px; line-height: 1.3; margin: 0 0 10px; }
.rg-single-summary .price { font-size: 24px; margin: 0 0 14px; }
.rg-single-summary .price del { color: var(--rg-muted); font-size: 18px; margin-right: 8px; }
.rg-single-summary .price ins { color: var(--rg-primary); text-decoration: none; font-weight: 700; }
.rg-single-summary .woocommerce-product-details__short-description { color: var(--rg-muted); }
.rg-single-summary form.cart { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.rg-single-summary form.cart .quantity input { width: 64px; padding: 10px; border: 1px solid var(--rg-border); border-radius: 8px; font-size: 15px; text-align: center; background: var(--rg-bg); color: var(--rg-text); }
.rg-single-summary .single_add_to_cart_button { background: var(--rg-primary); color: #fff; border: none; border-radius: 8px; padding: 12px 24px; font-size: 16px; font-weight: 700; cursor: pointer; }
.rg-single-summary .single_add_to_cart_button:hover { background: var(--rg-primary-dark); }
.rg-single-summary .variations select { width: 100%; padding: 10px; border: 1px solid var(--rg-border); border-radius: 8px; font-size: 15px; background: var(--rg-bg); color: var(--rg-text); }
.rg-single-summary .product_meta { margin-top: 16px; color: var(--rg-muted); font-size: 14px; }
.rg-single-summary .product_meta > span { display: block; margin: 2px 0; }
.woocommerce-tabs { margin-top: 32px; }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; border-bottom: 1px solid var(--rg-border); flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li { padding: 10px 18px; font-weight: 700; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; cursor: pointer; }
.woocommerce-tabs ul.tabs li.active { border-color: var(--rg-border); background: var(--rg-card); color: var(--rg-primary); }
.woocommerce-tabs .panel { padding: 20px 0; }
.woocommerce-tabs .panel h2 { font-size: 20px; }
.related.products { margin-top: 32px; }
.related.products > h2 { font-size: 22px; margin: 0 0 16px; }
.rg-buy-now-single { margin: 12px 0 0; }

/* v1.5: হালকা অ্যানিমেশন — শুধু transform/opacity, লেআউট নড়বে না */
@media (prefers-reduced-motion: no-preference) {
    .rg-home-card { transition: transform .3s ease, box-shadow .3s ease; }
    .rg-home-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
    .rg-home-thumb img { transition: transform .4s ease; }
    .rg-home-card:hover .rg-home-thumb img { transform: scale(1.05); }
    .rg-cat-card { transition: transform .3s ease, box-shadow .3s ease; }
    .rg-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
    .rg-js .rg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .rg-js .rg-reveal.rg-inview { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .rg-home-card, .rg-home-thumb img, .rg-cat-card { transition: none; }
}

/* রেসপন্সিভ */
@media (max-width: 1280px) {
    /* ১২৮০px ডেস্কটপে হেডার যেন না ভাঙে: গ্যাপ ও সার্চ একটু ছোট */
    .rg-header-top { gap: 12px; }
    .rg-main-nav ul { gap: 14px; }
    .rg-search { max-width: 280px; }
    .rg-header-icons { gap: 6px; }
}
@media (max-width: 1100px) {
    .rg-cat-card { flex-basis: calc((100% - 80px) / 6); }
    .rg-review-shot-card { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 1024px) {
    /* ট্যাবলেটেও বটম বার নিচে স্থির থাকবে — মোবাইলের মতোই */
    .rg-bottom-menu { display: flex; }
    .rg-whatsapp-float { bottom: 76px; }
    body { padding-bottom: 60px; }
}
@media (max-width: 900px) {
    .rg-section ul.products, ul.products { grid-template-columns: repeat(3, 1fr); }
    .rg-hero-row { grid-template-columns: 1fr; }
    .rg-hero-side { height: auto; display: flex; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
    .rg-hero-side::-webkit-scrollbar { display: none; }
    .rg-hero-side a { white-space: nowrap; border: 1px solid var(--rg-border); border-radius: 999px; padding: 8px 16px; background: #fff; flex: 0 0 auto; }
    .rg-hero-side a:last-child { border-bottom: 1px solid var(--rg-border); }
    .rg-slide img { height: 220px; }
    .rg-review-shot-card { flex-basis: calc((100% - 20px) / 2); }
    .rg-footer-cols { grid-template-columns: 1fr 1fr; }
    .rg-single { grid-template-columns: 1fr; gap: 20px; }
    .rg-contact-grid { grid-template-columns: 1fr; }
    .rg-landing-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .rg-main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rg-border); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
    .rg-main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px; }
    .rg-main-nav a { padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
    .rg-header.rg-nav-open .rg-main-nav { display: block; }
    .rg-hamburger { display: flex; }
    .rg-header-top { flex-wrap: wrap; gap: 12px; }
    .rg-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
    .rg-header-icons { margin-left: auto; }
    .rg-cat-card { flex-basis: 140px; }
    .rg-review-shot-card { flex-basis: 78%; }
    .rg-home-reviews h2 { font-size: 24px; }
    .rg-cats-title, .rg-home-head h2 { font-size: 22px; }
}
@media (max-width: 560px) {
    .rg-section ul.products, ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .rg-footer-cols { grid-template-columns: 1fr; }
    .rg-logo { font-size: 21px; }
    .rg-sub-form { flex-direction: column; gap: 10px; }
    .rg-sub-form input { border-radius: 8px; }
    .rg-sub-form button { border-radius: 8px; padding: 12px; }
}

/* ================= v1.6 ================= */

/* App-install banner (homepage, below the hero) */
.rg-app-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--rg-primary); color: #fff; border-radius: 14px; padding: 18px 22px; margin: 20px 0 4px; flex-wrap: wrap; }
.rg-app-banner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rg-app-banner-text strong { font-size: 18px; }
.rg-app-banner-text span { font-size: 14px; opacity: .92; }
.rg-btn-light { background: #fff; color: var(--rg-primary); }
.rg-btn-light:hover { background: #fdf2f7; color: var(--rg-primary-dark); }

/* PWA: install button (header) + footer box */
.rg-install-btn { background: var(--rg-primary); color: #fff; border: none; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rg-install-btn:hover { background: var(--rg-primary-dark); }
.rg-install-btn[hidden] { display: none; }
.rg-pwa-box { padding: 24px 16px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rg-pwa-box .rg-btn[disabled] { opacity: .55; cursor: not-allowed; }
.rg-push-status { font-size: 14px; font-weight: 600; margin: 0; color: var(--rg-muted); }

/* Homepage product carousel — slow one-by-one auto-slide */
.rg-prod-carousel { overflow: hidden; }
.rg-prod-track { display: flex; gap: 16px; transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.rg-prod-track.rg-noanim { transition: none; }
.rg-prod-track .rg-home-card { flex: 0 0 calc((100% - 64px) / 5); min-width: 0; }
.rg-prod-dots { text-align: center; margin-top: 14px; }
.rg-prod-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ccc; margin: 0 4px; padding: 0; cursor: pointer; }
.rg-prod-dots button.rg-dot-active { background: var(--rg-primary); box-shadow: 0 0 0 3px rgba(233,30,99,.25); }

/* All Products feed (v1.7) — infinite-scroll grid, same 4-column grid
   as the shop/category grids (3 at <=900px, 2 on mobile). Cards are the
   same .rg-home-card as the other homepage sections. */
.rg-feed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rg-feed-grid:empty { display: none; }
@media (max-width: 900px) { .rg-feed-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .rg-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.rg-feed-status { text-align: center; padding: 24px 0 8px; }
.rg-feed-loader { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--rg-muted); font-size: 15px; font-weight: 600; }
.rg-feed-spinner { width: 22px; height: 22px; border: 3px solid #f3c6d8; border-top-color: var(--rg-primary); border-radius: 50%; animation: rg-feed-spin .8s linear infinite; }
@keyframes rg-feed-spin { to { transform: rotate(360deg); } }
.rg-feed-end { color: var(--rg-muted); font-size: 15px; font-weight: 600; margin: 0; }
.rg-feed-error { color: var(--rg-text); font-size: 15px; margin: 0; }
.rg-feed-retry { background: #fff; border: 1.5px solid var(--rg-primary); color: var(--rg-primary); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 700; cursor: pointer; margin-left: 8px; }
.rg-feed-retry:hover { background: var(--rg-primary); color: #fff; }
.rg-feed-noscript { text-align: center; color: var(--rg-muted); font-size: 15px; }

/* Product-grid entrance: cards slide in from the side, one after another.
   Visible slide (not a faint fade), quick per card, staggered per column.
   Transform/opacity only. No animation when the user prefers reduced
   motion, and no hidden state when JavaScript is off (the .rg-js hook). */
@media (prefers-reduced-motion: no-preference) {
    .rg-js ul.products.rg-grid-anim li.product,
    .rg-js .rg-home-section.rg-reveal:not(.rg-home-feed) .rg-home-card {
        opacity: 0;
        transform: translateX(28px);
        transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
    }
    .rg-js ul.products.rg-grid-anim.rg-inview li.product,
    .rg-js .rg-home-section.rg-reveal:not(.rg-home-feed).rg-inview .rg-home-card {
        opacity: 1;
        transform: translateX(0);
    }
    /* Stagger: one column after another (0 / 70 / 140 / 210 ms). */
    .rg-js ul.products.rg-grid-anim li.product:nth-child(4n+1),
    .rg-js .rg-home-section.rg-reveal:not(.rg-home-feed) .rg-home-card:nth-child(5n+1) { transition-delay: 0ms; }
    .rg-js ul.products.rg-grid-anim li.product:nth-child(4n+2),
    .rg-js .rg-home-section.rg-reveal:not(.rg-home-feed) .rg-home-card:nth-child(5n+2) { transition-delay: 70ms; }
    .rg-js ul.products.rg-grid-anim li.product:nth-child(4n+3),
    .rg-js .rg-home-section.rg-reveal:not(.rg-home-feed) .rg-home-card:nth-child(5n+3) { transition-delay: 140ms; }
    .rg-js ul.products.rg-grid-anim li.product:nth-child(4n+4),
    .rg-js .rg-home-section.rg-reveal:not(.rg-home-feed) .rg-home-card:nth-child(5n+4) { transition-delay: 210ms; }
    .rg-js .rg-home-section.rg-reveal:not(.rg-home-feed) .rg-home-card:nth-child(5n+5) { transition-delay: 280ms; }
    /* All Products feed (v1.7): each loaded batch slides in one card at
       a time, same visible slide as the other grids. theme.js adds
       .rg-feed-new to each card on insert, then removes it on the next
       frame; the 4-column stagger matches the feed grid below. The
       feed is excluded from the section rule above, so only this rule
       controls its cards. */
    .rg-js .rg-feed-grid .rg-home-card {
        transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
    }
    .rg-js .rg-feed-grid .rg-home-card.rg-feed-new {
        opacity: 0;
        transform: translateX(28px);
    }
    .rg-js .rg-feed-grid .rg-home-card:nth-child(4n+1) { transition-delay: 0ms; }
    .rg-js .rg-feed-grid .rg-home-card:nth-child(4n+2) { transition-delay: 70ms; }
    .rg-js .rg-feed-grid .rg-home-card:nth-child(4n+3) { transition-delay: 140ms; }
    .rg-js .rg-feed-grid .rg-home-card:nth-child(4n+4) { transition-delay: 210ms; }
}
@media (prefers-reduced-motion: reduce) {
    .rg-prod-track { transition: none; }
    .rg-feed-spinner { animation: none; }
    .rg-zoom-pane { transition: none; }
}

/* Card buttons: Order Now (outline) + Add to Cart (solid pink). */
.rg-product-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.rg-product-actions .button, .rg-home-actions .button {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: var(--rg-primary); color: #fff; border: 1.5px solid var(--rg-primary);
    border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
    text-align: center; box-shadow: 0 2px 8px rgba(233,30,99,.18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.rg-product-actions .button:hover, .rg-home-actions .button:hover {
    background: var(--rg-primary-dark); color: #fff; text-decoration: none;
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(233,30,99,.30);
}
.rg-product-actions .button.loading { opacity: .65; }
.rg-product-actions .button.added { background: #1a9e4b; border-color: #1a9e4b; }
.rg-compare .button { display: inline-flex; align-items: center; justify-content: center; background: var(--rg-primary); color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.rg-compare .button:hover { background: var(--rg-primary-dark); color: #fff; text-decoration: none; }

/* Single product — top row (breadcrumb + share/copy) */
.rg-single-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 0; }
.rg-single-top .woocommerce-breadcrumb { margin: 0; font-size: 14px; color: var(--rg-muted); }
.rg-single-top .woocommerce-breadcrumb a { color: var(--rg-muted); }
.rg-single-share { display: flex; align-items: center; gap: 8px; }
.rg-share-btn { background: #fff; border: 1px solid var(--rg-border); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--rg-text); }
.rg-share-btn:hover { border-color: var(--rg-primary); color: var(--rg-primary); }
.rg-copy-msg { font-size: 13px; font-weight: 600; color: #1a9e4b; min-width: 0; }

/* Single product — gallery (large main image + square thumbnails) */
.rg-single { max-width: 1280px; }
.rg-gallery-main { border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; position: relative; cursor: zoom-in; }
.rg-gallery-main img { width: 100%; height: 600px; object-fit: cover; display: block; }
/* v1.8: hover magnifier — full-size image at native resolution, panning
   with the mouse. Shown only on fine-pointer devices (see JS). */
.rg-zoom-pane { position: absolute; inset: 0; z-index: 2; background-repeat: no-repeat; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility .15s; }
.rg-zoom-pane.rg-zoom-on { opacity: 1; visibility: visible; }
.rg-zoom-hint { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(255,255,255,.92); color: var(--rg-text); border: 1px solid var(--rg-border); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .rg-zoom-hint-hover { display: block; } }
@media (hover: none) { .rg-zoom-hint-tap { display: block; } }
/* v1.8: fullscreen image viewer (tap on mobile, click on desktop).
   z-index 150: above header/bottom menu/WhatsApp float, below the
   quick-order modal (200) so the modal always stays on top. */
.rg-lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.rg-lightbox.rg-lb-open { display: flex; }
.rg-lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.rg-lb-close { position: absolute; top: 12px; right: 18px; background: none; border: none; font-size: 36px; line-height: 1; color: #fff; cursor: pointer; padding: 4px 10px; }
.rg-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rg-lb-prev { left: 14px; }
.rg-lb-next { right: 14px; }
.rg-lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 999px; }
.rg-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.rg-gallery-thumb { width: 105px; height: 105px; padding: 0; border: 2px solid var(--rg-border); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; flex: 0 0 auto; }
.rg-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-gallery-thumb.rg-thumb-active { border-color: var(--rg-primary); box-shadow: 0 0 0 2px rgba(233,30,99,.25); }

/* Single product — buy box */
.rg-single-summary .product_title { font-size: 32px; font-weight: 800; color: #111; }
.rg-single-rating { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.rg-stars-empty { color: #ccc; letter-spacing: 2px; font-size: 16px; }
.rg-single-rating .star-rating { color: #FFB300; }
.rg-single-rating a { color: var(--rg-muted); font-size: 14px; }
.rg-single-summary .price { font-size: 26px; font-weight: 700; color: #111; }
.rg-single-summary .price del { color: var(--rg-muted); font-size: 19px; margin-right: 8px; }
.rg-single-summary .price ins { color: #111; text-decoration: none; font-weight: 700; }
.rg-discount-badge { display: inline-block; background: #E53935; color: #fff; font-weight: 700; font-size: 14px; padding: 3px 9px; border-radius: 4px; vertical-align: middle; margin-left: 10px; line-height: 1.4; }
.rg-single-summary .woocommerce-product-details__short-description { color: var(--rg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Quantity pill (− 1 +) */
.rg-qty-pill { display: inline-flex; align-items: stretch; border: 1px solid var(--rg-border); border-radius: 8px; overflow: hidden; background: var(--rg-bg); }
.rg-qty-btn { width: 38px; border: none; background: #f5f5f5; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--rg-text); line-height: 1; padding: 0; }
.rg-qty-btn:hover { background: #fdf2f7; color: var(--rg-primary); }
.rg-qty-pill input.qty { border: none; width: 48px; padding: 10px 4px; text-align: center; font-size: 15px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.rg-qty-pill input.qty::-webkit-outer-spin-button, .rg-qty-pill input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rg-single-summary form.cart .quantity { margin: 0; }
.rg-wa-single { margin-top: 12px; max-width: none; width: 100%; padding: 13px; font-size: 16px; }
.rg-buy-now-single { margin: 12px 0 0; }

/* Cart page — two columns, white cards, pink checkout */
.woocommerce-cart { background: var(--rg-page); }
.woocommerce-cart .woocommerce-cart-form, .woocommerce-cart .cart-collaterals { background: #fff; border: 1px solid #ececec; border-radius: 14px; }
.woocommerce-cart .woocommerce-cart-form { padding: 8px 16px; }
.woocommerce-cart table.shop_table { border: none; margin: 0; }
.woocommerce-cart table.shop_table th { font-size: 14px; color: var(--rg-muted); }
.woocommerce-cart table.shop_table td { border-top: 1px solid #f0f0f0; padding: 16px 8px; vertical-align: middle; }
.woocommerce-cart .product-thumbnail img { width: 100px; height: 100px; object-fit: cover; border-radius: 10px; }
.woocommerce-cart .product-name a { color: #111; font-weight: 700; font-size: 15px; }
.woocommerce-cart .product-price .woocommerce-Price-amount { color: var(--rg-primary); font-weight: 700; font-size: 16px; }
.woocommerce-cart .product-subtotal .woocommerce-Price-amount { font-weight: 700; }
.woocommerce-cart .quantity input.qty { width: 56px; text-align: center; border: 1px solid var(--rg-border); border-radius: 8px; padding: 8px 4px; }
.woocommerce-cart a.remove { color: #E53935 !important; font-size: 22px; }
.woocommerce-cart a.remove:hover { background: none; color: #b71c1c !important; }
.woocommerce-cart .cart-collaterals { padding: 20px; }
.woocommerce-cart .cart_totals h2 { font-size: 20px; margin: 0 0 12px; }
.woocommerce-cart .cart_totals table.shop_table td, .woocommerce-cart .cart_totals table.shop_table th { padding: 8px 0; }
.woocommerce-cart .cart_totals .order-total td, .woocommerce-cart .cart_totals .order-total th { font-size: 19px; border-top: 1px solid #eee; padding-top: 12px; }
.woocommerce-cart .checkout-button { background: var(--rg-primary) !important; color: #fff !important; border-radius: 10px !important; padding: 15px !important; font-size: 16px !important; font-weight: 700 !important; width: 100%; text-align: center; }
.woocommerce-cart .checkout-button:hover { background: var(--rg-primary-dark) !important; }
.woocommerce-cart .wc-proceed-to-checkout { margin-top: 16px; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a { display: block; }
.woocommerce-cart .rg-continue-shopping { display: block; text-align: center; background: #fff; color: var(--rg-primary); border: 1.5px solid var(--rg-primary); border-radius: 10px; padding: 12px; font-weight: 700; margin-top: 10px; }
.woocommerce-cart .rg-continue-shopping:hover { background: var(--rg-primary); color: #fff; text-decoration: none; }
/* No coupon field on the cart (or checkout) — the store does not use coupons. */
.woocommerce-cart .coupon, .woocommerce-checkout .woocommerce-form-coupon-toggle, .woocommerce-checkout .woocommerce-form-coupon { display: none !important; }
/* Cart delivery-area picker */
.rg-cart-area { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.rg-cart-area label { font-weight: 700; }
.rg-cart-area select { padding: 10px 12px; border: 1px solid var(--rg-border); border-radius: 10px; font-size: 15px; background: #f5f5f5; color: var(--rg-text); min-width: 180px; }
.rg-cart-area select:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
.rg-cart-fee-note { font-weight: 600; color: var(--rg-primary); }
/* Empty cart */
.rg-cart-empty { text-align: center; padding: 48px 16px; max-width: 520px; margin: 0 auto; }
.rg-cart-empty-icon { width: 120px; height: 120px; margin: 0 auto 20px; background: #E3F2FD; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #64B5F6; }
.rg-cart-empty-icon svg { width: 56px; height: 56px; }
.rg-cart-empty h2 { font-size: 26px; margin: 0 0 8px; }
.rg-cart-empty p { color: var(--rg-muted); margin: 0 0 20px; }
/* In-page remove confirm (no native dialogs) */
.rg-confirm-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rg-confirm-box { background: #fff; border-radius: 14px; padding: 24px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.rg-confirm-box p { margin: 0 0 16px; font-size: 16px; }
.rg-confirm-box .rg-btn { margin: 0 4px; }
.rg-cart-removed-note { background: #E8F5E9; color: #1a9e4b; border-radius: 10px; padding: 12px 16px; font-weight: 700; text-align: center; margin-bottom: 16px; }

/* Track order page */
.rg-track { max-width: 560px; margin: 0 auto; }
.rg-track h2 { font-size: 26px; margin: 0 0 16px; }
.rg-track-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.rg-track-form input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; background: #f5f5f5; color: var(--rg-text); }
.rg-track-form input:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
.rg-track-error { color: #d33; font-weight: 600; margin-top: 16px; }
.rg-track-result { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 20px; margin-top: 20px; }
.rg-track-result p { margin: 6px 0; }
.rg-btn-track { display: inline-block; margin-top: 12px; }

/* Cart page — two columns on desktop: items left, summary right */
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.woocommerce-cart .woocommerce .woocommerce-notices-wrapper, .woocommerce-cart .woocommerce .woocommerce-message { grid-column: 1 / -1; }

/* My Account — compact, same 1280px container as the rest of the site */
.woocommerce-account .woocommerce { font-size: 15px; }
.woocommerce-account .woocommerce-MyAccount-navigation { width: 220px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid #f0f0f0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 12px; color: var(--rg-text); font-weight: 600; font-size: 14px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--rg-primary); text-decoration: none; background: #fdf2f7; }
.woocommerce-account .woocommerce-MyAccount-content { font-size: 15px; line-height: 1.55; }
.woocommerce-account .woocommerce-MyAccount-content h2, .woocommerce-account .woocommerce-MyAccount-content h3 { font-size: 19px; margin: 0 0 12px; }
.woocommerce-account table.shop_table { font-size: 14px; }
.woocommerce-account table.shop_table th, .woocommerce-account table.shop_table td { padding: 10px 8px; }
.woocommerce-account .woocommerce-Address address { font-size: 14px; line-height: 1.6; }
.woocommerce-account .woocommerce-EditAccountForm fieldset { margin: 16px 0; }
.woocommerce-account .woocommerce-EditAccountForm legend { font-weight: 700; font-size: 15px; }
.woocommerce-account input[type="text"], .woocommerce-account input[type="tel"], .woocommerce-account input[type="email"], .woocommerce-account input[type="password"], .woocommerce-account textarea, .woocommerce-account select { background: #f5f5f5; border: 1px solid #e5e5e5; border-radius: 10px; padding: 11px 12px; font-size: 15px; width: 100%; }
.woocommerce-account input:focus, .woocommerce-account textarea:focus, .woocommerce-account select:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
.woocommerce-account .woocommerce-Button, .woocommerce-account button[type="submit"] { background: var(--rg-primary); color: #fff; border: none; border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; }
.woocommerce-account .woocommerce-Button:hover, .woocommerce-account button[type="submit"]:hover { background: var(--rg-primary-dark); }
/* Saved addresses */
.rg-addr-list { display: grid; gap: 12px; margin: 0 0 20px; }
.rg-addr-item { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 14px 16px; }
.rg-addr-item strong { font-size: 15px; }
.rg-addr-item p { margin: 4px 0 10px; color: var(--rg-muted); font-size: 14px; }
.rg-addr-item .rg-btn { padding: 8px 16px; font-size: 14px; margin-right: 6px; }
.rg-btn-secondary { background: #fff; color: var(--rg-primary); border: 1.5px solid var(--rg-primary); }
.rg-btn-secondary:hover { background: var(--rg-primary); color: #fff; }
.rg-addr-form label, .rg-phone-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.rg-addr-form input, .rg-addr-form textarea, .rg-addr-form select, .rg-phone-form input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; background: #f5f5f5; color: var(--rg-text); }
.rg-addr-form input:focus, .rg-addr-form textarea:focus, .rg-addr-form select:focus, .rg-phone-form input:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
/* Login (one form: mobile number or email + password; passwordless below) */
.rg-login-wrap { max-width: 520px; margin: 0 auto; }
.rg-login-wrap h2 { font-size: 22px; margin: 0 0 16px; }
.rg-login-wrap .form-row { margin-bottom: 14px; }
.rg-login-wrap label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.rg-login-wrap .woocommerce-Input { background: #f5f5f5; border: 1px solid #e5e5e5; border-radius: 10px; padding: 11px 12px; font-size: 15px; width: 100%; }
.rg-login-wrap .woocommerce-Input:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
.rg-phone-login { background: #fdf2f7; border: 1px solid #f8d7e8; border-radius: 12px; padding: 18px; margin-top: 24px; }
.rg-phone-login h3 { font-size: 18px; margin: 0 0 12px; }
.rg-phone-login label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.rg-phone-login input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; background: #fff; color: var(--rg-text); }
.rg-phone-login input:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); }
.rg-phone-login .rg-phone-msg { font-weight: 600; margin: 10px 0 0; }
.rg-phone-login .rg-phone-msg.rg-err { color: #d33; }

/* Checkout — ONE form design everywhere (classic shortcode + block).
   v1.8: the form is our own pink order form, like the quick-order
   modal. The grid has exactly two children (details card + review
   card) so the "Your order" table always sits under its heading. */
.woocommerce-checkout form.checkout.rg-checkout-form { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.woocommerce-checkout form.checkout .col2-set { float: none; width: 100%; }
.woocommerce-checkout form.checkout .col2-set .col-1, .woocommerce-checkout form.checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .rg-checkout-card { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 20px; }
.woocommerce-checkout form.checkout h3 { font-size: 20px; margin: 0 0 14px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr; gap: 0; }
.woocommerce-checkout .form-row { margin-bottom: 14px; padding: 0; }
.woocommerce-checkout .form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; line-height: 1.4; }
.woocommerce-checkout .form-row label .optional { color: var(--rg-muted); font-weight: 400; }
/* Checkout inputs — same look as the quick-order modal fields. */
.woocommerce-checkout .rg-checkout-card input[type="text"], .woocommerce-checkout .rg-checkout-card input[type="tel"], .woocommerce-checkout .rg-checkout-card input[type="email"], .woocommerce-checkout .rg-checkout-card select { display: block; width: 100%; height: 48px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; font-family: inherit; background: #f5f5f5; color: var(--rg-text); box-sizing: border-box; }
.woocommerce-checkout .rg-checkout-card textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; font-family: inherit; background: #f5f5f5; color: var(--rg-text); box-sizing: border-box; min-height: 48px; resize: vertical; }
/* v1.9.3 — every billing field the same size: Name is full width like Mobile
   (WooCommerce form-row-first 47% overridden), selects match the text inputs. */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last { width: 100%; float: none; }
.woocommerce-checkout .rg-checkout-card textarea#billing_address_1 { min-height: 84px; }
.woocommerce-checkout .rg-checkout-card textarea#order_comments { min-height: 72px; }
.woocommerce-checkout .rg-checkout-card input:focus, .woocommerce-checkout .rg-checkout-card textarea:focus, .woocommerce-checkout .rg-checkout-card select:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); background: #fff; }
/* Order review — the card IS the side card, so the inner box is plain. */
.woocommerce-checkout .rg-checkout-review #order_review { background: transparent; border: none; border-radius: 0; padding: 0; }
.woocommerce-checkout #order_review_heading { font-size: 20px; margin: 0 0 12px; }
.woocommerce-checkout #order_review table.shop_table { border: none; font-size: 15px; }
.woocommerce-checkout #order_review table.shop_table td, .woocommerce-checkout #order_review table.shop_table th { padding: 8px 0; border-top: 1px solid #f0f0f0; }
.woocommerce-checkout #order_review table.shop_table .order-total td, .woocommerce-checkout #order_review table.shop_table .order-total th { font-size: 19px; }
.woocommerce-checkout #order_review table.shop_table .order-total .woocommerce-Price-amount { color: var(--rg-primary); }
/* Confirm Order — big pink button, like the modal's submit. */
.woocommerce-checkout #place_order { width: 100%; background: var(--rg-primary); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 17px; font-weight: 700; cursor: pointer; }
.woocommerce-checkout #place_order:hover { background: var(--rg-primary-dark); }
.woocommerce-checkout .rg-cod-note { font-size: 14px; }
/* Hide the checkout "Create an account" block — accounts are auto-created. */
.woocommerce-checkout .woocommerce-account-fields, .woocommerce-checkout .create-account { display: none !important; }
/* Checkout block (if in use) — same rounded inputs, pink focus, pink button. */
.wc-block-checkout__form input, .wc-block-checkout__form textarea, .wc-block-checkout__form select, .wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-combobox input { background: #f5f5f5 !important; border: 1px solid #e5e5e5 !important; border-radius: 10px !important; }
.wc-block-checkout__form input:focus, .wc-block-checkout__form textarea:focus, .wc-block-checkout__form select:focus { border-color: var(--rg-primary) !important; box-shadow: 0 0 0 3px rgba(233,30,99,.15) !important; background: #fff !important; }
.wc-block-components-checkout-place-order-button { background: var(--rg-primary) !important; border-radius: 10px !important; font-weight: 700 !important; }

/* Reviews — chat-screenshot style cards (placeholder data, ours only) */
.rg-review-shot { background: #f0f2f5; aspect-ratio: auto; min-height: 380px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rg-shot-head { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); flex: 0 0 auto; }
.rg-shot-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; flex: 0 0 auto; }
.rg-shot-id { display: flex; flex-direction: column; min-width: 0; }
.rg-shot-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.rg-shot-num { font-size: 12px; color: var(--rg-muted); white-space: nowrap; line-height: 1.3; }
.rg-shot-src { margin-left: auto; font-size: 11px; background: #e8f5e9; color: #1a9e4b; border-radius: 999px; padding: 2px 8px; font-weight: 700; white-space: nowrap; }
.rg-shot-chat { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: flex-end; }
.rg-shot-bubble { padding: 12px 14px; font-size: 15px; line-height: 1.5; max-width: 88%; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: #111; }
.rg-shot-bubble.rg-shot-in { align-self: flex-start; background: #fff; border-radius: 14px 14px 14px 4px; }
.rg-shot-bubble.rg-shot-out { align-self: flex-end; background: #dcf8c6; border-radius: 14px 14px 4px 14px; }
.rg-review-foot { padding: 12px 14px 14px; }
.rg-review-name { font-size: 16px; margin: 0; }
.rg-review-stars { color: #FFB300; letter-spacing: 2px; margin: 0; }

/* Thank-you page — account setup prompt (optional, skippable) */
.rg-acct-prompt { background: #fdf2f7; border: 1px solid #f8d7e8; border-radius: 14px; padding: 20px; margin: 24px 0; max-width: 520px; }
.rg-acct-prompt h3 { font-size: 19px; margin: 0 0 6px; }
.rg-acct-prompt p { margin: 0 0 14px; color: var(--rg-muted); }
.rg-acct-prompt label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.rg-acct-prompt input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; background: #fff; color: var(--rg-text); }
.rg-acct-prompt input:focus { border-color: var(--rg-primary); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.15); }
.rg-acct-skip { display: inline-block; margin-left: 12px; color: var(--rg-muted); font-weight: 600; font-size: 14px; }
.rg-acct-skip:hover { color: var(--rg-primary); text-decoration: none; }
.rg-acct-msg { font-weight: 600; margin: 10px 0 0; }
.rg-acct-msg.rg-ok { color: #1a9e4b; }
.rg-acct-msg.rg-err { color: #d33; }
.rg-track-btn { display: inline-block; margin-top: 12px; }

/* Thank-you পেজ (v1.9.4) — old Shopify landing thank-you, adapted:
   centred card, big green tick, summary box with green right-aligned
   values, dashed divider, note + buttons. English, pink theme.
   Mobile ≤600px: full-bleed card, full-width buttons, no horizontal
   scroll. */
.rg-thankyou-page { max-width: 600px; margin: 0 auto; padding: 24px 0 8px; }
.rg-ty-card { background: #fff; border: 1px solid #ececec; border-radius: 16px; box-shadow: 0 4px 18px rgba(0,0,0,.05); overflow: hidden; }
.rg-ty-inner { padding: 28px 20px 30px; text-align: center; }
.rg-ty-tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #25D365; color: #fff; font-size: 40px; line-height: 72px; font-weight: 700; }
.rg-ty-inner h2 { margin: 2px 0 8px; font-size: 26px; color: var(--rg-text); }
.rg-ty-sub { color: var(--rg-muted); font-size: 15px; line-height: 1.7; margin: 0 0 20px; }
.rg-ty-box { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 14px; padding: 16px; text-align: left; margin: 0 0 20px; }
.rg-ty-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; font-size: 15px; padding: 5px 0; color: #374151; }
.rg-ty-row b { color: #1a9e4b; overflow-wrap: anywhere; text-align: right; }
.rg-ty-meta { display: block; font-size: 13px; color: var(--rg-muted); }
.rg-ty-meta dl { margin: 2px 0 0; }
.rg-ty-meta dt, .rg-ty-meta dd { display: inline; margin: 0; }
.rg-ty-row.rg-ty-due { font-weight: 700; }
.rg-ty-row.rg-ty-due b { font-size: 17px; }
.rg-ty-box hr { border: 0; border-top: 1px dashed #e0e0e0; margin: 8px 0; }
.rg-ty-customer { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 14px; padding: 14px 16px; text-align: left; margin: 0 0 20px; }
.rg-ty-customer h4 { margin: 0 0 6px; font-size: 15px; }
.rg-ty-customer p { margin: 3px 0; font-size: 14px; }
.rg-ty-note { color: var(--rg-muted); font-size: 14px; line-height: 1.7; margin: 0; }
.rg-ty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rg-ty-actions .rg-btn { flex: 1 1 auto; text-align: center; }
@media (max-width: 600px) {
    .rg-thankyou-page { padding: 0; }
    .rg-ty-card { border-radius: 0; box-shadow: none; border-left: none; border-right: none; }
    .rg-ty-inner { padding: 22px 16px 26px; }
    .rg-ty-inner h2 { font-size: 23px; }
    .rg-ty-tick { width: 64px; height: 64px; line-height: 64px; font-size: 34px; }
    .rg-ty-actions .rg-btn { flex: 1 1 100%; }
}

/* Modal: saved-address select + discount row + save-address checkbox */
.rg-check-label { display: flex !important; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.rg-check-label input { width: auto !important; margin: 0 !important; }
.rg-sum-discount span:last-child { color: #1a9e4b; }

/* v1.6 responsive */
@media (max-width: 1100px) {
    .rg-prod-track .rg-home-card { flex-basis: calc((100% - 48px) / 4); }
}
@media (max-width: 900px) {
    .woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
    .woocommerce-checkout form.checkout.rg-checkout-form { grid-template-columns: 1fr; }
    /* v1.9.3 — floating WhatsApp button must never cover checkout content on mobile. */
    .woocommerce-checkout .rg-whatsapp-float { display: none; }
    .rg-gallery-main img { height: 420px; }
    .rg-single-summary .product_title { font-size: 26px; }
    .rg-app-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .related.products ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 6px; }
    .woocommerce-account .woocommerce-MyAccount-navigation li { border: 1px solid #eee; border-radius: 999px; }
    .woocommerce-account .woocommerce-MyAccount-navigation li a { padding: 8px 14px; }
    .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { border-radius: 999px; }
    .rg-prod-track .rg-home-card { flex-basis: calc((100% - 12px) / 2); }
    .rg-gallery-main img { height: 340px; }
    .rg-gallery-thumb { width: 72px; height: 72px; }
}
@media (max-width: 560px) {
    .rg-gallery-main img { height: 300px; }
    .rg-gallery-thumb { width: 64px; height: 64px; }
    .rg-single-top { flex-direction: column; align-items: flex-start; }
    .rg-cart-area select { min-width: 0; width: 100%; }
    .woocommerce-checkout .rg-checkout-card { padding: 14px; }
    .woocommerce-checkout #place_order { width: 100%; }
    .woocommerce-checkout #order_review table.shop_table { font-size: 14px; }
    .rg-slide-cap { padding: 44px 14px 12px; }
    .rg-slide-head { font-size: 19px; }
    .rg-slide-price { font-size: 17px; }
}
