* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
}

html {
  scroll-behavior: smooth;
}

button, a, input, select {
  -webkit-tap-highlight-color: rgba(235, 78, 204, 0.2);
  touch-action: manipulation;
}

/* ============================================
   BODY & CONTAINER
   ============================================ */

.gs-body {
  background: var(--bs-secondary-bg-subtle);
  color: var(--bs-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Anta';
  transition: background-color 0.7s ease, color 0.7s ease;
}

.gs-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  justify-content: center !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bs-bg-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--bs-primary);
  border-radius: 4px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(180deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-to-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bs-text-muted);
}

.loading .spinner, .spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--bs-primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.empty, .empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bs-bg-card);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
  margin-top: 20px;
}

.empty-state .empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-top: 10px;
  color: var(--bs-body-color);
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--bs-text-muted);
  margin-bottom: 16px;
}

/* ============================================
   PAGE LOADER
   ============================================ */

#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bs-tertiary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

#page-loader .spinner {
  width: 42px;
  height: 42px;
}

.biglogo {
  filter: invert(100%) hue-rotate(182deg) contrast(133%) brightness(80%);
}

/* Dark mode */

/* ============================================
   BUTTONS
   ============================================ */

.gs-btn {
  background: var(--bs-primary);
  display: inline-block;
  color: var(--bs-secondary);
  text-decoration: none;
  text-transform: capitalize;
  font-family: Sans-serif;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

.gs-btn-primary {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-link-hover-color));
  color: var(--bs-dark);
  box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.35);
}

.gs-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(var(--bs-primary-rgb), 0.45);
}

.gs-btn-danger {
  background: var(--bs-danger);
  color: #fff;
}

.gs-btn-danger:hover {
  opacity: 0.9;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  padding: 4px 10px;
  border-radius: var(--bs-border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-bundle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-custom {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.shop-badge {
  padding: 3px 6px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: var(--bs-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shop-badge-bundle {
  background: var(--bs-secondary);
  color: var(--bs-primary);
  cursor: pointer;
}

.shop-badge-bundle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 23px rgba(var(--bs-primary-rgb), 0.45);
}

.shop-badge-custom {
  background: rgba(159,44,117,0.3);
  color: var(--bs-light);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  width: 100%;
  background: var(--bs-secondary);
  box-shadow: var(--bs-box-shadow);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 90px;
  margin-bottom: 1em;
}

.nav-container {
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  letter-spacing: 0.5px;
  transition: 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

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

.nav-links a {
  color: var(--bs-body-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

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

/* ============================================
   NAVIGATION ACTIONS & AUTH
   ============================================ */

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

.nav-icon {
  color: var(--bs-body-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s ease;
}

.nav-icon:hover {
  color: var(--bs-primary);
}

.nav-icon span {
  font-weight: 600;
}

.nav-auth {
  color: var(--bs-body-color);
  margin: 5px 10px;
}

.nav-auth:hover {
  color: var(--bs-primary);
}

/* ============================================
   USER MENU & DROPDOWN
   ============================================ */

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: var(--bs-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.user-menu:hover .user-icon {
  opacity: 0.9;
}

.user-dropdown {
  position: absolute;
  top: 32px;
  right: 0;
  background: var(--bs-secondary);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
  padding: 14px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
  z-index: 10000;
}

.user-menu:hover .user-dropdown {
  display: flex;
}

.user-dropdown .user-email {
  font-size: 0.85rem;
  color: var(--bs-text-muted);
  margin-bottom: 10px;
}

.user-dropdown a {
  padding: 8px 0;
  color: var(--bs-body-color);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.user-dropdown a:hover {
  color: var(--bs-highlight-color);
  background: var(--bs-focus-ring-color);
  border-radius: 15px;
  text-align: center;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.menu-btn {
  display: none;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: var(--bs-body-color);
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-btn:hover {
  color: var(--bs-primary);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bs-bg-card);
  padding: 18px;
  margin: 12px 16px;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  position: fixed;
  top: 90px;
  left: 5%;
  right: 5%;
  width: 90%;
  z-index: 10000;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  background: var(--bs-light-bg-subtle);
}

.mobile-menu a {
  padding: 14px 4px;
  color: var(--bs-body-color);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--bs-primary);
  padding-left: 10px;
}

.mobile-user-info {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--bs-text-muted);
  border-bottom: 1px solid var(--bs-border-color-translucent);
  margin-bottom: 10px;
}

#mobileAuthArea {
  display: none;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

#theme-toggle-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background-color: var(--bs-primary);
  color: white;
  opacity: 0.3;
}

#theme-toggle-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

#theme-toggle-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

[data-bs-theme="dark"] .sun-icon {
  display: block;
}

[data-bs-theme="dark"] .moon-icon {
  display: none;
}

[data-bs-theme="light"] .sun-icon {
  display: none;
}

[data-bs-theme="light"] .moon-icon {
  display: block;
}

/* ============================================
   BANNER SCROLLER
   ============================================ */

.banner-scroller-wrapper {
  overflow: hidden;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 100;
  height: 20px;
  background-color: var(--bs-primary-bg-subtle);
  opacity: 0;
  animation: fade-in 1s ease-in forwards;
}

.banner-scroller-wrapper .banner-scroller-content {
  display: flex;
  width: fit-content;
  animation: slide-to-left 20s linear infinite;
  font-family: Anta, sans-serif;
}

.banner-scroller-wrapper:hover .banner-scroller-content {
  animation-play-state: paused;
}

.banner-scroller-wrapper .banner-scroller-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.banner-scroller-text {
  min-width: 400px;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--bs-info);
}

/* ============================================
   MINI CART
   ============================================ */

.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 999;
}

.mini-cart-overlay.show {
  display: block;
}

.mini-cart {
  position: fixed;
  top: 7em;
  right: -400px;
  width: 340px;
  height: 80vh;
  background: var(--bs-bg-card);
  box-shadow: var(--bs-box-shadow);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  background: var(--bs-light-bg-subtle);
  border-radius: 20px 0 0 20px;
}

.mini-cart.show {
  right: 0;
}

.mini-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.mini-cart-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

#miniCartClose {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--bs-primary);
  cursor: pointer;
}

.mini-cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

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

.mini-cart-item img {
  width: 60px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--bs-border-radius-sm);
  background: var(--bs-bg-soft);
}

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

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

.mini-cart-item-qty {
  font-size: 0.85rem;
  color: var(--bs-text-muted);
}

.mini-cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.mini-cart-footer {
  margin-top: 16px;
}

.mini-cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bundle-row {
  color: var(--bs-primary);
  font-size: 0.9rem;
}

.mini-cart-btn {
  display: block;
  width: 100%;
  padding: 6px;
  margin-top: 10px;
  text-align: center;
  border-radius: var(--bs-border-radius-pill);
  background: var(--bs-info);
  color: var(--bs-secondary);
  font-weight: 600;
  transition: 0.2s ease;
}

.mini-cart-btn:hover {
  background: var(--bs-secondary);
  color: var(--bs-info);
}

.mini-cart-btn.accent:hover {
  opacity: 0.9;
}

/* ============================================
   SUMMARY ROWS (CART/CHECKOUT/ORDERS)
   ============================================ */

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

.summary-row span:last-child {
  font-weight: 600;
}

.total-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--bs-border-color);
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-items {
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* ============================================
   ORDER ITEMS
   ============================================ */

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

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

.order-item img {
  width: 70px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--bs-border-radius-sm);
  background: var(--bs-bg-soft);
}

.order-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-item-qty {
  font-size: 0.85rem;
  color: var(--bs-text-muted);
}

.order-item-price {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-primary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 50px 0 20px;
  color: var(--bs-body-color);
  margin-top: 60px;
  box-shadow: var(--bs-box-shadow-sm);
  background: var(--bs-secondary) !important;
}

.logo5 {
  resize: auto;
  max-width: 184px;
  min-width: 218px;
  filter: invert(100%) hue-rotate(182deg) contrast(133%) brightness(80%);
}

/* ============================================
   PRODUCT GRIDS
   ============================================ */

.products-grid {
  display: grid;
  justify-content: center;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 20px;
}

#productsGrid {
  align-content: space-between;
}

/* ============================================
   STOCK STATUS
   ============================================ */

.out-of-stock {
  color: var(--bs-danger);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.stock-status {
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.stock-status.in-stock {
  color: var(--bs-primary);
}

.stock-status.low-stock {
  color: var(--bs-danger);
}

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

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (min-width: 468px) {
  :root {
    --container-padding: 24px;
    --section-spacing: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 32px;
    --section-spacing: 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  #authArea {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #mobileAuthArea {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .user-dropdown {
    position: static !important;
    display: flex !important;
    background: transparent;
    box-shadow: none;
    padding: 0;
    animation: none;
  }
}

@media (max-width: 768px) {
  .user-menu:hover .user-dropdown {
    display: flex;
  }
}

@media (max-width: 768px) {
  .gs-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #page-loader .spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .empty-state {
    padding: 40px 16px;
  }
}

@media (max-width: 600px) {
  .empty-state .empty-icon {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .empty-state h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .empty-state p {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .summary-row {
    font-size: 1rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 600px) {
  .total-row {
    font-size: 1.2rem;
    margin-top: 12px;
    padding-top: 12px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 901px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================   CATEGORY PAGE   ============================================================ */

.category-page {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.category-title {
  font-family: Anta, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

/* ---- Grid ---- */

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

/* ---- Card ---- */

.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

/* ---- Card info ---- */

.category-card-info {
  padding: 12px 14px 16px;
}

.category-card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.5;
  display: block;
  margin-bottom: 4px;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card-price {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  font-family: Anta, sans-serif;
}

/* ---- Badge row ---- */

.badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-bundle {
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
}

.badge-custom {
  background: #e63946;
  color: #fff;
}

/* ---- Loading ---- */

.loading {
  text-align: center;
  padding: 60px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bs-border-color);
  border-top-color: var(--bs-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Empty state ---- */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  opacity: 0.7;
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state a {
  color: var(--bs-primary);
  text-decoration: none;
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .category-card h3 {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .category-card-price {
    font-size: 14px;
  }
}

