
: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-md);
  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;
}
/* Ensure the darkened background overlay is above the menu */
.modal-backdrop {
  z-index: 10040 !important;
}

/* Ensure the Shipping Quote box itself is at the very top */
.modal {
  z-index: 10050 !important;
}

/* Glassmorphism for the Modal Box to match your theme */
.modal-content {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Modal Header & Footer Styling */
.modal-header, .modal-footer {
  border-color: var(--border-color) !important;
}

.modal-header .close {
  color: var(--text-primary);
  opacity: 0.8;
}

/* Ensure form labels inside the modal are readable */
.modal label {
  color: var(--text-muted);
}
/* --- Modern Pagination Container --- */
.pagination {
  display: flex;
  gap: 8px; /* Space between numbers */
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Base style for all pagination items */
.pagination > li > a,
.pagination > li > span {
  background: var(--bg-card) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important; /* Uses your 8px radius */
  padding: 8px 16px !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

/* Hover State */
.pagination > li > a:hover {
  background: var(--glass-effect) !important;
  color: var(--primary-accent) !important;
  border-color: var(--primary-accent) !important;
  transform: translateY(-2px);
}

/* Active Page (The current page you are on) */
.pagination > li.active > span,
.pagination > li.active > a {
  background: var(--primary-accent) !important;
  color: #ffffff !important;
  border-color: var(--primary-accent) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* The "Showing 1 to 15 of 50" text next to the bar */
.pagination + .results,
div.text-right:has(.pagination), /* Targets the text container */
.col-sm-6.text-right {
  color: var(--text-muted) !important;
  font-size: 14px;
  margin-top: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Ensure the arrows (<<, >>) look clean */
.pagination > li:first-child > a,
.pagination > li:last-child > a {
  border-radius: var(--radius-md) !important;
}
/* --- Sort By & Show Per Page Dropdowns --- */

/* Wrapper container (usually a text-right div in OpenCart) */
.limits-container, .sort-container, .form-inline, .product-filter {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

/* Labels for "Sort By" and "Show" */
.limits-container label, .sort-container label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Style the Select/Dropdown Boxes (using your Glass style) */
.input-group-btn + .form-control,
.form-inline .form-control {
  /* Inherit the glass input styles */
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
  border-radius: var(--radius-md); /* 8px radius */
  padding: 8px 12px;
  appearance: none; /* Removes default OS dropdown arrow */
  min-width: 150px;
}

/* Add custom arrow back using FontAwesome 6 */
.form-inline .form-control + .fa-chevron-down {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Allows clicks to pass through the icon */
  color: var(--text-muted);
}

/* Fix for the view switcher buttons (Grid/List View icons) */
#list-view, #grid-view {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 12px;
  transition: all 0.3s ease;
}

#list-view:hover, #grid-view:hover, .btn-primary.active {
  background: var(--primary-accent) !important;
  color: #fff !important;
  border-color: var(--primary-accent) !important;
}

/* Ensure the icons inside the view buttons are visible */
#list-view i, #grid-view i {
  color: inherit !important;
}
/* --- Modern Breadcrumb / Sub-Nav Bar --- */
.breadcrumb {
  background: var(--glass-effect) !important; /* Semi-transparent overlay */
  backdrop-filter: blur(10px);
  padding: 12px 20px !important;
  margin-bottom: 30px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  list-style: none;
  display: flex;
  align-items: center;
}

/* Breadcrumb Links */
.breadcrumb > li > a {
  color: var(--text-muted) !important;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.breadcrumb > li > a:hover {
  color: var(--primary-accent) !important;
}

/* Custom Separator (The "/" between links) */
.breadcrumb > li + li::before {
  content: "\f105" !important; /* FontAwesome 6 Chevron Right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  padding: 0 15px;
  color: var(--border-color);
  font-size: 12px;
}

/* Home Icon specific styling */
.breadcrumb > li:first-child a i {
  color: var(--primary-accent);
  margin-right: 5px;
}

/* Current Page (Last item in breadcrumb) */
.breadcrumb > li:last-child,
.breadcrumb > li.active {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}
/* Sharp Navigation Text Fix */
#menu .nav > li > a,
.breadcrumb > li > a,
footer ul li a {
  text-shadow: none !important; /* Removes the "blurry" glow */
  filter: none !important;      /* Removes any CSS blur filters */
  -webkit-font-smoothing: antialiased; /* Forces smooth, sharp rendering */
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.2s ease-in-out;
}

/* Sharp Emerald Hover (No Blur) */
#menu .nav > li:hover > a,
.breadcrumb > li > a:hover,
footer ul li a:hover {
  color: var(--primary-accent) !important;
  background: transparent !important; /* Removes any blurry background boxes */
  text-shadow: none !important;
}

/* If the "blurry green background" is a box, this removes it */
#menu .nav > li > a:focus,
#menu .nav > li > a:hover {
  background-color: rgba(16, 185, 129, 0.05) !important; /* Very subtle sharp tint */
  border-radius: var(--radius-sm);
}
/* --- Modernized Top Nav Bar --- */
nav#top {
  background-color: var(--bg-dark) !important; /* Deep Slate background */
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  min-height: 40px;
}

/* Style for top bar links (Currency, Language, My Account, Wishlist, Checkout) */
nav#top .nav > li > a,
nav#top .nav > li > span,
nav#top .btn-link {
  color: var(--text-primary) !important; /* Soft white text */
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-shadow: none !important;
  transition: color 0.3s ease;
}

/* Hover state for top bar links */
nav#top .nav > li > a:hover,
nav#top .btn-link:hover {
  color: var(--primary-accent) !important; /* Sharp Emerald hover */
  background: transparent !important;
}

/* Style for the icons next to top bar links */
nav#top .nav i,
nav#top .btn-link i {
  color: var(--primary-accent) !important; /* Emerald icons */
  margin-right: 5px;
  font-size: 14px;
}

/* Dropdown menus in the top bar (Currency/Language/Account) */
nav#top .dropdown-menu {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius-sm);
}

nav#top .dropdown-menu li > a {
  color: var(--text-muted) !important;
}

nav#top .dropdown-menu li > a:hover {
  background-color: var(--glass-effect) !important;
  color: var(--primary-accent) !important;
}
/* --- Sharp Header Text Fix --- */
nav#top,
nav#top .nav > li > a,
nav#top .nav > li > span,
nav#top .btn-link {
  text-shadow: none !important; /* Removes the "blurry" duplicate layer */
  filter: none !important;      /* Removes any CSS blur filters */
  letter-spacing: 0.2px;        /* Adds tiny space for better legibility */
  -webkit-font-smoothing: antialiased; /* Forces high-definition rendering */
  -moz-osx-font-smoothing: grayscale;
}

/* Fix for the hover state "glow" */
nav#top .nav > li > a:hover,
nav#top .btn-link:hover {
  text-shadow: none !important;
  background-color: transparent !important; /* Removes blurry background boxes */
  color: #10b981 !important; /* Sharp Emerald from your logo */
}

/* Ensure icons are also sharp and not glowing */
nav#top .fa, nav#top .fa-solid, nav#top .fa-regular {
  filter: none !important;
  text-shadow: none !important;
  opacity: 1 !important; /* Prevents "faded" blur look */
}
/* --- Global Sharp Text Optimization --- */
#menu .nav > li > a,
.product-thumb .caption h4 a,
.product-thumb .price,
.product-thumb .caption p,
h1, h2, h3, h4, h5, h6,
.breadcrumb > li,
.pagination > li > a,
nav#top .nav > li > a {
  text-shadow: none !important; /* Removes legacy blurry 'shadow' layers */
  filter: none !important;      /* Kills any CSS blur filters */
  -webkit-font-smoothing: antialiased; /* High-definition text rendering */
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.1px;        /* Prevents letters from 'bleeding' together */
}

/* Sharp Product Titles */
.product-thumb .caption h4 a {
  color: var(--text-primary) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  transition: color 0.2s ease;
}

.product-thumb .caption h4 a:hover {
  color: var(--primary-accent) !important; /* Sharp Emerald transition */
  text-decoration: none;
}

/* Sharp Price Display */
.product-thumb .price {
  color: var(--primary-accent) !important;
  font-weight: 800;
  font-size: 1.2rem;
}

/* Ensure the main menu hover is also crystal clear */
#menu .nav > li:hover > a {
  background-color: var(--glass-effect) !important;
  color: var(--primary-accent) !important;
  text-shadow: none !important;
}
/* --- Modern Tech Search Bar --- */
#search {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

#search .form-control {
  background: rgba(30, 41, 59, 0.4) !important; /* Glass effect */
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-full) 0 0 var(--radius-full) !important; /* Pill left side */
  color: var(--text-primary) !important;
  height: 44px;
  padding: 0 25px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

/* Search Focus State */
#search .form-control:focus {
  border-color: var(--primary-accent) !important;
  background: rgba(30, 41, 59, 0.8) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important; /* Subtle Emerald glow */
}

/* Search Button Style */
#search .btn-lg {
  background-color: var(--primary-accent) !important;
  color: #fff !important;
  border: 1px solid var(--primary-accent) !important;
  border-radius: 0 var(--radius-full) var(--radius-full) 0 !important; /* Pill right side */
  height: 44px;
  padding: 0 20px;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

#search .btn-lg:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: scale(1.05); /* Slight "pop" effect */
}

/* Icon inside the search button */
#search .btn-lg i {
  color: #fff !important;
  text-shadow: none !important;
}

/* Placeholder text color */
#search .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
/* --- Fix: Search and Cart Stacking --- */

/* 1. Ensure the cart container is always on top */
#cart {
  position: relative;
  z-index: 10001 !important; /* One layer higher than the search bar */
}

/* 2. Set the search bar to a lower layer */
#search {
  position: relative;
  z-index: 10000 !important;
}

/* 3. Force the cart dropdown to sit above everything */
#cart .dropdown-menu {
  z-index: 10002 !important;
}

/* 4. Vertical alignment fix for the header row */
header .row {
  display: flex;
  align-items: center; /* Vertically centers the logo, search, and cart */
  flex-wrap: wrap;
}

/* 5. Prevent the search bar from 'pushing' the cart */
@media (min-width: 768px) {
  #search {
    margin-top: 0;
    margin-bottom: 0;
  }
}
/* --- Ultra-Sharp Top Bar Links --- */
nav#top .nav > li > a,
nav#top .nav > li > span,
nav#top ul.list-inline li a,
nav#top #top-links li a {
  text-shadow: none !important;      /* Removes the blurry legacy shadow */
  filter: none !important;           /* Kills any browser-applied blur */
  font-smoothing: antialiased;       /* Standard property */
  -webkit-font-smoothing: antialiased; /* Chrome/Safari sharpening */
  -moz-osx-font-smoothing: grayscale;  /* Firefox sharpening */

  /* Ensure a solid, non-transparent color for maximum clarity */
  color: #f8fafc !important;
  opacity: 1 !important;
}

/* Sharp Emerald Hover for Phone/Account */
nav#top .nav > li > a:hover,
nav#top #top-links li a:hover {
  color: #10b981 !important; /* Matches your logo's emerald */
  text-shadow: none !important;
  background: transparent !important;
}

/* Sharpness for the small icons next to the text */
nav#top i.fa, nav#top i.fa-solid {
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
  display: inline-block; /* Helps rendering engine stabilize the icon */
}
/* --- Header Layout Alignment --- */
header .container-fluid > .row {
  display: flex !important;
  align-items: center; /* Vertically centers logo, search, and cart */
  justify-content:空间-between; /* Pushes items to the far edges */
  flex-wrap: nowrap; /* Prevents the cart from dropping to a new line */
}

/* 1. Logo Container (Far Left) */
header .col-sm-3,
header #logo {
  flex: 0 0 auto;
  margin-right: 20px;
}

/* 2. Search Container (Center) */
header .col-sm-5,
header #search {
  flex: 1; /* Allows search to grow and fill the middle space */
  max-width: 600px; /* Prevents search from getting too wide */
  margin: 0 30px;
}

/* 3. Cart Container (Far Right) */
header .col-sm-4,
header #cart {
  flex: 0 0 auto;
  margin-left: auto; /* Pushes the cart as far right as possible */
  display: flex;
  justify-content: flex-end;
}

/* Ensure the cart button itself doesn't have extra left margins */
#cart .btn-block {
  margin-top: 0 !important;
  width: auto !important;
  min-width: 180px; /* Keeps the button a consistent size */
}

/* Mobile Fix: Stack them properly on small screens */
@media (max-width: 767px) {
  header .container-fluid > .row {
    flex-wrap: wrap;
    justify-content: center;
  }
  header #search {
    order: 3; /* Moves search below logo and cart on mobile */
    margin: 15px 0 0;
    width: 100%;
  }
}
/* --- Modernized Cart Button & Total --- */
#cart > .btn {
  background: var(--bg-card) !important; /* Semi-transparent Slate from logo bg */
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-full) !important; /* Matches search bar pill shape */
  padding: 10px 20px !important;
  color: #f3f4f6 !important; /* Sharp Off-White from logo 'The Gadget' */
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

#cart > .btn:hover {
  border-color: var(--primary-accent) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  transform: translateY(-1px);
}

/* Style the Cart Icon */
#cart > .btn i {
  color: var(--primary-accent) !important; /* Vibrant Emerald from logo 'G' */
  font-size: 18px;
}

/* Style the Text Total (e.g., "2 item(s) - $150.00") */
#cart-total {
  font-size: 14px;
  letter-spacing: 0.5px;
  text-shadow: none !important; /* Ensures maximum sharpness */
  -webkit-font-smoothing: antialiased;
}

/* Highlight the price portion specifically if possible */
#cart-total b, #cart-total span.price {
  color: var(--primary-accent);
}

/* Fix for mobile header spacing */
@media (max-width: 767px) {
  #cart {
    margin-top: 10px;
    width: 100%;
  }
  #cart > .btn {
    justify-content: center;
  }
}
/* --- Mobile Header Centering Fix --- */
@media (max-width: 767px) {
  /* 1. Force the header row to stack items vertically */
  header .container-fluid > .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px; /* Space between logo, search, and cart */
    padding-bottom: 20px;
  }

  /* 2. Center the Logo */
  header #logo {
    margin: 0 auto !important;
    display: block;
  }

  header #logo img {
    margin: 0 auto;
  }

  /* 3. Center the Search Bar and make it full width */
  header #search {
    width: 100% !important;
    max-width: 90% !important; /* Leaves a small margin on edges */
    margin: 0 auto !important;
  }

  /* 4. Center the Cart Button */
  header #cart {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  #cart > .btn {
    width: auto !important;
    min-width: 200px;
    justify-content: center;
  }

  /* 5. Clean up the Top Bar for mobile */
  nav#top .container-fluid {
    text-align: center;
  }

  nav#top .nav.pull-right {
    float: none !important;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
}
/* --- Mobile Menu (Hamburger) Styling --- */
@media (max-width: 767px) {
  /* Style the main toggle button */
  .navbar-header .navbar-toggle {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--primary-accent) !important; /* Emerald border from logo */
    border-radius: var(--radius-md);
    margin-right: 15px;
    transition: all 0.3s ease;
  }

  /* Color the three lines (hamburger) Emerald */
  .navbar-header .navbar-toggle .icon-bar {
    background-color: var(--primary-accent) !important;
  }

  .navbar-header .navbar-toggle:hover {
    background-color: var(--primary-accent) !important;
  }

  .navbar-header .navbar-toggle:hover .icon-bar {
    background-color: #fff !important; /* Lines turn white on hover */
  }

  /* Style the mobile menu dropdown container */
  #menu .navbar-collapse {
    background-color: var(--bg-dark) !important; /* Deep Slate background */
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    max-height: 80vh; /* Prevents menu from being taller than screen */
    overflow-y: auto;
  }

  /* Style the menu links on mobile */
  #menu .nav > li > a {
    color: var(--text-primary) !important; /* Sharp Off-White */
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
  }

  /* Active/Hover state for mobile links */
  #menu .nav > li > a:hover,
  #menu .nav > li.open > a {
    color: var(--primary-accent) !important;
    background-color: var(--glass-effect) !important;
  }
}
/* --- Mobile Search Icon Styling --- */
@media (max-width: 767px) {
  /* Style the magnifying glass icon specifically for mobile */
  #search .btn-lg i {
    color: var(--primary-accent) !important; /* Vibrant Emerald from 'Shop' */
    font-size: 20px;
    text-shadow: none !important; /* Keeps it ultra-sharp */
    transition: transform 0.2s ease;
  }

  /* Make the button background more subtle on mobile to let the icon shine */
  #search .btn-lg {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
  }

  /* Icon interaction when tapped */
  #search .btn-lg:active i {
    transform: scale(0.9);
    color: #fff !important;
  }
}
/* --- High-Visibility Cart Badge --- */
#cart-total-count,
.badge-emerald,
#cart .btn-block .cart-count {
  background-color: #26b978 !important; /* The vibrant green from your logo */
  color: #0f172a !important;            /* Deep Slate text for high contrast */
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;

  /* Perfect Circle Shape */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);

  /* Positioning and Depth */
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0 5px;
  border: 2px solid #0f172a !important; /* 'The Gadget Shop' dark bg border */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Pulse animation to draw attention when items are added */
@keyframes emerald-pulse {
  0% { box-shadow: 0 0 0 0 rgba(38, 185, 120, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(38, 185, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 185, 120, 0); }
}

#cart-total-count:not(:empty) {
  animation: emerald-pulse 2s infinite;
}
/* --- Fix: Currency & Language Dropdown Layering --- */

/* 1. Ensure the top bar container doesn't 'clip' its own dropdowns */
nav#top {
  position: relative;
  z-index: 10010 !important; /* Higher than menu and logo */
  overflow: visible !important;
}

/* 2. Push the dropdown menu to the very front */
nav#top .dropdown-menu {
  z-index: 10020 !important;
  background-color: var(--bg-card) !important; /* Slate from logo */
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
  margin-top: 5px;
}

/* 3. Ensure the text inside is ultra-sharp (No Blur) */
nav#top .dropdown-menu li > a,
nav#top .dropdown-menu li > button {
  color: var(--text-primary) !important;
  text-shadow: none !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
}

/* 4. Hover state matching the logo's 'Shop' Emerald */
nav#top .dropdown-menu li > a:hover,
nav#top .dropdown-menu li > button:hover {
  background-color: var(--glass-effect) !important;
  color: #26b978 !important; /* The vibrant green from your logo */
}

/* 5. Fix for mobile: Center the dropdowns when the bar stacks */
@media (max-width: 767px) {
  nav#top .dropdown-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 200px;
  }
}
/* --- Modern Gadget Image Hover Effect --- */
.product-thumb .image {
  overflow: hidden; /* Clips the zoom within the card boundaries */
  border-radius: var(--radius-lg);
  position: relative;
}

.product-thumb .image img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth cinematic zoom */
  display: block;
  width: 100%;
}

/* 1. The Cinematic Zoom */
.product-layout:hover .image img {
  transform: scale(1.1); /* Subtle zoom in */
}

/* 2. Slide-in Action Icons (Wishlist/Compare) */
.product-thumb .button-group {
  position: absolute;
  bottom: -50px; /* Hidden below the card initially */
  left: 0;
  width: 100%;
  background: rgba(30, 41, 59, 0.85); /* Slate Glassmorphism */
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--border-color);
}

.product-layout:hover .button-group {
  bottom: 0; /* Slides up into view on hover */
}

/* 3. Action Icon Styling */
.button-group button[data-toggle="tooltip"] {
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-group button[data-toggle="tooltip"]:hover {
  border-color: var(--primary-accent) !important;
  color: var(--primary-accent) !important;
  background: var(--glass-effect) !important;
  transform: translateY(-2px);
}
/* --- Corrected Glass Shine Animation --- */
.product-thumb .image {
  position: relative;
  overflow: hidden; /* This keeps the shine inside the box */
}

.product-thumb .image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%; /* Start far left */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  /* Apply the sweep to the beam itself, NOT the card */
  animation: shine-sweep 1.5s ease-in-out forwards;
}

/* Hover trigger for the beam */
.product-layout:hover .image::after {
  animation: none; /* Reset auto-animation */
  left: 150%;
  transition: left 0.6s ease-in-out;
}

/* Keyframes for the beam ONLY */
@keyframes shine-sweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* REMOVE this block if you still have it in your file:
.product-layout { animation: initial-shine... }
*/
/* --- High-Tech Emerald Rating Stars --- */

/* Style for filled stars */
.rating .fa-stack .fa-star.fa-stack-1x,
.product-thumb .rating .fa-star,
.product-info .rating .fa-star {
  color: var(--primary-accent) !important; /* Vibrant Emerald from logo */
  text-shadow: 0 0 8px rgba(38, 185, 120, 0.4) !important; /* Subtle tech glow */
}

/* Style for empty stars */
.rating .fa-stack .fa-star-o,
.product-thumb .rating .fa-star-o,
.product-info .rating .fa-star-o {
  color: var(--border-color) !important; /* Muted Slate */
  opacity: 0.5;
}

/* Fix for the star stack container alignment */
.rating .fa-stack {
  font-size: 10px;
  width: 1.2em;
  height: 1.2em;
  line-height: 1.2em;
}
/* --- Premium Emerald Price Display --- */
.product-info .price,
#content .price-new,
.product-thumb .price {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-accent) !important; /* Logo Emerald */
  font-weight: 800;
  font-size: 2.5rem; /* Large and bold for product page */
  letter-spacing: -1px;
  line-height: 1;
  margin: 15px 0;
  display: block;
  text-shadow: 0 0 15px rgba(38, 185, 120, 0.25); /* Subtle emerald glow */
}

/* Style for the "Ex-Tax" or "Old Price" text */
.product-info .price-old,
.product-thumb .price-old {
  color: var(--text-muted) !important;
  text-decoration: line-through;
  font-size: 1.2rem;
  font-weight: 400;
  margin-right: 10px;
  opacity: 0.6;
}

/* Style for Tax text below the price */
.product-info .price-tax {
  color: var(--text-muted) !important;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-top: -5px;
}
/* --- Modernized Product Options --- */

/* Style for the Option Labels (e.g., "Color", "Size") */
#product .control-label {
  color: var(--text-primary) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

/* Style for Radio/Checkbox Labels (The clickable text) */
#product .radio label, #product .checkbox label {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover and Active State for Options */
#product .radio label:hover, #product .checkbox label:hover {
  border-color: var(--primary-accent) !important;
  color: var(--primary-accent) !important;
  background: var(--glass-effect) !important;
}

/* Highlight the selected option */
#product .radio input:checked + font,
#product .radio input:checked + span,
#product .radio label.active {
  border-color: var(--primary-accent) !important;
  background: rgba(38, 185, 120, 0.1) !important;
  color: var(--primary-accent) !important;
  box-shadow: 0 0 10px rgba(38, 185, 120, 0.2);
}

/* Clean up Select Dropdowns specifically for the product page */
#product select.form-control {
  height: 45px;
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md);
  padding: 0 15px;
  cursor: pointer;
}

#product select.form-control:focus {
  border-color: var(--primary-accent) !important;
  outline: none;
}
/* --- High-Tech Quantity Controls --- */

/* Wrapper for the input and buttons */
.product-info .quantity-wrapper,
#product .form-group:has(#input-quantity) {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px;
  border-radius: var(--radius-md);
  width: fit-content;
}

/* Style for the Number Box */
#input-quantity {
  background: transparent !important;
  border: none !important;
  color: var(--primary-accent) !important; /* Emerald Number */
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  width: 50px;
  text-align: center;
  box-shadow: none !important;
}

/* Style for the custom +/- Buttons (if your theme uses them) */
.btn-qty {
  background: var(--glass-effect) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-qty:hover {
  border-color: var(--primary-accent) !important;
  color: var(--primary-accent) !important;
  background: rgba(38, 185, 120, 0.1) !important;
}

/* Highlight the 'Add to Cart' button next to the quantity */
#button-cart {
  margin-left: 10px;
  height: 46px;
  padding: 0 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}






