
:root {
  --primary-accent: #10b981;    /* Vibrant Emerald */
  --primary-hover: #059669;     /* Deep Emerald */
  --bg-dark: #0f172a;           /* Deep Slate Background */
  --bg-card: #1e293b;           /* Lighter Slate for Cards */
  --text-primary: #f8fafc;      /* Soft White Text */
  --text-muted: #94a3b8;        /* Muted Blue-Grey Text */
  --border-color: #334155;      /* Subtle Slate Borders */
  --radius-lg: 12px;
  --glass-effect: rgba(255, 255, 255, 0.03);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', 'Inter', sans-serif;
}
.product-layout {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-layout:hover {
  border-color: var(--primary-accent);
  transform: scale(1.02);
  background: rgba(30, 41, 59, 0.8);
}

.product-thumb .caption h4 a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

.product-thumb .price {
  color: var(--primary-accent);
  font-size: 1.2rem;
  font-weight: 800;
}
.button-group button,
#button-cart {
  background-color: var(--primary-accent);
  color: #ffffff;
  border-radius: var(--radius-lg);
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.button-group button:hover,
#button-cart:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.23);
  transform: translateY(-1px);
}
#menu {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px); /* Modern blur effect */
}

#menu .nav > li > a {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

#menu .nav > li:hover > a {
  color: var(--primary-accent);
  background: var(--glass-effect);
}

/* Style for the search bar */
#search .form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
}
/* Ensure the menu container has a high stack order */
#menu {
  position: relative;
  z-index: 9999 !important; /* Forces menu to the front */
}

/* Ensure dropdown menus specifically sit above cards */
#menu .dropdown-menu {
  z-index: 10000 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); /* Adds depth */
}

/* Fix for OpenCart 3.x specific wrapper issues */
.nav-responsive, .container {
  overflow: visible !important; /* Prevents containers from cutting off dropdowns */
}

/* Ensure product layouts don't 'fight' for the top spot */
.product-layout {
  z-index: 1;
}
/* Style the dropdown container */
#menu .dropdown-menu {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); /* Rounded bottom corners */
  padding: 10px 0;
  margin-top: 0;
  min-width: 200px;
}

/* Style the links inside the dropdown */
#menu .dropdown-inner a {
  color: var(--text-muted) !important;
  padding: 8px 20px !important;
  display: block;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* Dropdown link hover state */
#menu .dropdown-inner a:hover {
  color: var(--primary-accent) !important;
  background-color: var(--glass-effect) !important;
  padding-left: 25px !important; /* Slight "slide" effect on hover */
}

/* Style the "Show All" link at the bottom of dropdowns */
#menu .see-all {
  border-top: 1px solid var(--border-color);
  color: var(--text-primary) !important;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.05) !important;
}

#menu .see-all:hover {
  background: var(--primary-accent) !important;
  color: #fff !important;
}

/* Fix for mobile menu consistency */
@media (max-width: 767px) {
  #menu .navbar-collapse {
    background-color: var(--bg-card);
    border-color: var(--border-color);
  }
}
/* Remove default blue background on dropdown items */
#menu .dropdown-menu li > a:hover,
#menu .dropdown-menu li > a:focus,
#menu .nav > li.open > a,
#menu .nav > li.open > a:hover,
#menu .nav > li.open > a:focus {
  background-color: var(--glass-effect) !important; /* Soft dark grey instead of blue */
  background-image: none !important; /* Removes default Bootstrap gradients */
  color: var(--primary-accent) !important; /* Modern emerald text */
}

/* Ensure the dropdown container itself has no blue shadows or borders */
#menu .dropdown-menu {
  background-image: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Fix for the "See All" link at the bottom which often turns blue */
#menu .see-all:hover,
#menu .see-all:focus {
  background-color: var(--primary-accent) !important;
  color: #ffffff !important;
}
/* Modern Glass Container */
.panel, .well, .list-group-item, #cart .dropdown-menu {
  background: rgba(30, 41, 59, 0.7) !important; /* Semi-transparent Slate */
  backdrop-filter: blur(12px); /* The "frosted" look */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important; /* The "shimmer" edge */
  border-radius: var(--radius-lg);
  color: var(--text-primary);
}
/* Sidebar Category List */
#column-left .list-group-item,
#column-right .list-group-item {
  background: transparent !important; /* Make parent clear */
  border: none;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

#column-left .list-group-item:hover,
#column-left .list-group-item.active {
  background: var(--glass-effect) !important;
  color: var(--primary-accent) !important;
  padding-left: 25px; /* Interactive movement */
}

/* Sidebar Wrapper */
#column-left, #column-right {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: 15px;
}
/* Glass Inputs */
.form-control {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-accent) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}
#cart .dropdown-menu {
  width: 350px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 20px;
}

#cart .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}

#cart .table td {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}
/* Ensure the cart container and dropdown stay at the very top */
#cart {
  position: relative;
  z-index: 10001 !important; /* Higher than the menu's 9999 */
}

#cart .dropdown-menu {
  z-index: 10002 !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important; /* Forces it to align to the right side of the button */

  /* Modern Glassmorphism Styling */
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4) !important;
}

/* Fix for OpenCart 3.x common header clipping */
header {
  overflow: visible !important;
  position: relative;
  z-index: 10000;
}

/* Ensure the cart text/items inside the glass dropdown are visible */
#cart .dropdown-menu li,
#cart .dropdown-menu p,
#cart .dropdown-menu strong {
  color: var(--text-primary) !important;
}

#cart .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Remove default blue/white button borders inside cart */
#cart .btn-primary {
  background-color: var(--primary-accent) !important;
  border: none !important;
}
/* Increase side spacing for the fluid container */
.container-fluid {
  padding-left: 5% !important;
  padding-right: 5% !important;
  transition: padding 0.3s ease; /* Smooth transition for resizing */
}

/* Optional: Add extra padding for ultra-wide screens (4K / Large Desktops) */
@media (min-width: 1600px) {
  .container-fluid {
    padding-left: 8% !important;
    padding-right: 8% !important;
  }
}

/* Ensure mobile devices still have comfortable edges */
@media (max-width: 767px) {
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Fix for the Row alignment */
/* (Removes the negative margins that can cause horizontal scrollbars) */
.row {
  margin-left: 0;
  margin-right: 0;
}
/* --- Modern Glass Footer --- */
footer {
  margin-top: 60px;
  padding: 60px 0 30px;
  background: var(--bg-card) !important; /* Matches the menu and cards */
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Footer Heading Style */
footer h5 {
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  position: relative;
}

/* Subtle accent line under headings */
footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--primary-accent);
}

/* Modernizing Footer Links */
footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

footer ul li a:hover {
  color: var(--primary-accent) !important;
  transform: translateX(5px); /* Smooth slide effect */
}

/* Bottom Bar (Copyright area) */
footer hr {
  border-color: var(--border-color);
  margin: 40px 0 20px;
}

footer p {
  font-size: 14px;
  opacity: 0.8;
}

/* Social Media Icons (if your theme uses them) */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-effect);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-accent);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--primary-accent);
}

/* Responsive fix for footer spacing */
@media (max-width: 767px) {
  footer {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }

  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Force clean emerald on Add to Cart buttons */
.button-group button,
#button-cart,
.btn-primary {
  background-image: none !important; /* Kills the default blue gradient top */
  background-color: var(--primary-accent) !important;
  border: none !important;
  box-shadow: none !important; /* Removes the old blue '3D' bottom edge */
  transition: all 0.3s ease;
  color: #ffffff !important;
}

/* Hover state: Darker Emerald only, no blue */
.button-group button:hover,
#button-cart:hover,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background-image: none !important;
  background-color: var(--primary-hover) !important; /* Use the darker emerald */
  color: #ffffff !important;
  box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3) !important; /* Modern emerald glow */
  transform: translateY(-1px);
}

/* Fix for the small icons inside the buttons */
.button-group button i,
#button-cart i {
  color: #ffffff !important;
  margin-right: 5px;
}
