/*
 * 5D Premium CSS (Woodmart / Evaly / Chaldal Aesthetic)
 * Ultimate E-Commerce Revamp
 */

:root {
  --5d-primary: #119e4a;
  --5d-secondary: #f37321; /* Evaly Orange */
  --5d-glass: rgba(255, 255, 255, 0.92);
  --5d-shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
  --5d-shadow-hover: 0 15px 40px rgba(17, 158, 74, 0.15);
  --5d-border: 1px solid rgba(255, 255, 255, 0.6);
}

/* =======================================
   1. GLOBAL & SCROLL
   ======================================= */
body {
  background: #f8f9fc;
  font-family: 'Inter', sans-serif; /* Assumes Inter is loaded */
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--5d-primary); border-radius: 10px; }

/* =======================================
   2. WOODMART / EVALY STYLE HEADER
   ======================================= */
.dhp-header {
  background: var(--5d-glass) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--5d-border);
  box-shadow: var(--5d-shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 15px 0;
}
.dhp-header:hover {
  background: #ffffff !important;
  box-shadow: var(--5d-shadow-hover);
}

/* Pill-shaped Search Bar (Evaly style) */
.dhp-search-form {
  background: #f1f4f6 !important;
  border-radius: 999px !important;
  border: 2px solid transparent !important;
  display: flex;
  align-items: center;
  padding: 5px 20px !important;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}
.dhp-search-form:focus-within {
  background: #ffffff !important;
  border-color: var(--5d-primary) !important;
  box-shadow: 0 0 0 4px rgba(17, 158, 74, 0.1);
}
.dhp-search-form input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 15px;
  padding: 10px 0;
}
.dhp-search-form button {
  background: var(--5d-primary) !important;
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s ease;
}
.dhp-search-form button:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Header Icons (Cart, Account) */
.dhp-header__actions .dhp-btn {
  background: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  color: #333;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dhp-header__actions .dhp-btn:hover {
  background: var(--5d-primary);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(17, 158, 74, 0.3);
}

/* Cart Badge Pulse */
.dhp-badge {
  background: var(--5d-secondary) !important;
  color: #fff;
  font-weight: bold;
  animation: pulse-orange 2s infinite;
}
@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(243, 115, 33, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(243, 115, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 115, 33, 0); }
}

/* =======================================
   3. CATEGORY MEGA BAR
   ======================================= */
.dhp-catbar {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}
.dhp-catbar__all {
  background: var(--5d-primary) !important;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 700;
  transition: all 0.3s ease;
}
.dhp-catbar__all:hover {
  background: #0e853d !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 158, 74, 0.3);
}
.dhp-catbar__mega {
  border-radius: 0 0 16px 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  border: none;
  animation: slideMegaUp 0.3s forwards;
}
@keyframes slideMegaUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =======================================
   4. CHALDAL / EVALY STYLE PRODUCT CARDS
   ======================================= */
.dhp-product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
}
.dhp-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: rgba(17, 158, 74, 0.2);
}
.dhp-product-image img {
  transition: transform 0.5s ease;
}
.dhp-product-card:hover .dhp-product-image img {
  transform: scale(1.05);
}

/* Add to cart - Bold Chaldal style */
.dhp-product-card .add_to_cart_button {
  background: #fff !important;
  color: var(--5d-primary) !important;
  border: 1px solid var(--5d-primary) !important;
  border-radius: 8px;
  font-weight: 700;
  padding: 8px 15px;
  display: block;
  width: 90%;
  margin: 0 auto 15px auto;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dhp-product-card .add_to_cart_button:hover {
  background: var(--5d-primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(17, 158, 74, 0.2);
}

/* =======================================
   5. PERSISTENT AJAX SIDEBAR (SHOP)
   ======================================= */
@media (min-width: 992px) {
  .dhp-shop-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 15px;
  }
}
.dhp-shop-sidebar::-webkit-scrollbar { width: 4px; }
.dhp-shop-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.dhp-shop-sidebar .widget {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid #f3f4f6;
}
.dhp-shop-sidebar .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.dhp-shop-sidebar .widget-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: var(--5d-primary);
  margin-right: 10px;
  border-radius: 2px;
}
