/* ShopFlow Global Style System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #C11B31;
  --primary-dark: #9A1426;
  --primary-light: #E33048;
  --primary-bg: #FEF2F2;
  
  --charcoal: #1E2022;
  --charcoal2: #4A4E58;
  --white: #FFFFFF;
  --gray: #F8F9FA;
  --gray-dark: #E5E7EB;
  
  --text: #2A2D34;
  --muted: #6B7280;
  --border: #E5E7EB;
  --gold: #FBBF24;
  --emerald: #10B981;
  --emerald-bg: #D1FAE5;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ── PREMIUM HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0 40px;
}

.header-inner {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 200px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Header Search Bar */
.header-search {
  flex-grow: 1;
  max-width: 450px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-family: inherit;
  background: var(--gray);
  transition: var(--transition);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(193, 27, 49, 0.1);
}

.header-search::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.6;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal2);
}

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

/* Icon Buttons with Badges */
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

.load-more-btn {
  display: block;
  margin: 40px auto;
  padding: 14px 40px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* User Account Call-to-action */
.nav-user-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

.nav-user-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-user-cta.logged-in {
  background: transparent;
  color: var(--charcoal) !important;
}

.nav-user-cta.logged-in:hover {
  background: transparent;
  opacity: 0.8;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ── SECTIONS & HERO UTILITIES ── */
.section {
  padding: 40px 40px;
}

.section-gray {
  background: var(--gray);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.divider-red {
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 20px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
}

.section-header {
  margin-bottom: 48px;
}

/* Badge MOQ Warning Alert */
.b2b-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-bg);
  border: 1px solid rgba(193, 27, 49, 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.moq-pill {
  background: var(--charcoal);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ── PREMIUM FORMS & INPUTS ── */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 27, 49, 0.1);
}

.btn-primary {
  display: inline-block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(193, 27, 49, 0.15);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(193, 27, 49, 0.25);
}

.btn-secondary {
  display: inline-block;
  text-align: center;
  background: transparent;
  color: var(--charcoal);
  padding: 12px 26px;
  border: 2px solid var(--charcoal);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── DYNAMIC GRID OF PRODUCTS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.wishlist-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 2;
  opacity: 0.45;
}

.wishlist-heart-btn:hover {
  background: var(--white);
  transform: scale(1.1);
  opacity: 0.8;
}

.wishlist-heart-btn.active {
  opacity: 1;
}

.product-info-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-bottom {
  margin-top: auto;
}

.product-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.product-card-unit {
  font-size: 12px;
  color: var(--muted);
}

.product-card-moq-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(30, 32, 34, 0.85);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.add-cart-action-btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-cart-action-btn:hover {
  background: var(--primary-dark);
}

/* ── PREMIUM FOOTER ── */
footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 40px 30px;
  border-top: 4px solid var(--primary);
  font-family: 'Inter', sans-serif;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand img {
  width: 200px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 24px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col a {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s ease;
  font-weight: 400;
}

.footer-col a::before {
  content: '›';
  color: var(--primary);
  margin-right: 8px;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-info p {
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-newsletter p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 40px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-payments {
  display: flex;
  gap: 8px;
  opacity: 0.6;
}

.footer-payments span {
  font-size: 20px;
}

/* Responsive Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  outline: none;
  font-size: 28px;
  color: var(--charcoal);
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 10000;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 40px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--charcoal);
  cursor: pointer;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
}

.mobile-nav-search {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

@media(max-width: 900px) {
  header {
    padding: 0 12px;
  }
  .header-inner {
    height: 60px;
    gap: 4px;
  }
  .logo {
    margin-right: auto;
  }
  .logo img {
    width: 160px;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    transform: none;
  }
  .header-search {
    display: none !important;
  }
  .nav-links {
    display: none !important;
  }
  .header-actions {
    gap: 6px;
  }
  .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .nav-user-cta {
    font-size: 11px;
    padding: 6px 8px;
    width: auto;
    height: auto;
    border-radius: 4px;
    gap: 4px;
    justify-content: center;
  }
  .nav-user-cta span {
    font-size: 12px;
    margin: 0;
  }
  .mobile-menu-toggle {
    display: block !important;
    font-size: 22px;
    padding: 4px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  .section {
    padding: 30px 16px;
  }
}

@media(max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand img {
    width: 160px;
    height: auto;
    margin-bottom: 16px;
    object-fit: contain;
    object-position: left center;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-brand p {
    font-size: 12px;
    line-height: 1.4;
  }
  .footer-col h4 {
    margin-bottom: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* Global Logo Constraints */
.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.footer-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}
