/* =============================================
   PetFran – Premium Pet Waste Bags
   Modern E-commerce Styles
   ============================================= */

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--green-600); color: var(--white); border-color: var(--green-600);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--green-700); border-color: var(--green-600);
}
.btn-outline:hover { background: var(--green-50); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-white { background: var(--white); color: var(--green-700); border-color: var(--white); }
.btn-white:hover { background: var(--green-50); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800; color: var(--green-700);
}
.logo-icon { font-size: 26px; }
.logo-text { letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green-500); transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; background: none; border: none; padding: 8px;
  color: var(--gray-700); transition: var(--transition);
}
.cart-btn:hover { color: var(--green-600); }
.cart-count {
  position: absolute; top: 0; right: 0;
  background: var(--green-500); color: white;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; }
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  padding: 140px 0 80px; background: linear-gradient(135deg, var(--green-50) 0%, #f0fdf4 50%, #fefce8 100%);
  min-height: 100vh; display: flex; align-items: center;
}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 6px 14px; background: var(--green-100);
  color: var(--green-800); border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.1; color: var(--gray-900); margin-bottom: 20px; }
.text-green { color: var(--green-600); }
.hero-subtitle { font-size: 18px; color: var(--gray-500); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--green-700); }
.stat-label { font-size: 13px; color: var(--gray-400); font-weight: 500; }

.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); padding: 20px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  transition: var(--transition); animation: float 3s ease-in-out infinite;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.hero-card-2 { animation-delay: 0.5s; }
.hero-card-3 { animation-delay: 1s; }
.hero-card-icon { font-size: 36px; }
.hero-card-content { display: flex; flex-direction: column; }
.hero-card-content strong { font-size: 15px; color: var(--gray-800); }
.hero-card-content span:not(.hero-card-price) { font-size: 13px; color: var(--gray-400); }
.hero-card-price { font-size: 18px; font-weight: 700; color: var(--green-600); margin-top: 4px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ SECTION HEADERS ============ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; padding: 5px 12px; background: var(--green-100);
  color: var(--green-800); border-radius: 20px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.section-title { font-size: 36px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* ============ PRODUCTS ============ */
.products { padding: 100px 0; background: var(--white); }

.filter-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 20px; border-radius: 20px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-600); font-size: 13px; font-weight: 500;
  transition: var(--transition);
}
.filter-tab:hover { border-color: var(--green-400); color: var(--green-700); }
.filter-tab.active { background: var(--green-600); color: var(--white); border-color: var(--green-600); }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-eco { background: #dcfce7; color: #166534; }
.badge-scented { background: #fce7f3; color: #9d174d; }
.badge-commercial { background: #dbeafe; color: #1e40af; }
.badge-popular { background: #fef3c7; color: #92400e; }

.product-card-image {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-50), #fefce8);
  font-size: 64px; overflow: hidden;
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card-body { padding: 20px; }
.product-card-category {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--gray-400); font-weight: 600; margin-bottom: 6px;
}
.product-card-title {
  font-size: 16px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 8px; line-height: 1.4;
}
.product-card-spec { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-price {
  font-size: 22px; font-weight: 800; color: var(--green-700);
}
.product-card-price .price-cny {
  font-size: 12px; font-weight: 400; color: var(--gray-400);
  text-decoration: line-through; margin-left: 6px;
}
.product-card .btn { font-size: 13px; padding: 8px 16px; }

/* ============ MODAL ============ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); border: none; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 40px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.modal-image {
  height: 300px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-50), #fefce8);
  border-radius: var(--radius); font-size: 80px;
}
.modal-info h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.modal-info .modal-category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-400); font-weight: 600; margin-bottom: 4px; }
.modal-info .modal-price { font-size: 32px; font-weight: 800; color: var(--green-700); margin: 16px 0; }
.modal-info .modal-spec { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; padding: 12px; background: var(--gray-50); border-radius: var(--radius-sm); }
.modal-info .modal-desc { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }

.bulk-pricing { margin: 20px 0; }
.bulk-pricing h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--gray-700); }
.bulk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bulk-table th { text-align: left; padding: 8px 12px; background: var(--gray-50); font-weight: 600; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); }
.bulk-table td { padding: 8px 12px; border-bottom: 1px solid var(--gray-100); }
.bulk-table tr:hover td { background: var(--green-50); }
.bulk-table .discount-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--green-100); color: var(--green-800); font-size: 11px; font-weight: 600; }

.qty-selector {
  display: flex; align-items: center; gap: 0; margin-bottom: 20px;
}
.qty-selector button {
  width: 40px; height: 40px; background: var(--gray-100); border: 1px solid var(--gray-200);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-selector button:hover { background: var(--gray-200); }
.qty-selector input {
  width: 60px; height: 40px; text-align: center; border: 1px solid var(--gray-200);
  border-left: none; border-right: none; font-size: 16px; font-weight: 600;
  outline: none;
}

/* ============ ABOUT ============ */
.about { padding: 100px 0; background: var(--gray-50); }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-card {
  background: var(--white); padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--gray-100); transition: var(--transition);
  text-align: center;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-icon { font-size: 40px; margin-bottom: 16px; }
.about-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.about-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ============ FAQ ============ */
.faq { padding: 100px 0; background: var(--white); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden; cursor: pointer;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--green-300); }
.faq-question {
  padding: 18px 24px; font-size: 15px; font-weight: 600;
  color: var(--gray-700); display: flex; justify-content: space-between;
  align-items: center;
}
.faq-arrow { font-size: 12px; transition: var(--transition); color: var(--gray-400); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--green-600); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: var(--transition); font-size: 14px; color: var(--gray-500); line-height: 1.7;
}
.faq-item.open .faq-answer { padding: 0 24px 18px; max-height: 300px; }

/* ============ CART ============ */
.cart-overlay {
  display: none; position: fixed; inset: 0; z-index: 1500;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px;
  background: var(--white); z-index: 1501; transform: translateX(100%);
  transition: var(--transition); display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.cart-header h2 { font-size: 20px; font-weight: 700; }
.cart-header button {
  background: none; border: none; font-size: 20px; color: var(--gray-400);
  padding: 4px; transition: var(--transition);
}
.cart-header button:hover { color: var(--gray-600); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.cart-empty p { font-size: 16px; font-weight: 600; color: var(--gray-600); }
.cart-empty-sub { font-size: 14px; color: var(--gray-400); font-weight: 400; }
.cart-item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-100);
}
.cart-item-icon { font-size: 32px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--green-50); border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .cart-item-price { font-size: 14px; font-weight: 700; color: var(--green-700); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button {
  width: 28px; height: 28px; background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 6px; font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-item-qty button:hover { background: var(--gray-200); }
.cart-item-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none; border: none; color: var(--gray-400); font-size: 18px;
  padding: 4px; align-self: flex-start; transition: var(--transition);
}
.cart-item-remove:hover { color: #ef4444; }
.cart-footer {
  padding: 20px 24px; border-top: 1px solid var(--gray-200);
}
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cart-shipping-note { font-size: 13px; color: var(--green-600); text-align: center; margin-bottom: 16px; }
.cart-payment-note { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 12px; }

/* ============ CONTACT ============ */
.contact { padding: 100px 0; background: var(--gray-50); }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow); border: 1px solid var(--gray-100);
}
.contact-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.contact-content p { font-size: 15px; color: var(--gray-500); margin-bottom: 24px; line-height: 1.7; }
.contact-info div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); margin-bottom: 8px; }
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.contact-form p { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; }
.contact-form form { display: flex; gap: 8px; }
.contact-form input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 14px; outline: none;
  transition: var(--transition);
}
.contact-form input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(34,197,94,0.1); }

/* ============ FOOTER ============ */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 60px 0 0; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .logo-text { font-size: 22px; font-weight: 800; color: var(--white); }
.footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: var(--gray-400); margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--green-400); }
.footer-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--gray-800); text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--gray-500); }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--gray-900); color: var(--white); padding: 12px 24px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  z-index: 3000; opacity: 0; transition: var(--transition); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 40px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 16px 24px;
    gap: 16px; border-bottom: 1px solid var(--gray-200);
    transform: translateY(-100%); opacity: 0; transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 32px; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .section-title { font-size: 28px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .modal-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-body { padding: 24px; }
  .contact-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .cart-drawer { width: 100%; max-width: 400px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 8px; }
  .filter-tab { flex-shrink: 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .container { padding: 0 16px; }
}

/* ============ SOCIAL SECTION ============ */
.social-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1877F2 0%, #0d5dc4 100%);
  color: white;
}
.social-section .section-header h2 { color: white; }
.social-section .section-header p { color: rgba(255,255,255,0.85); }
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.social-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s;
}
.social-card:hover { transform: translateY(-4px); }
.social-icon { font-size: 48px; margin-bottom: 16px; }
.social-card h3 { font-size: 20px; margin-bottom: 12px; color: white; }
.social-card p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.social-code {
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  margin-top: 12px;
}
.referral-box {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.referral-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 13px;
}
.referral-box input::placeholder { color: rgba(255,255,255,0.5); }



/* ============ ICON FALLBACK ============ */
.icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  background: var(--green-50);
  border-radius: 12px;
}

/* ============ SHARE BUTTON ============ */

/* Compact product card action buttons */
.btn-cart, .btn-share {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cart:hover, .btn-share:hover { transform: scale(1.1); }
.btn-cart {
  background: var(--green-600);
  color: white;
  border: none;
  cursor: pointer;
}
.btn-cart:hover { background: var(--green-700); }
.btn-share {
  background: var(--green-600);
  color: white;
  border: none;
  cursor: pointer;
}
.btn-share:hover { background: var(--green-700); }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}
.product-card-footer .btn-sm { margin-left: 4px; }


/* ============ SHARE POPUP ============ */
.share-popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.share-popup.open { display: flex; }
.share-popup-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
}
.share-popup-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-400);
}
.share-popup-content h3 { font-size: 24px; margin-bottom: 12px; }
.share-popup-content p { color: var(--gray-500); margin-bottom: 24px; }
.share-buttons { display: flex; flex-direction: column; gap: 12px; }


/* ============ NAV SOCIAL LINKS ============ */
.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--gray-500);
  transition: all 0.2s;
}
.social-link:hover {
  color: white;
  transform: translateY(-1px);
}
.social-link:hover[aria-label="Facebook"] { background: #1877F2; }
.social-link:hover[aria-label="Instagram"] { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link:hover[aria-label="TikTok"] { background: #000; color: #ff0050; }
.social-link:hover[aria-label="X"] { background: #000; color: white; }
@media (max-width: 768px) {
  .social-links { display: none; }
}


/* ============ FOOTER SOCIAL ============ */
.footer-social { margin-bottom: 24px; }
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.footer-social-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  transform: translateY(-1px);
}
