/*
Theme Name: Riwayat Bazaar Signature
Theme URI: https://riwayatbazaar.com/
Author: Riwayat Bazaar
Description: Responsive cream, maroon and dark green WooCommerce storefront for Riwayat Bazaar.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: riwayat-bazaar-signature
*/

:root{--cream:#fbf7ed;--paper:#fffdf8;--beige:#efe3ce;--olive:#6b1822;--olive-dark:#3f1018;--gold:#b58b45;--ink:#30231f;--muted:#766b5e;--line:#e7dcc9;--red:#7b101b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.site-topbar{background:var(--olive-dark);color:#fff8e9;text-align:center;padding:9px 16px;font-size:13px;letter-spacing:.03em}.site-header{background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:30}.header-main{max-width:1280px;margin:auto;display:grid;grid-template-columns:245px minmax(240px,1fr) auto;gap:24px;align-items:center;padding:15px 24px}.brand img{display:block;width:225px;max-height:76px;object-fit:contain}.search-form{display:flex;border:1px solid #d7c7ad;border-radius:8px;overflow:hidden;background:#fff}.search-form input{border:0;outline:0;padding:13px 15px;width:100%;font-size:14px;background:transparent}.search-form button{border:0;background:var(--olive);color:white;padding:0 18px;font-size:17px;cursor:pointer}.header-actions{display:flex;align-items:center;gap:18px}.header-action{font-size:12px;text-align:center;display:grid;gap:3px;white-space:nowrap}.header-action .ico{font-size:22px;line-height:1}.cart-count{display:inline-flex;background:var(--red);color:#fff;border-radius:50%;font-size:10px;min-width:17px;height:17px;align-items:center;justify-content:center;vertical-align:top;margin-left:-7px}.main-nav{border-top:1px solid var(--line);}.nav-inner{max-width:1280px;margin:auto;padding:0 24px;display:flex;align-items:center;gap:26px;min-height:48px}.nav-inner a{font-size:14px;font-weight:600}.nav-inner a:hover{color:var(--olive)}.mobile-menu-btn{display:none;border:1px solid var(--line);background:white;border-radius:7px;padding:9px 12px;font-size:20px}.hero{max-width:1280px;margin:22px auto 0;padding:0 22px}.hero-panel{min-height:430px;border-radius:18px;overflow:hidden;background:linear-gradient(90deg,rgba(251,247,237,.97) 0%,rgba(251,247,237,.91) 39%,rgba(251,247,237,.05) 100%),url('assets/images/Biryani Masala 50gm.jpg') right center/cover no-repeat;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;padding:48px 54px;border:1px solid #eadcc5}.eyebrow{color:var(--olive);font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.hero h1{font-family:Georgia,serif;font-size:clamp(42px,5vw,68px);line-height:.98;margin:16px 0;color:#45281b;max-width:620px}.hero p{font-size:18px;line-height:1.55;color:#57483b;max-width:480px}.btn{display:inline-block;background:var(--olive);color:#fff;padding:14px 22px;border-radius:30px;font-weight:700;font-size:14px;margin-top:12px}.btn:hover{background:var(--olive-dark);color:#fff}.hero-products{display:flex;justify-content:center;align-items:end;gap:12px}.hero-products img{width:30%;max-height:300px;object-fit:contain;filter:drop-shadow(0 10px 12px #4c3a2633)}.trust-strip{max-width:1236px;margin:18px auto 0;display:grid;grid-template-columns:repeat(4,1fr);background:#f2e8d7;border:1px solid var(--line);border-radius:12px;padding:17px 12px}.trust-item{text-align:center;border-right:1px solid #d8c9b1;font-size:13px;font-weight:700}.trust-item:last-child{border:0}.trust-item span{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:4px}.section{max-width:1280px;margin:54px auto;padding:0 24px}.section-heading{text-align:center;font: bold 36px Georgia,serif;margin:0 0 25px;color:#492d20}.section-sub{text-align:center;color:var(--muted);margin:-14px 0 25px}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.category-tile{background:#f2e7d5;border-radius:14px;padding:24px 14px;text-align:center;font-weight:700;min-height:100px;display:flex;align-items:center;justify-content:center}.category-tile:hover{background:#e8dcc6;color:var(--olive-dark)}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;display:flex;flex-direction:column;min-width:0}.product-card img{width:100%;height:245px;object-fit:contain;background:#fff;border-radius:8px}.product-card h3{font: bold 18px Georgia,serif;margin:13px 0 7px}.product-card .price{font-weight:800;color:var(--olive-dark);margin-top:auto}.product-card .button{display:inline-block;text-align:center;background:var(--olive);color:#fff;border-radius:24px;padding:11px 13px;margin-top:12px;font-size:13px;font-weight:700}.product-card .button:hover{background:var(--olive-dark)}.collection-band{background:#e9dfcc;border-radius:18px;padding:34px;display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center}.collection-band h2{font: bold 34px Georgia,serif;margin:8px 0}.collection-band p{color:var(--muted);line-height:1.6}.collection-band img{max-height:270px;object-fit:contain;width:100%}.site-footer{margin-top:60px;background:#ede4d5;padding:45px 24px 20px}.footer-inner{max-width:1230px;margin:auto;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:30px}.footer-logo{width:200px;max-height:85px;object-fit:contain;mix-blend-mode:multiply}.site-footer h3{font: bold 18px Georgia,serif}.site-footer p,.site-footer a{font-size:14px;line-height:1.9;color:#5e5348}.footer-bottom{max-width:1230px;margin:25px auto 0;border-top:1px solid #d7c9b5;padding-top:18px;font-size:12px;color:#74685b}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px!important}.woocommerce ul.products li.product img{height:230px;object-fit:contain}.woocommerce ul.products li.product .button{background:var(--olive);color:#fff;border-radius:24px}.woocommerce div.product div.images img{border-radius:12px}.woocommerce div.product form.cart .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--olive);color:#fff;border-radius:24px}.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--olive-dark);color:#fff}.woocommerce .woocommerce-breadcrumb{color:var(--muted)}.woocommerce-message{border-top-color:var(--olive)}.mobile-drawer{display:none}
@media(max-width:850px){.header-main{grid-template-columns:1fr auto;gap:12px;padding:12px 16px}.brand img{width:190px;max-height:62px}.search-form{grid-column:1/-1;grid-row:2}.header-actions{gap:12px}.header-action span.label{display:none}.mobile-menu-btn{display:block}.nav-inner{display:none;position:absolute;left:0;right:0;top:100%;background:var(--paper);padding:15px 20px 22px;box-shadow:0 12px 18px #30201018;align-items:stretch;flex-direction:column;gap:0}.nav-inner.is-open{display:flex}.nav-inner a{padding:12px 4px;border-bottom:1px solid var(--line)}.hero{padding:0 12px;margin-top:12px}.hero-panel{min-height:610px;grid-template-columns:1fr;padding:30px 24px;background:linear-gradient(180deg,rgba(251,247,237,.98) 0%,rgba(251,247,237,.92) 45%,rgba(251,247,237,.12) 100%),url('assets/images/Biryani Masala 50gm.jpg') center/cover}.hero h1{font-size:47px}.hero p{font-size:16px}.hero-products{align-items:center;margin-top:20px}.hero-products img{max-height:190px}.trust-strip{margin:12px;grid-template-columns:repeat(2,1fr);gap:12px}.trust-item{border:0;padding:8px}.section{margin:38px auto;padding:0 15px}.section-heading{font-size:30px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{padding:10px}.product-card img{height:175px}.product-card h3{font-size:16px}.collection-band{grid-template-columns:1fr;padding:24px}.collection-band img{max-height:210px}.footer-inner{grid-template-columns:1fr 1fr;gap:20px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.woocommerce ul.products li.product img{height:170px}}
@media(max-width:420px){.brand img{width:155px}.header-actions{gap:9px}.hero h1{font-size:40px}.hero-panel{min-height:570px}.footer-inner{grid-template-columns:1fr}.trust-item{font-size:12px}}

/* Riwayat Bazaar brand accents */
.site-topbar{background:#183c2b}.trust-strip{background:#edf2e9}.eyebrow{color:#24543a}.category-tile:hover{color:#183c2b}.woocommerce-message{border-top-color:#24543a}

/* Version 1.2.0 refinements */
/* Keep the hero clean: no faded/doubled product photo behind the real pack images. */
.hero-panel{background:#f5eddf!important;}
.site-topbar{background:#3f1018!important;color:#fff!important;font-weight:700;}
.site-header{background:#fffdf8!important;}
.brand img,.brand .custom-logo{display:block;width:225px;max-height:78px;object-fit:contain;}
.site-footer{background:#e8ddc9!important;color:#211915!important;}
.site-footer h3,.site-footer p,.site-footer a,.footer-bottom{color:#211915!important;}
.site-footer a:hover{color:#6b1822!important;text-decoration:underline;}
.rbp-whatsapp{position:fixed;right:18px;bottom:22px;z-index:99999;display:flex;align-items:center;gap:8px;background:#20b95a;color:#fff!important;border-radius:999px;padding:13px 18px;box-shadow:0 5px 18px #0003;font-weight:700;font-size:14px;}
.rbp-whatsapp span{font-size:22px;line-height:1;}.rbp-whatsapp:hover{background:#159447;color:#fff!important;}
.rbp-loop-qty{display:inline-flex;align-items:center;justify-content:center;gap:0;border:1px solid #d7c7ad;border-radius:22px;overflow:hidden;margin:10px 8px 0 0;vertical-align:middle;}
.rbp-loop-qty button{width:32px;height:34px;border:0;background:#f1e7d7;color:#3f1018;font-size:20px;font-weight:700;cursor:pointer;}
.rbp-loop-qty .rbp-qty-value{min-width:26px;text-align:center;font-weight:700;font-size:14px;}
/* Remove optional third-party compare/wishlist controls from product cards. */
.woocommerce ul.products li.product .compare,.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,.woocommerce ul.products li.product .tinv-wraper,.woocommerce ul.products li.product .woosw-btn,.woocommerce ul.products li.product .woosc-btn{display:none!important;}
@media(max-width:850px){
 .header-main{grid-template-columns:minmax(0,1fr) auto!important;}
 .brand img,.brand .custom-logo{width:150px;max-height:55px;}
 .header-actions{gap:8px!important;}
 .header-action{display:inline-flex!important;align-items:center;justify-content:center;min-width:34px;}
 .header-action .ico{font-size:20px;}
 .header-action .label{display:none!important;}
 .search-form{display:flex!important;grid-column:1/-1!important;grid-row:2!important;width:100%;}
 .mobile-menu-btn{display:block!important;}
 .hero-panel{background:#f5eddf!important;min-height:unset!important;}
 .hero-products img{width:31%;max-height:170px;object-fit:contain;}
 .rbp-whatsapp{right:12px;bottom:16px;padding:12px 15px;}
}
@media(max-width:420px){.brand img,.brand .custom-logo{width:130px;}.rbp-whatsapp b{font-size:12px;}}

/* v1.3.0: dependable brand header, visible mobile actions and WhatsApp icon */
.brand{display:flex;align-items:center;min-width:0}.brand img{width:235px;height:auto;max-height:82px;object-fit:contain;object-position:left center;background:transparent}
.header-main{grid-template-columns:230px minmax(220px,1fr) auto;gap:18px}
.header-actions{gap:14px}.header-action{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#211915}.header-action .ico{font-size:21px}.header-action .label{display:inline!important}
.search-form{min-width:0}.search-form input{min-width:0}.search-form button{min-width:48px}
.rbp-whatsapp{position:fixed;right:18px;bottom:22px;z-index:99999;width:58px;height:58px;padding:0;display:flex;align-items:center;justify-content:center;background:#25D366;border:2px solid #fff;border-radius:50%;box-shadow:0 4px 14px #0003;color:#fff!important}
.rbp-whatsapp svg{width:34px;height:34px;fill:#fff}.rbp-whatsapp:hover{background:#1da851;transform:translateY(-2px)}
@media(max-width:850px){
 .header-main{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:10px 12px;padding:10px 12px}
 .brand{grid-column:1;grid-row:1}.brand img{width:148px;max-height:52px}
 .header-actions{grid-column:2;grid-row:1;display:flex;gap:9px;align-items:center}
 .header-action{display:flex!important;flex-direction:column;gap:2px;min-width:62px;font-size:10px;white-space:nowrap}
 .header-action .ico{font-size:19px;line-height:1.1}.header-action .label{display:block!important;font-size:10px}
 .mobile-menu-btn{display:block;grid-column:auto;grid-row:auto;padding:6px 9px;font-size:18px}
 .search-form{grid-column:1/-1;grid-row:2;width:100%;display:flex!important}
 .search-form input{padding:11px 12px;font-size:13px}
 .search-form button{min-width:44px}
 .nav-inner{top:100%}
 .rbp-whatsapp{width:52px;height:52px;right:12px;bottom:16px}.rbp-whatsapp svg{width:30px;height:30px}
}
@media(max-width:380px){.brand img{width:126px}.header-actions{gap:5px}.header-action{min-width:56px;font-size:9px}.header-action .label{font-size:9px}.mobile-menu-btn{padding:5px 7px}}
