/* ============================================
   WP Services, LLC - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal: #2b2b2b;
  --charcoal-dark: #1a1a1a;
  --charcoal-mid: #3a3a3a;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-gray: #e8e8e8;
  --mid-gray: #999999;
  --accent: #c8a96e;
  --accent-dark: #a8893e;
  --danger: #c0392b;
  --success: #27ae60;
  --font-main: 'Segoe UI', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 4px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--charcoal); background: var(--white); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }

/* --- Top Bar --- */
.top-bar {
  background: var(--charcoal-dark);
  color: var(--mid-gray);
  font-size: 0.78rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.03em;
}
.top-bar a { color: var(--accent); }
.top-bar a:hover { text-decoration: underline; }

/* --- Header --- */
header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-wrap img { height: 48px; width: auto; border-radius: 3px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .company { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; color: var(--white); }
.logo-text .tagline { font-size: 0.68rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }

/* Search Bar */
.search-wrap { flex: 1; max-width: 480px; position: relative; }
.search-wrap input {
  width: 100%;
  padding: 9px 44px 9px 16px;
  border-radius: 24px;
  border: none;
  background: var(--charcoal-mid);
  color: var(--white);
  font-size: 0.92rem;
  outline: none;
  transition: background var(--transition);
}
.search-wrap input::placeholder { color: var(--mid-gray); }
.search-wrap input:focus { background: #4a4a4a; }
.search-wrap button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--mid-gray); font-size: 1rem;
}
.search-wrap button:hover { color: var(--accent); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-actions a {
  display: flex; flex-direction: column; align-items: center;
  color: var(--white); font-size: 0.7rem; gap: 3px;
  transition: color var(--transition);
}
.header-actions a:hover { color: var(--accent); }
.header-actions a .icon { font-size: 1.3rem; }
.cart-count {
  background: var(--accent); color: var(--charcoal-dark);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: -6px; right: -8px;
}
.cart-link { position: relative; }

/* --- Navigation --- */
nav.main-nav {
  background: var(--charcoal-mid);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: block;
  padding: 13px 18px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-item > a:hover, .nav-item > button:hover,
.nav-item.active > a, .nav-item.active > button {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
}
.nav-item > button::after { content: ' ▾'; font-size: 0.7rem; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  z-index: 999;
  border-radius: 0 0 var(--radius) var(--radius);
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 11px 20px;
  color: var(--charcoal);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--light-gray);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--off-white); color: var(--accent-dark); padding-left: 26px; }

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px;
}

/* --- Hero Banner --- */
.hero {
  background: linear-gradient(135deg, var(--charcoal-dark) 0%, var(--charcoal) 60%, #3d3d3d 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary { background: var(--accent); color: var(--charcoal-dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--charcoal-dark); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; text-align: center; }

/* --- Category Cards --- */
.section { padding: 60px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.section-sub { color: var(--mid-gray); margin-bottom: 36px; font-size: 0.95rem; }
.section-title-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--charcoal-mid);
  border-color: var(--accent);
}
.category-card .cat-icon { font-size: 2.4rem; margin-bottom: 12px; }
.category-card .cat-name { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; }
.category-card .cat-count { font-size: 0.75rem; color: var(--accent); margin-top: 4px; }

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-img {
  background: var(--off-white);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
}
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: var(--charcoal-dark);
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.72rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; font-weight: 600; }
.product-name { font-size: 0.98rem; font-weight: 600; margin-bottom: 8px; color: var(--charcoal); line-height: 1.4; }
.product-desc { font-size: 0.82rem; color: var(--mid-gray); margin-bottom: 12px; flex: 1; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--charcoal); }
.product-price .was { font-size: 0.78rem; color: var(--mid-gray); text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.add-to-cart-btn {
  background: var(--charcoal);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition);
}
.add-to-cart-btn:hover { background: var(--accent); color: var(--charcoal-dark); }

/* --- Sidebar Filter --- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.sidebar { position: sticky; top: 90px; align-self: start; }
.filter-section { margin-bottom: 28px; }
.filter-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--charcoal); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--light-gray); }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 0.88rem; color: var(--charcoal); }
.filter-option input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.filter-option:hover { color: var(--accent-dark); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 80px; padding: 6px 10px; border: 1px solid var(--light-gray); border-radius: var(--radius); font-size: 0.85rem; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font-main);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  color: var(--charcoal);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,169,110,0.15); }
.form-input::placeholder { color: var(--mid-gray); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 0.78rem; color: var(--mid-gray); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; display: none; }

/* --- Auth Pages --- */
.auth-page { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; background: var(--off-white); padding: 40px 24px; }
.auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 48px 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 56px; margin: 0 auto 10px; }
.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--mid-gray); font-size: 0.88rem; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--mid-gray); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--light-gray); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--mid-gray); }
.auth-switch a { color: var(--accent-dark); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* --- Cart --- */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 16px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mid-gray); border-bottom: 2px solid var(--light-gray); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.cart-item-img { width: 70px; height: 70px; background: var(--off-white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.cart-item-cat { font-size: 0.75rem; color: var(--mid-gray); }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--light-gray); background: var(--white); border-radius: var(--radius); font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.qty-input { width: 44px; text-align: center; border: 1px solid var(--light-gray); border-radius: var(--radius); padding: 4px; font-size: 0.9rem; }
.remove-btn { background: none; border: none; color: var(--mid-gray); font-size: 1.1rem; transition: color var(--transition); }
.remove-btn:hover { color: var(--danger); }
.order-summary { background: var(--off-white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--light-gray); position: sticky; top: 90px; }
.order-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--light-gray); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; }
.summary-row.total { font-weight: 700; font-size: 1.05rem; padding-top: 12px; border-top: 2px solid var(--charcoal); margin-top: 8px; }
.promo-wrap { display: flex; gap: 8px; margin: 16px 0; }
.promo-wrap input { flex: 1; padding: 9px 12px; border: 1px solid var(--light-gray); border-radius: var(--radius); font-size: 0.85rem; }
.promo-wrap button { padding: 9px 16px; background: var(--charcoal); color: var(--white); border: none; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; }

/* --- Checkout --- */
.checkout-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.checkout-steps { display: flex; gap: 0; margin-bottom: 32px; }
.step { flex: 1; text-align: center; padding: 12px; font-size: 0.82rem; font-weight: 600; color: var(--mid-gray); border-bottom: 3px solid var(--light-gray); position: relative; }
.step.active { color: var(--charcoal); border-bottom-color: var(--accent); }
.step.done { color: var(--success); border-bottom-color: var(--success); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--light-gray); color: var(--charcoal); font-size: 0.75rem; margin-right: 6px; }
.step.active .step-num { background: var(--accent); color: var(--charcoal-dark); }
.step.done .step-num { background: var(--success); color: var(--white); }

/* --- Footer --- */
footer {
  background: var(--charcoal-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 24px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-wrap { margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.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: 0.78rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Breadcrumb --- */
.breadcrumb { background: var(--off-white); padding: 12px 24px; border-bottom: 1px solid var(--light-gray); }
.breadcrumb-inner { max-width: 1280px; margin: 0 auto; font-size: 0.82rem; color: var(--mid-gray); }
.breadcrumb-inner a { color: var(--mid-gray); }
.breadcrumb-inner a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumb-inner span { margin: 0 6px; }

/* --- Alerts / Toasts --- */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--charcoal); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 0.9rem;
  z-index: 9999; transform: translateY(80px); opacity: 0;
  transition: all 0.3s ease; pointer-events: none;
  border-left: 4px solid var(--accent);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* --- Page Header --- */
.page-header { background: var(--charcoal); color: var(--white); padding: 36px 24px; }
.page-header-inner { max-width: 1280px; margin: 0 auto; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* --- Info Boxes --- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.info-box { background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.info-box .icon { font-size: 2.2rem; margin-bottom: 12px; }
.info-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.info-box p { font-size: 0.85rem; color: var(--mid-gray); line-height: 1.6; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .search-wrap { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-inner { flex-direction: column; display: none; }
  .nav-inner.open { display: flex; }
  .hero h1 { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .logo-text .tagline { display: none; }
}
@media (max-width: 480px) {
  .auth-card { padding: 32px 20px; }
  .hero { padding: 48px 16px; }
  .section { padding: 40px 16px; }
}