/* pet-shop.css - Mobile E-commerce Style */
:root {
  --primary-color: #ffb347;
  --secondary-color: #ff9a8b;
  --accent-color: #8bc6ec;
  --accent-green: #a7e9af;
  --accent-purple: #c7b9ff;
  --accent-yellow: #ffeaa7;
  --accent-red: #ff6b6b;
  --bg-light: #fff9f0;
  --bg-card: #ffffff;
  --text-dark: #4a4a4a;
  --text-light: #ffffff;
  --text-muted: #9b9b9b;
  --shadow-soft: 0 8px 32px rgba(255, 154, 139, 0.1);
  --shadow-medium: 0 15px 40px rgba(255, 179, 71, 0.15);
  --gradient-primary: linear-gradient(135deg, #ffb347 0%, #ffcc81 100%);
  --gradient-secondary: linear-gradient(135deg, #ff9a8b 0%, #ffc3a0 100%);
  --gradient-accent: linear-gradient(135deg, #8bc6ec 0%, #b5c6e0 100%);
  --gradient-happy: linear-gradient(135deg, #a7e9af 0%, #c7e9c0 100%);
  --gradient-premium: linear-gradient(135deg, #ffd166 0%, #ffeaa7 100%);
  --gradient-donation: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  --border-light: #f0e6d2;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-light);
  font-family: "Nunito", sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
}

.pet-shop-container {
  max-width: 100%;
  padding: 10px;
  margin: 0 auto;
}

/* ===== NAVIGATION - MOBILE OPTIMIZED ===== */
.profile-nav {
  background: var(--gradient-primary);
  padding: 12px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 179, 71, 0.2);
  margin-bottom: 15px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo i {
  font-size: 1.3rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: none; /* Sembunyikan di mobile */
}

@media (min-width: 768px) {
  .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 198, 236, 0.3);
}

.back-btn:hover {
  background: #7bb5e0;
  transform: translateY(-2px);
}

.btn-cart {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.3);
  transition: all 0.3s ease;
}

.btn-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 179, 71, 0.4);
}

.cart-count {
  background: var(--accent-red);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  position: absolute;
  top: -5px;
  right: -5px;
  font-weight: bold;
}

/* ===== HEADER SECTION ===== */
.pet-shop-header {
  background: var(--gradient-secondary);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.pet-shop-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

.pet-shop-header h1 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pet-shop-header h1 i {
  font-size: 1.3rem;
}

.pet-shop-header > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* User Greeting */
.user-greeting {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-greeting p {
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.user-greeting strong {
  font-weight: 700;
}

.premium-benefit {
  background: var(--gradient-premium);
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: #8b6500;
  font-size: 0.75rem;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.upgrade-call {
  background: rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.75rem;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Stats Grid */
.pet-shop-stats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pet-shop-stats::-webkit-scrollbar {
  display: none;
}

.stat-item {
  min-width: 110px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-text span:first-child {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.stat-text span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
  margin-bottom: 15px;
}

.section-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.section-title i {
  color: var(--primary-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.category-card.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary-color);
}

.category-card.active .category-icon {
  background: rgba(255, 255, 255, 0.2);
}

.category-card.active .category-name {
  color: white;
}

.category-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
}

.category-name {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-count {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: none; /* Sembunyikan di mobile untuk hemat space */
}

/* ===== FILTERS SECTION ===== */
.filters-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group {
  width: 100%;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-weight: 600;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  font-family: "Nunito", sans-serif;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.2);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-range span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: "Nunito", sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.2);
}

.filter-group:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.filter-group:last-child .btn {
  flex: 1;
  min-width: 120px;
}

/* ===== PRODUCTS SECTION - MOBILE E-COMMERCE STYLE ===== */
.products-section {
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 5px;
}

.section-header .section-title {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Loading State */
.loading-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-products {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 2px dashed var(--border-light);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.empty-products h3 {
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.empty-products p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ===== PRODUCTS GRID - SHOPEE/TOKOPEDIA STYLE ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Product Card - Compact Mobile Style */
.product-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-red);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 2;
}

.member-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gradient-premium);
  color: #8b6500;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.merchandise-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-green);
  color: #2e7d32;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Product Image */
.product-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Square aspect ratio */
  overflow: hidden;
  background: #f8f9fa;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Product Info - Compact Layout */
.product-info {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-category i {
  font-size: 0.6rem;
}

.product-name {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  height: 2.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Product Price - Compact Display */
.product-price {
  margin-bottom: 8px;
}

.current-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-red);
  margin-right: 5px;
}

.original-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
  margin-top: 2px;
}

.discount-badge {
  background: var(--accent-red);
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 5px;
  display: inline-block;
}

.member-price {
  font-size: 0.75rem;
  color: #f093fb;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-price i {
  font-size: 0.7rem;
}

/* Product Stock */
.product-stock {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-in {
  color: var(--accent-green);
}

.stock-out {
  color: var(--accent-red);
}

.stock-badge {
  background: var(--accent-green);
  color: #2e7d32;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.65rem;
  margin-left: 5px;
}

/* Product Actions - Small Buttons */
.product-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.btn-add-to-cart,
.btn-buy-now {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-add-to-cart {
  background: var(--gradient-primary);
  color: white;
}

.btn-buy-now {
  background: var(--gradient-secondary);
  color: white;
}

.btn-add-to-cart:hover,
.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-add-to-cart:disabled,
.btn-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-add-to-cart i,
.btn-buy-now i {
  font-size: 0.7rem;
}

/* ===== FOOTER ===== */
.pet-shop-footer {
  background: var(--gradient-accent);
  padding: 15px;
  margin-top: 20px;
  border-radius: 15px 15px 0 0;
}

.footer-bottom {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

.footer-bottom p:first-child {
  margin-bottom: 6px;
}

.footer-bottom strong {
  color: var(--primary-color);
}

/* ===== BENEFIT MODAL STYLES ===== */
.benefit-popup .swal2-popup {
  max-width: 500px !important;
  padding: 0 !important;
  border-radius: 15px !important;
  overflow: hidden;
}

.benefit-modal-content {
  padding: 25px;
}

.benefit-modal-content h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.benefit-modal-content h3 i {
  color: #ffd166;
}

.plan-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #ffd166;
}

.plan-header h3 {
  margin-bottom: 5px;
  color: #333;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.benefit-list {
  margin: 20px 0;
}

.benefit-list h4 {
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.benefit-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border-light);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.benefit-item.highlight {
  background: linear-gradient(135deg, #fff9c4 0%, #ffeaa7 100%);
  border-color: #ffd166;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-details h5 {
  color: var(--text-dark);
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.benefit-details p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.benefit-details ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
}

.benefit-details li {
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-details li i {
  color: var(--accent-green);
  font-size: 0.8rem;
}

.note {
  font-size: 0.8rem !important;
  color: #666 !important;
  font-style: italic;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 5px;
  margin-top: 8px !important;
}

.benefit-footer {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  text-align: center;
  border: 1px dashed var(--border-light);
}

.benefit-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.benefit-footer i {
  color: var(--accent-color);
}

/* Comparison Styles */
.benefit-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}

.comparison-item {
  padding: 15px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border-light);
}

.comparison-item h5 {
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 1rem;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.comparison-item.premium {
  background: linear-gradient(135deg, #fff9c4 0%, #ffeaa7 100%);
  border-color: #ffd166;
}

.comparison-item ul {
  list-style: none;
  padding-left: 0;
}

.comparison-item li {
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-item li i.fa-check {
  color: var(--accent-green);
}

.comparison-item li i.fa-times {
  color: var(--accent-red);
}

.modal-actions {
  margin-top: 20px;
  text-align: center;
}

.btn-premium {
  background: var(--gradient-premium);
  color: #8b6500;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.3);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 375px) {
  .products-grid {
    gap: 12px;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .btn-add-to-cart,
  .btn-buy-now {
    font-size: 0.8rem;
    padding: 7px 12px;
  }
}

@media (min-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 0.95rem;
    height: 2.4em;
  }
}

@media (min-width: 640px) {
  .pet-shop-container {
    padding: 15px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .filter-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .filter-group {
    flex: 1;
    min-width: 140px;
  }

  .user-info {
    display: flex;
  }
}

@media (min-width: 768px) {
  .pet-shop-header h1 {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 12px 8px;
  }

  .category-name {
    font-size: 0.8rem;
  }

  .product-count {
    display: block;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .pet-shop-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .back-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ===== ADDITIONAL STYLES FOR BADGES & USER INFO ===== */
.badge-premium {
  background: var(--gradient-premium);
  color: #8b6500;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-basic {
  background: var(--gradient-accent);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.3s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 5px;
}
.mt-2 {
  margin-top: 10px;
}
.mt-3 {
  margin-top: 15px;
}
.mb-1 {
  margin-bottom: 5px;
}
.mb-2 {
  margin-bottom: 10px;
}
.mb-3 {
  margin-bottom: 15px;
}

.p-1 {
  padding: 5px;
}
.p-2 {
  padding: 10px;
}
.p-3 {
  padding: 15px;
}

.hidden {
  display: none !important;
}

/* ===== FLOATING CART BUTTON FOR MOBILE ===== */
@media (max-width: 768px) {
  .floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
  }

  .floating-cart-btn:hover {
    transform: scale(1.1) rotate(10deg);
  }

  .floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
  }
}
