/* ============================================================
   KrishiUpasana — Custom CSS (loaded after main style.css)
   ============================================================ */

/* Product filter tabs — fully visible in all modes */
.ku-prod-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ku-prod-tab {
    background: transparent;
    border: 2px solid #4a7c59;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #4a7c59;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}
.ku-prod-tab:hover,
.ku-prod-tab.active {
    background: #4a7c59;
    color: #fff;
}

/* Hero right plant cards */
.ku-hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 280px;
    flex-shrink: 0;
}
.ku-hero-card {
    background: #fff;
    border: 1px solid #d8d3cc;
    border-radius: 16px;
    overflow: hidden;
}
.ku-hero-card.tall { grid-row: span 2; }
.ku-hero-card-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}
.ku-hero-card-img.sq  { aspect-ratio: 1; }
.ku-hero-card-img.tall { aspect-ratio: 0.65; }
.ku-hero-card-foot {
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ku-hero-card-name { font-size: 12px; font-weight: 600; color: #3d2e1e; }
.ku-hero-card-price { font-size: 12px; color: #2d5a3d; font-weight: 700; }

/* Category icon colours */
.ku-ci-1 { background: #c8e6c9; color: #1b5e20; }
.ku-ci-2 { background: #ffe0b2; color: #e65100; }
.ku-ci-3 { background: #dcedc8; color: #33691e; }
.ku-ci-4 { background: #f8bbd0; color: #880e4f; }

/* Product image placeholder colours */
.ku-bg-1 { background: #c8e6c9; }
.ku-bg-2 { background: #ffe0b2; }
.ku-bg-3 { background: #bbdefb; }
.ku-bg-4 { background: #f8bbd0; }

/* Astra nav overrides — ensure sticky works */
.ast-primary-header-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

/* WooCommerce — shop page heading */
.woocommerce .woocommerce-products-header__title,
.woocommerce-page h1.page-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #3d2e1e !important;
    margin-bottom: 20px !important;
}

/* WooCommerce — star ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before { color: #f59e0b !important; }

/* WooCommerce — order tracking page */
.woocommerce-order-details__title {
    color: #4a7c59 !important;
    font-weight: 700 !important;
}

/* WooCommerce — My Account nav */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: #6b6560 !important;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #e8f5e9;
    color: #2d5a3d !important;
    font-weight: 700;
}

/* Astra — remove default blue accent */
:root {
    --ast-global-color-0: #4a7c59 !important;
    --ast-global-color-1: #2d5a3d !important;
}
