/* theme.css */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

:root {
  /* Color palette */
  --primary: #2C8778;
  --secondary: #FFB400;
  --accent: #E84A5F;
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --text-primary: #212529;
  --text-muted: #6C757D;
  --border: #DEE2E6;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  /* Spacing (using rem for scalability) */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 1rem;
  /* 16px */
  --space-4: 1.5rem;
  /* 24px */
  --space-5: 3rem;
  /* 48px */
}

/* Global typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--background);
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 22px;
}

p,
li {
  font-size: 16px;
  line-height: 1.5;
}

/* Header & navigation */
.header_sec {
  width: 100%;
  padding: 0;
  /*position: sticky;*/
  top: 0;
  z-index: 9;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-nav.menu_sec {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
}

.navbar-nav.menu_sec>.nav-item {
  display: flex;
  align-items: center;
}

.navbar-nav.menu_sec>.nav-item .nav-link {
  padding: 0 var(--space-2);
}

.navbar-nav.menu_sec>.nav-item form {
  display: flex;
  align-items: center;
}

.navbar-nav.menu_sec>.nav-item form input.form-control {
  width: 150px;
  /* adjust as needed */
}

.navbar-nav.menu_sec>.nav-item .media-body {
  margin-left: var(--space-1);
}

padding: 0;
margin: 0;
background: none !important;
}

.nav_top .navbar-brand img {
  max-width: 100%;
  height: auto;
}

.nav_top .nav-link {
  color: var(--text-primary);
  padding: var(--space-2) var(--space-3);
  position: relative;
}

.nav_top .nav-link.active,
.nav_top .nav-link:hover {
  color: var(--primary);
}

.nav_top .nav-link.active::after,
.nav_top .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--primary);
}

/* Header items vertical alignment */
.navbar-nav.menu_sec .nav-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.navbar-nav.menu_sec .nav-item .nav-link,
.navbar-nav.menu_sec .nav-item form {
  margin: 0;
  padding: 0 var(--space-1);
}

.navbar-nav.menu_sec .nav-item .media-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0;
  padding: 0;
}

margin-left: 0;
padding: 0;
}

content: "";
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 100%;
background: var(--primary);
}

.nav_top .navbar-collapse {

  /* Thumbnail gallery for product detail page */
  .thumbGallery {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .thumbGallery .thumbItem img {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 80px;
    height: auto;
    transition: transform 0.2s;
  }

  .thumbGallery .thumbItem img:hover {
    transform: scale(1.05);
    border-color: #aaa;
  }

  justify-content: flex-end !important;
}

/* Search field (keeps existing HTML structure) */
/* Header alignment overrides */
.search {
  position: static !important;
  margin-left: 0;
  display: flex;
  align-items: center;
  align-self: center;
  gap: var(--space-2);
  /* removed outdated absolute positioning */
}

position: static !important;
margin-left: auto;
display: flex;
align-items: center;
/* original absolute positioning removed */
}

/* // legacy positioning removed
  top: 32px;
  z-index: 99;
} */

.search .searh_bx input[type="text"] {
  width: 25px;
  height: 30px;
  background: url(../images/srch.png) no-repeat right center;
  border: none;
  font-size: 0;
  transition: all .5s ease-in-out;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.search .searh_bx input[type="text"]:focus {
  width: 200px;
  font: 400 12px/13px 'Poppins', sans-serif;
  color: var(--text-primary);
  padding: 0 14px;
  padding-right: 40px;
  background: url(../images/srch.png) #fff no-repeat right 10px center;
  border: 1px solid var(--border);
}

/* Cart summary (uses existing markup) */
.rtpanelHeader .media .media-body h4,

/* Cart Page layout */
.cartPage {
  padding: var(--space-4);
  background: var(--background);
}

.cartItemCard {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-3);
}

.cartItemCard img {
  max-width: 100px;
  margin-right: var(--space-3);
}

.cartItemCard .info {
  flex: 1;
}

/* Orders & Order Details Styles */
:root {
  /* Status badge colors */
  --status-pending: #ffc107;
  --status-confirmed: #17a2b8;
  --status-processing: #6c757d;
  --status-shipped: #007bff;
  --status-delivered: #28a745;
  --status-cancelled: #dc3545;
  --status-returned: #fd7e14;
  --status-refunded: #20c997;
  --status-paid: #28a745;
  --status-unpaid: #dc3545;
  --status-failed: #dc3545;
}

.status-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #000;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius-sm);
}

.status-badge[data-status="Pending"] {
  background-color: var(--status-pending);
}

.status-badge[data-status="Confirmed"] {
  background-color: var(--status-confirmed);
}

.status-badge[data-status="Processing"] {
  background-color: var(--status-processing);
}

.status-badge[data-status="Shipped"] {
  background-color: var(--status-shipped);
}

.status-badge[data-status="Delivered"] {
  background-color: var(--status-delivered);
}

.status-badge[data-status="Cancelled"] {
  background-color: var(--status-cancelled);
}

.status-badge[data-status="Returned"] {
  background-color: var(--status-returned);
}

.status-badge[data-status="Refunded"] {
  background-color: var(--status-refunded);
}

.status-badge[data-status="Paid"] {
  background-color: var(--status-paid);
}

.status-badge[data-status="Unpaid"] {
  background-color: var(--status-unpaid);
}

.status-badge[data-status="Failed"] {
  background-color: var(--status-failed);
}

/* Empty state card styling */
.empty-state-card {
  text-align: center;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* Responsive tables */
.table-responsive {
  overflow-x: auto;
}

.cartItemCard .info h4 {
  margin-bottom: var(--space-1);
}

.cartSummaryBox {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Checkout Page layout */
.checkoutPage {
  padding: var(--space-4);
  background: var(--background);
}

.checkoutStepper .nav-pills .nav-link {
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-right: var(--space-2);
}

.checkoutStepper .nav-pills .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.rtpanelHeader .media .media-body p {
  margin: 0;
  color: var(--text-primary);
}

/* Utility classes (can be used throughout) */
.mt-1 {
  margin-top: var(--space-1) !important;
}

.mt-2 {
  margin-top: var(--space-2) !important;
}

.mt-3 {
  margin-top: var(--space-3) !important;
}

.mb-1 {
  margin-bottom: var(--space-1) !important;
}

.mb-2 {
  margin-bottom: var(--space-2) !important;
}

.mb-3 {
  margin-bottom: var(--space-3) !important;
}

.pt-1 {
  padding-top: var(--space-1) !important;
}

.pt-2 {
  padding-top: var(--space-2) !important;
}

.pt-3 {
  padding-top: var(--space-3) !important;
}

.rounded-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded-md {
  border-radius: var(--radius-md) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

/* Remove leftover top padding from legacy doc.css */
body {
  padding-top: 0 !important;
}

/* -------------------------------------------------
   3️⃣ PRODUCT CARD & TESTIMONIAL STYLES
   ------------------------------------------------- */

/* Unified product card used in New Arrivals, Featured, etc. */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--surface);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .btn-primary {
  margin-top: auto;
  /* push CTA to bottom */
}

/* Testimonial item styling */
.testimonial-item {
  background: var(--surface);/**/
  /*border-radius: var(--radius-md);*/
  padding: var(--space-3);
  /*box-shadow: var(--shadow-sm);*/
  margin: var(--space-2);
}

.testimonial-item h4 {
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.testimonial-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Blog card styling */
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-card .card-body {
  padding: var(--space-3);
}

.blog-card .viewmore {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--primary);
  font-weight: 600;
}


/* Footer redesign */
footer.footer_Sec {
  background: var(--primary);
  color: #fff;
  /*padding: var(--space-4) 0;*/
}

.footer_Sec .footer_top {
  padding-bottom: var(--space-3);
}

.footer_Sec .footer_box h4 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.footer_Sec .footer_menu li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer_Sec .footer_menu li a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer_Sec .card_sec a {
  color: #fff;
}

.footer_Sec .card_sec a:hover {
  opacity: 0.8;
}

:root {
  /* Authentication colors */
  --auth-bg: #F8F9FA;
  --auth-primary: #2C8778;
  --auth-primary-hover: #256f60;
  --required-color: #E84A5F;
}

/* Auth page container */
.authPage {
  max-width: 420px;
  margin: var(--space-5) auto;
  padding: var(--space-4);
  background: var(--auth-bg);
}

.authPage .card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.authPage .card-body {
  padding: var(--space-4);
}

.authPage .form-control,
.authPage .form-select {
  border-radius: var(--radius-sm);
}

.authPage .form-control:focus,
.authPage .form-select:focus {
  outline: 2px solid var(--auth-primary);
  outline-offset: 2px;
}

.authPage .required {
  color: var(--required-color);
}

.authPage .btn-primary {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
}

.authPage .btn-primary:hover {
  background-color: var(--auth-primary-hover);
  border-color: var(--auth-primary-hover);
}

.authPage .invalid-feedback {
  color: var(--accent);
}

.footer_bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  /* Dashboard and account page styling */
  /* Dashboard variables */
  --dash-bg: #F5F7FA;
  --dash-card-bg: #FFFFFF;
  --dash-primary: #2C8778;
  --dash-primary-hover: #256f60;

  /* Sidebar */
  .accountSidebar {
    background: var(--dash-card-bg);
    border-right: 1px solid var(--border);
    min-height: 100vh;
  }

  .accountSidebar .nav-link {
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
  }

  .accountSidebar .nav-link.active {
    background: var(--dash-primary);
    color: #fff;
  }

  .accountSidebar .nav-link:hover {
    background: var(--dash-primary-hover);
    color: #fff;
  }

  /* Dashboard page container */
  .dashboardPage {
    background: var(--dash-bg);
    padding: var(--space-5);
  }

  .dashboardPage .welcome-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .dashboardPage .stat-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: var(--space-3);
  }

  .dashboardPage .quick-action-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-3);
    text-align: center;
  }

  .accountCard {
    background: var(--dash-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
  }

  .status-badge {
    font-size: 0.875rem;
    padding: 0.25em 0.5em;
    border-radius: var(--radius-sm);
  }

  .status-badge.success {
    background: #28a745;
    color: #fff;
  }

  .status-badge.warning {
    background: #ffc107;
    color: #212529;
  }

  .status-badge.danger {
    background: #dc3545;
    color: #fff;
  }

  .status-badge.info {
    background: #17a2b8;
    color: #fff;
  }

  .table-responsive {
    margin-bottom: var(--space-4);
  }

  .table thead th {
    background: var(--dash-card-bg);
  }

  .table tbody tr:hover {
    background: var(--dash-bg);
  }

  .pagination .page-link {
    color: var(--dash-primary);
  }

  padding-top: var(--space-2);
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive footer columns */
@media (max-width: 768px) {
  .footer_Sec .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: var(--space-3);
  }
}

@media (max-width: 576px) {
  .footer_Sec .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/************************************************/

/* =========================================================
   FIXED HEADER + RESPONSIVE BANNER
   Header height is calculated dynamically by JavaScript.
   ========================================================= */

.header_sec {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: #fff;
}

/* Never add artificial space to the page */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Banner starts exactly after the actual header height */
.banner_sec {
  position: relative;
  margin-top: var(--header-height, 0px) !important;
  padding-top: 0 !important;
  z-index: 1;
}

/* Keep banner image responsive */
.banner_sec .carousel-item img {
  display: block;
  width: 100%;
  height: auto;
}