/*
Theme Name: Astra Child (BAGH BD)
Theme URI: https://bagh.com.bd
Description: Astra Child theme for BAGH BD e-commerce store with Clean White visual identity and Elementor integration. Header is strictly managed by Astra Header Builder.
Author: BAGH BD Architecture Team
Author URI: https://bagh.com.bd
Template: astra
Version: 3.3.0
Text Domain: astra-child
*/

/* ==========================================================================
   1. BRAND DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --bagh-orange-primary: #e65c00;
  --bagh-orange-hover: #cc5200;
  --bagh-orange-active: #b34400;
  --bagh-orange-subtle: #fff3ec;
  --bagh-black-charcoal: #18181b;
  --bagh-gray-text: #4b5563;
  --bagh-gray-muted: #6b7280;
  --bagh-gray-border: #e5e7eb;
  --bagh-gray-bg: #f9fafb;
  --bagh-white: #ffffff;
  --bagh-container-width: 1380px;
  --bagh-font-heading: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bagh-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, html {
  font-family: var(--bagh-font-body);
  color: var(--bagh-gray-text);
  background-color: #ffffff !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
}

/* Eliminate Astra theme scroll-to-top blue floating square */
#ast-scroll-top,
.ast-scroll-top-icon,
[data-id="ast-scroll-top"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY & BUTTON STYLING (PAGE CONTENT ONLY)
   ========================================================================== */
.elementor-39 h1,
.elementor-39 h2,
.elementor-39 h3,
.elementor-39 h4,
.elementor-39 .elementor-heading-title {
  font-family: var(--bagh-font-heading) !important;
  letter-spacing: -0.02em;
}

.bagh-btn-orange,
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--bagh-orange-primary) !important;
  color: #ffffff !important;
  font-family: var(--bagh-font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-radius: 6px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(230, 92, 0, 0.2) !important;
}

.bagh-btn-orange:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--bagh-orange-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3) !important;
}

.bagh-btn-secondary {
  background-color: #ffffff !important;
  color: #18181b !important;
  border: 1px solid #d1d5db !important;
  font-family: var(--bagh-font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.bagh-btn-secondary:hover {
  border-color: #18181b !important;
  background-color: #f9fafb !important;
}

/* ==========================================================================
   3. TWO-COLUMN CATEGORY GRID ON MOBILE
   ========================================================================== */
#cat_grid_con_72e0df9 > .e-con-inner,
.elementor-element-cat_grid_con_72e0df9 > .e-con-inner,
.bagh-cat-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

@media (max-width: 767px) {
  #sec_cat_wrap_e476ea3,
  .elementor-element-sec_cat_wrap_e476ea3,
  [data-id="sec_cat_wrap_e476ea3"] {
    padding: 36px 16px !important;
  }

  #cat_grid_con_72e0df9 > .e-con-inner,
  .elementor-element-cat_grid_con_72e0df9 > .e-con-inner,
  .bagh-cat-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .bagh-cat-card,
  [data-id="cat_c1_21351cd"],
  [data-id="cat_c2_98788e9"],
  [data-id="cat_c3_ddcc04d"],
  [data-id="cat_c4_b20073a"],
  #cat_c1_21351cd,
  #cat_c2_98788e9,
  #cat_c3_ddcc04d,
  #cat_c4_b20073a,
  .elementor-element-cat_c1_21351cd,
  .elementor-element-cat_c2_98788e9,
  .elementor-element-cat_c3_ddcc04d,
  .elementor-element-cat_c4_b20073a {
    width: calc(50% - 6px) !important;
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  }

  .bagh-cat-card img,
  [data-id^="cat_img"] img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
  }

  .bagh-cat-card .elementor-heading-title,
  [data-id^="cat_t"] .elementor-heading-title {
    font-size: 1.15rem !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
  }

  .bagh-cat-card p,
  [data-id^="cat_d"] p {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    color: var(--bagh-gray-muted) !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .bagh-cat-card .elementor-button,
  [data-id^="cat_b"] .elementor-button {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 6px !important;
  }
}

/* ==========================================================================
   4. UNIFIED REUSABLE PRODUCT CARDS & 2-COLUMN GRID ON MOBILE
   ========================================================================== */
.woocommerce ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

@media (min-width: 1024px) {
  .woocommerce ul.products li.product {
    width: calc(25% - 15px) !important;
    margin: 0 20px 20px 0 !important;
  }
  .woocommerce ul.products li.product:nth-child(4n) {
    margin-right: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .woocommerce ul.products li.product {
    width: calc(50% - 10px) !important;
    margin: 0 20px 20px 0 !important;
  }
  .woocommerce ul.products li.product:nth-child(2n) {
    margin-right: 0 !important;
  }
}

@media (max-width: 767px) {
  .woocommerce ul.products {
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product,
  .bagh-product-card {
    width: calc(50% - 6px) !important;
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    margin: 0 !important;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  }

  .woocommerce ul.products li.product a img,
  .bagh-product-card img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    margin: 0 0 10px 0 !important;
    border-radius: 6px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .bagh-prod-title {
    font-family: var(--bagh-font-heading) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #18181b !important;
    text-transform: uppercase !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .woocommerce ul.products li.product .price {
    font-family: var(--bagh-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--bagh-orange-primary) !important;
    margin-bottom: 10px !important;
    display: block !important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .add_to_cart_button {
    font-size: 0.8rem !important;
    padding: 7px 10px !important;
    width: 100% !important;
    margin-top: auto !important;
    border-radius: 6px !important;
  }
}

/* ==========================================================================
   5. SECTION SPACING & PROPORTIONS SYSTEM (HOMEPAGE CONTENT)
   ========================================================================== */
@media (max-width: 767px) {
  /* Section Spacing Standard: 36px to 42px */
  #sec_cat_wrap_e476ea3,
  #sec_feat_wrap_adfed24,
  #sec_brand_wrap_3eb4a1e,
  #sec_explore_wrap_ff5a5db,
  #sec_promo_wrap_4bbd5e8,
  #sec_trust_wrap_65e99e4,
  .elementor-element-sec_cat_wrap_e476ea3,
  .elementor-element-sec_feat_wrap_adfed24,
  .elementor-element-sec_brand_wrap_3eb4a1e,
  .elementor-element-sec_explore_wrap_ff5a5db,
  .elementor-element-sec_promo_wrap_4bbd5e8,
  .elementor-element-sec_trust_wrap_65e99e4 {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Section Title Spacing */
  .elementor-widget-heading .elementor-heading-title {
    line-height: 1.15 !important;
  }

  /* Hero Section Mobile Proportions (Starts cleanly below Astra Header) */
  #hero_sec_f238d67,
  .elementor-element-hero_sec_f238d67 {
    padding: 24px 16px !important;
  }

  #hero_h1_889b376 .elementor-heading-title {
    font-size: 2.5rem !important;
    line-height: 1.05 !important;
    margin-bottom: 10px !important;
  }

  #hero_desc_559e4d9 p {
    font-size: 0.95rem !important;
    margin-bottom: 14px !important;
    line-height: 1.4 !important;
  }

  #hero_btn_con_fc75daf > .e-con-inner,
  .elementor-element-hero_btn_con_fc75daf > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  #hero_col_r_43fe482 img,
  .elementor-element-hero_col_r_43fe482 img {
    max-width: 280px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 12px !important;
  }

  /* Brand Section Mobile Proportions */
  #brand_title_adc1504 .elementor-heading-title,
  .elementor-element-brand_title_adc1504 .elementor-heading-title {
    font-size: 1.85rem !important;
    line-height: 1.15 !important;
  }

  #brand_text_8429004 p,
  .elementor-element-brand_text_8429004 p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  #brand_col_r_44bb303 img,
  .elementor-element-brand_col_r_44bb303 img {
    max-width: 280px !important;
    margin: 16px auto 0 !important;
    display: block !important;
    border-radius: 12px !important;
  }

  /* Promotional Banner Box Mobile */
  #promo_box_con_07cc5aa,
  .elementor-element-promo_box_con_07cc5aa {
    padding: 32px 16px !important;
    border-radius: 14px !important;
  }

  #promo_h2_b624fdc .elementor-heading-title {
    font-size: 1.85rem !important;
  }

  #promo_text_89bed58 p {
    font-size: 1rem !important;
    margin-bottom: 16px !important;
  }

  /* Shopping Benefits Row Mobile */
  #trust_cards_con_ff10a27 > .e-con-inner,
  .elementor-element-trust_cards_con_ff10a27 > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  #trust_c1_8be8642,
  #trust_c2_af338f5,
  #trust_c3_089a4dd,
  .elementor-element-trust_c1_8be8642,
  .elementor-element-trust_c2_af338f5,
  .elementor-element-trust_c3_089a4dd {
    padding: 16px !important;
  }
}

/* ==========================================================================
   6. COMPACT MOBILE FOOTER WITH ACCORDION
   ========================================================================== */
#ftr_outer_con_81f2ddf,
.elementor-element-ftr_outer_con_81f2ddf {
  background: #111827 !important;
}

@media (max-width: 767px) {
  #ftr_outer_con_81f2ddf,
  .elementor-element-ftr_outer_con_81f2ddf {
    padding: 36px 16px 24px !important;
  }

  #ftr_grid_con_2e53570 > .e-con-inner,
  .elementor-element-ftr_grid_con_2e53570 > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  #ftr_col1_77f069b,
  .elementor-element-ftr_col1_77f069b {
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  #ftr_col1_77f069b img,
  .elementor-element-ftr_col1_77f069b img {
    margin: 0 auto !important;
  }

  /* Accordion Headings on Mobile */
  .bagh-accordion-heading {
    position: relative !important;
    cursor: pointer !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin: 0 !important;
    font-size: 1.15rem !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .bagh-accordion-heading::after {
    content: '+' !important;
    font-size: 1.4rem !important;
    color: var(--bagh-orange-primary) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
  }

  .bagh-accordion-heading.is-expanded::after {
    content: '\2212' !important;
  }

  /* Collapsible link lists */
  #ftr_col2_430d301 .elementor-widget-icon-list,
  #ftr_col3_2e9497e .elementor-widget-icon-list,
  #ftr_col4_8f311a1 .elementor-widget-icon-list,
  .elementor-element-ftr_col2_430d301 .elementor-widget-icon-list,
  .elementor-element-ftr_col3_2e9497e .elementor-widget-icon-list,
  .elementor-element-ftr_col4_8f311a1 .elementor-widget-icon-list {
    display: none !important;
    padding-top: 10px !important;
  }

  #ftr_col2_430d301 .elementor-widget-icon-list.is-visible,
  #ftr_col3_2e9497e .elementor-widget-icon-list.is-visible,
  #ftr_col4_8f311a1 .elementor-widget-icon-list.is-visible,
  .elementor-element-ftr_col2_430d301 .elementor-widget-icon-list.is-visible,
  .elementor-element-ftr_col3_2e9497e .elementor-widget-icon-list.is-visible,
  .elementor-element-ftr_col4_8f311a1 .elementor-widget-icon-list.is-visible {
    display: block !important;
  }

  .bagh-footer-links li {
    padding: 6px 0 !important;
  }

  #ftr_copy_fc0512c p,
  .elementor-element-ftr_copy_fc0512c p {
    text-align: center !important;
    font-size: 0.85rem !important;
  }
}
