/* =====================================================
   OPANBOX THEME - Premium Marketplace Design System
   Flipkart / Amazon / Cashify inspired, Clean & Modern
   ===================================================== */

:root {
  --primary: #2874f0;
  --primary-dark: #1b5ecc;
  --primary-light: #eef4ff;
  --accent: #fb641b;
  --accent-gold: #ff9f00;
  --success: #26a541;
  --danger: #e53935;
  --header-bg: #2874f0;
  --topbar-bg: #1c52ab;
  --cat-nav-bg: #ffffff;
  --bg: #f1f3f6;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Poppins", "Inter", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================================================
   HEADER DESIGN
   ===================================================== */
.ob-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Top Bar */
.ob-header-topbar {
  background: var(--topbar-bg);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 6px 0;
}
.ob-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ob-topbar-left, .ob-topbar-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.ob-topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ob-topbar-right a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.ob-sep {
  opacity: 0.4;
}
.ob-sell-link {
  color: #ffe500 !important;
  font-weight: 700;
}

/* Main Header */
.ob-header-main {
  background: var(--header-bg);
  padding: 12px 0;
}
.ob-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.ob-logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.ob-logo-accent {
  color: #ffe500;
}
.ob-logo-badge {
  font-size: 10px;
  background: #fb641b;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Search Box */
.ob-search-form {
  flex: 1;
  max-width: 620px;
}
.ob-search-inner {
  display: flex;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  height: 42px;
}
.ob-search-cat-wrap {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
}
.ob-search-cat-select {
  background: transparent;
  border: none;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  outline: none;
  cursor: pointer;
  height: 100%;
}
.ob-search-input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  font-family: var(--font-body);
}
.ob-search-btn {
  background: #ffffff;
  color: #2874f0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.ob-search-btn:hover {
  background: #f1f5f9;
}

/* Header Actions */
.ob-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ob-btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #2874f0;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.ob-btn-header-login:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}
.ob-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  transition: var(--transition);
}
.ob-action-link:hover {
  background: rgba(255,255,255,0.15);
}
.ob-cart-icon-box {
  position: relative;
  display: flex;
  align-items: center;
}
.ob-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ffe500;
  color: #1e293b;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* =====================================================
   CATEGORY SUB-NAV (Clean White Horizontal Bar)
   ===================================================== */
.ob-cat-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.ob-cat-nav-container {
  display: flex;
  align-items: center;
}
.ob-cat-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.ob-cat-menu::-webkit-scrollbar {
  display: none;
}
.ob-cat-menu-item {
  flex-shrink: 0;
}
.ob-cat-menu-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  border-radius: 4px;
  white-space: nowrap;
  transition: var(--transition);
}
.ob-cat-menu-item a:hover {
  color: #2874f0;
  background: #f1f5f9;
}
.ob-all-cats a {
  font-weight: 700;
  color: #0f172a;
}
.ob-deals-item a {
  color: #ea580c;
  font-weight: 700;
}
.ob-sell-tab a {
  color: #16a34a;
  font-weight: 700;
  margin-left: auto;
}

/* =====================================================
   HOMEPAGE HERO SHOWCASE (Vibrant & High-Converting)
   ===================================================== */
.ob-hero-showcase {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: #ffffff;
  padding: 44px 0 54px;
  position: relative;
  overflow: hidden;
}
.ob-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
}
.ob-hero-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ob-badge-pill {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.ob-badge-pill.gold {
  background: rgba(255,229,0,0.2);
  color: #ffe500;
  border-color: rgba(255,229,0,0.4);
}
.ob-hero-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #ffffff;
}
.ob-hero-title span {
  color: #ffe500;
}
.ob-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
  max-width: 520px;
  line-height: 1.6;
}
.ob-hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
}
.ob-btn-cta-primary {
  background: #fb641b;
  color: #ffffff;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(251,100,27,0.4);
  transition: var(--transition);
}
.ob-btn-cta-primary:hover {
  background: #e5530b;
  transform: translateY(-2px);
}
.ob-btn-cta-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  transition: var(--transition);
}
.ob-btn-cta-secondary:hover {
  background: rgba(255,255,255,0.25);
}

/* Floating Deals Preview Card */
.ob-hero-preview-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  color: #1e293b;
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}
.ob-preview-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.ob-preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ob-preview-info h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}
.ob-preview-grade {
  display: inline-block;
  background: #e6f7eb;
  color: #26a541;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ob-preview-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.ob-preview-deal-price {
  font-size: 22px;
  font-weight: 800;
  color: #2874f0;
}
.ob-preview-mrp {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}
.ob-preview-discount {
  font-size: 12px;
  font-weight: 700;
  color: #26a541;
}

/* =====================================================
   TRUST STRIP
   ===================================================== */
.ob-trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.ob-trust-grid-hp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ob-trust-item-hp {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ob-trust-icon-hp {
  font-size: 26px;
}
.ob-trust-item-hp h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.ob-trust-item-hp p {
  font-size: 12px;
  color: #64748b;
}

/* =====================================================
   HOMEPAGE SECTIONS & PRODUCT GRIDS
   ===================================================== */
.ob-section {
  padding: 28px 0;
}
.ob-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ob-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.ob-view-all {
  font-size: 13px;
  font-weight: 700;
  color: #2874f0;
}
.ob-view-all:hover {
  text-decoration: underline;
}

.ob-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Product Card */
.ob-product-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.ob-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}
.ob-product-thumb {
  position: relative;
  background: #f8fafc;
  overflow: hidden;
}
.ob-product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ob-product-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ob-badge-grade-a { background: #26a541; color: #fff; }
.ob-badge-grade-b { background: #f59e0b; color: #fff; }
.ob-badge-grade-c { background: #ef4444; color: #fff; }
.ob-badge-sale { background: #fb641b; color: #fff; }

.ob-product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ob-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  height: 38px;
}
.ob-product-name:hover {
  color: #2874f0;
}
.ob-product-seller {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.ob-product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.ob-price-current {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.ob-price-original {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}
.ob-price-discount {
  font-size: 12px;
  font-weight: 700;
  color: #26a541;
}
.ob-product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.ob-btn-cart {
  flex: 1;
  background: #f1f5f9;
  color: #334155;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}
.ob-btn-cart:hover {
  background: #e2e8f0;
}
.ob-btn-buy {
  flex: 1;
  background: #fb641b;
  color: #ffffff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}
.ob-btn-buy:hover {
  background: #e5530b;
}

/* Category Strip (Homepage icons) */
.ob-cat-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.ob-cat-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: var(--transition);
}
.ob-cat-item:hover {
  border-color: #2874f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40,116,240,0.12);
}
.ob-cat-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}
.ob-cat-item span {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: block;
}

/* Footer */
.ob-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 40px;
}
.ob-footer-main {
  padding: 48px 0 32px;
}
.ob-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.ob-footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}
.ob-footer-heading {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ob-footer-links li {
  margin-bottom: 10px;
}
.ob-footer-links a {
  font-size: 13px;
  color: #94a3b8;
}
.ob-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.ob-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 12px;
}
.ob-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
  .ob-hero-grid { grid-template-columns: 1fr; }
  .ob-hero-preview-card { display: none; }
  .ob-products-grid { grid-template-columns: repeat(3, 1fr); }
  .ob-cat-strip { grid-template-columns: repeat(4, 1fr); }
  .ob-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .ob-header-topbar { display: none; }
  .ob-header-main { padding: 8px 0; }
  .ob-header-inner { flex-wrap: wrap; gap: 8px; }
  .ob-search-form { order: 3; width: 100%; max-width: 100%; }
  .ob-action-txt { display: none; }
  .ob-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ob-cat-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ob-footer-grid { grid-template-columns: 1fr; }
  .ob-trust-grid-hp { grid-template-columns: 1fr 1fr; }
}