/*
Theme Name: Hello Elementor Child
Theme URI: https://craftofindia.niryatbusiness.com/
Description: Premium artisanal export theme for Craft of India & Niryat Business.
Author: Craft of India Exporters
Author URI: https://craftofindia.niryatbusiness.com/
Template: hello-elementor
Version: 2.0.0
*/

/* ==========================================================================
   GLOBAL DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --primary: #8B5E3C;          /* Warm Terracotta / Rich Teak */
  --primary-dark: #5C3A21;     /* Deep Mahogany */
  --forest-green: #1F3D2B;     /* Royal Heritage Green */
  --forest-dark: #14281C;      /* Deep Forest */
  --secondary: #FBF8F2;        /* Royal Ivory / Sand */
  --secondary-alt: #F4EFE6;    /* Warm Linen */
  --accent: #D97706;           /* Saffron Gold */
  --accent-hover: #B45309;     /* Deep Amber */
  --gold: #D4AF37;             /* Burnished Royal Gold */
  --gold-light: #F3E5AB;       /* Soft Champagne */
  --text: #2B2B2B;             /* Charcoal */
  --text-muted: #666666;       /* Medium Slate */
  --white: #FFFFFF;
  --card-border: rgba(139, 94, 60, 0.14);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(31, 61, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--secondary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.5px;
  color: var(--forest-dark);
}

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

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

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-primary, .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #b89326 100%);
  color: #1a1a1a !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
}

.btn-primary:hover, .btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #e5c158 0%, var(--gold) 100%);
}

.btn-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--forest-green);
  color: var(--white) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 40px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(31, 61, 43, 0.25);
  transition: var(--transition);
}

.btn-forest:hover {
  background: var(--forest-dark);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(31, 61, 43, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--gold);
  color: var(--gold) !important;
  background: transparent;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--gold);
  color: #111 !important;
  transform: translateY(-2px);
}

.badge-gold {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */
.coi-topbar {
  background: var(--forest-dark);
  color: #e5e5e5;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.coi-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coi-topbar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.coi-topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coi-topbar-left i {
  color: var(--gold);
}

.coi-topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.coi-topbar-right a {
  color: #ddd;
}

.coi-topbar-right a:hover {
  color: var(--gold);
}

/* ==========================================================================
   MAIN BRAND HEADER WITH SEARCH & USER ACTIONS (Matching Exact Design)
   ========================================================================== */
.coi-main-header {
  background: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #ECE7DF;
  position: relative;
  z-index: 1000;
}

.coi-main-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

/* SEARCH BAR (Matching Screenshot) */
.coi-header-search {
  flex: 1;
  max-width: 550px;
  position: relative;
  display: flex;
  align-items: center;
}

.coi-header-search input {
  width: 100%;
  height: 44px;
  padding: 0 45px 0 20px;
  border: 1.5px solid #dcd6cc;
  border-radius: 30px;
  font-size: 14px;
  color: #333;
  background: #ffffff;
  outline: none;
  transition: all 0.25s ease;
}

.coi-header-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.coi-header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #E8F1FA;
  color: #4A88C7;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
}

.coi-header-search button:hover {
  background: #4A88C7;
  color: #ffffff;
}

/* USER ACTIONS (Cart, Login, Wishlist) */
.coi-header-user-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.coi-action-cart {
  position: relative;
  color: #333;
  font-size: 19px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.coi-action-cart:hover {
  color: var(--accent);
}

.coi-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #E8DCC4;
  color: #2F3E33;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.coi-action-login {
  font-size: 14px;
  font-weight: 600;
  color: #2F3E33;
  text-decoration: none;
  transition: color 0.2s ease;
}

.coi-action-login:hover {
  color: var(--accent);
}

.coi-action-wishlist {
  color: #333;
  font-size: 19px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.coi-action-wishlist:hover {
  color: #e02424;
}

.coi-navbar {
  background: #FAF7F2;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #ECE7DF;
  padding: 7px 0;
}

.coi-navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coi-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coi-brand-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  object-fit: cover;
}

.coi-brand-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1;
  margin: 0;
}

.coi-brand-text h2 span {
  color: var(--accent);
}

.coi-brand-text p {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}

.coi-nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 15px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.coi-nav-menu a {
  font-size: clamp(12.5px, 0.9vw, 13.5px);
  font-weight: 500;
  color: #333;
  padding: 6px 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.coi-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.coi-nav-menu a:hover::after, .coi-nav-menu a.active::after {
  width: 100%;
}

.coi-nav-menu a:hover, .coi-nav-menu a.active {
  color: var(--accent);
}

/* DROPDOWN SUBMENUS */
.coi-nav-has-sub {
  position: relative;
}

.coi-nav-has-sub .coi-caret {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.25s ease;
}

.coi-nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
}

.coi-nav-has-sub:hover .coi-nav-submenu,
.coi-nav-has-sub:focus-within .coi-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.coi-nav-has-sub:hover .coi-caret {
  transform: rotate(180deg);
}

.coi-nav-submenu li {
  width: 100%;
}

.coi-nav-submenu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  font-size: 13px !important;
  color: #333 !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.coi-nav-submenu a::after {
  display: none !important;
}

.coi-nav-submenu a i {
  color: var(--gold);
  font-size: 14px;
  width: 18px;
}

.coi-nav-submenu a:hover {
  background: #FAF7F2;
  color: var(--forest-green) !important;
  padding-left: 24px !important;
}

.coi-nav-quote-item {
  display: none;
}

.coi-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coi-nav-cta {
  background: linear-gradient(135deg, var(--forest-green) 0%, #13271a 100%);
  color: var(--gold) !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 14px rgba(31, 61, 43, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.coi-nav-cta:hover {
  background: linear-gradient(135deg, #13271a 0%, #0a170f 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 61, 43, 0.35);
}

.coi-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--forest-green);
  cursor: pointer;
}

/* SECONDARY CATEGORY BAR QUOTE PILL */
.coi-cat-rfq-item {
  margin-left: auto;
}

.coi-cat-rfq-pill {
  background: linear-gradient(135deg, var(--forest-green) 0%, #13271a 100%) !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  border: 1px solid var(--gold) !important;
  border-radius: 20px;
  padding: 4px 14px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.coi-cat-rfq-pill:hover {
  background: #13271a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   FLOATING WHATSAPP & RFQ WIDGET
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  cursor: pointer;
  transition: var(--transition);
  animation: pulseWa 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   LUXURY FOOTER
   ========================================================================== */
.coi-footer {
  background: var(--forest-dark);
  color: #d1d5db;
  padding: 80px 20px 30px;
  border-top: 4px solid var(--gold);
}

.coi-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.coi-footer-col h3 {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.coi-footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.coi-footer-col p {
  font-size: 14px;
  line-height: 1.8;
  color: #b0b5bd;
  margin-bottom: 20px;
}

.coi-footer-links {
  list-style: none;
}

.coi-footer-links li {
  margin-bottom: 12px;
}

.coi-footer-links a {
  color: #c5cad1;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coi-footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.coi-footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  color: #c5cad1;
}

.coi-footer-contact i {
  color: var(--gold);
  margin-top: 5px;
}

.coi-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.coi-badge-tag {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.coi-footer-bottom {
  max-width: 1400px;
  margin: 60px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8f96a3;
  flex-wrap: wrap;
  gap: 15px;
}

.coi-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.coi-footer-bottom-links a:hover {
  color: var(--gold);
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 1024px) {
  .coi-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 1150px) {
  .coi-nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 320px;
    max-width: 85%;
    height: calc(100vh - 76px);
    background: #ffffff;
    flex-direction: column;
    padding: 24px 18px;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.35s ease;
    align-items: stretch;
    overflow-y: auto;
    z-index: 1000;
  }

  .coi-nav-menu.active {
    left: 0;
  }

  .coi-nav-menu > li > a {
    font-size: 14.5px !important;
    padding: 9px 12px !important;
    border-radius: 6px;
    width: 100%;
    display: flex !important;
    justify-content: flex-start;
  }

  .coi-nav-menu > li > a:hover,
  .coi-nav-menu > li > a.active {
    background: #FAF7F2;
    color: var(--accent);
  }

  .coi-menu-toggle {
    display: block;
  }

  .coi-nav-has-sub .coi-nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gold);
    padding: 4px 0 4px 12px;
    margin: 6px 0;
    display: none;
    background: #faf7f2;
  }

  .coi-nav-has-sub.is-open .coi-nav-submenu {
    display: block;
  }

  .coi-nav-quote-item {
    display: block;
    margin-top: 16px;
  }

  .coi-nav-quote-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--forest-green) !important;
    color: var(--gold) !important;
    border: 1px solid var(--gold);
    padding: 12px 20px !important;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .coi-topbar {
    display: none;
  }

  .coi-footer-container {
    grid-template-columns: 1fr;
  }

  .coi-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   SECONDARY CATEGORY NAVIGATION BAR (10 Categories + Dropdowns)
   ========================================================================== */
.coi-cat-nav-bar {
  background: #FAF7F2;
  border-top: 1px solid #EAE4D9;
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
  position: relative;
  z-index: 998;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.coi-cat-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.coi-cat-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.coi-cat-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.coi-cat-item {
  position: relative;
  flex-shrink: 0;
}

.coi-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 13px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2F3E33;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  white-space: nowrap;
  border-radius: 4px;
}

.coi-cat-link:hover,
.coi-cat-item:hover > .coi-cat-link,
.coi-cat-item.is-open > .coi-cat-link {
  color: var(--forest-green);
  background: #F0EAE1;
}

.coi-plus {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.coi-cat-item:hover .coi-plus,
.coi-cat-item.is-open .coi-plus {
  transform: rotate(45deg);
  color: var(--accent);
}

.coi-cat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid #e9e5dc;
  border-top: 3px solid var(--gold);
  padding: 10px 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.coi-cat-item:hover .coi-cat-dropdown,
.coi-cat-item.is-open .coi-cat-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.coi-dropdown-header {
  padding: 8px 18px 10px 18px;
  border-bottom: 1px solid #f2eee8;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-green);
  font-size: 13px;
}

.coi-dropdown-header i {
  color: var(--gold);
}

.coi-subcat-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.coi-subcat-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s ease;
}

.coi-subcat-list li a i {
  font-size: 9px;
  color: #aaa;
  transition: transform 0.2s ease, color 0.2s ease;
}

.coi-subcat-list li a:hover {
  background: #fbf8f3;
  color: var(--forest-green);
  font-weight: 600;
  padding-left: 22px;
}

.coi-subcat-list li a:hover i {
  color: var(--gold);
  transform: translateX(3px);
}

.coi-dropdown-footer {
  padding: 8px 18px 4px 18px;
  border-top: 1px solid #f2eee8;
}

.coi-dropdown-footer a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.coi-dropdown-footer a:hover {
  color: var(--forest-green);
  text-decoration: underline;
}

@media (max-width: 992px) {
  .coi-cat-list {
    justify-content: flex-start;
    gap: 4px;
    padding: 4px 0;
  }
  .coi-cat-link {
    font-size: 12px;
    padding: 8px 10px;
  }
}
