/* Modern / Elegant overrides */
:root{
  --accent: #6f42c1; /* soft purple */
  --muted: #6b7280;
  --bg: #f7f6fb;
  --card-bg: #ffffff;
}
body{ background-color: var(--bg); color:#111827; }

/* Header tweaks */
.header{
  background: linear-gradient(90deg,#5b21b6 0%, #7c3aed 100%);
  padding: 10px 0;
}
.header__menu ul li a{ color: rgba(255,255,255,0.95); font-weight:600; }
.header__right__auth a{ color: #ffffff; font-weight:500; }

/* Make site button more refined */
.site-btn{ background: var(--accent); border-radius: 999px; padding: 8px 18px; }

/* Cards */
.dashboard-grid{ display:grid; grid-template-columns: 280px 1fr; gap:24px; align-items:start; }
.card{ background: var(--card-bg); border-radius:12px; padding:18px; box-shadow:0 6px 18px rgba(15,23,42,0.06); }
.card h3{ margin:0 0 12px 0; font-size:18px; }
.profile-list{ list-style:none; padding:0; margin:0; color:var(--muted); }
.profile-list li{ padding:8px 0; border-bottom:1px dashed #f1f1f5; }

/* Orders table clean look */
.orders-table thead th{ border-bottom:2px solid #f1f1f5; color:var(--muted); font-weight:600; }
.orders-table tbody td{ vertical-align:middle; }

/* Responsive */
@media (max-width: 768px){ .dashboard-grid{ grid-template-columns: 1fr; } }

/* Global typography and container */
html,body{ font-family: 'Montserrat', 'Inter', sans-serif; }
h1, h2, .hero-title, .brand-title { font-family: 'Montserrat', 'Inter', sans-serif; letter-spacing: 0.5px; }
h3, h4, h5, h6, .header__menu ul li a, .site-btn, .footer__widget h6 { font-family: 'Montserrat', 'Inter', sans-serif; }
.container{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* Hero improvements */
.hero{ padding:60px 0; display:flex; align-items:center; gap:32px; }
.hero .hero-title{ font-size:44px; color:#fff; line-height:1.05; font-weight:700; }
.hero .hero-sub{ color: rgba(255,255,255,0.9); margin-top:12px; max-width:520px; }

/* Product cards */
.product__item{ background:var(--card-bg); border-radius:12px; padding:14px; box-shadow:0 8px 24px rgba(15,23,42,0.06); transition:transform .22s ease,box-shadow .22s ease; overflow:hidden; }
.product__item:hover{ transform:translateY(-6px); box-shadow:0 18px 36px rgba(15,23,42,0.08); }
/* existing template uses these BEM classes, add compatibility selectors */
.product__item__pic, .product__item .pi-pic{ border-radius:8px; overflow:hidden; }
.product__item__pic img, .product__item .pi-pic img{ width:100%; height:auto; display:block; }
.product__item__text, .product__item .pi-text{ padding:10px 6px 0; }
.product__item__text h6, .product__item .pi-text h5{ font-size:16px; margin:8px 0 4px; color:#111827; }
.product__price, .product__item .price{ color:var(--accent); font-weight:700; }

/* Buttons */
.btn-link{ color:inherit; text-decoration:none; font-weight:600; }
.btn-outline{ padding:8px 14px; border-radius:999px; border:1px solid rgba(15,23,42,0.06); background:transparent; }

/* Header adjustments for mobile offcanvas */
.offcanvas__auth a{ color:#fff; }
.offcanvas-menu-wrapper{ background:linear-gradient(180deg,#6b21a8,#4c1d95); padding:20px; }

/* Offcanvas header */
.offcanvas__header { border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom:12px; }
.offcanvas__logo img{ height:36px; }
.offcanvas__close{ color:#fff; font-weight:700; }
.offcanvas__auth a{ color:#fff; font-weight:600; }

/* Search bar */
.search-model-form input{ width:100%; max-width:700px; font-size:20px; padding:8px 12px; border-bottom:2px solid rgba(255,255,255,0.12); color:#fff; }

/* Footer polish */
.footer{ background:#0f1724; color:rgba(255,255,255,0.92); padding:48px 0; }
.footer a{ color:rgba(255,255,255,0.85); }
.footer__about p{ color:rgba(255,255,255,0.7); }

/* Forms */
input,select,textarea{ border:1px solid #e6e6ee; padding:10px 12px; border-radius:8px; }
label{ font-weight:600; color:var(--muted); }

/* Small utilities */
.muted{ color:var(--muted); }
.mb-8{ margin-bottom:8px; }
.mb-16{ margin-bottom:16px; }

/* Accessibility improvements */
a:focus, button:focus, input:focus{ outline:3px solid rgba(111,66,193,0.16); outline-offset:2px; }

/* Glassmorphism utilities */
.glass-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.06);
  padding: 16px;
}
.glass-card.light{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.6);
  color: #0f1724;
}
.glass-ghost{ background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); }

/* Hero Carousel Premium Styling */
.banner-slide {
  position: relative;
  min-height: 520px !important;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15,23,36,0.3) 0%, rgba(15,23,36,0.55) 100%);
  z-index: 1;
}
.banner-slide .carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 800px;
}
.banner-slide .hero {
  padding: 0;
  display: block;
}
.banner-slide .hero-title {
  font-size: 58px;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 16px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
  animation: fadeInUp 0.8s ease forwards;
}
.banner-slide .hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.92) !important;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease forwards;
}
.banner-slide .site-btn {
  display: inline-block;
  animation: fadeInUp 1.2s ease forwards;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  border-radius: 99px;
  padding: 12px 36px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
.banner-slide .site-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111,66,193,0.3);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255,255,255,0.4);
}
.carousel-indicators .active {
  background-color: #ffffff;
}
.carousel-control-prev, .carousel-control-next {
  z-index: 3;
  width: 6%;
}



/* --- Premium & Elegant Glassmorphism Upgrades --- */

/* Glassmorphic Global Header */
.header {
  background: rgba(120, 39, 123, 0.8) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.3s ease;
}

/* Glassmorphic Dropdown Menu */
.header__menu ul li .dropdown {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  padding: 8px 0 !important;
}

/* Refined Glassmorphic Product Cards */
.product__item {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(110%) !important;
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.05) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.product__item:hover {
  transform: translateY(-8px) scale(1.01) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.1) !important;
}

/* Glassmorphic Discount Banner Block */
.discount__text {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.04) !important;
  margin: 20px !important;
  height: auto !important;
  padding: 50px 40px !important;
}
.discount__text__title:after {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02) !important;
}

/* Refined Countdown Items */
.countdown__item {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 10px !important;
  width: calc(25% - 10px) !important;
  margin-right: 10px !important;
  padding: 12px 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s ease !important;
}
.countdown__item:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) !important;
}

/* Subtle Modern Inputs */
input, select, textarea {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}
input:focus, select:focus, textarea:focus {
  background: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.12) !important;
}

/* Glassmorphic User/Admin Navigation Panels */
.dashboard-grid .card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Shopping Cart Premium Styling */
.shop-cart {
  padding-top: 60px;
  padding-bottom: 60px;
}
.shop__cart__table {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.04) !important;
  padding: 24px !important;
  overflow-x: auto;
  margin-bottom: 30px;
}
.shop__cart__table table {
  width: 100%;
}
.shop__cart__table th {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
  color: #111827 !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  padding-bottom: 15px;
}
.shop__cart__table td {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.cart__product__item img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.cart__product__item__title h6 a {
  color: #111827 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}
.cart__price, .cart__total {
  font-weight: 600 !important;
  color: #111827 !important;
}
.cart__total {
  color: var(--accent) !important;
}
.cart__close button {
  color: #ef4444 !important;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.cart__close button:hover {
  transform: scale(1.15);
}
.cart__btn a {
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 99px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  background: rgba(255,255,255,0.8) !important;
  transition: all 0.25s ease !important;
  color: #111827 !important;
}
.cart__btn a:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(111,66,193,0.2) !important;
}

/* Coupon & Totals section */
.discount__content, .cart__total__procced {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.04) !important;
  padding: 30px !important;
  margin-top: 30px;
}
.discount__content h6, .cart__total__procced h6 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.discount__content form {
  position: relative;
  width: 100%;
  max-width: 370px;
  display: inline-block;
}
.discount__content form input {
  height: 52px;
  width: 100%;
  border-radius: 99px;
  padding-left: 30px;
  padding-right: 115px; /* leave room for absolute button */
}
.discount__content form button {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 44px;
  border-radius: 99px !important;
  padding: 10px 24px !important;
  width: auto !important;
}
.cart__total__procced ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.cart__total__procced ul li {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: #374151;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.cart__total__procced ul li:last-child {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  border-bottom: none;
}
.cart__total__procced ul li span {
  font-weight: 600;
}
.cart__total__procced ul li:last-child span {
  color: var(--accent);
}
.cart__total__procced .primary-btn {
  display: block;
  text-align: center;
  border-radius: 99px !important;
  padding: 14px 24px !important;
  font-weight: 600;
}

