/* ==========================================================================
   ZIONBAZAAR - MAIN STYLESHEET
   
   TABLE OF CONTENTS:
   1. BASE & RESET
   2. GLOBAL TYPOGRAPHY & LAYOUT
   3. HEADER & NAVIGATION (DESKTOP & MOBILE)
   4. HERO BANNER & SLIDER
   5. CATEGORIES & FEATURED PRODUCTS
   6. PRODUCT DETAILS PAGE & GALLERY
   7. CART SIDEBAR & CHECKOUT
   8. UTILITIES (MODALS, TOASTS, LOADERS, BUTTONS)
   9. USER PAGES (MY ORDERS)
   10. ADMIN PANEL
   11. CONTENT PAGES (BLOG, POLICIES, CONTACT)
   12. FOOTER & NEWSLETTER
========================================================================== */

/* ==========================================================================
   1. BASE / RESET
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary-color: #38bdf8;
  --bg-dark: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #0f172a; /* Dark blue background */
  color: #e5e7eb; /* Light text color */
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f1f5f9;
  margin-top: 0;
}

.main-container h1,
.main-container h2,
.main-container h3,
.main-container h4,
.main-container h5,
.main-container h6 {
  color: #0f172a;
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY & LAYOUT
   ========================================================================== */
.main-container {
  background: #fff;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 50px;
  border-bottom: 1px solid #1e293b;
}

section:last-of-type {
  border-bottom: none;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (DESKTOP & MOBILE)
   ========================================================================== */
header {
  width: 100%;
  background: #000000;
  color: #fff;
  position: relative;
  z-index: 1000;
}

/* --- LOGO STYLING --- */
#logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#logo-container:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

#logo-container:hover .logo-icon {
  transform: rotate(15deg);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block !important;
}

.logo-text,
.m-logo-text {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #38bdf8;
  line-height: 1;
  font-family: "Inter", sans-serif;
}

.logo-text {
  font-size: 24px;
}
.m-logo-text {
  font-size: 20px;
}
.logo-text span,
.m-logo-text span {
  color: #fff;
}

/* --- DESKTOP HEADER --- */
.desktop-header {
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  position: sticky;
  top: 0;
  z-index: 2000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.d-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  max-width: 1400px;
  margin: auto;
  gap: 40px;
  position: relative;
  z-index: 2010;
}

.d-search {
  flex: 1;
  display: flex;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2020;
}

.d-search:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.d-search input {
  width: 100%;
  flex: 1;
  padding: 10px 20px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  position: relative;
  z-index: 2021;
}

.d-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.d-search button {
  padding: 0 25px;
  background: #38bdf8;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 2px;
  position: relative;
  z-index: 2022;
}

.d-search button:hover {
  background: #0ea5e9;
  transform: scale(1.02);
}

/* --- SEARCH SUGGESTIONS --- */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 100px; /* Aligned before the search button */
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  margin-top: 5px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f8fafc;
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}

.suggestion-info {
  flex: 1;
}

.suggestion-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-price {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 700;
}

.mobile-suggestions {
  left: 0;
  right: 0;
  width: 100%;
  position: fixed;
  top: 60px;
  border-radius: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.d-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2015;
}

.d-icon {
  position: relative;
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.d-icon:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

.d-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #38bdf8;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #000;
}

.d-badge:empty {
  display: none;
}

.d-login-btn {
  background: transparent;
  color: #fff;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.d-login-btn:hover {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}

#user-menu .user-name-display {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

#user-menu .user-menu-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#user-menu .user-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #38bdf8;
}

#user-menu #logout-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all 0.3s ease;
}

#user-menu #logout-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* --- DESKTOP NAV BAR & MEGA MENU --- */
.d-nav-bar {
  background: transparent;
  position: relative;
  z-index: 900;
}

.d-nav-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  justify-content: center;
}

.mega {
  position: static;
  cursor: pointer;
}

nav a {
  color: rgba(255, 255, 255, 0.7);
  padding: 15px 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

nav a:hover,
.mega:hover > a {
  color: #38bdf8;
}

.arrow {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.3s;
}

.mega:hover .arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  background: #ffffff;
  padding: 40px;
  color: #0f172a;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu div {
  display: flex;
  flex-direction: column;
}

.mega-menu h4 {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu h4 i {
  color: #38bdf8;
  font-size: 14px;
}

.mega-menu a {
  font-size: 14px;
  color: #64748b;
  margin: 6px 0;
  padding: 0;
  font-weight: 400;
  display: block;
  transition: all 0.2s ease;
}

.mega-menu a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

/* --- MOBILE HEADER ELEMENTS --- */
.mobile-header {
  display: none;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 20px;
  padding-top: calc(12px + env(safe-area-inset-top)); /* Respect status bar */
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-toggle {
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  width: 40px;
  display: flex;
  align-items: center;
}

/* SpaceX Style Slide-down Search Bar */
.m-search-overlay {
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  height: calc(60px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.7); /* High transparency */
  backdrop-filter: blur(15px); /* Premium frosted glass */
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  padding: 0 20px 10px 20px;
  padding-top: env(safe-area-inset-top);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Snappier curve */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.m-search-overlay.active {
  top: 0;
}

.m-search-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 12px;
}

.m-search-container i.fa-magnifying-glass {
  color: #94a3b8;
  font-size: 14px;
}

#m-search-input-alt {
  flex: 1;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  padding: 10px 0;
  font-weight: 500;
}

#m-search-input-alt::placeholder {
  color: #94a3b8;
}

.m-search-close {
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.m-search-close:hover {
  transform: rotate(90deg);
  color: #38bdf8;
}

.m-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.m-logo #logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.m-logo-text {
  font-size: 20px !important;
  color: #38bdf8 !important;
  letter-spacing: -0.5px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
}

.m-logo-text span {
  color: #ffffff !important;
}

.m-logo .logo-icon {
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 0 !important;
}

.m-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 40px;
  justify-content: flex-end;
}

.m-search-icon {
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.m-search-icon:hover {
  color: #38bdf8;
}

.m-cart-icon {
  position: relative;
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.m-cart-icon:hover {
  color: #38bdf8;
}

.m-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #38bdf8;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  border: 1.5px solid #000;
}

#user-menu-mobile a {
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.m-cart-badge:empty {
  display: none;
}

.m-login-text {
  color: #38bdf8;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

/* --- MOBILE SLIDE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #020617;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 9999;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  padding-top: calc(15px + env(safe-area-inset-top));
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mm-logo {
  font-size: 22px;
  font-weight: 800;
  color: #38bdf8;
}

.mm-logo span {
  color: #fff;
}

.mm-close {
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.mm-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.mm-content {
  flex: 1;
  padding-bottom: 40px;
}

.mm-label {
  padding: 20px 20px 8px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.mm-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  color: #e5e7eb;
  font-size: 15px;
  border-bottom: 1px solid #1e293b;
  transition: 0.2s;
}

.mm-link i {
  color: #38bdf8;
  width: 22px;
  text-align: center;
}
.mm-link:hover {
  background: #0f172a;
  color: #38bdf8;
}

.mm-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #e2e8f0;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid #1e293b;
  transition: 0.2s;
  background: transparent;
}

.mm-btn-left {
  display: flex;
  align-items: center;
  gap: 15px;
}
.mm-btn-left i {
  color: #38bdf8;
  width: 22px;
  text-align: center;
  font-size: 16px;
}

.arrow-icon {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.3s;
}
.mm-dropdown.active .arrow-icon {
  transform: rotate(90deg);
  color: #38bdf8;
}
.mm-dropdown.active .mm-btn {
  background: #0f172a;
  color: #38bdf8;
  border-bottom: 1px solid #38bdf8;
}

.mm-submenu {
  display: none;
  background: #0b1120;
}
.mm-dropdown.active .mm-submenu {
  display: block;
  animation: fadeIn 0.3s;
}

.mm-group {
  padding: 12px 20px 12px 58px;
  border-bottom: 1px dashed #1e293b;
}
.mm-group h4 {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.mm-submenu a {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  padding: 5px 0;
  transition: 0.2s;
  position: relative;
}

.mm-submenu a:hover {
  color: #38bdf8;
  transform: translateX(5px);
}
.mm-submenu a::before {
  content: "•";
  color: #38bdf8;
  position: absolute;
  left: -12px;
  opacity: 0;
}
.mm-submenu a:hover::before {
  opacity: 1;
}

.mm-login-section {
  padding: 20px;
  background: #020617;
  border-top: 1px solid #1e293b;
}
.mm-login-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

@media (max-width: 898px) {
  .desktop-header {
    display: none !important;
  }
  .mobile-header {
    display: flex !important;
  }
}

/* ==========================================================================
   4. HERO BANNER & SLIDER
   ========================================================================== */
.hero {
  background:
    linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
    url("https://via.placeholder.com/1920x600.png/0f172a/38bdf8?text=ZionBazaar")
      no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 800;
}
.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: #e5e7eb;
}

.hero button {
  padding: 15px 35px;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero button:hover {
  background: #fff;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* --- HERO SLIDER --- */
.hero-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 500px;
  margin-bottom: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  touch-action: pan-y;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  color: #e5e7eb;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content button {
  padding: 15px 35px;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero-content button:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  transition: background 0.3s;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}
.left-arrow {
  left: 20px;
  border-radius: 5px 0 0 5px;
}
.right-arrow {
  right: 20px;
  border-radius: 0 5px 5px 0;
}

/* Slide Backgrounds */
.slide-1 {
  background-image: url("https://images.unsplash.com/photo-1526178613552-2b45c6c302f0?q=80&w=2070");
}
.slide-2 {
  background-image: url("https://images.unsplash.com/photo-1483985988355-763728e1935b?q=80&w=2070");
}
.slide-3 {
  background-image: url("https://images.unsplash.com/photo-1556742111-a301076d9d18?q=80&w=2070");
}

/* Slider Dots */
.slider-dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}

.slider-dot.active {
  background: #38bdf8;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  section {
    padding: 30px 15px;
  }
  .hero-slider-container {
    height: 350px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-content button {
    padding: 10px 25px;
    font-size: 14px;
  }
  .slider-arrow {
    padding: 10px 8px;
    font-size: 20px;
  }
}

/* ==========================================================================
   5. CATEGORIES & FEATURED PRODUCTS
   ========================================================================== */
.categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  flex-wrap: wrap;
  padding: 20px;
  background: #1e293b;
  border-radius: 12px;
  max-width: 1400px;
}

.categories div {
  background: #0f172a;
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  min-width: 120px;
  border: 1px solid #334155;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.categories div i {
  font-size: 28px;
  margin-bottom: 8px;
  color: #38bdf8;
}

.categories div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: #38bdf8;
}

@media (max-width: 768px) {
  .categories {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .categories::-webkit-scrollbar {
    display: none;
  }
  .categories div {
    min-width: 100px;
    padding: 15px 10px;
  }
}

/* --- FEATURED PRODUCTS --- */
.featured {
  padding: 60px 0;
  text-align: center;
  background: #f3f4f6;
}

.featured h2 {
  margin-bottom: 40px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  display: inline-block;
}

.featured h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #38bdf8;
  margin: 10px auto 0;
  border-radius: 2px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow instead of border */
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: none; /* Removed border */
  padding: 0;
  height: 100%;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1; /* Force square to match grid width */
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0 !important;
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0 !important; /* Force no padding */
  display: block;
  transition: transform 0.6s ease; /* Restored smooth transition */
}

.product:hover img {
  transform: scale(1.1); /* Restored zoom effect */
}

.product-content {
  padding: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product h3:hover {
  color: #0ea5e9;
  text-decoration: none;
}

.product-description {
  font-size: 11px;
  color: #565959;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Removed zoom effect */

.product-badges-container {
  position: absolute;
  top: 10px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  align-items: flex-start;
}

.product-badge {
  position: relative;
  top: auto;
  left: auto;
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 0 2px 2px 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

/* Green Discount Badge Style (for detail page and recently viewed) */
.badge-discount-green {
  background: #22c55e !important;
  color: white !important;
}

.product p.product-price {
  font-size: 17px;
  font-weight: 700;
  color: #0f1111;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.product .discounted-price {
  color: #b12704;
  font-size: 17px;
}

.product .original-price {
  font-size: 12px;
  text-decoration: line-through;
  color: #565959;
  font-weight: 400;
}

.special-badges-checkbox-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.special-badges-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #1e293b;
}

/* Price area limited offer badge (Amazon Style) */
.product-deals-wrapper {
  display: flex;
  flex-direction: column; /* Stack vertically as requested */
  align-items: flex-start;
  gap: 1px;
  margin-bottom: 4px;
}

.discount-badge {
  background: #cc0c39; /* Amazon Red */
  color: white;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
}

.price-area-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #cc0c39; /* Amazon Red */
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  border: none;
  width: fit-content;
}

/* ZionBazaar's Choice Badge (Amazon Style) */
.content-badges-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
  align-items: flex-start;
}

.content-badges-container .product-badge {
  position: static;
  box-shadow: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
}

.badge-zion-choice {
  background: #232f3e !important;
  color: white !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  border-left: 2px solid #e77600 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  letter-spacing: 0.1px !important;
}

.badge-zion-choice span {
  color: #febd69;
}

.badge-bestseller {
  background: #e77600 !important;
  color: white !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: none !important;
  text-transform: capitalize !important;
  letter-spacing: 0.2px !important;
}

.badge-trending {
  background: #cc0c39 !important;
  color: white !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: none !important;
  text-transform: capitalize !important;
  letter-spacing: 0.2px !important;
}

.badge-limited {
  background: #cc0c39 !important;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #94a3b8;
  transition: all 0.3s;
}

.wishlist-btn:hover {
  color: #ef4444;
  transform: scale(1.1);
}
.wishlist-btn.active {
  color: #ef4444;
}

#recently-viewed-grid .product-price,
#related-products-grid .product-price {
  font-size: 15px !important;
}
#recently-viewed-grid .discounted-price,
#related-products-grid .discounted-price {
  font-size: 15px !important;
  color: #b12704 !important;
}
#recently-viewed-grid .original-price,
#related-products-grid .original-price {
  font-size: 11px !important;
}

#recently-viewed-grid .product h3,
#related-products-grid .product h3 {
  font-size: 13px;
  height: 36px;
  color: #007185;
}

.product-rating {
  margin-bottom: 2px;
  color: #ffa41c; /* Amazon Star Orange */
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 1px;
}

.product-rating span {
  color: #565959; /* Amazon secondary text */
  margin-left: 4px;
  font-size: 12px;
}

.product p.product-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 15px;
}

.product-price-wrapper {
  margin-top: auto;
  margin-bottom: 8px;
}

.product p.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #0f1111; /* Amazon dark text */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.product .discounted-price {
  color: #b12704; /* Amazon price red */
  font-size: 18px;
}

.product .original-price {
  font-size: 12px;
  text-decoration: line-through;
  color: #565959; /* Amazon secondary text */
  font-weight: 400;
}
.discount-tag {
  font-size: 11px;
  color: white;
  background: #22c55e;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 4px;
  display: inline-block;
}

.product button.add-to-cart-btn {
  width: 100%;
  padding: 8px;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(20px);
  margin-top: 5px;
  pointer-events: none;
}

.product:hover button.add-to-cart-btn,
.product:focus-within button.add-to-cart-btn,
.recently-viewed-grid .product:hover button.add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.recently-viewed-grid .product button.add-to-cart-btn {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.product button.add-to-cart-btn:hover {
  background: #0284c7;
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
  transform: translateY(-5px);
}

@media (max-width: 640px) {
  section {
    padding: 20px 10px;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 5px;
  }
  .product {
    border-radius: 4px;
    box-shadow: none;
    border: none;
  }
  .product-img-wrapper {
    padding: 0;
  }
  .product img {
    padding: 0;
  }
  .product-content {
    padding: 8px;
  }
  .product h3 {
    font-size: 13px;
    height: 36px;
    margin-bottom: 4px;
  }
  .product-rating {
    font-size: 10px;
    margin-bottom: 2px;
  }
  .product p.product-price {
    font-size: 15px;
    gap: 4px;
    margin-bottom: 2px;
  }
  .product .discounted-price {
    font-size: 15px;
  }
  .product .original-price {
    font-size: 11px;
  }
  .product .discount-tag {
    display: none;
  }
  .product button.add-to-cart-btn {
    display: flex;
    opacity: 1;
    padding: 8px;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .product button.add-to-cart-btn:active {
    transform: scale(0.95);
    background: #0284c7;
  }
  .wishlist-btn {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }
  .product-badges-container {
    top: 10px;
    left: 10px;
    gap: 4px;
  }
  .product-badge {
    font-size: 9px;
    padding: 3px 6px;
  }
}

/* --- RECENTLY VIEWED SECTION --- */
.recently-viewed-container {
  margin-top: 40px;
  margin-bottom: 40px;
  background: #1e293b; /* Slightly lighter navy than the body */
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.recently-viewed-container h2 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.recently-viewed-container h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #38bdf8;
  margin: 10px auto 0;
  border-radius: 2px;
}

.recently-viewed-grid {
  display: flex !important;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 5px 25px;
  scrollbar-width: thin;
  scrollbar-color: #38bdf8 #f1f5f9;
}

.recently-viewed-grid::-webkit-scrollbar {
  height: 6px;
}
.recently-viewed-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.recently-viewed-grid::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 10px;
}

.recently-viewed-grid .product {
  width: 180px; /* Consistent width */
  flex-shrink: 0;
}
.recently-viewed-grid .product .product-img-wrapper {
  height: 180px; /* Square image container */
  background: #ffffff !important;
  padding: 0 !important;
}
.recently-viewed-grid .product img {
  height: 100%;
}
.recently-viewed-grid .product h3 {
  font-size: 14px;
  height: 2.8em;
  overflow: hidden;
}
.recently-viewed-grid .product .product-description {
  display: flex;
}

/* ==========================================================================
   6. PRODUCT DETAILS PAGE & GALLERY
   ========================================================================== */
.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 20px 0;
  flex-direction: column;

  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

#product-details-content {
  display: flex;
  gap: 40px;
  padding: 30px;
  width: 100%;
  align-items: flex-start;
}

.product-detail-container .loader,
.product-detail-container .error-message {
  text-align: center;
  padding: 20px;
  font-size: 1.2em;
  color: #555;
}

.product-image-gallery {
  flex: 1;
  min-width: 300px;
  max-width: 450px; /* Reduced to avoid being too big */
  aspect-ratio: 1 / 1; /* Square for Amazon look */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #f1f5f9;
  position: relative;
}

.product-image-gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.product-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .product-info {
    min-width: 100%;
    width: 100%;
    padding: 0;
  }
}
  color: #1e293b;
}

/* Product Share Section Original */
.product-share {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.product-share span {
  font-weight: 700;
  color: #475569;
  font-size: 14px;
}

.product-share .share-btn {
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.product-share .share-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-info h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #ffffff;
  line-height: 1.3;
}
.product-info .product-meta {
  font-size: 0.9em;
  color: #94a3b8;
  margin-bottom: 5px;
}

#product-rating-summary {
  margin: 15px 0;
  font-size: 14px;
  color: #cbd5e1;
}
#product-rating-summary .stars {
  color: #fbbf24;
  font-size: 1.2em;
}
#product-rating-summary .review-count {
  margin-left: 8px;
  color: #94a3b8;
}

#price-display {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.product-price {
  font-size: 1.8em;
  font-weight: bold;
  color: #ef4444;
}
.original-price {
  font-size: 1em;
  font-weight: normal;
  color: #94a3b8;
  text-decoration: line-through;
}
.discount-percentage {
  font-size: 0.8em;
  font-weight: bold;
  color: #fff;
  background-color: #28a745;
  padding: 3px 6px;
  border-radius: 5px;
  white-space: nowrap;
  align-self: center;
}

#product-stock {
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #22c55e;
}
#product-stock.out-of-stock {
  color: #ef4444;
}

#product-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.description-header {
  font-weight: 700;
  font-size: 1.1em;
  color: #f1f5f9;
  margin-top: 25px;
  margin-bottom: 12px;
  border-bottom: 1px solid #334155;
  display: inline-block;
  padding-bottom: 4px;
}

.description-content {
  margin-bottom: 15px;
}

.description-content strong {
  color: #f8fafc;
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.product-actions input[type="number"] {
  width: 70px;
  height: 48px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

@media (max-width: 480px) {
  .product-actions {
    gap: 10px;
  }
  .product-actions button {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 1em;
  }
  .product-actions input[type="number"] {
    width: 60px;
  }
}
.product-actions button {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1em;
  color: #fff;
}
#add-to-cart-detail-btn {
  background: #38bdf8;
  color: #0f172a;
}
#add-to-cart-detail-btn:hover {
  background: #0ea5e9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}
#add-to-cart-detail-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}
.buy-now-btn {
  background: #22c55e;
  color: #fff;
}
.buy-now-btn:hover {
  background: #16a34a;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.buy-now-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
}

.wishlist-detail-btn {
  background: #f1f5f9;
  color: #64748b;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}

.wishlist-detail-btn:hover {
  background: #e2e8f0;
  color: #ef4444;
}

/* --- REVIEWS SECTION --- */
.reviews-section-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.reviews-section-container h2 {
  font-size: 28px;
  color: #0f172a;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}
.reviews-section-container h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #38bdf8;
  margin: 10px auto 0;
  border-radius: 2px;
}

#reviews-list {
  margin-top: 20px;
}
.review-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.review-author {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
}
.review-rating {
  color: #fbbf24;
  font-size: 1.1em;
}
.review-date {
  font-size: 12px;
  color: #94a3b8;
  margin-left: auto;
}
.review-comment {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

#review-form-container {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}
#review-form-container h3 {
  font-size: 22px;
  color: #0f172a;
  margin-bottom: 20px;
}
#review-form-login-prompt p {
  color: #ef4444;
  font-size: 16px;
  text-align: center;
  padding: 20px;
  border: 1px dashed #ef4444;
  border-radius: 8px;
  background: #fef2f2;
}
#review-form-login-prompt a {
  color: #38bdf8;
  font-weight: 600;
}
#review-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

#review-form select,
#review-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fff;
}
#review-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 30px;
}
#review-form textarea {
  resize: vertical;
  min-height: 100px;
}
#submit-review-btn {
  padding: 12px 25px;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}
#submit-review-btn:hover {
  background: #0ea5e9;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* --- PRODUCT GALLERY ADVANCED --- */
.product-image-section {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.product-gallery {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

/* Share button icon on top right of product image */
.image-top-share {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.image-top-share:hover {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
  transform: scale(1.1);
}
.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.4s ease-in-out, transform 0.3s ease-out;
  pointer-events: none;
}
.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}
/* Re-added hover zoom effect only for images */
.gallery-slide:not(video):hover {
  transform: scale(1.2);
  z-index: 5;
}


.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.gallery-nav.prev {
  left: 15px;
}
.gallery-nav.next {
  right: 15px;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.gallery-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.gallery-dot.active {
  background: #38bdf8;
  width: 15px;
  border-radius: 4px;
}

.thumbnail-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 15px 5px;
  scrollbar-width: none;
}
.thumbnail-container::-webkit-scrollbar {
  display: none;
}
.thumb-item {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  transition: all 0.2s;
  flex-shrink: 0;
  background: #fff;
}
.thumb-item:hover {
  transform: scale(1.05);
}
.thumb-item.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* --- PRODUCT DETAILS EXTRAS (Wishlist, Trust, Share) --- */
.wishlist-detail-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}
.wishlist-detail-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #ef4444;
}
.wishlist-detail-btn.active {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.product-trust-badges {
  display: flex;
  gap: 20px;
  margin: 25px 0;
  padding: 15px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.badge-item i {
  font-size: 20px;
  color: #38bdf8;
  margin-bottom: 5px;
}
.badge-item span {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.product-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.product-share span {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}
.share-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}
.share-btn[data-platform="facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
}
.share-btn[data-platform="whatsapp"]:hover {
  background: #25d366;
  border-color: #25d366;
}
.share-btn[data-platform="twitter"]:hover {
  background: #000;
  border-color: #000;
}

/* Mobile Sticky Action Bar & Details */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 12px 20px;
  display: none;
  gap: 15px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 20px 20px 0 0;
}
.mobile-action-bar button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.mobile-bar-cart {
  background: #f1f5f9;
  color: #0f172a;
}
.mobile-bar-cart:hover,
.mobile-bar-cart:active {
  background: #0ea5e9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.mobile-bar-buy {
  background: #38bdf8;
  color: #fff;
}
.mobile-bar-buy:hover,
.mobile-bar-buy:active {
  background: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.product-header-mobile {
  display: none;
  width: 100%;
  padding: 10px 20px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid #f1f5f9;
}
.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  #product-details-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    align-items: stretch;
  }
  .product-image-section,
  .product-info {
    max-width: 100%;
    min-width: unset;
  }
  .product-image-gallery {
    max-width: 100%;
    min-width: unset;
  }
  .product-info h1 {
    font-size: 1.25rem;
    font-weight: 500;
  }
  #product-price {
    font-size: 1.5em;
  }
  .product-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }
  .product-actions button {
    width: 100%;
  }
  .mobile-action-bar {
    display: flex;
  }
  .product-detail-container {
    padding-bottom: 100px;
  }
  .product-header-mobile {
    display: flex;
  }
}

/* --- PRODUCT SPECIFICATIONS --- */
.product-specs-container {
  margin: 30px 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.product-specs-container h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #0f172a;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

.product-specs-container h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th {
  text-align: left;
  padding: 10px 0;
  color: #64748b;
  font-weight: 500;
  width: 160px;
  vertical-align: top;
}

@media (max-width: 576px) {
  .specs-table, 
  .specs-table tbody, 
  .specs-table tr, 
  .specs-table th, 
  .specs-table td {
    display: block !important;
    width: 100% !important;
  }
  .specs-table tr {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .specs-table tr:last-child {
    border-bottom: none;
  }
  .specs-table th {
    padding: 0 0 5px 0 !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
  }
  .specs-table td {
    padding: 0 !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    font-weight: 700;
  }
}

.specs-table td {
  padding: 10px 0;
  color: #0f172a;
  font-weight: 600;
  vertical-align: top;
}

/* ==========================================================================
   7. CART SIDEBAR & CHECKOUT
   ========================================================================== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: #fff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top));
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.cart-header h3 {
  color: #0f172a;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px 20px;
  color: #333;
}
.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cart-item img.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}
.cart-item .details {
  flex-grow: 1;
}
.cart-item .details span {
  font-weight: 600;
  color: #1e293b;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.cart-item-quantity .quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
  color: #333;
}
.cart-item-quantity .quantity-text {
  padding: 0 10px;
  font-weight: bold;
  color: #333;
}
.cart-item-price {
  font-weight: bold;
  color: #0f172a;
}
.cart-item .remove-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.2s;
}
.cart-item .remove-btn:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
  color: #333;
}
.cart-footer p {
  font-size: 18px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 15px;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #38bdf8;
  color: #fff;
  text-align: center;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.checkout-btn:hover {
  background: #0ea5e9;
}

/* CHECKOUT MODAL EXTENSIONS */
#checkoutModal .modal-content {
  max-width: 600px;
}
#checkout-view {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
#checkout-view h4 {
  font-size: 18px;
  color: #0f172a;
  margin-top: 25px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}
.checkout-form input:focus,
.checkout-form select:focus {
  border-color: #38bdf8;
  outline: none;
}
.checkout-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 30px;
}

.coupon-input-group {
  display: flex;
  margin-bottom: 15px;
}
.coupon-input-group input {
  flex-grow: 1;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 15px;
  color: #333;
  background: #fff;
  outline: none;
}
.coupon-input-group button {
  padding: 10px 18px;
  background: #38bdf8;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.coupon-input-group button:hover {
  background: #0ea5e9;
}
#coupon-message {
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 13px;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

#summaryItems {
  margin-top: 20px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 15px;
  margin-bottom: 15px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #475569;
  border-bottom: 1px dotted #f0f0f0;
}
.summary-item:last-of-type {
  border-bottom: none;
}
#checkoutModal .summary-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.summary-total,
.summary-discount,
.summary-shipping,
.summary-tax,
.summary-final-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
}

.summary-total span:first-child,
.summary-discount span:first-child,
.summary-shipping span:first-child,
.summary-tax span:first-child {
  color: #6b7280;
}

.summary-discount {
  color: #16a34a;
}

.summary-final-total {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  border-top: 1px dashed #e5e7eb;
  padding-top: 15px;
  margin-top: 10px;
}

.tax-inclusive-note {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
  margin-top: -8px;
  margin-bottom: 10px;
  font-weight: 400;
}

.price-details-title {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

#placeOrderBtn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #22c55e;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 25px;
}
#placeOrderBtn:hover {
  background: #16a34a;
}
.success-msg {
  text-align: center;
  color: #22c55e;
  font-size: 16px;
  margin-top: 15px;
}

@media (max-width: 600px) {
  #checkoutModal .modal-content {
    width: 95%;
    padding: 20px;
  }
  #checkout-view h4 {
    font-size: 16px;
    margin-top: 20px;
  }
  .checkout-form input,
  .checkout-form select,
  .coupon-input-group input,
  .coupon-input-group button {
    font-size: 14px;
    padding: 10px;
  }
  .summary-item,
  .summary-total,
  .summary-final-total {
    font-size: 14px;
  }
  .summary-final-total {
    font-size: 16px;
  }
}

/* ==========================================================================
   8. UTILITIES (MODALS, TOASTS, LOADERS, BUTTONS)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- LOADERS & ERRORS --- */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  width: 100%;
  grid-column: 1 / -1;
}
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #e2e8f0;
  border-bottom-color: #0ea5e9;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.no-results i {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.no-results p {
  font-size: 18px;
  font-weight: 500;
}
.error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #ef4444;
  background: #fef2f2;
  border-radius: 12px;
  border: 1px solid #fee2e2;
  margin: 20px 0;
}

/* --- OVERLAY & BACK TO TOP --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 5000;
  backdrop-filter: blur(3px);
  pointer-events: none; /* Block clicks only when active */
}
.overlay.open {
  display: block;
  pointer-events: auto;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #38bdf8;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* --- MODALS --- */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-content {
  background-color: #fff;
  color: #333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
}
.modal-header h3 {
  color: #0f172a;
  font-size: 24px;
}
.close-auth-modal,
#closeModal,
#closeCart,
.close-modal-btn {
  color: #94a3b8;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.close-auth-modal:hover,
#closeModal:hover,
#closeCart:hover,
.close-modal-btn:hover {
  color: #ef4444;
}

.auth-modal input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
}
.auth-modal button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #38bdf8;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.auth-modal button[type="submit"]:hover {
  background: #0ea5e9;
}
.auth-modal p {
  text-align: center;
  margin-top: 20px;
  color: #475569;
}
.auth-modal p a {
  color: #38bdf8;
  font-weight: 600;
}
.auth-error {
  color: #ef4444;
  background: #fee2e2;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20001;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-slider {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pinch-zoom;
}
.lightbox-slider img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: none;
  animation: zoomIn 0.3s ease;
}
.lightbox-slider img.active {
  display: block;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 5px;
  transition: 0.3s;
}
.lightbox-nav:hover {
  background: #38bdf8;
}
.lightbox-nav.prev {
  left: -60px;
}
.lightbox-nav.next {
  right: -60px;
}
.lightbox-thumbnails {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  max-width: 80%;
}
.lightbox-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: 0.2s;
}
.lightbox-thumbnails img.active {
  border-color: #38bdf8;
  opacity: 1;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .lightbox-nav {
    padding: 10px 8px;
    font-size: 18px;
  }
  .lightbox-nav.prev {
    left: 10px;
  }
  .lightbox-nav.next {
    right: 10px;
  }
  .lightbox-modal {
    padding: 20px;
  }
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #38bdf8;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. USER PAGES (MY ORDERS)
   ========================================================================== */
.orders-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  color: #1e293b;
}
.orders-page h1 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: #0f172a;
  position: relative;
}
.orders-page h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #38bdf8;
  margin: 15px auto 0;
  border-radius: 2px;
}

#orders-loader,
#orders-error {
  text-align: center;
  padding: 30px;
  font-size: 18px;
  color: #64748b;
}
#orders-error {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 8px;
}
#orders-list-container {
  margin-top: 30px;
}

.order-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.order-card-header {
  background: #eef2ff;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-bottom: 1px solid #d4d7ff;
}
.order-card-header div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.order-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 3px;
}
.order-value {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.order-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

.order-card-body {
  padding: 20px 25px;
}
.order-card-body h4 {
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 15px;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.order-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.order-item-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
}
.order-item-details span {
  font-size: 14px;
  color: #475569;
}

.order-price-breakdown {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #eef2ff;
  max-width: 300px;
  margin-left: auto;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #64748b;
  font-size: 14px;
}
.price-row.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
}

.order-tracking-info {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}
.order-tracking-info h4 {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 10px;
}
.order-tracking-info p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 5px;
}
.order-tracking-info .track-btn {
  display: inline-block;
  background: #38bdf8;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  transition: background 0.3s ease;
}
.order-tracking-info .track-btn:hover {
  background: #0ea5e9;
}

@media (max-width: 768px) {
  .orders-page {
    padding: 20px;
  }
  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   10. ADMIN PANEL
   ========================================================================== */
.admin-panel {
  max-width: 1400px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  color: #1e293b;
}

.admin-panel h1 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: #0f172a;
  position: relative;
}
.admin-panel h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #38bdf8;
  margin: 15px auto 0;
  border-radius: 2px;
}

.admin-nav-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 5px;
}
.admin-tab-btn {
  background: none;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin: 0 10px;
}
.admin-tab-btn:hover,
.admin-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

#admin-loader {
  text-align: center;
  padding: 30px;
  font-size: 18px;
  color: #64748b;
}
#admin-error {
  background: #fef2f2;
  color: #ef4444;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
  border: 1px solid #ef4444;
}

.admin-content {
  margin-top: 30px;
}
.admin-section {
  margin-bottom: 40px;
  background: #f8fafc;
  padding: 25px;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}
.admin-section h2 {
  font-size: 24px;
  color: #0f172a;
  margin-bottom: 20px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 15px;
}

.add-btn {
  background: #22c55e;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 20px;
}
.add-btn:hover {
  background: #16a34a;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #334155;
}
th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tbody tr:nth-child(even) {
  background: #fdfdfe;
}
tbody tr:hover {
  background: #eef2ff;
}

.admin-product-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.admin-order-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.admin-order-status option {
  background: #fff;
  color: #333;
  text-transform: none;
  font-weight: normal;
}

.edit-btn,
.delete-btn,
.add-tracking-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-right: 5px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.edit-btn {
  background: #38bdf8;
  color: #fff;
}
.edit-btn:hover {
  background: #0ea5e9;
}
.delete-btn {
  background: #ef4444;
  color: #fff;
}
.delete-btn:hover {
  background: #dc2626;
}
.add-tracking-btn {
  background: #f97316;
  color: #fff;
}
.add-tracking-btn:hover {
  background: #ea580c;
}

.product-form-section form,
.coupon-form-section form,
#trackingModal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.product-form-section label,
.coupon-form-section label,
#trackingModal label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}
.product-form-section input,
.product-form-section textarea,
.product-form-section select,
.coupon-form-section input,
.coupon-form-section select,
#trackingModal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fff;
}
.product-form-section textarea {
  min-height: 100px;
  resize: vertical;
}

.product-form-section button[type="submit"],
.coupon-form-section button[type="submit"],
#trackingModal button[type="submit"] {
  background: #38bdf8;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  margin-top: 10px;
}
.product-form-section button[type="submit"]:hover,
.coupon-form-section button[type="submit"]:hover,
#trackingModal button[type="submit"]:hover {
  background: #0ea5e9;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.cancel-btn {
  background: #64748b;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 16px;
  margin-left: 10px;
}
.cancel-btn:hover {
  background: #475569;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.form-help-text {
  font-size: 12px;
  color: #64748b;
  margin-top: -10px;
  margin-bottom: 10px;
}

.status-processing {
  background: #ffedd5;
  color: #f97316;
}
.status-confirmed {
  background: #dbeafe;
  color: #2563eb;
}
.status-shipped {
  background: #dcfce7;
  color: #16a34a;
}
.status-delivered {
  background: #dcfce7;
  color: #059669;
}
.status-cancelled {
  background: #fee2e2;
  color: #ef4444;
}

.admin-image-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 20px;
}
.admin-image-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
  .admin-panel {
    padding: 20px;
  }
  .admin-nav-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-tab-btn {
    margin: 5px;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }
  td {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  td:last-child {
    border-bottom: none;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 15px;
    font-weight: 600;
    text-align: left;
    color: #475569;
  }
  td button {
    margin: 5px 0 5px 5px;
  }
}

/* ==========================================================================
   11. CONTENT PAGES (BLOG, POLICIES, CONTACT, OFFERS)
   ========================================================================== */
.contact-us,
.privacy-policy,
.terms-conditions,
.blog-content-page,
.refund-returns-policy {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  color: #1e293b;
  line-height: 1.7;
  font-size: 16px;
}
.contact-us h1,
.privacy-policy h1,
.terms-conditions h1,
.blog-content-page h1,
.refund-returns-policy h1 {
  font-size: 38px;
  text-align: center;
  margin-bottom: 40px;
  color: #0f172a;
  position: relative;
}
.contact-us h1::after,
.privacy-policy h1::after,
.terms-conditions h1::after,
.blog-content-page h1::after,
.refund-returns-policy h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #38bdf8;
  margin: 15px auto 0;
  border-radius: 2px;
}
.contact-us h2,
.privacy-policy h2,
.terms-conditions h2,
.blog-content-page h2,
.refund-returns-policy h2 {
  font-size: 28px;
  color: #0f172a;
  margin-top: 35px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}
.contact-us h3,
.privacy-policy h3,
.terms-conditions h3,
.blog-content-page h3,
.refund-returns-policy h3 {
  font-size: 22px;
  color: #0f172a;
  margin-top: 30px;
  margin-bottom: 15px;
}
.contact-us p,
.privacy-policy p,
.terms-conditions p,
.blog-content-page p,
.refund-returns-policy p {
  margin-bottom: 15px;
  color: #475569;
}
.contact-us ul,
.privacy-policy ul,
.terms-conditions ul,
.blog-content-page ul,
.refund-returns-policy ul {
  list-style: none;
  margin-bottom: 15px;
  padding-left: 20px;
}
.contact-us ul li,
.privacy-policy ul li,
.terms-conditions ul li,
.blog-content-page ul li,
.refund-returns-policy ul li {
  margin-bottom: 8px;
  position: relative;
  color: #475569;
}
.contact-us ul li::before,
.privacy-policy ul li::before,
.terms-conditions ul li::before,
.blog-content-page ul li::before,
.refund-returns-policy ul li::before {
  content: "•";
  color: #38bdf8;
  position: absolute;
  left: -15px;
}
.contact-us a,
.privacy-policy a,
.terms-conditions a,
.blog-content-page a,
.refund-returns-policy a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-us a:hover,
.privacy-policy a:hover,
.terms-conditions a:hover,
.blog-content-page a:hover,
.refund-returns-policy a:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

.intro-text,
.thank-you-text {
  font-size: 18px;
  font-weight: 500;
  color: #0f172a;
  text-align: center;
  margin-bottom: 30px;
}
.contact-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.social-links-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
}
.social-links-contact i {
  font-size: 20px;
  color: #38bdf8;
}

.blog-rating {
  font-weight: bold;
  color: #fbbf24;
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 20px;
}

/* --- WHY US --- */
.why-us {
  padding: 20px;
  text-align: center;
  background: #f3f4f6;
}
.why-us h2 {
  margin-bottom: 40px;
  font-size: 28px;
  color: #0f172a;
}
.trust-symbols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.trust-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}
.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.trust-item .icon {
  font-size: 30px;
  margin-top: 5px;
  color: #38bdf8;
}
.trust-item h4 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #1e293b;
}
.trust-item p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* --- SPECIAL OFFER --- */
.special-offer {
  background: linear-gradient(45deg, #1e293b, #334155);
  color: #fff;
  padding: 40px 50px;
  margin: 60px auto;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.special-offer .offer-text p {
  font-size: 18px;
  color: #94a3b8;
}
.special-offer .offer-text h3 {
  font-size: 32px;
  margin-top: 5px;
  color: #38bdf8;
}

/* --- BLOG GRID --- */
.blog {
  padding: 60px 0;
  background: #0f172a;
}
.blog h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #fff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.blog-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  color: #e5e7eb;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-content {
  padding: 20px;
}
.blog-card-content .category {
  font-size: 13px;
  font-weight: bold;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-card-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}
.blog-card-content p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-us,
  .privacy-policy,
  .terms-conditions,
  .blog-content-page,
  .refund-returns-policy {
    padding: 20px;
    margin: 20px auto;
  }
  .contact-us h1,
  .privacy-policy h1,
  .terms-conditions h1,
  .blog-content-page h1,
  .refund-returns-policy h1 {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .contact-us h2,
  .privacy-policy h2,
  .terms-conditions h2,
  .blog-content-page h2,
  .refund-returns-policy h2 {
    font-size: 24px;
    margin-top: 25px;
  }
  .contact-us h3,
  .privacy-policy h3,
  .terms-conditions h3,
  .blog-content-page h3,
  .refund-returns-policy h3 {
    font-size: 20px;
    margin-top: 20px;
  }
}

/* ==========================================================================
   12. FOOTER & NEWSLETTER
   ========================================================================== */
.newsletter {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.newsletter h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #fff;
}
.newsletter input {
  padding: 12px 20px;
  width: 300px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  border-radius: 30px 0 0 30px;
  outline: none;
}
.newsletter button {
  padding: 12px 30px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 0 30px 30px 0;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.newsletter button:hover {
  background: #0ea5e9;
}

footer {
  background: #020617;
  padding: 60px 50px 20px;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #38bdf8;
  position: relative;
  padding-bottom: 8px;
  transition: color 0.3s ease;
}
.footer-col h4:hover {
  color: #0ea5e9;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s ease;
}
.footer-col h4:hover::after {
  width: 60px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}
.footer-col ul li::before {
  content: "\2022";
  color: #38bdf8;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}
.footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s;
  display: inline-block;
  padding: 2px 0;
}
.footer-col ul li a:hover {
  transform: translateX(5px);
  color: #0ea5e9;
}

.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}
.social-links a:hover {
  background: #38bdf8;
  color: #0f172a;
}

.payment-logos img {
  height: 25px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.payment-logos img:hover {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 768px) {
  .has-mobile-action-bar #backToTop {
    bottom: 85px; /* Above the mobile action bar */
    left: 20px;
  }
}

/* --- Amazon Style Share Modal --- */
.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.share-modal.active {
  display: flex;
  align-items: flex-end;
}

.share-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.share-modal-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.share-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.share-modal-close {
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.share-product-card {
  display: flex;
  gap: 15px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid #eee;
}

.share-product-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.share-product-info {
  flex: 1;
}

.share-product-info p {
  font-size: 14px;
  color: #333;
  margin: 5px 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-product-rating {
  color: #ffa41c;
  font-size: 12px;
}

.share-actions-grid {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.share-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.share-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  transition: transform 0.2s;
}

.share-action:active .share-icon-wrap {
  transform: scale(0.9);
}

.share-icon-wrap.whatsapp {
  background: #25d366;
}
.share-icon-wrap.messages {
  background: #34b7f1;
}
.share-icon-wrap.copy {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}
.share-icon-wrap.email {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}
.share-icon-wrap.more {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}

.share-action span {
  font-size: 12px;
  color: #555;
  font-weight: 500;
}
