/* =========================
   KNShop — Kite Nepal E-Shop
   Custom Stylesheet
   ========================= */

/* =========================
   CSS VARIABLES
========================= */
:root {
  --brand-primary: #F4A300;
  --brand-primary-dark: #D4900A;
  --brand-primary-light: #FDE68A;
  --brand-dark: #1F2937;
  --brand-dark-lighter: #374151;
  --brand-bg: #F8F9FA;
  --brand-white: #FFFFFF;
  --brand-text: #212529;
  --brand-muted: #6C757D;
  --brand-success: #198754;
  --brand-danger: #DC3545;
  --brand-border: #E5E7EB;
  --brand-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --brand-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --brand-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --brand-radius: 12px;
  --brand-radius-sm: 8px;
  --brand-radius-lg: 16px;
  --brand-transition: all 0.3s ease;
  --font-primary: 'Inter', sans-serif;
}

/* =========================
   GLOBAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--brand-text);
  background-color: var(--brand-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--brand-transition);
}

a:hover {
  color: var(--brand-primary);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--brand-muted);
  margin-bottom: 2rem;
}

section {
  padding: 60px 0;
}

/* =========================
   BUTTONS
========================= */
.btn-brand {
  background: var(--brand-primary);
  color: var(--brand-white);
  border: none;
  border-radius: var(--brand-radius-sm);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--brand-transition);
}

.btn-brand:hover {
  background: var(--brand-primary-dark);
  color: var(--brand-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 163, 0, 0.4);
}

.btn-brand-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: var(--brand-radius-sm);
  padding: 8px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--brand-transition);
}

.btn-brand-outline:hover {
  background: var(--brand-primary);
  color: var(--brand-white);
}

.btn-dark {
  background: var(--brand-dark);
  color: var(--brand-white);
  border: none;
  border-radius: var(--brand-radius-sm);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--brand-transition);
}

.btn-dark:hover {
  background: var(--brand-dark-lighter);
  color: var(--brand-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 1.05rem;
}

/* =========================
   ANNOUNCEMENT BAR
========================= */
.announcement-bar {
  background: var(--brand-dark);
  color: var(--brand-white) !important;
  padding: 8px 0;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.3px;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-bar a {
  color: var(--brand-primary-light) !important;
  font-weight: 500;
}

.announcement-bar span {
  color: var(--brand-white) !important;
}

.announcement-separator {
  color: rgba(255, 255, 255, 0.4) !important;
}

.announcement-separator {
  color: rgba(255, 255, 255, 0.4);
}

/* =========================
   NAVBAR
========================= */
.navbar-kn {
  background: var(--brand-white);
  box-shadow: var(--brand-shadow);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: var(--brand-transition);
}

/* Ensure header container is sticky */
#header-container {
  position: sticky;
  top: 0;
  z-index: 1050;
}

#header-container .navbar-kn {
  position: sticky;
  top: 0;
}

.navbar-kn .navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand-dark) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-kn .navbar-brand span {
  color: var(--brand-primary);
}

.navbar-kn .navbar-brand small {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--brand-muted);
  display: block;
  margin-top: -4px;
  letter-spacing: 0.5px;
}

.nav-link-kn {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brand-text) !important;
  padding: 8px 14px !important;
  border-radius: var(--brand-radius-sm);
  transition: var(--brand-transition);
}

.nav-link-kn:hover,
.nav-link-kn.active {
  color: var(--brand-primary) !important;
  background: rgba(244, 163, 0, 0.08);
}

.nav-icon-btn {
  position: relative;
  color: var(--brand-text);
  font-size: 1.25rem;
  padding: 8px 10px;
  border-radius: var(--brand-radius-sm);
  transition: var(--brand-transition);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-icon-btn:hover {
  color: var(--brand-primary);
  background: rgba(244, 163, 0, 0.08);
}

.badge-cart {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--brand-danger);
  color: var(--brand-white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-box {
  position: relative;
  max-width: 360px;
  flex: 1;
}

.search-box input {
  border: 2px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 8px 44px 8px 16px;
  font-size: 0.9rem;
  width: 100%;
  transition: var(--brand-transition);
  background: var(--brand-bg);
}

.search-box input:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.15);
  background: var(--brand-white);
}

.search-box .search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-primary);
  border: none;
  color: var(--brand-white);
  width: 34px;
  height: 34px;
  border-radius: var(--brand-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--brand-transition);
}

.search-box .search-btn:hover {
  background: var(--brand-primary-dark);
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
  background: linear-gradient(135deg, #1F2937 0%, #374151 50%, #4B5563 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  height: 520px;
}

.hero-section .carousel-item .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 20px;
}

.hero-section .carousel-indicators button {
  background-color: var(--brand-primary);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 163, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 163, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--brand-primary);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: var(--brand-radius-lg);
  box-shadow: var(--brand-shadow-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 163, 0, 0.2);
  color: var(--brand-primary-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* =========================
   CATEGORY CARDS
========================= */
.category-card {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  overflow: hidden;
  box-shadow: var(--brand-shadow);
  transition: var(--brand-transition);
  display: block;
  border: 1px solid var(--brand-border);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow-md);
  border-color: var(--brand-primary);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--brand-transition);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card .card-img-wrapper {
  overflow: hidden;
  height: 180px;
}

.category-card .category-info {
  padding: 16px;
  text-align: center;
}

.category-card .category-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.category-card .category-info p {
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin: 0;
}

/* =========================
   PRODUCT CARDS - NEW DESIGN
========================= */
.product-card {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  overflow: hidden;
  box-shadow: var(--brand-shadow);
  transition: var(--brand-transition);
  border: 1px solid var(--brand-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* Product Image Section with colored background */
.product-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F4A300 0%, #FDE68A 100%);
}

.product-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Badges */
.product-card .badges-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-card .discount-badge {
  background: #DC3545;
  color: var(--brand-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-card .bestseller-badge {
  background: #198754;
  color: var(--brand-white);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Wishlist button */
.product-card .wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-white);
  border: none;
  color: var(--brand-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--brand-transition);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card .wishlist-btn:hover,
.product-card .wishlist-btn.active {
  color: var(--brand-danger);
  background: #FEF2F2;
}

/* Product info section */
.product-card .product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--brand-white);
}

.product-card .product-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.product-card .product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.product-card .product-title a {
  color: var(--brand-dark);
}

.product-card .product-title a:hover {
  color: var(--brand-primary);
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.product-card .product-rating .stars {
  color: #F59E0B;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.product-card .product-rating .count {
  font-size: 0.8rem;
  color: var(--brand-muted);
}

/* Price section */
.product-card .product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.product-card .product-price .current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.product-card .product-price .old-price {
  font-size: 0.9rem;
  color: var(--brand-muted);
  text-decoration: line-through;
}

.product-card .product-price .save-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-success);
  background: rgba(25, 135, 84, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Add to cart button */
.product-card .add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 1px solid #FCD34D;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--brand-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.product-card .add-to-cart-btn:hover {
  background: linear-gradient(135deg, #FDE68A 0%, #FCD34D 100%);
  border-color: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 163, 0, 0.2);
}

.product-card .add-to-cart-btn i {
  font-size: 1rem;
}

/* =========================
   PROMO BANNER
========================= */
.promo-banner {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-lighter) 100%);
  border-radius: var(--brand-radius-lg);
  overflow: hidden;
  position: relative;
  padding: 50px;
  color: var(--brand-white);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 163, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.promo-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.promo-banner h2 span {
  color: var(--brand-primary);
}

.promo-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* =========================
   FEATURES / TRUST SECTION
========================= */
.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  transition: var(--brand-transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow-md);
  border-color: var(--brand-primary);
}

.feature-card .feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(244, 163, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--brand-primary);
  transition: var(--brand-transition);
}

.feature-card:hover .feature-icon {
  background: var(--brand-primary);
  color: var(--brand-white);
}

.feature-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin: 0;
}

/* =========================
   OFFERS SECTION
========================= */
.offer-card {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  overflow: hidden;
  border: 2px solid var(--brand-border);
  transition: var(--brand-transition);
  position: relative;
}

.offer-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--brand-shadow-md);
}

.offer-card .offer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-danger);
  color: var(--brand-white);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.offer-card .offer-img {
  height: 160px;
  overflow: hidden;
}

.offer-card .offer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--brand-transition);
}

.offer-card:hover .offer-img img {
  transform: scale(1.05);
}

.offer-card .offer-info {
  padding: 16px;
  text-align: center;
}

.offer-card .offer-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.offer-card .offer-info p {
  font-size: 0.8rem;
  color: var(--brand-muted);
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial-card {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  padding: 24px;
  border: 1px solid var(--brand-border);
  transition: var(--brand-transition);
  height: 100%;
}

.testimonial-card:hover {
  box-shadow: var(--brand-shadow-md);
}

.testimonial-card .stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.testimonial-card .review-text {
  font-size: 0.95rem;
  color: var(--brand-text);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .reviewer .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-primary-dark);
  font-size: 1rem;
}

.testimonial-card .reviewer .info h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0;
}

.testimonial-card .reviewer .info span {
  font-size: 0.75rem;
  color: var(--brand-muted);
}

/* =========================
   NEWSLETTER
========================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-lighter) 100%);
  padding: 60px 0;
}

.newsletter-section h3 {
  color: var(--brand-white);
  font-size: 1.75rem;
  font-weight: 700;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.newsletter-form .form-control {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-white);
  border-radius: var(--brand-radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.site-footer h5 {
  color: var(--brand-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.site-footer .footer-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-white);
}

.site-footer .footer-brand span {
  color: var(--brand-primary);
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--brand-transition);
}

.site-footer ul li a:hover {
  color: var(--brand-primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--brand-primary);
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  font-size: 1rem;
  transition: var(--brand-transition);
}

.social-links a:hover {
  background: var(--brand-primary);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================
   BREADCRUMB
========================= */
.page-breadcrumb {
  background: var(--brand-white);
  border-bottom: 1px solid var(--brand-border);
  padding: 16px 0;
}

.breadcrumb-kn {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.breadcrumb-kn .breadcrumb-item a {
  color: var(--brand-muted);
  font-weight: 500;
}

.breadcrumb-kn .breadcrumb-item a:hover {
  color: var(--brand-primary);
}

.breadcrumb-kn .breadcrumb-item.active {
  color: var(--brand-dark);
  font-weight: 600;
}

/* =========================
   SHOP PAGE SIDEBAR
========================= */
.shop-sidebar {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-border);
}

.filter-group .form-check {
  margin-bottom: 8px;
}

.filter-group .form-check-label {
  font-size: 0.9rem;
  color: var(--brand-text);
  cursor: pointer;
}

.filter-group .form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.price-range-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-range-inputs input {
  width: 100%;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* =========================
   SHOP PAGE TOOLBAR
========================= */
.shop-toolbar {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-toolbar .product-count {
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.shop-toolbar .product-count strong {
  color: var(--brand-dark);
}

/* =========================
   PRODUCT DETAIL PAGE
========================= */
.product-gallery {
  border-radius: var(--brand-radius);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
}

.product-gallery .main-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.product-gallery .thumb-images {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.product-gallery .thumb-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--brand-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--brand-transition);
}

.product-gallery .thumb-images img:hover,
.product-gallery .thumb-images img.active {
  border-color: var(--brand-primary);
}

.product-detail-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-info .sku {
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin-bottom: 12px;
}

.product-detail-info .detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-detail-info .detail-price .current {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.product-detail-info .detail-price .old {
  font-size: 1.1rem;
  color: var(--brand-muted);
  text-decoration: line-through;
}

.product-detail-info .detail-price .discount {
  background: rgba(220, 53, 69, 0.1);
  color: var(--brand-danger);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  overflow: hidden;
  width: fit-content;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--brand-bg);
  color: var(--brand-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--brand-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector button:hover {
  background: var(--brand-primary-light);
}

.quantity-selector input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--brand-border);
  border-right: 1px solid var(--brand-border);
  font-size: 1rem;
  font-weight: 600;
}

.stock-status {
  font-size: 0.85rem;
  font-weight: 600;
}

.stock-status.in-stock {
  color: var(--brand-success);
}

.stock-status.out-of-stock {
  color: var(--brand-danger);
}

.specs-table {
  width: 100%;
}

.specs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--brand-border);
  font-size: 0.9rem;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--brand-dark);
  width: 200px;
  background: var(--brand-bg);
}

/* =========================
   CART PAGE
========================= */
.cart-item {
  background: var(--brand-white);
  border-radius: var(--brand-radius-sm);
  border: 1px solid var(--brand-border);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--brand-radius-sm);
}

.cart-item .item-info {
  flex: 1;
}

.cart-item .item-info h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item .item-info .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.cart-item .remove-btn {
  color: var(--brand-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: var(--brand-transition);
}

.cart-item .remove-btn:hover {
  color: var(--brand-danger);
}

.cart-summary {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
}

.cart-summary .summary-row.total {
  border-top: 2px solid var(--brand-border);
  padding-top: 16px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-dark);
}

/* =========================
   CHECKOUT PAGE
========================= */
.checkout-section {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  padding: 24px;
  margin-bottom: 24px;
}

.checkout-section h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-border);
}

.payment-option {
  border: 2px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--brand-transition);
  margin-bottom: 12px;
}

.payment-option:hover,
.payment-option.active {
  border-color: var(--brand-primary);
  background: rgba(244, 163, 0, 0.04);
}

/* =========================
   WISHLIST PAGE
========================= */
.wishlist-item {
  background: var(--brand-white);
  border-radius: var(--brand-radius-sm);
  border: 1px solid var(--brand-border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: var(--brand-transition);
}

.wishlist-item:hover {
  box-shadow: var(--brand-shadow);
}

.wishlist-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--brand-radius-sm);
}

/* =========================
   FORMS
========================= */
.form-kn .form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.form-kn .form-control {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: var(--brand-transition);
}

.form-kn .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.15);
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--brand-border);
  margin-top: 8px;
  overflow: hidden;
}

.password-strength .bar {
  height: 100%;
  border-radius: 2px;
  transition: var(--brand-transition);
  width: 0;
}

/* =========================
   AUTH PAGES
========================= */
.auth-wrapper {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.auth-card {
  background: var(--brand-white);
  border-radius: var(--brand-radius-lg);
  border: 1px solid var(--brand-border);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--brand-shadow-md);
}

.auth-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  color: var(--brand-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--brand-border);
}

.auth-divider span {
  background: var(--brand-white);
  padding: 0 16px;
  position: relative;
  color: var(--brand-muted);
  font-size: 0.85rem;
}

/* =========================
   ACCOUNT DASHBOARD
========================= */
.account-sidebar {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  overflow: hidden;
}

.account-sidebar .nav-link {
  color: var(--brand-text);
  padding: 12px 20px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--brand-transition);
}

.account-sidebar .nav-link:hover {
  background: var(--brand-bg);
  color: var(--brand-primary);
}

.account-sidebar .nav-link.active {
  background: rgba(244, 163, 0, 0.08);
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  font-weight: 600;
}

.account-content {
  background: var(--brand-white);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  padding: 24px;
}

/* =========================
   ORDERS PAGE
========================= */
.order-card {
  background: var(--brand-white);
  border-radius: var(--brand-radius-sm);
  border: 1px solid var(--brand-border);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--brand-transition);
}

.order-card:hover {
  box-shadow: var(--brand-shadow);
}

.order-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.order-status.delivered {
  background: rgba(25, 135, 84, 0.1);
  color: var(--brand-success);
}

.order-status.pending {
  background: rgba(244, 163, 0, 0.1);
  color: var(--brand-primary-dark);
}

.order-status.processing {
  background: rgba(13, 110, 253, 0.1);
  color: #0D6EFD;
}

.order-status.cancelled {
  background: rgba(220, 53, 69, 0.1);
  color: var(--brand-danger);
}

/* =========================
   FAQ PAGE
========================= */
.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-dark);
  border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(244, 163, 0, 0.06);
  color: var(--brand-primary-dark);
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--brand-border);
}

.faq-accordion .accordion-item {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-sm) !important;
  margin-bottom: 12px;
}

/* =========================
   PAGINATION
========================= */
.pagination-kn .page-link {
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  padding: 8px 14px;
  font-weight: 500;
  margin: 0 4px;
  border-radius: var(--brand-radius-sm);
  transition: var(--brand-transition);
}

.pagination-kn .page-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-white);
}

.pagination-kn .page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-white);
}

/* =========================
   PAGE HEADER
========================= */
.page-header {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-lighter) 100%);
  padding: 50px 0;
  text-align: center;
  color: var(--brand-white);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.8;
}

/* =========================
   OFFERS PAGE
========================= */
.flash-sale-timer {
  background: var(--brand-danger);
  color: var(--brand-white);
  padding: 8px 20px;
  border-radius: var(--brand-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.offer-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-radius: var(--brand-radius-lg);
  padding: 40px;
  color: var(--brand-white);
  text-align: center;
  margin-bottom: 40px;
}

.offer-hero h2 {
  font-size: 2rem;
  font-weight: 800;
}

/* =========================
   MAP PLACEHOLDER
========================= */
.map-placeholder {
  background: var(--brand-bg);
  border: 2px dashed var(--brand-border);
  border-radius: var(--brand-radius);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-muted);
  font-size: 1rem;
}

/* =========================
   TOAST NOTIFICATIONS
========================= */
.toast-kn {
  border-radius: var(--brand-radius-sm);
  border: none;
  box-shadow: var(--brand-shadow-lg);
}

/* =========================
   NOTIFICATION DROPDOWN
========================= */
.dropdown-menu {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow-lg);
}

.dropdown-item {
  font-size: 0.85rem;
  padding: 10px 16px;
}

.dropdown-item:hover {
  background: var(--brand-bg);
}

.dropdown-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
  border-bottom: 1px solid var(--brand-border);
}

/* =========================
   EMPTY STATE
========================= */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 4rem;
  color: var(--brand-border);
  margin-bottom: 16px;
}

.empty-state h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--brand-muted);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease forwards;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* =========================
   RESPONSIVE STYLES
========================= */
@media (max-width: 991.98px) {
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    min-height: 400px;
    height: auto;
    padding: 40px 0;
  }

  .hero-section .carousel-item .container {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-image {
    margin-top: 30px;
  }

  .shop-sidebar {
    position: static;
  }

  .promo-banner {
    padding: 30px;
  }

  .promo-banner h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 40px 0;
  }

  .product-gallery .main-image {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .auth-card {
    padding: 24px;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .product-gallery .thumb-images img {
    width: 60px;
    height: 60px;
  }

  .product-gallery .main-image {
    height: 250px;
  }

  .offer-hero {
    padding: 24px;
  }

  .offer-hero h2 {
    font-size: 1.5rem;
  }

  .page-header {
    padding: 30px 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .site-footer h5 {
    margin-top: 20px;
  }

  .search-box {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    min-height: 300px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .product-card .card-img-wrapper {
    height: 180px;
  }

  .promo-banner {
    padding: 20px;
  }

  .promo-banner h2 {
    font-size: 1.3rem;
  }

  .category-card .card-img-wrapper {
    height: 140px;
  }
}

/* =========================
   UTILITY CLASSES
========================= */
.text-brand { color: var(--brand-primary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.border-brand { border-color: var(--brand-primary) !important; }
.bg-dark-brand { background-color: var(--brand-dark) !important; }

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

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

.cursor-pointer { cursor: pointer !important; }
.transition { transition: var(--brand-transition) !important; }

/* Search results dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  box-shadow: var(--brand-shadow-lg);
  z-index: 1100;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--brand-border);
  cursor: pointer;
  transition: var(--brand-transition);
}

.search-result-item:hover {
  background: var(--brand-bg);
}

.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--brand-radius-sm);
}

.search-result-item .result-info h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-result-item .result-info span {
  font-size: 0.8rem;
  color: var(--brand-muted);
}
