/* ========================================================
   INDUSUPPLY - PROFESSIONAL STORE STYLESHEET
   Exact Marsella / High-End Chilean Hardware Architecture
   ======================================================== */

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

:root {
  --color-primary: #d00006;
  --color-primary-dark: #b00005;
  --marsella-red: var(--color-primary, #d00006);
  --marsella-red-hover: var(--color-primary-dark, #b00005);
  --marsella-red-light: rgba(208, 0, 6, 0.08);
  --header-bg: #181b1f;
  --nav-bg: #272b30;
  --top-bar-bg: #121518;
  --top-bar-text: #c9ccd0;
  --body-bg: #f5f6f8;
  --card-bg: #ffffff;
  --text-title: #1a1e23;
  --text-body: #3c424a;
  --text-muted: #72777f;
  --text-light: #9a9ea4;
  --border-light: #e6e8eb;
  --border-card: #dedede;
  --price-selling: var(--color-primary, #d00006);
  --price-list: #979899;
  --price-neto: #666a70;
  --green-whatsapp: #25d366;
  --green-whatsapp-hover: #1ebd5a;
  --success-color: #059669;
  --warning-color: #d97706;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 10px 20px -3px rgba(0,0,0,0.1), 0 4px 8px -2px rgba(0,0,0,0.06);
  --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-main);
  background-color: var(--body-bg);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   1. TOP ANNOUNCEMENT BAR
   ======================================================== */
.top-bar {
  background-color: var(--top-bar-bg, #121518);
  color: var(--top-bar-text, #c9ccd0);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-badge {
  background: var(--marsella-red);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.top-link {
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.top-link:hover {
  color: #fff;
}

/* ========================================================
   2. MAIN CORPORATE HEADER
   ======================================================== */
.main-header {
  background: var(--header-bg, #181b1f);
  color: #fff;
  padding: 16px 0;
  border-bottom: 3px solid var(--marsella-red);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* BRAND LOGO */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

#live-brand-logo-img-wrap {
  align-items: center;
  max-height: 54px;
}

#live-brand-logo-img {
  max-height: 52px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

#live-footer-logo-img-wrap {
  align-items: center;
  max-height: 48px;
}

#live-footer-logo-img {
  max-height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.brand-icon-box {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--marsella-red), var(--marsella-red-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: #ffffff;
}

.brand-title span {
  color: var(--marsella-red);
}

.brand-subtitle {
  font-size: 10px;
  color: #a0a4aa;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* MARSELLA-STYLE SEARCH BAR */
.search-wrapper {
  flex: 1;
  max-width: 650px;
}

.search-form {
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid #d1d5db;
  height: 44px;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--marsella-red);
  box-shadow: 0 0 0 3px rgba(208, 0, 6, 0.2);
}

.search-category-select {
  background: #f3f4f6;
  border: none;
  border-right: 1px solid #e5e7eb;
  padding: 0 14px;
  font-size: 13px;
  color: #374151;
  outline: none;
  cursor: pointer;
  max-width: 175px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.search-input {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-title);
  outline: none;
  background: transparent;
}

.search-input::placeholder {
  color: #9ca3af;
  font-size: 13.5px;
}

.search-btn {
  background: var(--marsella-red);
  color: #fff;
  padding: 0 22px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--marsella-red-hover);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-action-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.header-action-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--marsella-red);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(208, 0, 6, 0.35);
}

.header-cart-btn:hover {
  background: var(--marsella-red-hover);
  transform: translateY(-1px);
}

.cart-icon-wrap {
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.cart-counter {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ffffff;
  color: var(--marsella-red);
  font-size: 11px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========================================================
   3. SECONDARY NAVIGATION / DEPARTMENT BAR
   ======================================================== */
.nav-bar {
  background-color: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
}

.dept-trigger {
  background: var(--marsella-red);
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 13px 20px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.dept-trigger:hover {
  background: var(--marsella-red-hover) !important;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #d1d5db;
  transition: var(--transition);
  position: relative;
}

.nav-item a:hover {
  color: #ffffff;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.nav-item a:hover::after, .nav-item.active a::after {
  background: var(--marsella-red);
}

.nav-hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.nav-hotline a {
  color: #4ade80;
  font-weight: 700;
}

/* ========================================================
   4. HERO BANNER SLIDER
   ======================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #2a3038 0%, #15181c 100%);
  color: #fff;
  padding: 56px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(208, 0, 6, 0.15);
  color: #f87171;
  border: 1px solid rgba(208, 0, 6, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-title span {
  color: #ff3b41;
  text-shadow: 0 0 20px rgba(255, 59, 65, 0.3);
}

.hero-desc {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-marsella-primary {
  background: var(--marsella-red);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(208, 0, 6, 0.45);
}

.btn-marsella-primary:hover {
  background: var(--marsella-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 0, 6, 0.55);
}

.btn-marsella-whatsapp {
  background: var(--green-whatsapp);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-marsella-whatsapp:hover {
  background: var(--green-whatsapp-hover);
  transform: translateY(-2px);
}

/* HERO HIGHLIGHT CARD */
.hero-highlight-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.highlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.highlight-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: #fff;
}

.highlight-info h4 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.highlight-price {
  font-size: 26px;
  font-weight: 900;
  color: #4ade80;
}

.highlight-price small {
  font-size: 13px;
  color: #94a3b8;
  font-weight: normal;
  margin-left: 6px;
}

/* ========================================================
   5. VALUE PROPOSITION (TRUST STRIP)
   ======================================================== */
.value-props {
  background: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.prop-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prop-icon {
  width: 50px;
  height: 50px;
  background: #fef2f2;
  color: var(--marsella-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid #fee2e2;
}

.prop-text h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 2px;
}

.prop-text p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ========================================================
   6. CATEGORIES FILTER STRIP (PILLS)
   ======================================================== */
.categories-section {
  padding: 40px 0 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 12px;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-title);
  letter-spacing: -0.5px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 70px;
  height: 3px;
  background: var(--marsella-red);
}

.section-counter {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: #e5e7eb;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.cat-pill {
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-body);
  white-space: nowrap;
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--marsella-red);
  color: #fff;
  border-color: var(--marsella-red);
  box-shadow: 0 3px 10px rgba(208, 0, 6, 0.3);
}

/* ========================================================
   7. MAIN CATALOG: SIDEBAR + PRODUCTS GRID
   ======================================================== */
.catalog-section {
  padding: 20px 0 60px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

/* SIDEBAR */
.catalog-sidebar {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f2f4;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-title);
  margin-bottom: 12px;
}

.filter-list {
  list-style: none;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-item:hover, .filter-item.active {
  color: var(--marsella-red);
  font-weight: 700;
}

/* TOOLBAR */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-title);
  background: #fff;
  outline: none;
  cursor: pointer;
  font-weight: 600;
}

/* ========================================================
   8. MARSELLA-GRADE PRODUCT CARDS
   ======================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

/* BADGES */
.card-badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
}

.badge-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.badge-destacado {
  background: var(--marsella-red);
  color: #fff;
}

.badge-oferta {
  background: #f59e0b;
  color: #fff;
}

.badge-mas-vendido {
  background: #0284c7;
  color: #fff;
}

.badge-discount {
  background: #16a34a;
  color: #fff;
  font-weight: 800;
}

/* CARD IMAGE */
.card-image-wrap {
  width: 100%;
  height: 230px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #f1f2f4;
  padding: 12px;
}

.card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

.quick-view-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: var(--transition);
  z-index: 4;
}

.product-card:hover .quick-view-overlay {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.btn-quick-view {
  background: rgba(26, 30, 35, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-quick-view:hover {
  background: var(--marsella-red);
}

/* CARD BODY */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
}

.card-brand {
  font-weight: 800;
  color: #72777f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-sku {
  font-family: monospace;
  color: #9ca3af;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-title);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}

/* STOCK STATUS */
.card-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  width: fit-content;
}

.stock-in {
  background: #dcfce7;
  color: #15803d;
}

.stock-low {
  background: #fef3c7;
  color: #b45309;
}

.stock-out {
  background: #fee2e2;
  color: #b91c1c;
}

/* PRICE BLOCK (EXACT MARSELLA FORM) */
.card-prices {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  margin-bottom: 14px;
}

.price-normal {
  font-size: 12.5px;
  color: var(--price-list);
  text-decoration: line-through;
}

.price-offer {
  font-size: 22px;
  font-weight: 800;
  color: var(--marsella-red);
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
}

.price-iva {
  font-size: 11.5px;
  font-weight: 600;
  color: #72777f;
  text-transform: uppercase;
}

.price-neto {
  font-size: 11.5px;
  color: var(--price-neto);
  margin-top: 2px;
}

/* CARD ACTIONS */
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-add-cart {
  background: var(--marsella-red);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--marsella-red-hover);
  box-shadow: 0 3px 10px rgba(208, 0, 6, 0.35);
}

.btn-add-cart:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-whatsapp-direct {
  background: var(--green-whatsapp);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-whatsapp-direct:hover {
  background: var(--green-whatsapp-hover);
}

/* ========================================================
   9. SHOPPING CART DRAWER
   ======================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -4px 0 24px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  background: var(--header-bg);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--marsella-red);
}

.cart-drawer-title {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-cart {
  color: #9ca3af;
  font-size: 20px;
  transition: var(--transition);
}

.btn-close-cart:hover {
  color: #fff;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f2f4;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  border: 1px solid #e5e7eb;
  padding: 4px;
}

.cart-item-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-title);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--marsella-red);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: #f3f4f6;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-title);
}

.qty-btn:hover {
  background: var(--marsella-red);
  color: #fff;
}

.qty-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-drawer-footer {
  background: #f9fafb;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.cart-totals-final {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 18px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 19px;
  font-weight: 900;
  color: var(--text-title);
}

.btn-whatsapp-order {
  background: var(--green-whatsapp);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  width: 100%;
}

.btn-whatsapp-order:hover {
  background: var(--green-whatsapp-hover);
}

/* ========================================================
   10. MODAL QUICK VIEW
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-sm);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-title);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--marsella-red);
  color: #fff;
}

.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
}

.modal-img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* ========================================================
   11. FLOATING WHATSAPP BUTTON
   ======================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--green-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
  z-index: 900;
  transition: var(--transition);
}

.whatsapp-floating:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.65);
}

/* ========================================================
   12. MAIN FOOTER
   ======================================================== */
.main-footer {
  background: #121518;
  color: #9ca3af;
  padding: 60px 0 24px;
  border-top: 4px solid var(--marsella-red);
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: -0.2px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--marsella-red);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 13.5px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-info p {
  font-size: 13.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

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

/* ========================================================
   13. COMPREHENSIVE MOBILE RESPONSIVE ENGINE (< 1024px, < 768px, < 480px)
   ======================================================== */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    display: none;
  }
  .props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
  }

  .container {
    padding: 0 12px;
  }

  /* Top Bar */
  .top-bar {
    font-size: 11px;
    padding: 5px 0;
  }
  .top-bar .container {
    justify-content: center;
  }
  .top-bar-right {
    display: none;
  }

  /* Header Mobile */
  .main-header {
    padding: 10px 0;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .brand-icon-box {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .brand-title {
    font-size: 20px;
  }
  .brand-subtitle {
    font-size: 9px;
  }
  
  .header-actions {
    gap: 8px;
  }
  .header-action-pill {
    padding: 8px 10px;
  }
  .header-action-pill div {
    display: none !important;
  }
  .header-cart-btn {
    padding: 8px 12px;
  }
  .header-cart-btn div {
    display: none !important;
  }
  
  /* Search Bar Mobile */
  .search-wrapper {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-top: 2px;
  }
  .search-form {
    height: 40px;
  }
  .search-category-select {
    display: none;
  }
  .search-input {
    font-size: 13px;
    padding: 0 12px;
  }
  .search-btn {
    padding: 0 16px;
  }

  /* Horizontal Category Nav */
  .nav-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-bar::-webkit-scrollbar {
    display: none;
  }
  .nav-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .nav-item a, .dept-trigger {
    padding: 10px 14px !important;
    font-size: 12.5px !important;
  }
  .nav-hotline {
    display: none;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 26px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-pill-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }
  .hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-marsella-primary, .btn-marsella-whatsapp {
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
  }
  .hero-highlight-card {
    display: none;
  }

  /* Value Props (2x2 Compact Grid) */
  .value-props {
    padding: 14px 0;
  }
  .props-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .prop-item {
    gap: 8px;
  }
  .prop-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .prop-text h4 {
    font-size: 12px;
  }
  .prop-text p {
    font-size: 10.5px;
    line-height: 1.25;
  }

  /* Category Filter Pills */
  .categories-section {
    padding: 20px 0 8px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: 19px;
  }
  .category-pills {
    gap: 6px;
  }
  .cat-pill {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Catalog & Products (2-COLUMN GRID) */
  .catalog-section {
    padding: 10px 0 36px;
  }
  .catalog-toolbar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
  }
  .toolbar-results {
    font-size: 12px;
  }
  .toolbar-actions {
    justify-content: space-between;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Mobile Product Card */
  .product-card {
    border-radius: var(--radius-sm);
  }
  .card-image-wrap {
    height: 140px;
    padding: 6px;
  }
  .card-body {
    padding: 10px;
  }
  .card-meta {
    font-size: 9.5px;
    margin-bottom: 4px;
  }
  .card-title {
    font-size: 12.5px;
    line-height: 1.25;
    min-height: 32px;
    margin-bottom: 6px;
  }
  .card-stock-pill {
    font-size: 9.5px;
    padding: 2px 6px;
    margin-bottom: 6px;
  }
  .card-prices {
    margin-bottom: 8px;
    padding-top: 6px;
  }
  .price-normal {
    font-size: 11px;
  }
  .price-offer {
    font-size: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .price-iva {
    font-size: 9.5px;
  }
  .price-neto {
    font-size: 9.5px;
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .btn-add-cart {
    padding: 8px 6px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .btn-whatsapp-direct {
    display: none;
  }

  /* Cart Drawer Mobile */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }
  .cart-drawer-header {
    padding: 14px 16px;
  }
  .cart-drawer-items {
    padding: 14px;
  }
  .cart-drawer-footer {
    padding: 14px;
  }

  /* Modal Quick View Mobile */
  .modal-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .modal-img {
    height: 200px;
  }

  /* Footer Mobile */
  .main-footer {
    padding: 36px 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
  }
  .footer-col h4 {
    margin-bottom: 10px;
  }

  /* Floating WhatsApp on Mobile */
  .whatsapp-floating {
    bottom: 70px;
    right: 14px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  /* NATIVE MOBILE BOTTOM APP BAR */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #15181c;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    z-index: 800;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  }
  .mobile-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 700;
    gap: 3px;
    height: 100%;
    transition: var(--transition);
  }
  .mobile-tab-btn.active, .mobile-tab-btn:hover {
    color: #ffffff;
  }
  .mobile-tab-btn.active span:last-child {
    color: var(--marsella-red);
  }
  .mobile-tab-icon {
    font-size: 18px;
    line-height: 1;
  }
  .mobile-cart-counter {
    top: -5px;
    right: -8px;
    width: 16px;
    height: 16px;
    font-size: 9.5px;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

