/* SHAWAD GROUP - Multi-Category Luxury Marketplace Styling System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #071917;
  --bg-card: #102522;
  --bg-card-hover: #15302c;
  --gold-primary: #D4A03A;
  --gold-secondary: #E8BF5A;
  --text-white: #FFFFFF;
  --text-gray: #B8B8B8;
  --border-gold: rgba(212, 160, 58, 0.3);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --font-button: 'Montserrat', sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  padding-bottom: 70px; /* Space for mobile app bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

button, .btn, .font-button {
  font-family: var(--font-button);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Luxury Theme Utility Classes */
.bg-primary-dark { background-color: var(--bg-primary) !important; }
.bg-card-dark { background-color: var(--bg-card) !important; }
.text-gold { color: var(--gold-primary) !important; }
.text-gold-light { color: var(--gold-secondary) !important; }
.text-gray-custom { color: var(--text-gray) !important; }

.gold-gradient {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 50%, var(--gold-primary) 100%);
  background-size: 200% auto;
  color: #071917 !important;
  font-weight: 600;
  transition: all 0.4s ease;
  border: none;
}

.gold-gradient:hover {
  background-position: right center;
  box-shadow: 0 10px 25px rgba(212, 160, 58, 0.3);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary) !important;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #071917 !important;
  box-shadow: 0 8px 20px rgba(212, 160, 58, 0.25);
}

/* Multi-Category Badge Accents */
.badge-category-tech {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: #fff;
}

.badge-category-footwear {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
}

.badge-category-toys {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #071917;
}

.badge-category-clothing {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: #fff;
}

.badge-category-watches {
  background: linear-gradient(135deg, #D4A03A, #E8BF5A);
  color: #071917;
}

.glass-card {
  background: rgba(16, 37, 34, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 160, 58, 0.1);
}

.gold-glow {
  box-shadow: 0 0 35px rgba(212, 160, 58, 0.15);
}

/* Header & Navbar Logo */
.shawad-nav {
  background: rgba(7, 25, 23, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.shawad-logo-img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto;
  max-width: 240px !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(212, 160, 58, 0.25));
  transition: transform 0.3s ease;
}

.shawad-logo-img-footer {
  height: 56px !important;
  max-height: 56px !important;
  width: auto;
  max-width: 250px !important;
  object-fit: contain;
}

.shawad-logo-img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .shawad-logo-img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 180px !important;
  }
}

.search-input-group {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-input-group:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 160, 58, 0.2);
}

.search-input-group input {
  background: transparent;
  border: none;
  color: #fff;
  padding-left: 20px;
}

.search-input-group input:focus {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

/* Category Badge Circles */
.category-circle-wrapper {
  text-align: center;
  text-decoration: none;
  color: var(--text-white);
  transition: transform 0.3s ease;
}

.category-circle-wrapper:hover {
  transform: translateY(-5px);
  color: var(--gold-primary);
}

.category-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid var(--border-gold);
  margin: 0 auto 10px auto;
  transition: all 0.4s ease;
  background: var(--bg-card);
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.category-circle-wrapper:hover .category-circle img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Product Cards */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.product-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 160, 58, 0.15);
}

.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #0d1f1c;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.product-badge-flash {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(45deg, #e63946, #d62828);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.product-badge-cat {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 12px;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.product-wishlist-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 25, 23, 0.85);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.product-wishlist-btn:hover, .product-wishlist-btn.active {
  background: var(--gold-primary);
  color: #071917;
}

.quick-add-btn {
  position: absolute;
  bottom: -50px;
  left: 12px;
  right: 60px;
  background: var(--gold-primary);
  color: #071917;
  font-weight: 700;
  font-size: 11px;
  border-radius: 30px;
  padding: 8px 12px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.product-card:hover .quick-add-btn {
  bottom: 12px;
}

/* Category Filter Pills */
.nav-pills-custom .nav-link {
  color: var(--text-gray);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-pills-custom .nav-link.active, .nav-pills-custom .nav-link:hover {
  background: var(--gold-primary);
  color: #071917;
  border-color: var(--gold-primary);
}

/* Mobile Bottom App Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(7, 25, 23, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 160, 58, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1050;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-gray);
  font-size: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--gold-primary);
}

/* Responsive Fixes */
@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Animations */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: floatAnim 5s ease-in-out infinite;
}

/* Flash Countdown Timer */
.countdown-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 55px;
  text-align: center;
}

.countdown-box .number {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.countdown-box .label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-gray);
}

/* Line Clamp Utility for Uniform Product Card Titles */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

/* ==========================================================================
   DASHBOARD LUXURY SYSTEM (SELLER & ADMIN)
   ========================================================================== */

body.dashboard-body {
  padding-bottom: 0 !important;
}

/* Dashboard Layout Containers */
.seller-wrapper, .admin-wrapper {
  position: relative;
  background-color: var(--bg-primary);
  min-height: 100vh;
}

.seller-content-wrapper, .admin-content-wrapper {
  min-width: 0; /* Prevents flex children from overflowing container */
}

/* Sidebar General Styling */
.seller-sidebar, .admin-sidebar {
  width: 280px;
  min-width: 280px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-gold) !important;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Mobile & Tablet Sidebar Offcanvas Slide-Out (<992px) */
@media (max-width: 991.98px) {
  .seller-sidebar, .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh;
    height: 100dvh;
    z-index: 1075 !important;
    transform: translateX(-100%);
    overflow-y: auto;
    background-color: var(--bg-card) !important;
  }

  .seller-sidebar.show, .admin-sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9) !important;
  }

  /* Backdrop Overlay */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1070 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.show {
    display: block;
    opacity: 1;
  }
}

/* Desktop Sidebar Sticky Fix (>=992px) */
@media (min-width: 992px) {
  .seller-sidebar, .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

/* Dashboard Topbar Styling */
.dashboard-topbar {
  background: rgba(16, 37, 34, 0.95) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-gold) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Nav Item Hover States */
.seller-sidebar .nav-link, .admin-sidebar .nav-link {
  transition: all 0.25s ease;
}

.hover-gold:hover {
  background: rgba(212, 160, 58, 0.12) !important;
  color: var(--gold-primary) !important;
}

/* Responsiveness helper fixes for forms, tables & cards in dashboards */
@media (max-width: 575.98px) {
  .seller-main, .admin-main {
    padding: 1rem 0.75rem !important;
  }
  
  .dashboard-topbar {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

.seller-content-wrapper, .admin-content-wrapper {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.dashboard-footer {
  width: 100%;
}

/* Mobile Phone Responsiveness Refinements (<768px) */
@media (max-width: 767.98px) {
  .seller-main, .admin-main {
    padding: 0.85rem 0.75rem !important;
  }

  .dashboard-topbar {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Make display titles mobile friendly */
  h1.display-6, .display-6 {
    font-size: 1.4rem !important;
  }

  h1.display-5, .display-5 {
    font-size: 1.6rem !important;
  }

  /* KPI metric card values scale cleanly on small screens */
  .glass-card h3 {
    font-size: 1.2rem !important;
  }

  .glass-card h4 {
    font-size: 1.05rem !important;
  }

  /* Table horizontal scroll indicators & mobile styling */
  .table-responsive {
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive::-webkit-scrollbar {
    height: 4px;
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
  }
}

/* Custom Scrollbars for Dashboard Sidebar */
.seller-sidebar::-webkit-scrollbar, .admin-sidebar::-webkit-scrollbar {
  width: 5px;
}
.seller-sidebar::-webkit-scrollbar-thumb, .admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 58, 0.3);
  border-radius: 4px;
}




