/*
 Theme Name:   ImliIndia Shop Child
 Template:     astra
 Version:      1.0.7
 Description:  ImliIndia Shop child theme — brand colours, fonts, WooCommerce overrides
 Author:       ICA Innovation
*/

/* ── Brand tokens ─────────────────────────────── */
:root {
    --brand-primary:       #C8490A;
    --brand-primary-hover: #E8601A;
    --brand-dark:          #3B1A05;
    --brand-brown:         #261103;
    --brand-gold:          #D4A017;
    --brand-green:         #4A7C2F;
    --brand-cream:         #FAF3EC;
    --brand-light:         #FFF8F2;
    --brand-bg:            #FFFCF9;
}

/* ── Base typography ──────────────────────────── */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-brown);
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand-dark);
}

a { color: var(--brand-primary); }
a:hover { color: var(--brand-primary-hover); }

/* ── Buttons (global + WooCommerce) ──────────── */
.ast-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce-page a.button,
.woocommerce-page button.button {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease;
}

.ast-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button.alt:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover {
    background-color: var(--brand-primary-hover) !important;
    color: #fff !important;
}

/* ── WooCommerce product cards ───────────────── */
.woocommerce ul.products li.product .price {
    color: var(--brand-primary);
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--brand-dark);
}

/* ── All WooCommerce button variants (higher specificity) ── */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce div.product form.cart .button,
.wc-block-grid__product-add-to-cart .wp-block-button__link {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
    border-color: var(--brand-primary) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce div.product form.cart .button:hover {
    background-color: var(--brand-primary-hover) !important;
    color: #fff !important;
    border-color: var(--brand-primary-hover) !important;
}

/* ── Sale badge ───────────────────────────────── */
.woocommerce span.onsale {
    background-color: var(--brand-gold);
    color: var(--brand-dark);
    font-weight: 700;
}

/* ── Header ───────────────────────────────────── */
.site-header,
.ast-primary-header-bar,
.main-header-bar,
#masthead {
    background-color: #fcf2e8 !important;
    border-bottom: 1px solid #e8d9c8 !important;
}

/* Logo container — no box, blend with header bg */
.ast-site-logo-wrap,
.custom-logo-link,
.site-logo,
span.ast-site-logo-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* "ImliIndia" two-tone: "Imli" orange, "India" dark brown */
.site-title a,
.ast-site-title-wrap .site-title a {
    background: linear-gradient(90deg, #C8490A 0%, #C8490A 43%, #3B1A05 43%, #3B1A05 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    text-decoration: none !important;
}
.site-title a:hover,
.ast-site-title-wrap .site-title a:hover {
    background: linear-gradient(90deg, #E8601A 0%, #E8601A 43%, #4A2008 43%, #4A2008 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.main-navigation a,
.ast-nav-menu > li > a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--brand-brown);
}

.main-navigation a:hover,
.ast-nav-menu > li > a:hover {
    color: var(--brand-primary);
}

/* ── Logo + brand identity in header ─────────── */
.custom-logo {
    max-height: 64px !important;
    width: auto !important;
}
.ast-site-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.ast-site-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Site title: "ImliIndia" */
.site-title,
p.site-title,
h1.site-title,
.ast-site-title-wrap .site-title {
    display: block !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--brand-dark) !important;
    margin: 0 0 1px !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}
.site-title a,
.ast-site-title-wrap .site-title a {
    color: var(--brand-dark) !important;
    text-decoration: none !important;
}

/* Tagline: "TAMARIND DATES OF INDIA" — only inside the site identity header widget */
.ast-site-identity .site-description,
.ast-site-title-wrap .site-description,
#masthead .site-description {
    display: block !important;
    visibility: visible !important;
    clip: auto !important;
    position: relative !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    color: #8B6347 !important;
    margin: 2px 0 0 0 !important;
    line-height: 1 !important;
}

/* ── Compact header height ───────────────────── */
.main-header-bar,
.ast-primary-header-bar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.ast-primary-header-bar .ast-container,
.main-header-bar .ast-container {
    min-height: 56px;
}

/* ── Remove gap between header and hero ──────── */
.home.page #content,
.home.page .site-content,
.home.page .content-area,
.home.page .ast-separate-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.home.page .entry-content,
.home.page .entry-content > .wp-block-cover:first-child,
.home.page .entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.home.page .entry-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Hide page title on front page ───────────── */
.home.page .entry-header,
.home.page .page-title,
.home .ast-above-entry-header,
.home .post-title {
    display: none !important;
}

/* ── Footer branding ─────────────────────────── */
.ast-small-footer .ast-small-footer-section-2 a {
    color: var(--brand-gold);
}
.ast-small-footer .ast-small-footer-section-2 a:hover {
    color: #fff;
}

/* ── Footer ───────────────────────────────────── */
.site-footer,
.ast-small-footer {
    background-color: var(--brand-dark);
    color: var(--brand-cream);
}

.site-footer a,
.ast-small-footer a {
    color: var(--brand-cream);
}

.site-footer a:hover,
.ast-small-footer a:hover {
    color: var(--brand-gold);
}
