/*
Theme Name: RahmanBookShop Child
Theme URI: https://rahmanbookshop.com
Description: Rahman Book Shop Custom Child Theme - Bangla Book eCommerce
Author: Rahman Book Shop
Author URI: https://rahmanbookshop.com
Template: storefront
Version: 1.0.0
Text Domain: rahmanbookshop-child
*/

/* ═══════════════════════════════════════
   BRAND COLOURS
   Primary Green  : #1B4332
   Accent Amber   : #E07B00
   Paper BG       : #F8F4EE
   Dark Paper     : #EDE8DE
   Ink            : #1C1C1E
   Muted          : #6B6257
   Border         : #DDD6C8
═══════════════════════════════════════ */

/* Google Fonts - Bangla */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

/* ── GLOBAL RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif !important;
    background-color: #F8F4EE !important;
    color: #1C1C1E !important;
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.woocommerce-loop-product__title,
.product_title {
    font-family: 'Noto Serif Bengali', serif !important;
    color: #1C1C1E !important;
    font-weight: 700;
}

a {
    color: #1B4332;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #E07B00;
}

/* ── SITE HEADER (Storefront) ── */
.site-header,
#masthead {
    background-color: #1B4332 !important;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    padding: 0 !important;
}

.site-header .col-full {
    background-color: #1B4332 !important;
}

/* Site branding */
.site-branding {
    padding: 16px 0 !important;
}

.site-title a {
    font-family: 'Noto Serif Bengali', serif !important;
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.site-description {
    color: rgba(255,255,255,0.6) !important;
    font-size: 13px !important;
}

/* ── NAVIGATION (Storefront) ── */
.main-navigation,
.storefront-primary-navigation {
    background-color: #2D6A4F !important;
    border-top: none !important;
    border-bottom: none !important;
}

.main-navigation ul li a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    padding: 12px 16px !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08) !important;
}

/* ── HEADER CART ── */
.site-header-cart .cart-contents {
    color: #ffffff !important;
}

.site-header-cart .cart-contents:hover {
    color: #E07B00 !important;
}

/* Search box */
.site-search {
    background: rgba(255,255,255,0.1) !important;
}

.site-search input {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
}

.site-search input::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

/* ── WOOCOMMERCE PRODUCT CARDS ── */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #DDD6C8 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.25s !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 28px rgba(27,67,50,0.15) !important;
    transform: translateY(-4px) !important;
    border-color: #E07B00 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Noto Serif Bengali', serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1C1C1E !important;
    padding: 12px 16px 4px !important;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product .price {
    font-family: 'Noto Serif Bengali', serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1B4332 !important;
    padding: 4px 16px !important;
}

.woocommerce ul.products li.product .price del {
    color: #6B6257 !important;
    font-size: 14px !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: #1B4332 !important;
}

.woocommerce ul.products li.product a img {
    border-radius: 8px 8px 0 0 !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
}

/* ── ADD TO CART / BUY BUTTONS ── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background-color: #E07B00 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 14px rgba(224,123,0,0.3) !important;
    cursor: pointer !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover {
    background-color: #C46800 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(224,123,0,0.4) !important;
    color: #ffffff !important;
}

.woocommerce .single_add_to_cart_button {
    background-color: #E07B00 !important;
    font-size: 17px !important;
    padding: 15px 32px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
}

/* ── PRODUCT SINGLE PAGE ── */
.woocommerce div.product {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.woocommerce div.product .product_title {
    font-family: 'Noto Serif Bengali', serif !important;
    font-size: 28px !important;
    color: #1C1C1E !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
}

.woocommerce div.product p.price {
    font-size: 32px !important;
    color: #1B4332 !important;
    font-weight: 700 !important;
    font-family: 'Noto Serif Bengali', serif !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background-color: #C0392B !important;
    border-radius: 4px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
}

/* ── PRODUCT TABS ── */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: 'Hind Siliguri', sans-serif !important;
    font-weight: 600 !important;
    color: #6B6257 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #1B4332 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-top: 3px solid #E07B00 !important;
}

/* ── CART & CHECKOUT ── */
.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

.woocommerce table.shop_table th {
    background: #1B4332 !important;
    color: #ffffff !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 {
    font-family: 'Noto Serif Bengali', serif !important;
    color: #1B4332 !important;
    font-size: 20px !important;
    border-bottom: 2px solid #E07B00 !important;
    padding-bottom: 8px !important;
}

.woocommerce a.checkout-button,
.woocommerce #payment #place_order {
    background-color: #1B4332 !important;
    font-size: 16px !important;
    padding: 14px 28px !important;
}

.woocommerce a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
    background-color: #E07B00 !important;
}

/* ── STAR RATINGS ── */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
    color: #E07B00 !important;
}

/* ── BREADCRUMB ── */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb {
    background: #EDE8DE !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #6B6257 !important;
    margin-bottom: 20px !important;
}

.woocommerce-breadcrumb a,
.woocommerce .woocommerce-breadcrumb a {
    color: #2D6A4F !important;
    font-weight: 500 !important;
}

/* ── NOTICES / MESSAGES ── */
.woocommerce-message {
    border-top-color: #1B4332 !important;
    background: #E8F5EE !important;
}

.woocommerce-error {
    border-top-color: #C0392B !important;
}

.woocommerce-info {
    border-top-color: #E07B00 !important;
    background: #FFF3E0 !important;
}

/* ── FOOTER (Storefront) ── */
.site-footer {
    background-color: #1C1C1E !important;
    color: rgba(255,255,255,0.6) !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 13px !important;
}

.site-footer a {
    color: rgba(255,255,255,0.55) !important;
}

.site-footer a:hover {
    color: #E07B00 !important;
}

.site-footer .col-full {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

/* ── STOREFRONT HOMEPAGE SECTIONS ── */
.storefront-hero,
.storefront-product-section {
    background: #F8F4EE !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .woocommerce ul.products li.product a img {
        height: 180px !important;
    }

    .woocommerce div.product .product_title {
        font-size: 22px !important;
    }

    .woocommerce div.product p.price {
        font-size: 26px !important;
    }

    .site-title a {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .woocommerce ul.products[class*=columns-] li.product {
        width: 100% !important;
        margin: 0 0 16px !important;
    }
}

/* ══════════════════════════════════════
   UX IMPROVEMENTS v2.1
   ══════════════════════════════════════ */

/* ── 1. SITE DESCRIPTION (tagline) readable ── */
.site-description {
    color: rgba(255,255,255,0.75) !important;
    font-size: 13px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    margin-top: 2px !important;
}

/* ── 2. HEADER LAYOUT & SPACING ── */
.site-header {
    padding: 0 !important;
}

.site-branding {
    padding: 14px 0 !important;
}

.site-title {
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* ── 3. NAVIGATION SPACING ── */
.main-navigation ul {
    padding-left: 0 !important;
    margin: 0 !important;
}

.main-navigation ul li:first-child a {
    padding-left: 24px !important;
}

.main-navigation ul li a {
    padding: 14px 18px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.88) !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s !important;
    display: block !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #ffffff !important;
    border-bottom-color: #E07B00 !important;
    background: rgba(255,255,255,0.07) !important;
}

/* ── 4. SALE BADGE — আরও আকর্ষণীয় ── */
.woocommerce span.onsale {
    background: linear-gradient(135deg, #E07B00, #C46800) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 8px rgba(224,123,0,0.4) !important;
    letter-spacing: 0.3px !important;
}

/* ── 5. REMOVE "Built with WooCommerce" ── */
.site-footer .woocommerce-store-notice,
p.woocommerce-store-notice,
.woocommerce-store-notice {
    display: none !important;
}

/* Hide footer credit link */
.site-info a[href*="woocommerce"],
.site-info a[href*="wordpress.org"],
.site-info {
    display: none !important;
}

/* ── 6. FOOTER IMPROVEMENT ── */
.site-footer {
    background-color: #1B4332 !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 32px 0 !important;
}

.site-footer .col-full {
    padding: 0 40px !important;
}

/* ── 7. PRODUCT TITLE — better reading ── */
.woocommerce div.product .product_title {
    font-family: 'Noto Serif Bengali', serif !important;
    font-size: 26px !important;
    line-height: 1.4 !important;
    color: #1C1C1E !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #EDE8DE !important;
    padding-bottom: 16px !important;
}

/* ── 8. PRICE DISPLAY — more prominent ── */
.woocommerce div.product p.price {
    background: #F0FBF5 !important;
    border: 1px solid #B7DFC9 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    display: inline-block !important;
    margin-bottom: 16px !important;
}

/* ── 9. ADD TO CART BUTTON — full width, prominent ── */
.woocommerce div.product form.cart {
    margin-top: 16px !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: linear-gradient(135deg, #E07B00, #C46800) !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    padding: 16px !important;
    width: 100% !important;
    box-shadow: 0 4px 16px rgba(224,123,0,0.35) !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(224,123,0,0.45) !important;
}

/* ── 10. SHOP PAGE TITLE ── */
.woocommerce-shop h1.page-title,
.woocommerce .page-title {
    font-family: 'Noto Serif Bengali', serif !important;
    color: #1B4332 !important;
    font-size: 30px !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 3px solid #E07B00 !important;
    display: inline-block !important;
}

/* ── 11. PRODUCT CARD — quantity hidden on loop ── */
.woocommerce ul.products li.product .button {
    margin: 8px 12px 12px !important;
    width: calc(100% - 24px) !important;
    display: block !important;
    text-align: center !important;
    padding: 10px !important;
    font-size: 14px !important;
}

/* ── 12. BODY CONTENT AREA ── */
.site-content .col-full {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

/* ══════════════════════════════════════
   CUSTOM HEADER STYLES
   ══════════════════════════════════════ */

/* ── TOP BAR ── */
.rbs-topbar {
    background: #1B4332;
    color: rgba(255,255,255,0.78);
    text-align: center;
    font-size: 12.5px;
    padding: 8px 16px;
    font-family: 'Hind Siliguri', sans-serif;
    letter-spacing: 0.2px;
}

.rbs-topbar span {
    color: #E07B00;
    font-weight: 700;
}

/* ── MAIN HEADER ── */
.rbs-header {
    background: #1B4332 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

.rbs-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── LOGO ── */
.rbs-logo a {
    text-decoration: none !important;
}

.rbs-logo-text {
    font-family: 'Noto Serif Bengali', serif !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.rbs-logo-text span {
    color: #E07B00 !important;
}

.rbs-tagline {
    color: rgba(255,255,255,0.6) !important;
    font-size: 11.5px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* ── SEARCH BAR ── */
.rbs-search {
    flex: 1;
    max-width: 480px;
}

.rbs-search form {
    display: flex;
    width: 100%;
}

.rbs-search input {
    flex: 1;
    padding: 9px 14px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 14px;
    background: #ffffff;
    color: #1C1C1E;
    outline: none;
}

.rbs-search button {
    padding: 9px 16px;
    background: #E07B00;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    color: #ffffff;
}

.rbs-search button:hover {
    background: #C46800;
}

/* ── HEADER ACTIONS ── */
.rbs-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.rbs-btn-signin {
    background: transparent !important;
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    color: rgba(255,255,255,0.88) !important;
    padding: 7px 16px !important;
    border-radius: 5px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    display: inline-block !important;
}

.rbs-btn-signin:hover {
    border-color: #E07B00 !important;
    color: #E07B00 !important;
}

.rbs-btn-signup {
    background: #E07B00 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 5px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
    display: inline-block !important;
}

.rbs-btn-signup:hover {
    background: #C46800 !important;
    color: #ffffff !important;
}

.rbs-btn-account {
    color: rgba(255,255,255,0.88) !important;
    font-size: 13px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    text-decoration: none !important;
    padding: 7px 14px !important;
    border: 1.5px solid rgba(255,255,255,0.25) !important;
    border-radius: 5px !important;
    transition: all 0.2s !important;
}

.rbs-btn-account:hover {
    color: #E07B00 !important;
    border-color: #E07B00 !important;
}

.rbs-btn-cart {
    color: #ffffff !important;
    font-size: 18px !important;
    text-decoration: none !important;
    position: relative !important;
    padding: 4px 8px !important;
}

.rbs-cart-count {
    background: #E07B00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    vertical-align: super;
}

/* ── CATEGORY NAV ── */
.rbs-cat-nav {
    background: #2D6A4F;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.rbs-cat-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rbs-cat-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.rbs-cat-nav ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    padding: 11px 18px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s !important;
}

.rbs-cat-nav ul li a:hover,
.rbs-cat-nav ul li a.active {
    color: #ffffff !important;
    border-bottom-color: #E07B00 !important;
    background: rgba(255,255,255,0.06) !important;
}

/* Available badge */
.rbs-nav-badge {
    background: #E07B00;
    color: #ffffff;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    letter-spacing: 0.2px;
}

/* Coming soon badge */
.rbs-nav-badge-soon {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.65);
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-family: 'Hind Siliguri', sans-serif;
}

/* ── HIDE OLD STOREFRONT HEADER ELEMENTS ── */
.storefront-primary-navigation,
.site-header .col-full > .site-search,
.site-header-cart {
    display: none !important;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 900px) {
    .rbs-search {
        display: none;
    }

    .rbs-header-inner {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .rbs-cat-nav ul {
        flex-wrap: wrap;
    }

    .rbs-cat-nav ul li a {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

@media (max-width: 480px) {
    .rbs-btn-signup {
        display: none !important;
    }

    .rbs-logo-text {
        font-size: 18px !important;
    }
}

/* ── EDITION STATUS BADGES ── */
.rbs-badge-unavailable {
    background: #FEF0F0;
    color: #C0392B;
    border: 1px solid #F5C0BC;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin: 8px 16px 0;
    font-family: 'Hind Siliguri', sans-serif;
}
