/* shop.css - Panther Packaging — Navy Blue Brand Redesign */

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

:root {
  --navy:        #1e3a5f;
  --navy-mid:    #2d5a8e;
  --navy-light:  #3b6ea5;
  --navy-pale:   #e8f0f8;
  --navy-bg:     #3d6490;
  --blue-btn:    #4a7bb5;
  --blue-hover:  #3a6aa0;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --gray-50:     #f8f9fb;
  --gray-100:    #f0f2f5;
  --gray-200:    #e2e6ec;
  --gray-300:    #c8cfd8;
  --gray-400:    #9aa4b2;
  --gray-600:    #5a6475;
  --gray-700:    #3d4554;
  --gray-900:    #1a1f2e;
  --success:     #2e7d32;
  --warning:     #e65100;
  --danger:      #c62828;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow:      0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.13);
  --shadow-blue: 0 4px 20px rgba(45,90,142,0.25);
  --radius:      8px;
  --radius-lg:   12px;
  --transition:  all 0.22s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* TOP BAR */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 28px; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 500; }
.top-bar-right a:hover { color: #fff; text-decoration: underline; }

/* HEADER */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.header-content {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 28px; line-height: 1; }
.logo-text h1 { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -0.01em; }
.logo-text .tagline { font-size: 11px; color: var(--gray-400); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; margin-top: 2px; }


.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: var(--radius); transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--navy-mid); background: var(--navy-pale); }
.cart-link {
  display: flex; align-items: center; gap: 8px; background: var(--navy-mid);
  color: var(--white) !important; padding: 10px 20px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 14px; transition: var(--transition);
}
.cart-link:hover { background: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.cart-badge {
  background: white; color: var(--navy-mid); border-radius: 12px; padding: 1px 7px;
  font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; display: none;
}

/* CATEGORY NAV */
.category-nav { background: var(--navy-mid); overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 200; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav .container { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.cat-btn {
  background: none; border: none; border-bottom: 3px solid transparent;
  color: #ffffff; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  padding: 13px 18px; cursor: pointer; white-space: nowrap; transition: var(--transition); margin-bottom: -1px;
}
.cat-btn:hover { color: #ffffff; background: rgba(255,255,255,0.12); }
.cat-btn.active { color: #ffffff; border-bottom-color: #ffffff; background: rgba(255,255,255,0.15); font-weight: 700; }

/* TRUST BAR */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 11px 0; }
.trust-bar .container { display: flex; justify-content: center; gap: 40px; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--gray-700); }
.trust-icon { font-size: 16px; }

/* HERO BANNER */
.hero-banner {
  position: relative; width: 100%; height: 440px;
  overflow: hidden; background: var(--navy);
}
.hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; display: block;
}
.hero-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(20,35,60,0.85) 0%, rgba(20,35,60,0.55) 45%, rgba(20,35,60,0.1) 100%);
}
.hero-banner-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 52px; max-width: 620px;
}
.hero-banner-content h1, .hero-banner-content h2 {
  font-size: 58px; font-weight: 800; color: var(--white);
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px;
}
.hero-banner-content p {
  font-size: 16px; color: rgba(255,255,255,0.82);
  margin-bottom: 28px; line-height: 1.65; max-width: 420px;
}
.hero-banner-actions { display: flex; gap: 12px; }
.btn-white {
  background: var(--white); color: var(--navy-mid); border: none; padding: 12px 26px;
  border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-block; transition: var(--transition);
}
.btn-white:hover { background: var(--navy-pale); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); padding: 10px 22px;
  border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block; transition: var(--transition);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); }

/* FILTERS TOOLBAR */
.filters-toolbar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 14px 0; position: sticky; top: 0; z-index: 100;
}
.filters-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 200px; max-width: 340px; position: relative; display: flex; align-items: center; }
.search-box input {
  width: 100%; padding: 9px 14px 9px 36px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--gray-900); background: var(--gray-50); transition: var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--navy-mid); background: var(--white); }
.search-icon { position: absolute; left: 11px; color: var(--gray-400); font-size: 13px; pointer-events: none; }
.filter-options { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.stock-toggle { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--gray-600); cursor: pointer; font-weight: 500; }
.stock-toggle input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--navy-mid); cursor: pointer; }
.results-count { font-size: 13px; color: var(--gray-400); white-space: nowrap; }
.btn-secondary {
  background: var(--white); color: var(--gray-700); border: 1.5px solid var(--gray-200);
  padding: 8px 16px; border-radius: var(--radius); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--navy-mid); color: var(--navy-mid); }

/* PRODUCTS */
.products { padding: 36px 0 64px; }
#products-loading { text-align: center; padding: 80px 20px; color: var(--gray-400); font-size: 15px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }

/* PRODUCT CARD */
.product-card {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--transition);
}
.product-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-image {
  position: relative; width: 100%; height: 210px; background: var(--gray-100);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.3s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }

.stock-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.stock-badge.in-stock     { background: #e8f5e9; color: var(--success); }
.stock-badge.limited-stock { background: #fff3e0; color: var(--warning); }
.stock-badge.low-stock    { background: #ffebee; color: var(--danger); }
.stock-badge.out-of-stock { background: var(--gray-100); color: var(--gray-400); }

.product-info { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-sku { font-size: 11px; color: var(--navy-mid); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 5px; }
.product-name { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 7px; line-height: 1.35; }
.product-description { font-size: 13px; color: var(--gray-600); margin-bottom: 14px; flex: 1; line-height: 1.55; }
.product-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.product-price { font-size: 24px; font-weight: 800; color: var(--navy-mid); }
.product-unit { font-size: 12px; color: var(--gray-400); }

.product-actions { display: flex; gap: 8px; align-items: center; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.qty-control button {
  width: 32px; height: 36px; background: var(--gray-100); border: none; color: var(--gray-700);
  font-size: 18px; font-weight: 600; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--navy-pale); color: var(--navy-mid); }
.qty-control input {
  width: 42px; height: 36px; text-align: center; border: none;
  border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--gray-900); background: var(--white); -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-control input:focus { outline: none; }
.add-to-cart-btn {
  flex: 1; background: var(--blue-btn); color: var(--white); border: none; height: 36px;
  border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.add-to-cart-btn:hover:not(:disabled) { background: var(--navy); transform: translateY(-1px); }
.add-to-cart-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }

/* GLOBAL BUTTONS */
.btn-primary {
  background: var(--navy-mid); color: var(--white); border: none; padding: 12px 28px;
  border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-block; transition: var(--transition);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-blue); }

/* TOAST */
.cart-toast {
  position: fixed; bottom: 28px; right: 28px; background: var(--navy); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999; font-weight: 600; font-size: 14px; border-left: 3px solid rgba(255,255,255,0.4);
}
.cart-toast.show  { transform: translateY(0); opacity: 1; }
.cart-toast.warning { border-left-color: var(--warning); }
.cart-toast.error   { border-left-color: var(--danger); }

.no-products { text-align: center; padding: 80px 20px; color: var(--gray-400); font-size: 16px; grid-column: 1/-1; }

/* CART SIDEBAR */
.cart-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 9998; display: none;
}
.cart-sidebar-overlay.show { display: block; }
.cart-sidebar {
  position: fixed; top: 0; right: -400px; width: 380px; height: 100vh;
  background: var(--white); z-index: 9999;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transition: right 0.3s ease; display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 20px 16px; border-bottom: 1px solid var(--gray-200);
}
.cart-sidebar-close {
  background: none; border: none; font-size: 26px; cursor: pointer;
  color: var(--gray-400); line-height: 1; padding: 0 4px;
}
.cart-sidebar-close:hover { color: var(--gray-900); }
.cart-sidebar-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-sidebar-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
}
.cart-sidebar-item-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.cart-sidebar-item-meta { color: var(--gray-400); font-size: 13px; }
.cart-sidebar-item-price { font-weight: 700; font-size: 14px; color: var(--navy-mid); }
.cart-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); }
.cart-sidebar-total {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.cart-sidebar-empty { text-align: center; color: var(--gray-400); padding: 48px 0; font-size: 15px; }
.cart-sidebar-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-sidebar-qty-btn {
  width: 28px; height: 28px; border: 1.5px solid var(--gray-200); border-radius: 6px;
  background: var(--gray-50); cursor: pointer; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.cart-sidebar-qty-btn:hover { background: var(--navy-pale); border-color: var(--navy-mid); color: var(--navy-mid); }
.cart-sidebar-remove {
  background: none; border: none; color: var(--gray-400); font-size: 12px;
  cursor: pointer; margin-top: 6px; padding: 0; text-decoration: underline;
}
.cart-sidebar-remove:hover { color: var(--danger); }

/* FOOTER */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 52px 0 24px; border-top: 4px solid var(--navy-light); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.75; max-width: 300px; }
.footer-section h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-section p, .footer-section a { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.7); text-decoration: none; display: block; }
.footer-section a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(4,1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-content { flex-wrap: wrap; gap: 12px; }
  .trust-bar .container { gap: 20px; flex-wrap: wrap; justify-content: flex-start; }
  .size-search-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 40px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
  .footer-content { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}