/* ========================================
   SELFEB STOREFRONT — Kiddy-Inspired Design
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0d6f5e;
  --primary-light: #e8f5f1;
  --accent: #d4a259;
  --accent-light: #fdf3e3;
  --bg: #faf8f5;
  --bg-white: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --danger: #ef4444;
  --success: #22c55e;
  --secondary: #d4a259;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

button,
.btn {
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

/* ========== HEADER ========== */
.site-header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.mobile-header {
  display: none !important;
}

.header-top {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.header-search {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: var(--primary);
}

.header-search input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text);
}

.header-search .cat-dropdown {
  padding: 12px 16px;
  border-left: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  background: transparent;
  cursor: pointer;
  outline: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

.header-search .search-btn {
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.header-search .search-btn:hover {
  background: #0a5a4c;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.header-phone i {
  color: var(--primary);
  font-size: 18px;
}

/* Navigation Row */
.header-nav {
  padding: 0;
}

.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-actions a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.nav-actions a:hover {
  color: var(--primary);
}

.nav-actions a i {
  font-size: 18px;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}

.cart-count {
  position: absolute;
  top: 10px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== HERO ========== */
.hero {
  padding: 60px 0 80px;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--text);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-images {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-img-card:first-child {
  background: var(--accent-light);
  width: 280px;
  height: 380px;
}

.hero-img-card:last-child {
  background: #ede9fe;
  width: 280px;
  height: 380px;
}

.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 5;
}

.hero-badge .percent {
  font-size: 28px;
  font-weight: 900;
}

.hero-badge .off {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-subscribe {
  position: absolute;
  bottom: 20px;
  right: -140px;
  display: flex;
  background: var(--bg-white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 5;
}

.hero-subscribe input {
  padding: 14px 20px;
  border: none;
  font-size: 14px;
  outline: none;
  width: 200px;
}

.hero-subscribe button {
  padding: 14px 24px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 50px;
}

/* ========== CATEGORY SECTION ========== */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
}

.section-header a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.category-card .cat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card .cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card .cat-icon i {
  font-size: 32px;
  color: var(--primary);
}

.category-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== PRODUCT CARDS ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

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

.product-card .product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

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

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-sale {
  background: var(--danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-new {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-actions {
  position: absolute;
  top: 12px;
  right: -50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover .product-actions {
  right: 12px;
}

.product-actions button,
.product-actions a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.product-actions button:hover,
.product-actions a:hover {
  background: var(--primary);
  color: #fff;
}

.product-info {
  padding: 16px 18px;
}

.product-info .product-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info h3 a:hover {
  color: var(--primary);
}

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

.product-price .current {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.product-price .original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .add-to-cart-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.product-card .add-to-cart-btn:hover {
  background: #0a5a4c;
}

.product-card .buy-now-btn {
  background: var(--secondary);
  color: var(--text);
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.product-card .buy-now-btn:hover {
  background: #c4923f;
}

.product-actions-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  gap: 8px;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 10;
}

.product-card:hover .product-actions-hover {
  transform: translateY(0);
}

/* ========== PROMO BANNER ========== */
.promo-banner {
  background: linear-gradient(135deg, var(--primary-light), #d4edda);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-banner .promo-text h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.promo-banner .promo-text p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
}

.newsletter-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form button:hover {
  background: #c4923f;
}

.newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 20px;
}

.newsletter-input-group input {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.newsletter-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group button {
  padding: 16px 32px;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-captcha {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.newsletter-captcha>div {
  display: inline-block;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-light);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 16px;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 16px;
}

/* ========== SHOP PAGE ========== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 40px 0;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.filter-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.filter-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.filter-box ul {
  list-style: none;
}

.filter-box ul li {
  margin-bottom: 10px;
}

.filter-box ul li a {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.filter-box ul li a:hover,
.filter-box ul li a.active {
  color: var(--primary);
  font-weight: 600;
}

.filter-box ul li a .count {
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
}

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

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

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px 20px;
}

.shop-toolbar .result-count {
  font-size: 14px;
  color: var(--text-light);
}

.shop-toolbar .sort-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-toolbar select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-white);
  outline: none;
}

.shop-toolbar .view-toggle {
  display: flex;
  gap: 6px;
}

.shop-toolbar .view-toggle button {
  padding: 8px 10px;
  background: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-muted);
}

.shop-toolbar .view-toggle button.active {
  background: var(--primary);
  color: #fff;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--text-light);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* ========== CUSTOMER DROPDOWN (DESKTOP) ========== */
.customer-dropdown {
  position: relative;
}

.customer-dropdown .dropdown-toggle {
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  align-items: center;
}

.customer-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  padding: 8px 0;
  margin-top: 8px;
}

.customer-dropdown:hover .dropdown-menu {
  display: block;
}

.customer-dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  transform: rotate(45deg);
}

.customer-dropdown .user-profile-info {
  padding: 12px 16px;
}

.customer-dropdown .user-name {
  font-weight: 600;
  font-size: 15px;
  color: #222;
}

.customer-dropdown .user-email {
  font-size: 13px;
  color: #888;
}

.customer-dropdown .dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

.customer-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #333;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.customer-dropdown .dropdown-item:hover {
  background: #f5f7fa;
}

.customer-dropdown .dropdown-item i {
  font-size: 16px;
  color: #666;
}

.customer-dropdown .dropdown-item.text-danger {
  color: #dc3545 !important;
}

.customer-dropdown .dropdown-item.text-danger i {
  color: #dc3545;
}

.customer-dropdown .dropdown-menu form.p-2 {
  padding: 12px 16px !important;
}

.customer-dropdown .dropdown-menu form .form-control {
  font-size: 13px;
}

/* ========== PAGINATION ========== */
.pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px 0;
  text-align: center;
}

/* Bootstrap 5 Pagination Override */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  gap: 8px;
  align-items: center;
  margin: 0;
  justify-content: center;
}

/* Hide the "Previous" and "Next" text labels while keeping icons */

/* Explicitly hide the text-only parts of the prev/next buttons if they exist */
.page-link[aria-label="Previous"]>span:last-child,
.page-link[aria-label="Next"]>span:first-child {
  display: none !important;
}

/* Alternative: if they are just raw text nodes or different spans */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-size: 0;
  /* Hide text */
}

.pagination .page-item:first-child .page-link::before {
  content: "\F12C";
  /* bi-chevron-left */
  font-family: 'bootstrap-icons';
  font-size: 16px;
}

.pagination .page-item:last-child .page-link::after {
  content: "\F135";
  /* bi-chevron-right */
  font-family: 'bootstrap-icons';
  font-size: 16px;
}

.pagination-wrap nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

/* Handle the "Showing X to Y" text from Laravel */
.pagination-wrap .text-muted,
.pagination-wrap .small.text-muted {
  font-size: 14px !important;
  color: var(--text-light) !important;
  margin-bottom: 0 !important;
  display: block;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-white);
  border: none;
  padding: 0;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.page-item .page-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.page-item.active .page-link {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-item.disabled .page-link {
  color: #ccc;
  background: #f8f9fa;
  cursor: not-allowed;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  padding: 40px 0 60px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.product-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  aspect-ratio: 1;
  margin-bottom: 16px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumbs .thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--bg-white);
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
  border-color: var(--primary);
}

.gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.detail-price .current {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.detail-price .original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-price .discount {
  background: var(--danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.product-short-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.product-meta span {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-meta strong {
  color: var(--text);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 24px 0;
}

.qty-selector button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}

.qty-selector button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.qty-selector button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.qty-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-actions .btn-add-cart {
  flex: 1;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  transition: var(--transition);
}

.detail-actions .btn-add-cart:hover {
  background: #0a5a4c !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
  padding: 16px 24px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  font-size: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: #1da851;
}

.btn-wishlist-detail {
  padding: 16px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 18px;
  background: transparent;
  color: var(--text);
}

.btn-wishlist-detail:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.detail-actions .btn-buy-now {
  background: var(--secondary) !important;
  color: var(--text) !important;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  border: none;
  flex: 1;
  transition: var(--transition);
}

.detail-actions .btn-buy-now:hover {
  background: #c4923f !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}


.product-tabs {
  margin-top: 60px;
}

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-nav button {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-light);
  position: relative;
  cursor: pointer;
}

.tab-nav button.active {
  color: var(--primary);
}

.tab-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.tab-content {
  display: none;
  padding: 20px 0;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

.tab-content.active {
  display: block;
}

/* ========== CART ========== */
.cart-page {
  padding: 40px 0 60px;
}

.cart-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-table thead {
  background: var(--bg);
}

.cart-table th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-align: left;
}

.cart-table td {
  padding: 20px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.cart-item-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.cart-item-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-remove {
  color: var(--text-muted);
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

.cart-bottom {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  margin-top: 30px;
}

.delivery-zone {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
}

.delivery-zone h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.delivery-option:hover,
.delivery-option.active {
  border-color: var(--primary);
}

.delivery-option input {
  accent-color: var(--primary);
}

.delivery-option label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.delivery-option .price {
  font-weight: 700;
  color: var(--primary);
}

.cart-summary {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
}

.cart-summary h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 800;
}

.summary-row.total .amount {
  color: var(--primary);
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
  text-align: center;
}

.btn-checkout:hover {
  background: #0a5a4c;
}

/* ========== CHECKOUT ========== */
.checkout-page {
  padding: 40px 0 60px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
}

.checkout-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
}

.checkout-form h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-summary-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.order-summary-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.order-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

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

.order-item .item-info h5 {
  font-size: 14px;
  font-weight: 600;
}

.order-item .item-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.order-item .item-price {
  font-weight: 700;
}

.payment-methods {
  margin-top: 24px;
}

.payment-methods h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover,
.payment-option.active {
  border-color: var(--primary);
}

.payment-option input {
  accent-color: var(--primary);
}

.payment-option label {
  flex: 1;
  font-weight: 500;
  cursor: pointer;
}

.btn-place-order {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
}

.btn-place-order:hover {
  background: #0a5a4c;
  transform: translateY(-2px);
}

/* ========== ORDER SUCCESS ========== */
.order-success {
  text-align: center;
  padding: 100px 20px;
}

.order-success .success-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.order-success .success-icon i {
  font-size: 48px;
  color: var(--primary);
}

.order-success h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.order-success p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Responsive Utility Classes */
.d-md-none {
  display: none !important;
}

@media (max-width: 768px) {
  .d-md-none {
    display: block !important;
  }
}

.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 2000;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  display: block !important;
}

.mobile-menu-sidebar.active {
  left: 0;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
}

.btn-logout-mobile {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 15px;
  color: #dc3545;
  font-size: 1rem;
  font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-images {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .cart-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .header-search,
  .header-phone {
    display: none;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 25px;
    /* Decreased by 3px (from 28px) */
  }

  .section-header a {
    font-size: 13px;
    /* Decreased by 1px (from 14px) */
  }

  .breadcrumb-bar,
  .breadcrumb-area {
    display: none !important;
  }

  .product-grid,
  .product-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {

  .product-grid,
  .product-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-info {
    padding: 10px 12px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-price .current {
    font-size: 15px;
  }
}

/* ========== MOBILE NAVIGATION (RE-APPLIED) ========== */
@media (max-width: 768px) {

  /* Show mobile header on mobile */
  .mobile-header {
    display: block !important;
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  }

  .mobile-header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 15px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
  }

  .mobile-header .site-logo img {
    max-height: 28px;
    object-fit: contain;
  }

  .mobile-header .mobile-icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-search-bar {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
  }

  .mobile-search-bar form {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    padding: 2px;
  }

  .mobile-search-bar input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    outline: none !important;
  }

  .mobile-search-bar button {
    background: var(--primary, #007bff);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 25px;
  }

  /* Sticky Bottom Navigation */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1060;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  }

  .mobile-bottom-nav a {
    text-decoration: none !important;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    transition: all 0.3s ease;
  }

  .mobile-bottom-nav a i {
    font-size: 22px;
    margin-bottom: 3px;
  }

  .mobile-bottom-nav a.active {
    color: var(--primary, #007bff);
  }

  /* Cart Badge */
  .cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary, #007bff);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
  }

  /* Sidebar Menu */
  @media (max-width: 768px) {
    .mobile-menu-sidebar {
      display: block;
      position: fixed;
      top: 0;
      left: -100%;
      width: 85%;
      max-width: 320px;
      height: 100%;
      background: #ffffff;
      z-index: 2000;
      transition: 0.4s;
      box-shadow: 15px 0 30px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
    }

    .mobile-menu-sidebar.active {
      left: 0;
    }

    .menu-header {
      padding: 25px 20px;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .menu-header button {
      background: #f5f5f5;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .menu-items a {
      display: block;
      padding: 14px 20px;
      color: #333;
      text-decoration: none !important;
      font-size: 15px;
      font-weight: 500;
      border-bottom: 1px solid #fafafa;
    }

    .menu-section-title {
      padding: 20px 20px 10px;
      font-size: 12px;
      text-transform: uppercase;
      color: #aaa;
      font-weight: 700;
    }

    .menu-items hr {
      margin: 10px 0;
      border: 0;
      border-top: 1px solid #eee;
    }

    .menu-items form button {
      display: block;
      width: 100%;
      text-align: left;
      padding: 14px 20px;
      background: none;
      border: none;
      color: #dc3545;
      font-size: 15px;
      font-weight: 500;
    }

    /* Cart Page Mobile Modernization */
    .d-md-none-important {
      display: none !important;
    }

    .responsive-cart-table thead {
      display: none;
    }

    .responsive-cart-table,
    .responsive-cart-table tbody,
    .responsive-cart-table tr,
    .responsive-cart-table td {
      display: block;
      width: 100%;
    }

    .responsive-cart-table tr {
      background: #fff;
      border: 1px solid #eee;
      border-radius: 12px;
      margin-bottom: 15px;
      padding: 15px;
      position: relative;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .responsive-cart-table td {
      padding: 5px 0 !important;
      border: none !important;
      text-align: left !important;
    }

    .responsive-cart-table td:first-child {
      padding-bottom: 15px !important;
      border-bottom: 1px solid #f5f5f5 !important;
      margin-bottom: 15px;
    }

    /* Match nth-child logic to existing blade structure:
     td 1: Product info (Image + Title)
     td 2: Price 
     td 3: Quantity 
     td 4: Subtotal 
     td 5: Remove button
  */

    .responsive-cart-table td:nth-child(2) {
      display: none;
      /* Hide single item price to save space, usually redundant on mobile if subtotal is clear */
    }

    .responsive-cart-table td:nth-child(3) {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .responsive-cart-table td:nth-child(3)::before {
      content: "Quantity:";
      font-weight: 600;
      color: #666;
      font-size: 14px;
    }

    .responsive-cart-table td:nth-child(4) {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 5px;
      font-size: 16px;
      color: var(--primary);
    }

    .responsive-cart-table td:nth-child(4)::before {
      content: "Subtotal:";
      font-weight: 600;
      color: #666;
      font-size: 14px;
    }

    .responsive-cart-table td:nth-child(5) {
      position: absolute;
      top: 15px;
      right: 15px;
      width: auto;
      padding: 0 !important;
    }

    .responsive-cart-table .cart-remove {
      background: #fff0f0;
      color: #dc3545;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .responsive-cart-table .qty-selector {
      background: #f8f9fa;
      border-radius: 20px;
      padding: 4px;
    }

    .responsive-cart-table .qty-selector button {
      width: 30px;
      height: 30px;
      background: #fff;
      border-radius: 50%;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .cart-summary {
      position: fixed;
      bottom: 65px;
      /* Sit right above bottom nav */
      left: 0;
      right: 0;
      margin: 0;
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
      z-index: 1000;
    }

    .cart-page-body {
      padding-bottom: 160px !important;
      /* Only for cart page to make room for floating summary + nav */
    }
  }

  /* ========== MOBILE NAVIGATION SYSTEM (REFINED) ========== */

  /* Hide desktop header on mobile and mobile header on desktop */
  @media (max-width: 768px) {

    html,
    body {
      overflow-x: hidden !important;
      width: 100vw !important;
      max-width: 100vw !important;
    }

    .desktop-header {
      display: none !important;
    }

    .mobile-header {
      display: block !important;
    }

    .mobile-bottom-nav {
      display: flex !important;
    }

    body {
      padding-bottom: 70px !important;
    }
  }

  @media (min-width: 769px) {
    .mobile-header {
      display: none !important;
    }

    .mobile-bottom-nav {
      display: none !important;
    }

    .desktop-header {
      display: block !important;
    }
  }

  /* Mobile Header & Nav System */
  @media (max-width: 768px) {

    .mobile-header {
      background: #ffffff;
      padding: 10px 15px;
      border-bottom: 1px solid #f0f0f0;
      position: sticky;
      top: 0;
      z-index: 1100;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .mobile-header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 15px;
    }

    .mobile-search-left {
      flex: 0 0 130px;
      /* Modern small search box */
    }

    .mobile-search-left form {
      display: flex;
      background: #f4f4f4;
      border-radius: 20px;
      padding: 2px 10px;
      align-items: center;
    }

    .mobile-search-left input {
      width: 100%;
      border: none;
      background: none;
      font-size: 13px;
      padding: 4px;
      outline: none;
    }

    .mobile-search-left button {
      border: none;
      background: none;
      color: #666;
      padding: 0;
    }

    .mobile-header .site-logo img {
      height: 30px;
      object-fit: contain;
    }

    .mobile-menu-btn {
      background: #f8f9fa;
      border: none;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      color: #333;
    }

    /* Bottom Nav Enhancements */
    .mobile-bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 65px;
      background: #ffffff;
      display: flex;
      justify-content: center !important;
      align-items: center;
      gap: 15px !important;
      border-top: 1px solid #eee;
      z-index: 1200;
      box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.05);
    }

    .mobile-bottom-nav a {
      text-decoration: none !important;
      color: #666;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 500;
      flex: 0 0 65px !important;
      width: 65px !important;
      padding: 0;
    }

    .mobile-bottom-nav a i {
      font-size: 20px;
      margin-bottom: 2px;
    }

    .mobile-bottom-nav a.active {
      color: var(--primary, #27ae60);
    }

    /* Sidebar Menu Tweaks */
    .mobile-menu-sidebar {
      position: fixed;
      top: 0;
      left: -100%;
      width: 80%;
      height: 100%;
      background: #fff;
      z-index: 2500;
      transition: 0.3s ease;
      box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
      display: block !important;
    }

    .mobile-menu-sidebar.active {
      left: 0;
      display: block !important;
    }

    .mobile-menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 2400;
      opacity: 0;
      visibility: hidden;
      transition: 0.3s ease;
    }

    .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .menu-section-title {
      padding: 15px 20px 5px;
      font-size: 11px;
      text-transform: uppercase;
      color: #999;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .user-info-sidebar {
      padding: 20px;
      background: #f9f9f9;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid #eee;
    }

    .user-info-sidebar i {
      font-size: 1.5rem;
      color: var(--primary);
    }

    /* Mobile Icon Buttons (Search & Menu) */
    .mobile-icon-btn {
      background: none;
      border: none;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      color: #333;
      transition: background 0.2s;
    }

    .mobile-icon-btn:active {
      background: #f0f0f0;
    }

    /* Collapsible Search Bar */
    .mobile-search-bar {
      padding: 10px 15px 12px;
      background: #f8f9fa;
      border-top: 1px solid #f0f0f0;
      animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
      from {
        transform: translateY(-8px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .mobile-search-bar form {
      display: flex;
      background: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 25px;
      overflow: hidden;
      padding: 3px;
    }

    .mobile-search-bar input {
      flex: 1;
      border: none;
      padding: 8px 14px;
      font-size: 14px;
      outline: none !important;
      background: none;
    }

    .mobile-search-bar button {
      background: var(--primary, #27ae60);
      color: #fff;
      border: none;
      padding: 0 16px;
      border-radius: 22px;
      font-size: 14px;
    }

    /* ========== CUSTOMER DROPDOWN (HOVER SUBMENU) ========== */
    .customer-dropdown {
      position: relative;
    }

    .customer-dropdown .dropdown-toggle {
      cursor: pointer;
      text-decoration: none !important;
      color: inherit;
    }

    .customer-dropdown .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      min-width: 260px;
      background: #ffffff;
      border: 1px solid #eee;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
      z-index: 1100;
      padding: 8px 0;
      margin-top: 8px;
    }

    .customer-dropdown:hover .dropdown-menu {
      display: block;
    }

    .customer-dropdown .dropdown-menu::before {
      content: '';
      position: absolute;
      top: -8px;
      right: 15px;
      width: 14px;
      height: 14px;
      background: #fff;
      border-top: 1px solid #eee;
      border-left: 1px solid #eee;
      transform: rotate(45deg);
    }

    .customer-dropdown .user-profile-info {
      padding: 12px 16px;
    }

    .customer-dropdown .user-name {
      font-weight: 600;
      font-size: 15px;
      color: #222;
    }

    .customer-dropdown .user-email {
      font-size: 13px;
      color: #888;
    }

    .customer-dropdown .dropdown-divider {
      height: 1px;
      background: #f0f0f0;
      margin: 4px 0;
    }

    .customer-dropdown .dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      color: #333;
      text-decoration: none !important;
      font-size: 14px;
      font-weight: 500;
      transition: background 0.15s;
    }

    .customer-dropdown .dropdown-item:hover {
      background: #f5f7fa;
    }

    .customer-dropdown .dropdown-item i {
      font-size: 16px;
      color: #666;
    }

    .customer-dropdown .dropdown-item.text-danger {
      color: #dc3545 !important;
    }

    .customer-dropdown .dropdown-item.text-danger i {
      color: #dc3545;
    }

    /* Login form inside dropdown */
    .customer-dropdown .dropdown-menu form.p-2 {
      padding: 12px 16px !important;
    }

    .customer-dropdown .dropdown-menu form .form-control {
      font-size: 13px;
    }

    /* ========== CHECKOUT PAGE MOBILE UI ========== */

    .checkout-page {
      padding: 15px 0 160px;
      /* Make ample room for the floating checkout button */
    }

    .checkout-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .checkout-form {
      padding: 20px;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .checkout-form h3 {
      font-size: 18px;
      margin-bottom: 20px;
    }

    .checkout-form .form-row {
      grid-template-columns: 1fr;
      /* Stack inputs vertically instead of side-by-side */
      gap: 0;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
      padding: 16px 18px;
      /* Larger touch targets for mobile */
      font-size: 15px;
      border-radius: 12px;
    }

    /* Payment Options */
    .payment-option {
      padding: 16px;
      border-radius: 12px;
      border: 1px solid #e0e0e0;
      margin-bottom: 12px;
    }

    .payment-option.active {
      background: #f8fff9;
      border: 2px solid var(--primary);
    }

    /* Order Summary Panel */
    .order-summary-box {
      padding: 20px;
      border-radius: 16px;
      margin-bottom: 20px;
      position: relative;
      top: auto;
    }

    .order-item {
      padding: 10px 0;
    }

    .order-item img {
      width: 60px;
      height: 60px;
    }

    /* Floating Place Order Button */
    .btn-place-order {
      position: fixed;
      bottom: 80px;
      /* Sit right above bottom nav (65px) + 15px margin */
      left: 15px;
      right: 15px;
      width: calc(100% - 30px);
      margin: 0;
      padding: 18px;
      font-size: 16px;
      z-index: 1000;
      box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
      border-radius: 50px;
    }

    /* ========== MOBILE PRODUCT DETAIL PAGE ========== */

    /* --- Gallery --- */
    .product-detail {
      padding: 0 0 40px;
    }

    .product-detail-grid {
      gap: 0 !important;
    }

    .product-gallery {
      position: relative;
      top: auto;
      margin: 0 -15px;
    }

    .gallery-main {
      border-radius: 0;
      margin-bottom: 0;
      aspect-ratio: 1 / 1;
      position: relative;
    }

    .gallery-thumbs {
      display: flex;
      gap: 8px;
      padding: 12px 15px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .gallery-thumbs::-webkit-scrollbar {
      display: none;
    }

    .gallery-thumbs .thumb {
      flex: 0 0 56px;
      width: 56px;
      height: 56px;
      border-radius: 10px;
      scroll-snap-align: start;
      border-width: 2px;
    }

    /* --- Mobile Wishlist Heart Overlay --- */
    .mobile-wishlist-overlay {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 10;
    }

    .mobile-wishlist-overlay button {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.9);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      color: #e74c3c;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
      transition: all 0.2s ease;
    }

    .mobile-wishlist-overlay button:active {
      transform: scale(0.9);
      background: #ffe0e0;
    }

    /* --- Product Info --- */
    .product-detail-info {
      padding: 20px 15px 0;
    }

    .product-detail-info>div:first-child {
      display: inline-block;
      background: var(--primary-light, #e8f5e9);
      color: var(--primary, #0d6f5e);
      padding: 4px 12px;
      border-radius: 50px;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      margin-bottom: 10px !important;
    }

    .product-detail-info h1 {
      font-size: 20px !important;
      font-weight: 700;
      margin-bottom: 10px;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* --- Price --- */
    .detail-price {
      margin-bottom: 14px;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .detail-price .current {
      font-size: 24px !important;
      font-weight: 800;
    }

    .detail-price .original {
      font-size: 15px !important;
    }

    .detail-price .discount {
      font-size: 11px;
      padding: 3px 10px;
    }

    /* --- Short Description --- */
    .product-short-desc {
      font-size: 13px !important;
      line-height: 1.7;
      margin-bottom: 16px;
      padding-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* --- Meta (SKU, Brand, Stock) --- */
    .product-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }

    .product-meta span {
      display: inline-flex !important;
      align-items: center;
      gap: 4px;
      background: #f5f7fa;
      padding: 6px 12px;
      border-radius: 50px;
      font-size: 12px !important;
      margin-bottom: 0 !important;
    }

    /* --- Variations --- */
    .product-variations {
      margin: 14px 0 !important;
    }

    .variation-buttons {
      overflow-x: auto;
      flex-wrap: nowrap !important;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .variation-buttons::-webkit-scrollbar {
      display: none;
    }

    .btn-variation {
      flex: 0 0 auto !important;
      padding: 8px 14px !important;
      font-size: 13px !important;
      border-radius: 50px !important;
      white-space: nowrap;
    }

    /* --- Hide Desktop-Only Elements --- */
    .desktop-qty {
      display: none !important;
    }

    .desktop-actions {
      display: none !important;
    }

    .desktop-wishlist-form {
      display: none !important;
    }

    /* --- Mobile Sticky Bottom Action Bar --- */
    #productActionForm {
      position: fixed;
      bottom: 65px;
      left: 0;
      right: 0;
      z-index: 1100;
      background: #ffffff;
      border-top: 1px solid #eee;
      padding: 10px 15px;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
      box-sizing: border-box;
      max-width: 100vw;
    }

    #productActionForm .qty-selector {
      display: flex !important;
      align-items: center;
      gap: 0;
      margin: 0;
      flex: 0 0 auto;
    }

    #productActionForm .qty-selector button {
      width: 32px;
      height: 32px;
      font-size: 14px;
      border-radius: 50%;
      background: #f5f7fa;
      border: 1px solid #e0e0e0;
    }

    #productActionForm .qty-selector input {
      width: 36px;
      height: 32px;
      font-size: 13px;
      border: none;
      background: transparent;
      text-align: center;
      font-weight: 700;
      padding: 0;
    }

    #productActionForm .detail-actions {
      display: flex !important;
      flex: 1;
      gap: 6px;
      margin: 0;
      min-width: 0;
    }

    #productActionForm .btn-add-cart {
      flex: 1;
      height: 42px !important;
      font-size: 13px !important;
      padding: 0 12px !important;
      border-radius: 22px;
      gap: 5px;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #productActionForm .btn-buy-now {
      flex: 1;
      height: 42px !important;
      font-size: 13px !important;
      padding: 0 12px !important;
      border-radius: 22px;
      gap: 5px;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #productActionForm .btn-whatsapp {
      width: 42px;
      height: 42px;
      padding: 0;
      border-radius: 50%;
      font-size: 16px;
      flex: 0 0 42px;
    }

    #productActionForm input[type="hidden"] {
      display: none;
    }

    /* --- Tabs --- */
    .product-tabs {
      margin-top: 30px;
      padding: 0 15px;
    }

    .tab-nav {
      display: flex;
      gap: 0;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      border-bottom: 2px solid var(--border);
      margin-bottom: 16px;
    }

    .tab-nav::-webkit-scrollbar {
      display: none;
    }

    .tab-nav button {
      flex: 0 0 auto;
      padding: 10px 18px;
      font-size: 13px;
      white-space: nowrap;
    }

    .tab-content {
      font-size: 14px;
      line-height: 1.7;
      padding: 14px 0;
    }

    .tab-content table td {
      padding: 8px !important;
      font-size: 13px;
    }

    /* --- Video Container --- */
    .video-container {
      margin: 0 -15px;
      border-radius: 0 !important;
    }

    /* --- Related Products --- */
    .product-detail .section-header h2 {
      font-size: 18px;
    }

    /* --- Body padding for sticky bar --- */
    body {
      padding-bottom: 80px !important;
    }

    .checkout-page-body,
    .product-detail-body {
      padding-bottom: 160px !important;
    }
  }

  /* Hide mobile wishlist overlay on desktop */
  @media (min-width: 769px) {
    .mobile-wishlist-overlay {
      display: none !important;
    }
  }
}