:root {
  --brand: #F7941D;
  --brand-dark: #e07f0b;
  --brand-light: #fff8f0;
  --brand-gradient: linear-gradient(135deg, #F7941D 0%, #FF6F00 100%);
  --brand-subnav: linear-gradient(90deg, #F7941D 0%, #fa7f07 50%, #f7941d 100%);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-subtle: #f8fafc;
  --border-color: #e2e8f0;
  --card-radius: 16px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: #fbfcfe;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.top-announcement-bar {
  background: #111827;
  color: #9ca3af;
  font-size: 12.5px;
  padding: 6px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-announcement-bar .hover-white:hover {
  color: #ffffff !important;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1050;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06);
}

.checkout-sticky-card,
.cart-sticky-card {
  position: sticky;
  top: 90px;
  z-index: 10 !important;
}

.main-nav-wrapper {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

/* Brand Logo */
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-header .brand .site-logo {
  height: 56px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
  transition: var(--transition);
}
.site-header .brand:hover .site-logo {
  transform: scale(1.03);
}
.brand-text-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

/* Search Bar */
.header-search {
  max-width: 640px;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  padding: 4px 6px 4px 18px;
  transition: var(--transition);
}
.search-input-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.15), 0 8px 20px rgba(0, 0, 0, 0.04);
}
.search-input-wrapper .search-icon {
  font-size: 16px;
  color: #94a3b8;
  margin-right: 10px;
  transition: color 0.2s ease;
}
.search-input-wrapper:focus-within .search-icon {
  color: var(--brand);
}
.search-input-wrapper .search-input {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: none !important;
}
.search-input-wrapper .search-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}
.search-action-btn {
  background: var(--brand-gradient);
  border: none;
  color: #ffffff;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(247, 148, 29, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}
.search-action-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.4);
}

/* Header Action Buttons */
.header-actions {
  flex-shrink: 0;
}

/* Cart Button */
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff8f0;
  border: 1.5px solid #ffe3c2;
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}
.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 20px;
  color: var(--brand);
  transition: var(--transition);
}
.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.header-cart-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.3);
}
.header-cart-btn:hover .cart-icon-wrapper {
  color: #ffffff;
  transform: rotate(-8deg);
}

/* Login / Account Button */
.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--brand-gradient);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 3px 12px rgba(247, 148, 29, 0.3);
  transition: var(--transition);
}
.header-login-btn i {
  font-size: 16px;
}
.header-login-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(247, 148, 29, 0.45);
}

/* User Logged-in Dropdown in Header */
.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: var(--transition);
}
.user-avatar-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}
.user-avatar-icon {
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
   SUBNAV CATEGORIES & LINKS BAR
   ============================================================ */
.subnav {
  background: var(--brand-subnav);
  box-shadow: 0 2px 10px rgba(247, 148, 29, 0.2);
}
.subnav-container {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}
.subnav-container::-webkit-scrollbar {
  display: none;
}
.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.subnav-link i {
  font-size: 15px;
  opacity: 0.9;
}
.subnav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.subnav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.26);
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.subnav-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.subnav-badge.hot {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

/* ============================================================
   BUTTONS & CARDS
   ============================================================ */
.btn-brand {
  background: var(--brand-gradient);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(247, 148, 29, 0.25);
  transition: var(--transition);
}
.btn-brand:hover {
  filter: brightness(1.05);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(247, 148, 29, 0.35);
}

/* ============================================================
   CATEGORY SECTION & CARDS
   ============================================================ */
.category-section {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 50px;
  background: #fff8f0;
  border: 1px solid #ffe8cc;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-view-all i {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.btn-view-all:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff !important;
  transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(247, 148, 29, 0.25);
}
.btn-view-all:hover i {
  transform: translateX(2px);
}

.category-grid-wrap {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cat-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 10px 4px 8px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: #ffd8a8;
  background: #fffdfa;
  box-shadow: 0 10px 22px -4px rgba(247, 148, 29, 0.16);
}

.cat-img-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  margin-bottom: 6px;
  overflow: hidden;
  transition: var(--transition);
}
.cat-card:hover .cat-img-box {
  background: #ffffff;
  border-color: #ffd8a8;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.15);
}
.cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}
.cat-card:hover .cat-img-box img {
  transform: scale(1.1);
}

.cat-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 29px;
  transition: var(--transition);
}
.cat-card:hover .cat-title {
  color: var(--brand);
}

@media (max-width: 1199px) {
  .category-grid-wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
  .cat-img-box {
    width: 72px;
    height: 72px;
  }
  .cat-title {
    font-size: 12px;
  }
}
@media (max-width: 576px) {
  .category-section {
    padding: 16px 10px;
  }
  .category-grid-wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .cat-card {
    border-radius: 12px;
    padding: 6px 2px;
  }
  .cat-img-box {
    width: 52px;
    height: 52px;
    padding: 3px;
    margin-bottom: 4px;
  }
  .cat-title {
    font-size: 10px;
    min-height: 25px;
  }
}

/* ============================================================
   PRODUCT CARDS & STEPPERS
   ============================================================ */
.product-card {
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 12px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.08);
  border-color: #ffd8a8;
}

.off-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
  letter-spacing: 0.3px;
}

.p-img-box {
  width: 100%;
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #f1f5f9;
}
.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .p-img-box img {
  transform: scale(1.06);
}

.p-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pname-link {
  text-decoration: none;
}
.pname {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  min-height: 38px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.product-card:hover .pname {
  color: var(--brand);
}

/* Variant Box & Select */
.variant-box {
  min-height: 32px;
  display: flex;
  align-items: center;
  width: 100%;
}
.variant-select {
  width: 100%;
  height: 31px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 24px 4px 8px;
  cursor: pointer;
  transition: var(--transition);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.variant-select:focus {
  border-color: var(--brand);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
}
.variant-static-box {
  width: 100%;
  height: 31px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
}
.variant-text-truncate {
  display: block;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.product-brand-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  display: block;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Products Page Sidebar & Category Filter */
.products-cat-filter-list .list-group-item {
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
}
.products-cat-filter-list .list-group-item:hover {
  background: #fff8f0;
  color: var(--brand);
  transform: translateX(3px);
}
.products-cat-filter-list .list-group-item.active {
  background: var(--brand) !important;
  color: #ffffff !important;
}
.products-cat-filter-list .list-group-item.active i {
  color: #ffffff !important;
}

/* Price Wrap */
.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.price-main {
  font-weight: 800;
  font-size: 15.5px;
  color: #0f172a;
}
.mrp-wrap {
  color: #94a3b8;
  font-weight: 500;
  font-size: 12.5px;
}

/* Add Button & Stepper */
.cart-action-area {
  min-height: 36px;
}
.btn-add-product {
  width: 100%;
  background: #fff8f0;
  border: 1.5px solid #ffd8a8;
  color: var(--brand);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-add-product:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3);
}
.btn-add-product.btn-out-of-stock {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.85;
}

.qty-stepper-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(247, 148, 29, 0.25);
  animation: fadeInPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-qty-control {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-qty-control:hover {
  background: rgba(0, 0, 0, 0.15);
}
.btn-qty-control:active {
  background: rgba(0, 0, 0, 0.25);
}
.qty-display {
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 0 4px;
  min-width: 20px;
  text-align: center;
}

@keyframes fadeInPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Toast Notifications */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.site-footer {
  background: #0b1329;
  color: #cbd5e1;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer h5, .site-footer h6 {
  color: #ffffff;
  font-weight: 700;
}
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}
.site-footer a:hover {
  color: #ffffff;
}
.site-footer .brand-text {
  color: var(--brand);
}
.site-footer .text-muted {
  color: #cbd5e1 !important;
}
.footer-desc {
  color: #cbd5e1 !important;
  font-size: 13.5px;
  line-height: 1.65;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 13.5px;
  color: #cbd5e1 !important;
}
.footer-contact-item span,
.footer-contact-item a {
  color: #cbd5e1 !important;
}
.footer-contact-item a:hover {
  color: #ffffff !important;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-social-btn:hover {
  background: var(--brand);
  color: #ffffff !important;
  transform: translateY(-2px);
  border-color: var(--brand);
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link-list li {
  margin-bottom: 8px;
  color: #cbd5e1;
}
.footer-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #cbd5e1;
}
.footer-link-list a:hover {
  color: #ffffff;
}
.footer-pay-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer-bottom {
  color: #cbd5e1 !important;
  font-size: 13px;
}
.site-footer-bottom div,
.site-footer-bottom span,
.site-footer .footer-subtext {
  color: #cbd5e1 !important;
}
.site-footer-bottom strong {
  color: #ffffff !important;
}
.carousel-inner img {
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
}

/* Hero Carousel Controls & Indicators */
#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  margin: 0 12px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
#hero .carousel-control-prev:hover,
#hero .carousel-control-next:hover {
  background: var(--brand);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}
#hero .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffffff;
  opacity: 0.6;
  margin: 0 4px;
  border: 0;
  transition: all 0.25s ease;
}
#hero .carousel-indicators .active {
  width: 24px;
  border-radius: 10px;
  background-color: var(--brand);
  opacity: 1;
}

/* 1-Row Horizontal Slider Container (No Scrollbar) */
.horizontal-scroll-wrapper {
  position: relative;
  width: 100%;
}

.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px 2px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}
.horizontal-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Side Navigation Arrows (Floating on Left and Right of Product Row) */
.side-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.92;
}
.side-scroll-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(247, 148, 29, 0.38);
  opacity: 1;
}
.side-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.side-scroll-left {
  left: -16px;
}
.side-scroll-right {
  right: -16px;
}

/* Product Card Width inside 1-row scroll */
.product-scroll-item {
  flex: 0 0 215px;
  max-width: 215px;
  min-width: 215px;
}

/* Category Card inside 1-row scroll */
.cat-card-slide {
  flex: 0 0 115px;
  max-width: 115px;
  min-width: 115px;
}

@media (max-width: 576px) {
  .product-scroll-item {
    flex: 0 0 170px;
    max-width: 170px;
    min-width: 170px;
  }
  .cat-card-slide {
    flex: 0 0 92px;
    max-width: 92px;
    min-width: 92px;
  }
  /* On touch mobile, hide floating side scroll arrows for a cleaner native swipe experience */
  .side-scroll-btn {
    display: none !important;
  }
  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 32px;
    height: 32px;
    margin: 0 4px;
    opacity: 0.75;
  }
}

/* ============================================================
   RESPONSIVE OPTIMIZATIONS
   ============================================================ */
@media (max-width: 768px) {
  .site-header .brand .site-logo {
    height: 38px;
    max-height: 42px;
  }
  .site-header .brand-text-logo {
    font-size: 16px;
  }
  .main-nav-wrapper .container {
    gap: 8px !important;
  }
  .header-search {
    min-width: 0;
  }
  .search-input-wrapper {
    padding: 2px 3px 2px 10px;
  }
  .search-input-wrapper .search-icon {
    font-size: 14px;
    margin-right: 6px;
  }
  .search-input-wrapper .search-input {
    font-size: 12.5px;
    padding: 5px 0;
  }
  .search-input-wrapper .search-input::placeholder {
    font-size: 12px;
  }
  .search-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .search-action-btn i {
    font-size: 13px;
  }
  .header-actions {
    gap: 6px !important;
  }
  .header-cart-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    display: inline-flex;
    position: relative;
  }
  .header-cart-btn .cart-icon-wrapper {
    font-size: 18px;
  }
  .cart-count-badge {
    top: -5px;
    right: -6px;
    font-size: 10px;
    padding: 1px 5px;
    min-width: 16px;
  }
  .header-login-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    display: inline-flex;
  }
  .header-login-btn i {
    font-size: 18px;
    margin: 0;
  }
  .user-avatar-btn {
    padding: 4px;
    border-radius: 50%;
  }
  .subnav-link {
    padding: 6px 12px;
    font-size: 12.5px;
    gap: 5px;
  }
  .section-title {
    font-size: 16.5px;
  }
  .btn-view-all {
    font-size: 11.5px;
    padding: 3px 10px;
    gap: 4px;
  }
  .btn-view-all i {
    font-size: 10px;
  }
}
