/*
Theme Name: Foodphenic
Theme URI: https://foodphenic.local
Author: Foodphenic Senior Engineering Team
Author URI: https://foodphenic.local
Description: Bespoke premium e-commerce theme for Foodphenic Indian Spices, Masalas & Food Products, natively built for Elementor and WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: foodphenic
*/

/* Base CSS Reset & Typography Variables */
:root {
  /* Foodphenic Official Luxury Spice Design System */
  --fp-primary: #4B2E24;          /* 🤎 Primary Chocolate: Deep Brown */
  --fp-primary-dark: #3A231B;
  --fp-primary-light: #8B5A3C;     /* 🟤 Secondary: Cinnamon Brown */
  --fp-secondary: #8B5A3C;        /* 🟤 Secondary: Cinnamon Brown */
  --fp-secondary-light: #D68C45;  /* 🧡 CTA / Highlight: Caramel */
  --fp-cta: #D68C45;              /* 🧡 CTA / Highlight: Caramel */
  --fp-accent: #E5B85C;           /* ✨ Accent: Warm Gold */
  --fp-gold: #E5B85C;
  --fp-background: #FFF8EC;       /* 🥛 Background: Vanilla Cream */
  --fp-surface: #FFFCF7;          /* 🤍 Product Cards: Soft White */
  --fp-surface-warm: #EFE0CF;     /* ☕ Muted BG: Latte */
  --fp-text: #261C18;             /* 🖤 Text: Espresso */
  --fp-muted: #7C6A59;
  --fp-border: #E8E1D5;
  --fp-border-light: #EFE0CF;     /* ☕ Latte Border */
  --fp-success: #3E6B48;
  --fp-error: #B91C1C;
  --fp-radius-sm: 8px;
  --fp-radius-md: 14px;
  --fp-radius-lg: 20px;
  --fp-radius-full: 9999px;
  --fp-shadow-sm: 0 2px 8px rgba(75, 46, 36, 0.05);
  --fp-shadow-md: 0 8px 24px rgba(75, 46, 36, 0.08);
  --fp-shadow-lg: 0 16px 40px rgba(75, 46, 36, 0.12);
  --fp-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --fp-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fp-container-max: 1280px;
}

[data-theme="dark"] {
  --fp-primary: #E05A2B;
  --fp-primary-dark: #C24518;
  --fp-primary-light: #F97316;
  --fp-secondary: #F4B942;
  --fp-secondary-light: #FDE68A;
  --fp-accent: #4ADE80;
  --fp-accent-light: #86EFAC;
  --fp-background: #141210;
  --fp-surface: #1E1A17;
  --fp-surface-warm: #2A241F;
  --fp-text: #F7F3EE;
  --fp-muted: #B8ADA3;
  --fp-border: #383028;
  --fp-border-light: #2A241E;
  --fp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --fp-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --fp-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--fp-font-body);
  color: var(--fp-text);
  background-color: var(--fp-background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fp-font-heading);
  color: var(--fp-text);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--fp-primary);
  text-decoration: none;
  transition: var(--fp-transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.fp-container {
  width: 100%;
  max-width: var(--fp-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Mobile Announcement Top Bar Non-Clipping & Vertical Centering
   ========================================================================== */
.fp-announcement-bar {
  overflow: visible !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background-color: #4B2E24 !important;
  position: relative !important;
  z-index: 991 !important;
}

@media (max-width: 991px) {
  .fp-announcement-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 38px !important;
    height: auto !important;
    padding: 6px 14px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    line-height: 1.4 !important;
    background-color: #4B2E24 !important;
    text-align: center !important;
    gap: 4px !important;
  }

  .fp-announcement-content {
    justify-content: center !important;
    text-align: center !important;
  }

  .fp-announcement-text {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    color: #FFF8EC !important;
    letter-spacing: 0.2px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  .fp-announcement-offer {
    font-size: 0.72rem !important;
    color: #FFF8EC !important;
  }

  .fp-code-highlight {
    color: #FFDF00 !important;
    font-weight: 700 !important;
  }
}

/* Fix mobile WordPress Admin Bar clearance */
@media screen and (max-width: 782px) {
  html.admin-bar,
  body.admin-bar {
    margin-top: 46px !important;
  }
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

/* ==========================================================================
   HIDE UNCATEGORIZED CATEGORY PILL & FILTER (ALL DEVICES)
   ========================================================================== */
.fp-quick-pill[href*="uncategorized"],
a[href*="uncategorized"].fp-quick-pill,
.fp-shop-quick-pills a[href*="uncategorized"],
.fp-filter-cat-item a[href*="uncategorized"],
li.fp-filter-cat-item:has(a[href*="uncategorized"]),
a.fp-quick-pill[href*="/product-category/uncategorized/"],
.fp-cat-card[href*="uncategorized"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


