/*
Theme Name: Flavouron Shop
Theme URI: https://bandpsoftware.org/
Author: B and P Software
Description: A WooCommerce-ready, Elementor-first theme for the FLAVOURON spice store. Includes a one-click setup wizard and manageable hero slider post type.
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: flavouron-shop
*/
:root{--flavouron-olive:#25301E;--flavouron-bestseller:#5D122F;--flavouron-arrivals:#301952;--flavouron-green:#526b3f;--flavouron-cream:#f5f4ec;--flavouron-text:#20251d}
*{box-sizing:border-box}
body{margin:0;color:var(--flavouron-text);font-family:Arial,Helvetica,sans-serif;background:#fff}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.site-topbar{background:var(--flavouron-olive);color:#fff;font-size:13px;padding:10px 3%;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}
.site-header{background:#fff;border-bottom:1px solid #e6e6df}
.header-inner{max-width:1400px;margin:auto;padding:14px 3%;display:flex;align-items:center;gap:22px}
.site-branding{min-width:170px;font-weight:800;font-size:26px;color:#c90022}
.site-branding img{max-height:74px;width:auto}
.header-search{flex:1}
.header-search form{display:flex}
.header-search input[type=search]{width:100%;padding:12px;border:1px solid #ddd;border-radius:5px 0 0 5px}
.header-search button{background:var(--flavouron-green);color:white;border:0;padding:0 18px;border-radius:0 5px 5px 0}
.header-actions{display:flex;align-items:center;gap:15px;font-size:14px}
.header-actions a{white-space:nowrap}
.main-navigation{background:#f7f6f0;border-top:1px solid #eee}
.main-navigation .menu{max-width:1400px;margin:auto;padding:0 3%;display:flex;gap:25px;list-style:none;align-items:center;min-height:46px}
.main-navigation li{margin:0;padding:0}
.main-navigation a{font-size:14px;font-weight:600}
.mobile-menu-toggle{display:none}
.site-main{min-height:50vh}
.content-width{max-width:1400px;margin:0 auto;padding:25px 3%}
.hero-slider{position:relative;width:100%;overflow:hidden;background:#26311e}
.hero-slide{display:none;position:relative}
.hero-slide.is-active{display:block}
.hero-slide img{display:block;width:100%;height:auto;max-height:620px;object-fit:cover}
.hero-slide-link{display:block}
.hero-dots{position:absolute;bottom:14px;left:0;right:0;display:flex;justify-content:center;gap:8px}
.hero-dot{width:9px;height:9px;border:0;border-radius:50%;background:#ffffff99;padding:0;cursor:pointer}
.hero-dot.is-active{background:#fff}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);border:0;background:#fff;color:#222;width:38px;height:38px;border-radius:50%;cursor:pointer;font-size:22px}
.hero-prev{left:15px}.hero-next{right:15px}
.shop-section{padding:20px 3%;margin:0 auto;max-width:1500px}
.shop-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}
.shop-section-heading h2{margin:0;font-size:25px}
.shop-section.best-sellers{max-width:none;background:var(--flavouron-bestseller);color:#fff}
.shop-section.new-arrivals{max-width:none;background:var(--flavouron-arrivals);color:#fff}
.shop-section .products{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.shop-section .product{background:#fff;color:#222;border-radius:8px;padding:12px;min-width:0;position:relative}
.shop-section .product img{width:100%;aspect-ratio:1/1.08;object-fit:contain}
.shop-section .woocommerce-loop-product__title{font-size:14px!important;line-height:1.35}
.shop-section .price{color:#222!important;font-weight:700}
.shop-section .button{display:block;text-align:center;background:var(--flavouron-green)!important;color:#fff!important;border-radius:5px;padding:9px 5px!important;font-size:13px!important}
.shop-section .star-rating{color:#f4a900}
.shop-section .onsale{background:#d71936}
.woocommerce ul.products li.product .button{margin-top:10px}
.woocommerce .quantity .qty{min-height:40px}
.woocommerce div.product form.cart .button,.woocommerce button.button.alt,.woocommerce a.button.alt{background:var(--flavouron-green);color:#fff}
.site-footer{background:#f1f0e7;margin-top:35px;padding:30px 3% 15px}
.footer-inner{max-width:1400px;margin:auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:25px}
.site-footer h3{margin-top:0;font-size:16px}
.footer-bottom{text-align:center;border-top:1px solid #ddd;margin-top:25px;padding-top:15px;font-size:13px}
.elementor-page .site-main{padding:0}
.flavouron-contact-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:30px}
.flavouron-contact-info{background:#f5f4ec;padding:28px;border-radius:10px}
.flavouron-contact-info h2{margin-top:0}
.flavouron-contact-info p{margin:12px 0}
.flavouron-setup-notice{padding:14px 18px;background:#eef6e8;border-left:4px solid #526b3f;margin:15px 0}
@media(max-width:1100px){.shop-section .products{grid-template-columns:repeat(3,minmax(0,1fr))}.header-inner{flex-wrap:wrap}.header-search{order:3;flex-basis:100%}.main-navigation .menu{gap:15px}}
@media(max-width:700px){.site-topbar{font-size:11px}.header-inner{gap:10px;padding:12px 4%}.site-branding{font-size:21px;min-width:0}.header-actions{gap:9px;font-size:12px}.header-actions .account-link,.header-actions .wishlist-link{display:none}.mobile-menu-toggle{display:block;background:var(--flavouron-olive);color:#fff;border:0;padding:8px 10px;border-radius:4px;margin:8px 4%}.main-navigation{display:none}.main-navigation.is-open{display:block}.main-navigation .menu{display:block;padding:8px 4%}.main-navigation li{padding:10px 0;border-bottom:1px solid #e5e5dc}.shop-section{padding:16px 3%}.shop-section .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shop-section .product{padding:8px}.shop-section .woocommerce-loop-product__title{font-size:12px!important}.shop-section-heading h2{font-size:21px}.hero-arrow{width:30px;height:30px;font-size:18px}.footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))}.flavouron-contact-grid{grid-template-columns:1fr}}

/* Homepage, live product search, and page starter layouts */
.header-search{position:relative;z-index:50}
.flavouron-live-search-form{position:relative}
.flavouron-search-results{position:absolute;top:100%;left:0;right:0;background:#fff;color:#20251d;border:1px solid #ddd;border-top:0;border-radius:0 0 8px 8px;box-shadow:0 12px 28px #0002;max-height:430px;overflow:auto;z-index:9999}
.flavouron-search-result{display:flex;align-items:center;gap:12px;padding:10px 13px;border-bottom:1px solid #eee}
.flavouron-search-result:hover,.flavouron-search-all:hover{background:#f5f4ec}
.flavouron-search-result img{width:54px;height:54px;object-fit:contain;flex:0 0 54px}
.flavouron-search-result-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.flavouron-search-result-info strong{font-size:14px}
.flavouron-search-result-info small{color:#526b3f;font-weight:700}
.flavouron-search-empty{padding:16px;font-size:14px}
.flavouron-search-all{display:block;padding:13px;font-weight:700;color:#526b3f}
.hero-empty{min-height:350px;background:linear-gradient(110deg,#182416dd,#25301e88),radial-gradient(ellipse at 75% 30%,#8a7043,#26311e 58%);display:flex;align-items:center;color:#fff;padding:55px 5%;position:relative}
.hero-empty-content{max-width:720px}
.hero-empty h1,.flavouron-page-hero h1{font-size:clamp(32px,4vw,56px);line-height:1.08;margin:12px 0}
.hero-empty p,.flavouron-page-hero p{font-size:18px;line-height:1.6;max-width:650px}
.hero-kicker{font-size:12px;letter-spacing:2px;font-weight:800;color:#d8e1ca}
.hero-cta{display:inline-block;background:#526b3f;color:#fff!important;padding:13px 22px;border-radius:5px;font-weight:700;margin-top:8px}
.hero-admin-note{font-size:12px!important;opacity:.8;margin-top:16px}
.shop-empty-message{padding:20px;background:#ffffff14;border:1px dashed #ffffff66;border-radius:8px;color:#fff;line-height:1.7;margin:0}
.category-section{max-width:1500px;margin:0 auto;padding:24px 3%}
.category-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}
.category-card{display:flex;align-items:center;flex-direction:column;text-align:center;gap:10px;font-size:14px}
.category-image{width:100%;max-width:125px;aspect-ratio:1;background:#f7f0e4;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.category-image img{width:100%;height:100%;object-fit:contain}
.category-card strong{line-height:1.35}
.flavouron-page-hero{background:linear-gradient(120deg,#25301e,#526b3f);color:#fff;padding:50px 6%;border-radius:10px;margin:10px 0 25px}
.flavouron-page-content{padding:20px 0;line-height:1.75}
.flavouron-contact-grid{align-items:stretch;margin:10px 0 30px}
.flavouron-contact-info,.flavouron-contact-form-panel{padding:28px;border-radius:10px}
.flavouron-contact-form-panel{border:1px solid #e5e5dc;background:#fff}
.flavouron-contact-form-panel h2{margin-top:0}
.flavouron-contact-form{display:grid;gap:14px}
.flavouron-contact-form label{display:grid;gap:6px;font-weight:600;font-size:14px}
.flavouron-contact-form input,.flavouron-contact-form textarea{width:100%;padding:12px;border:1px solid #d6d8d0;border-radius:5px;font:inherit}
.flavouron-contact-form button{background:#526b3f;color:#fff;border:0;border-radius:5px;padding:13px 18px;font-weight:700;cursor:pointer}
.flavouron-form-success,.flavouron-form-error{padding:12px;border-radius:5px}
.flavouron-form-success{background:#eaf5e5;color:#28451f}.flavouron-form-error{background:#fff0ef;color:#8d1f1f}
.home-intro{padding-top:30px;padding-bottom:40px}
@media(max-width:1000px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.hero-empty{min-height:300px;padding:32px 5%}.hero-empty p,.flavouron-page-hero p{font-size:16px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flavouron-contact-info,.flavouron-contact-form-panel{padding:20px}}


/* v1.2.0 layout fixes: centered content, full-width chrome, reliable WooCommerce product grid */
.site-topbar,
.site-header,
.main-navigation,
.site-footer { width:100%; max-width:none; }
.site-main { width:100%; max-width:none; margin:0 auto; }
.site-main > .content-width,
.site-main > .home-intro { max-width:1320px; margin-left:auto; margin-right:auto; }

/* Keep the colored product bands inside a centered wrapper rather than stretching across the viewport. */
.shop-section.best-sellers,
.shop-section.new-arrivals {
    width:calc(100% - 48px);
    max-width:1320px;
    margin:24px auto;
    padding:24px;
    border-radius:10px;
    overflow:hidden;
}
.shop-section .shop-section-heading { width:100%; }
.shop-section ul.products,
.shop-section ul.products.columns-6 {
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:14px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
}
.shop-section ul.products::before,
.shop-section ul.products::after { display:none !important; content:none !important; }
.shop-section ul.products li.product,
.shop-section ul.products.columns-6 li.product,
.woocommerce-page .shop-section ul.products li.product {
    float:none !important;
    clear:none !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:12px !important;
    box-sizing:border-box !important;
    background:#fff !important;
    color:#20251d !important;
    border-radius:8px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    text-align:left !important;
}
.shop-section ul.products li.product a.woocommerce-LoopProduct-link,
.shop-section ul.products li.product a.woocommerce-loop-product__link {
    display:block !important;
    width:100% !important;
}
.shop-section ul.products li.product a img,
.shop-section ul.products li.product img {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    object-fit:contain !important;
    margin:0 auto 12px !important;
}
.shop-section ul.products li.product .woocommerce-loop-product__title {
    color:#20251d !important;
    font-size:14px !important;
    line-height:1.35 !important;
    padding:0 !important;
    min-height:2.7em;
}
.shop-section ul.products li.product .price {
    display:block !important;
    color:#20251d !important;
    margin:8px 0 !important;
}
.shop-section ul.products li.product .button,
.shop-section ul.products li.product a.add_to_cart_button,
.shop-section ul.products li.product a.product_type_simple {
    display:block !important;
    width:100% !important;
    margin-top:auto !important;
    text-align:center !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    line-height:1.25 !important;
    padding:10px 8px !important;
    background:#526b3f !important;
    color:#fff !important;
    border-radius:5px !important;
}
.category-section { max-width:1320px; margin:24px auto; }
.hero-slider, .hero-empty { width:100%; max-width:none; margin:0; }
.site-footer { box-sizing:border-box; }
.footer-inner { width:100%; }

/* Product listings and content remain responsive. */
@media(max-width:1100px) {
    .shop-section ul.products,
    .shop-section ul.products.columns-6 {
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
    .shop-section.best-sellers,
    .shop-section.new-arrivals { width:calc(100% - 32px); padding:18px; }
}
@media(max-width:600px) {
    .shop-section ul.products,
    .shop-section ul.products.columns-6 {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }
    .shop-section.best-sellers,
    .shop-section.new-arrivals { width:calc(100% - 20px); padding:12px; margin:14px auto; }
    .shop-section ul.products li.product { padding:8px !important; }
    .shop-section ul.products li.product .woocommerce-loop-product__title { font-size:12px !important; }
}

/* Professional header, iconography and cart fragments */
.site-topbar{align-items:center;padding:9px max(24px,calc((100% - 1400px)/2));font-size:12px;gap:20px}
.topbar-promises,.topbar-social{display:flex;align-items:center;gap:14px}
.topbar-promises span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.topbar-promises i{height:15px;width:1px;background:#ffffff55;display:block}
.topbar-social{gap:9px;white-space:nowrap}
.topbar-social>span{margin-right:4px}
.flavouron-icon{display:inline-flex;align-items:center;justify-content:center;line-height:0;flex:0 0 auto}
.flavouron-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topbar-promises .flavouron-icon svg{width:15px;height:15px}
.flavouron-icon-facebook svg{fill:currentColor;stroke:none}
.flavouron-icon-youtube svg{fill:currentColor;stroke:none}
.flavouron-icon-youtube .icon-cutout{fill:#25301e}
.flavouron-icon-instagram .icon-fill{fill:currentColor;stroke:none}
.flavouron-icon-whatsapp svg{stroke:currentColor;fill:none}
.social-icon{width:25px;height:25px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#ffffff18;color:#fff;transition:transform .2s,background .2s}
.social-icon svg{width:15px;height:15px;fill:currentColor;stroke:currentColor;stroke-width:1.5}
.social-icon:hover{transform:translateY(-2px);background:#ffffff35}
.social-icon.instagram{background:#d94a8c}.social-icon.facebook{background:#1877f2}.social-icon.youtube{background:#ff0033}.social-icon.whatsapp{background:#20b85a}
.header-inner{max-width:1400px;padding:17px 24px;gap:24px}
.site-branding{min-width:200px}
.brand-wordmark{display:flex;align-items:center;gap:8px;color:#c90022;font-weight:900;font-size:25px;line-height:1}
.brand-wordmark small{display:block;color:#7a3a27;font-size:7px;letter-spacing:.6px;margin-top:4px}
.brand-mark svg{width:28px;height:28px;fill:#e0b324;stroke:#e0b324}
.site-branding img{max-height:68px}
.header-search form{height:48px;border:1px solid #d9ddd3;border-radius:8px;overflow:visible;background:#fff;box-shadow:0 2px 8px #25301e08}
.header-search input[type=search]{border:0;outline:0;box-shadow:none;min-width:0;padding:12px 10px;font-size:14px;background:transparent}
.search-leading-icon{display:flex;align-items:center;padding-left:14px;color:#78806f}
.search-leading-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.header-search button{display:flex;align-items:center;justify-content:center;gap:7px;padding:0 17px;min-width:48px;border-radius:0 7px 7px 0;font-size:13px;font-weight:700}
.header-search button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.header-actions{gap:17px;font-size:12px}
.header-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#30352b;min-width:44px;transition:color .2s}
.header-action:hover{color:#526b3f}
.header-action-icon{height:26px;position:relative;display:flex;align-items:center;justify-content:center}
.header-action-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.header-action-label{font-weight:600;white-space:nowrap}
.cart-icon-wrap .flavouron-cart-count{position:absolute;top:-7px;right:-11px;min-width:18px;height:18px;padding:0 4px;border-radius:99px;background:#526b3f;color:#fff;font-size:10px;line-height:18px;text-align:center;font-weight:800;border:2px solid #fff}
.whatsapp-chat-button{display:inline-flex;align-items:center;gap:8px;padding:12px 14px;border-radius:7px;background:#526b3f;color:#fff!important;font-weight:700;font-size:13px;white-space:nowrap;box-shadow:0 3px 8px #25301e1c;transition:background .2s,transform .2s}
.whatsapp-chat-button:hover{background:#3e542f;transform:translateY(-1px)}
.whatsapp-chat-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.mobile-menu-toggle{align-items:center;gap:7px}
.mobile-menu-toggle .flavouron-icon svg{width:18px;height:18px}
@media(max-width:1200px){.site-topbar{padding:9px 18px}.topbar-promises{gap:8px}.header-inner{gap:14px;padding:14px 18px}.site-branding{min-width:160px}.brand-wordmark{font-size:21px}.header-actions{gap:10px}.whatsapp-chat-button{padding:10px}.whatsapp-chat-button span{display:none}}
@media(max-width:800px){.site-topbar{justify-content:center}.topbar-promises{justify-content:center;flex-wrap:wrap}.topbar-promises i{display:none}.topbar-social{display:none}.header-inner{flex-wrap:wrap}.site-branding{min-width:0}.header-search{order:3;flex-basis:100%}.header-actions{margin-left:auto}.header-action-label{font-size:10px}.whatsapp-chat-button span{display:inline}.whatsapp-chat-button{padding:9px}.header-search form{height:44px}}
@media(max-width:480px){.topbar-promises span:nth-of-type(n+3){display:none}.header-inner{gap:10px;padding:12px}.brand-wordmark{font-size:18px}.brand-mark svg{width:22px;height:22px}.header-actions{gap:9px}.header-action{min-width:30px}.header-action-icon svg{width:21px;height:21px}.header-action-label{font-size:9px}.whatsapp-chat-button span{display:none}.whatsapp-chat-button svg{width:23px;height:23px}.whatsapp-chat-button{padding:9px}}

/* v1.4.0: keep the WhatsApp SVG visible at all breakpoints */
.whatsapp-chat-button > .flavouron-icon { display:inline-flex !important; }
.whatsapp-chat-button > span:not(.flavouron-icon) { display:inline !important; }
@media(max-width:1200px) {
  .whatsapp-chat-button > span:not(.flavouron-icon) { display:none !important; }
  .whatsapp-chat-button > .flavouron-icon { display:inline-flex !important; }
}
@media(max-width:800px) {
  .whatsapp-chat-button > span:not(.flavouron-icon) { display:inline !important; }
  .whatsapp-chat-button > .flavouron-icon { display:inline-flex !important; }
}
@media(max-width:480px) {
  .whatsapp-chat-button > span:not(.flavouron-icon) { display:none !important; }
  .whatsapp-chat-button > .flavouron-icon { display:inline-flex !important; }
}
