/*
Theme Name: Flatsome Child — Afrosmartshop
Description: Child theme for Afrosmartshop marketplace
Template:    flatsome
Version:     1.0.0
Author:      Afrosmartshop
*/

/* Import parent theme styles */
@import url('../flatsome/style.css');


/* Design system variables — paste Phase 4 CSS here */

:root {
  /* ── Brand Colors ── */
  --color-primary:       #2E7D32;
  --color-primary-dark:  #1B5E20;
  --color-primary-light: #4CAF50;
  --color-secondary:     #F9A825;
  --color-secondary-dark:#F57F17;
  --color-accent:        #D32F2F;
  --color-accent-light:  #FFCDD2;


  /* ── Neutrals ── */
  --color-dark:          #1A1A1A;
  --color-mid:           #444444;
  --color-muted:         #888888;
  --color-border:        #E0E0E0;
  --color-bg-light:      #F5F5F5;
  --color-bg-warm:       #FFF8E1;
  --color-white:         #FFFFFF;


  /* ── Typography ── */
  --font-body:    'Nunito Sans', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --text-xs:    12px;
  --text-sm:    13px;
  --text-base:  15px;
  --text-md:    17px;
  --text-lg:    20px;
  --text-xl:    24px;
  --text-2xl:   30px;
  --text-3xl:   38px;
  --text-4xl:   48px;


  /* ── Spacing ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;


  /* ── Radius ── */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full:9999px;


  /* ── Shadows ── */
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
  --shadow-header: 0 2px 12px rgba(0,0,0,0.08);


  /* ── Transitions ── */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* Primary Button */
.button, button, input[type="submit"] {
  background:    var(--color-primary);
  color:         var(--color-white);
  border-radius: var(--radius-sm);
  font-family:   var(--font-heading);
  font-weight:   600;
  font-size:     var(--text-sm);
  padding:       10px 20px;
  border:        2px solid var(--color-primary);
  transition:    all var(--transition-base);
  letter-spacing:0.4px;
  text-transform:uppercase;
}
.button:hover {
  background:    var(--color-primary-dark);
  border-color:  var(--color-primary-dark);
  transform:     translateY(-1px);
  box-shadow:    var(--shadow-hover);
}
/* Outline Button */
.button.is-outline {
  background: transparent;
  color:      var(--color-primary);
}
.button.is-outline:hover {
  background: var(--color-primary);
  color:      var(--color-white);
}
/* CTA / Secondary Button */
.button.button-cta {
  background:    var(--color-secondary);
  border-color:  var(--color-secondary);
  color:         var(--color-dark);
}
.button.button-cta:hover {
  background:    var(--color-secondary-dark);
  border-color:  var(--color-secondary-dark);
}


/*************** ADD CUSTOM CSS HERE.   ***************/

/* ── Mobile Bottom Navigation ── */
.afro-mobile-bottom-nav {
  position:   fixed;
  bottom:     0;
  left:       0;
  right:      0;
  z-index:    9999;
  display:    flex;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
  padding-bottom: env(safe-area-inset-bottom);
}
.afro-mnav-item {
  flex:           1;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content:center;
  padding:        8px 4px;
  color:          var(--color-muted);
  font-size:      10px;
  font-family:    var(--font-heading);
  font-weight:    600;
  text-decoration:none;
  transition:     color var(--transition-fast);
  gap:            3px;
}
.afro-mnav-item svg {
  width:  22px;
  height: 22px;
  fill:   currentColor;
}
.afro-mnav-item:hover,
.afro-mnav-item.active {
  color: var(--color-primary);
}
/* Add bottom padding to body on mobile to clear the nav bar */
@media (max-width: 767px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ── Enhanced Search Bar ── */
.header-search-form .search-field {
  height:        48px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border:        2px solid var(--color-border);
  border-right:  none;
  font-size:     var(--text-base);
  padding:       0 16px;
  transition:    border-color var(--transition-fast);
}
.header-search-form .search-field:focus {
  border-color:  var(--color-primary);
  outline:       none;
}
.header-search-form .search-submit {
  height:        48px;
  background:    var(--color-primary);
  color:         white;
  border:        none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding:       0 20px;
  cursor:        pointer;
  transition:    background var(--transition-fast);
}
.header-search-form .search-submit:hover {
  background: var(--color-primary-dark);
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}